I am supposed to find local extrema of function: $f\left ( x,y \right > )=x^{2}+y^{2}-5xy$ on triangle ABC, where A=$\left ( 1,1 \right )$, B=$\left ( 3,2 \right )$, C=$\left ( 1,7 \right )$
I already found equation for line segment AB: y=$\frac{1}{2}x+\frac{1}{2}$,for line segment AC: y=$1$ and for line segment BC: y=$\frac{-15}{2}x+\frac{19}{2}$
Then I made the partial derivation: $$\frac{\phi f}{\phi x}=2x-5y $$ $$\frac{\phi f}{\phi y}=2y-5x $$ I am supposed to solve it with Lagrange multiplier.
But I do not know, how to continue. Can anyone help me?
The most straightforward way is to substitute, for each of the line segments, the expression you obtained for y into the original function, so you obtain a function of only one variable, x. Then differentiate and set the derivative equal to 0. Solve, substitute back to obtain y and check that the point (x,y) is between the end-points of the segment. You may have to check separately if the point is an end-point, i.e. a vertex A,B or C. To use Lagrange multipliers, first find the gradient vector of the objective function, viz. [2x-5y,2y-5x]. Then on each constraint, e.g. side AB, find the gradient vector of "constraint=0". Set the gradient vector of the objective equal to a scalar multiple of the gradient vector of the constraint. You have 3 equations, the constraint and the 2 components and 3 unknowns, x,y and the scalar. Each (x,y) is a critical point.