I have a question about a proper derivation of industry supply curve from cobb-Douglas.
The production function is given as:
\begin{equation} q_i = 2x_1^{1/2}x_2^{1/2} \end{equation}
the price of $x_1$ input is $w_1=1$ and $x_2$ is $w_2=4$
These are the steps I used in trying to derive the supply curve:
I used the well-known fact that technical rate of substitution must be equal to factor prices so:
\begin{equation} \frac{\text{MP}_{x_1}}{\text{MP}_{x_2}} = \frac{w_1}{w_2} \end{equation}
So after substituting prices and the marginal products which we get from taking the partial derivatives of $q_i$ we get:
\begin{equation} \frac{x_1}{x_2} = \frac{1}{4} \text{ or } x_1 = 4x_2 \end{equation}
Now I substituted this back into the cobb-douglas to get:
\begin{equation} q_i = 4x_2 \text{ or } \frac{q_i}{4} = x_2 \end{equation}
Now I just used general profit equation:
\begin{equation} \pi_i= pq_i - w_1x_1 -w_2 x_2 \end{equation}
I substituted the solution for both $x_1 = 4x_2$ and also that $x_2 = q_i/4$ and I got:
\begin{equation} \pi_i= pq_i - 2q_i \end{equation}
So my thinking was that by solving for optimal $q_i*$ and multiplying it by $n$ - the number of firms I could get the supply curve. But since the profit function is linear the $q_i$ drops from the derivation.
Please, could someone give me advice on how to proceed?
Edit: Also I forgot to mention that it is assumed that industry is perfectly competitive.