# Thread:

1. ## Help with Legrange

Problem:

Find max and/or min values of function f given the contraints:

f(x,y,z) = x^2 +y^2 +z^2

x + y + z = 1

x + 2y + 3z = 6

I know how to use legrange generally. When I solve using both constraints, I get values for x,y,z that when plugged into the function f gives 25/3.

The answer in the book gives: "No Maximum, minimum: 25/3"

My question is how do I know the value i got (25/3) is the minimum and how do I know there is no maximum for the function?

2. It sounds like you are doing the math work in the probelm right, which is good. One way to check your critical points is using the second partials of the function, which can be a pain, but in this case isnt too bad. Just remember to substitute a value for $z$ in terms of $x$ and $y$ in the equation before you try to take a derivative of it.

Equation: $D=FxxFyy-(Fxy)^2$
-If Fxx and D(x,y,z) are positve then its a min.
-If Fxx is negative and D(x,y,z) is positive then the point is a max.
-If D(x,y,z) is less than 0 then the point is a saddle point.

*note: where $Fxx$ means take the partial derivative of F with respect to x twice.

3. Yes but these equations have 3 variables so wouldnt I have to do something with the partial derivative with respect to z?

4. Correct, you would need to solve for Z in terms of x and y.
Then, you would put that in for F(x), then start the second partials.

After that your equatoin will be in terms of only x and y.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 5, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9293075799942017, "perplexity_flag": "head"}