I have a question regarding multivariable optimization. In particular, I have a function f(x,y,z,w) and I want to maximize f in terms of x only (with other variables treated as parameters). Also I have one more constraint: y=g(x), that is, this constraint is an equation of only y and x.
To maximize f, all I have to do is to substitude y for y=g(x), and then I $d/dx[f(x,y=g(x),z,w)]=0$, then just solve for x.
Here is the problem. I don't think I can solve for x.
So I decide to do the followings:
1) substitude $x=g^{-1}(y)$ to f.
2) f is now $f(g^{-1}(y),y,z,w)$
3)$d/dy[f(g^{-1}(y),y,z,w)]$=0, then solve for y.
4) after I obtain answer for y, then using the constraint, I could get x.
Now, do you think what I do in above 4 steps optimize f in terms of x?