Here is the question: $f(x,y,z) = x + 2y^2 - 3z$ subject to the constraint $z = 4x^2 + y^2$.
I don't understand how to do this because when I take the partial derivative in respect to $z$, I get $-3 = 0$, which doesn't make sense.
Can someone please help me? I don't need it all worked out, just what to do from here...
\begin{align} \max_{x,y,z}\quad &x+2y^2-3z\\ s.t. \quad 4x^2+y^2-z&=0\\ \therefore \mathcal{L}(x,y,z,\lambda)&=x+2y^2-3z-\lambda\cdot(4x^2+y^2-z)\\ \nabla\mathcal{L}(x,y,z,\lambda)&= \begin{pmatrix}1\\4y\\-3\end{pmatrix}- \lambda\cdot\begin{pmatrix}8x\\2y\\-1\end{pmatrix}=0\\ \mbox{Now, From Equation (3):}\\ \implies-3+\lambda&=0\implies \lambda=3.\\ \mbox{Now, From Equation (1):}\\ \therefore 1-3\cdot8x&=0\implies x={1\over24}\\ \mbox{Now, From Equation (2):}\\ 4y-3\cdot2y&=0\implies y=0\\ \mbox{Now, from the Equality Constraint:}\\ 4x^2+y^2-z&=0\implies z={1\over144}\\ \mbox{Solution}&=\{{1\over24},0,{1\over144}\} \end{align}