The expansion of railroads directly led to economic growth in the us because more people were able to commute to and from their workplace to their homes. Since some work opportunities before railroads were seen as too far away from home, once the railroads were created and trains were running on the tracks, the lengthy distances were shortened and people were able to look for jobs in places where they were more abundant, therefore boosting the economy.
price of pizza increases, the demand for pizza does not change. This is because in economics we have a more precise definition of demand. Demand is NOT the quantity that people buy.