A demand curve for a public good is determined by:

summing vertically the individual demand curves for the public good.