Quadratic equation to find max and min

Click For Summary

Homework Help Overview

The discussion revolves around finding the maximum and minimum values of the function ##f(x, y) = 4x + y^2## subject to the constraint given by the equation ##2x^2 + y^2 = 4##. Participants are exploring methods to approach this optimization problem, particularly in the context of constrained optimization involving an ellipse.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning, Problem interpretation, Assumption checking

Approaches and Questions Raised

  • Participants discuss various methods, including differentiation and Lagrange multipliers, to find critical points. There are attempts to isolate variables and substitute them into the function. Questions arise regarding the interpretation of critical points and the implications of the constraint on the domain.

Discussion Status

The discussion is active, with participants sharing insights and questioning each other's reasoning. Some guidance has been offered regarding the use of Lagrange multipliers and the importance of understanding the constraint's geometric implications. However, there is no explicit consensus on the correct approach or final outcomes.

Contextual Notes

Participants note the constraint represents an ellipse, which affects the possible values for x and y. There are ongoing discussions about the correct interpretation of critical points and the relationship between the function and the constraint.

  • #31
Lifeforbetter said:
x = 1 -> y=+-##\sqrt2##
y = 0 -> x=+-##\sqrt2##
OK, those look fine.
 
  • Like
Likes   Reactions: Lifeforbetter
Physics news on Phys.org
  • #32
##2x^2 + y^2 = 4##
##4x + y^2##

I know you are done with the question, but I wanted to say that lagrange multipliers is not the best for this problem.

Set ##x=\sqrt{2}cos(\theta), y=2sin(\theta)##

So now we need to optimize ##4(\sqrt{2}cos(\theta)+sin^2(\theta) )##

So now we need to optimize ##\sqrt{2}cos(\theta)+sin^2(\theta)##Differentiate it w.r.t ##\theta## we get ## -\sqrt{2}sin(\theta)+2sin(\theta)cos(\theta)=0##Implies ##sin(\theta)=0## or ##cos(\theta)=\frac{1}{\sqrt{2}}##

So max when x=1 and ##y=\sqrt{2}## (so max is 6) and minimum when y=0 and ##x=-\sqrt{2}## (so min is ##-4\sqrt{2}##).
 
Last edited:
  • #33
Pi-is-3 said:
##2x^2 + y^2 = 4##
##4x + y^2##

I know you are done with the question, but I wanted to say that lagrange multipliers is not the best for this problem.

Set ##x=\sqrt{2}cos(\theta), y=2sin(\theta)##

So now we need to optimize ##4(\sqrt{2}cos(\theta)+sin^2(\theta) )##

So now we need to optimize ##\sqrt{2}cos(\theta)+sin^2(\theta)##Differentiate it w.r.t we get ## -\sqrt{2}sin(\theta)+2sin(\theta)cos(\theta)=0##Implies ##sin(\theta)=0## or ##cos(\theta)=\frac{1}{\sqrt{2}}##

So max when x=1 and ##y=\sqrt{2}## (so max is 6) and minimum when y=0 and ##x=-\sqrt{2}## (so min is ##-4\sqrt{2}##).
Ok. Thanks. But where can i know to set ##x=\sqrt{2}cos(\theta), y=2sin(\theta)##
 
  • #34
Lifeforbetter said:
Ok. Thanks. But where can i know to set ##x=\sqrt{2}cos(\theta), y=2sin(\theta)##

It is very simple. Let us consider ##2x^{2} +y^{2}=4##

Then ##\frac{x^{2}}{2}+\frac{y^{2}}{4}=1##

Here we make the substitution ##\frac{x^2}{2}=cos^2(\theta)## and ##\frac{y^2}{4}=sin^2(\theta)##

And that is how we get it.
 
  • Like
Likes   Reactions: Lifeforbetter
  • #35
Also, if you ever need, ## - \sqrt{a^2+b^2} \leq acos(\theta)+bsin(\theta) \leq \sqrt{a^2+b^2}##
 
  • Like
Likes   Reactions: Lifeforbetter
  • #36
Pi-is-3 said:
Also, if you ever need, ## - \sqrt{a^2+b^2} \leq acos(\theta)+bsin(\theta) \leq \sqrt{a^2+b^2}##
How about this?
 
  • #37
Lifeforbetter said:
How about this?

Do you mean the proof? You can prove it through Lagrange multipliers, or their is a trigonometrical proof too. For the Lagrange multipliers proof, your optimization function is ##acos(\theta)+bsin(\theta)## and restrain function is ##cos^2(\theta)+sin^2(\theta)=1##.
 

Similar threads

Replies
1
Views
1K
  • · Replies 9 ·
Replies
9
Views
2K
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
12
Views
2K
Replies
4
Views
2K
  • · Replies 27 ·
Replies
27
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K