I have some problem about physics, which requires me to find the lowest value of $f(x,y)=x^2 + 3y^2$ while $x+3y=12$.
I have used the lagrange multiplier but I'm not sure whether it gave me the minima or the maxima, so how can I find the lowest value of $f(x,y)$ with this restraint ?
$$f(x,y)=x^2 + 3y^2$$ and $$g(x,y)=x+3y$$
Since $$\frac{\partial f}{\partial x} = 2x = \lambda \frac{\partial g}{\partial x} = \lambda $$ $$\frac{\partial f}{\partial y} = 6y = \lambda \frac{\partial g}{\partial x} = \lambda 3$$
we get $x=y$, but I don't know whether it is a minima or the maxima, so how can I check that ?
with $$y=4-\frac{1}{3}x$$ you will get $$f(x,4-1/3x)=x^2+3(4-1/3x)^2$$ a problem in one variable.