CES production function profit and supply function I need to derive the profit function for the following CES function: $$ f(z) = (\sqrt{z_{1}^{\rho} + z_{2}^{\rho}})^{1/ \rho}$$ where $\rho \leq 1$. This is the answer that I am supposed to be getting: 

If $ \rho &lt;1$ then
$$ \pi(w) = \begin{cases} 
      \infty \;\;\;\;\; \text{if} &amp; w_{1}^{\rho/(\rho -1)} + w_{2}^{\rho/(\rho -1)} &lt;1 \\
      0 \;\;\;\;\; \text{if} &amp; w_{1}^{\rho/(\rho -1)} + w_{2}^{\rho/(\rho -1)} 
 \geq 1\
   \end{cases}
$$

If $\rho = 1$, then: 

$$ \pi(w) = \begin{cases} 
      0 &amp; \text{if} \;\ Min\{w_{1},w_{2}\} \geq 1 \\
      \infty &amp; \text{if} \;\; Min\{w_{1},w_{2}\} &lt; 1 \\
   \end{cases}
$$

Normally I simply use profit maximization or cost minimization FOCs to obtain the profit function, as well as the supply one. But I have been trying to get around this problem and I really cannot get around these results or (of particular importance) how to derive them. That being said any tips, intuition, or just help with the derivation if you're feeling particularly selfless would be greatly appreciated. 

Thanks in advance!
Hint: Solving for the FOC's assumes that the solution is interior, in this case, that profits are positive and smaller than $\infty$. I would recommend you to derive the cost function $c(y)$ and then study its derivative. If the marginal cost is always smaller than the price of the good (probably it is assumed to be 1) then producing more is always better and profits are unbounded. However, if the marginal cost is always larger than the price, then the optimal is to produce nothing and get zero profits. 

Hope this helps.