If country A has twice as many inhabitants as country B, then the slope and intercept of A's cost function will be twice as large as the slope and intercept of B's cost function.
Population is shown with slope and intercept.