On page 124 of David Romer's Advanced Macroeconomics (5th Ed), he mentioned that for the Romer model,
Because firms producing final output face constant costs for each input and the production function exhibits constant returns, marginal cost equals average cost. As a result, these firms earn zero profits.
I'm struggling to mathematically prove this result.
The Ethier production function is $Y=\left[\int_{i=0}^{A}L(i)^{\phi}di\right]^{\frac{1}{\phi}}$, where $0<\phi<1$ and $L(i)$ is the quantity of labor devoted to producing input $i$ and the quantity of input $i$ that goes into final-goods production. Let $L_{Y}$ be the total number of workers producing inputs and assume that the number producing each available input is the same. Then, $L(i)=\frac{L_Y}{A}$ for all $i$. We also assume that the patent-holder is a monopolist who hires workers in a competitive labor market to produce the input and then sell the input to producers of the final output, where the monopolist charges a constant price for each unit of the output. Competitive firms producing the output take the prices of inputs as given. For the cost-minimization problem of a representative output producer, the Lagrangian for the problem of producing one unit of output at minimum cost is given by $$ \mathcal{L}=\int_{i=0}^{A} p(i) L(i) di-\lambda\left\{\left[\int_{i=0}^{A}L(i)^{\phi}di\right]^{\frac{1}{\phi}}-1\right\}, $$ where $p(i)$ is the price charged by the holder of the patent on idea $i$ for each unit of the input embodying that idea.
The text derives the result that the first-order condition for an individual $L(i)$ is $$ p(i) = \lambda L(i)^{\phi -1}, $$ and then gives us the clue that
One could use the condition that $\left[\int_{i=0}^{A}L(i)^{\phi}di\right]^{\frac{1}{\phi}} = 1$ to solve for $\lambda$, and then solve for the cost-minimizing levels of the $L(i)$’s and the level of marginal cost.
However, I'm unsure of how to go about this and can't derive an expression for the (1) marginal cost and (2) average cost, which should be equal here. Also, how do we go about showing that when marginal cost equal to average cost, the profit is zero?