Complete the square ( Potentially )?

In summary, the conversation was about a question on an exam that involved using Lagrange to find the max/min on a specific region. The person had not attempted the question during the exam, but was now working on it out of curiosity. They had formed a Lagrange equation and took all the necessary derivatives, but were unable to solve the system of equations due to a large mix of variables. They were wondering if there was a trick to seeing the factoring occur without using an online tool. The expert suggested that the problem was probably designed to be easily factorable and provided some tips for solving these types of problems.
  • #1
STEMucator
Homework Helper
2,076
140

Homework Statement



There was a question on my exam a few days ago. Using Lagrange to find the max/min on a region. We only had to answer a certain amount of questions and I never got to this one. I'm working on it now though out of curiosity.

R = { (x,y) | x2 + xy + y2 ≤ 3 }

f(x,y) = 4x3 - 3xy2 - 4y3

Homework Equations



F = f + λg

The Attempt at a Solution



So I first thought we should check the interior of the ellipse, so I did and found (0,0,0) was the only critical obtained.

Then I formed my Lagrange equation and took all the required derivatives as usual. Then I formed my system of equations which actually appears unsolvable due to the large mix of variables per equation.

I'm glad I didn't attempt this one as I'm stumped. I figured I might want to try completing the square on the ellipse, but I'm not sure.
 
Physics news on Phys.org
  • #2
Zondrina said:

Homework Statement



There was a question on my exam a few days ago. Using Lagrange to find the max/min on a region. We only had to answer a certain amount of questions and I never got to this one. I'm working on it now though out of curiosity.

R = { (x,y) | x2 + xy + y2 ≤ 3 }

f(x,y) = 4x3 - 3xy2 - 4y3

Homework Equations



F = f + λg

The Attempt at a Solution



So I first thought we should check the interior of the ellipse, so I did and found (0,0,0) was the only critical obtained.

Then I formed my Lagrange equation and took all the required derivatives as usual. Then I formed my system of equations which actually appears unsolvable due to the large mix of variables per equation.

I'm glad I didn't attempt this one as I'm stumped. I figured I might want to try completing the square on the ellipse, but I'm not sure.

You just have to work through it. What did you get for the system of equations? It looks to me like the derivative equations factor pretty nicely. I don't think completing the square will help particularly.
 
  • #3
Dick said:
You just have to work through it. What did you get for the system of equations? It looks to me like the derivative equations factor pretty nicely.

[itex]12x^2 - 3y^2 + 2xλ + yλ = 0[/itex]

[itex]-6xy - 12y^2 + 2yλ + xλ = 0[/itex]

[itex]x^2 + xy + y^2 - 3 = 0[/itex]
 
  • #4
Zondrina said:
[itex]12x^2 - 3y^2 + 2xλ + yλ = 0[/itex]

[itex]-6xy - 12y^2 + 2yλ + xλ = 0[/itex]

[itex]x^2 + xy + y^2 - 3 = 0[/itex]

(2y+x) is a factor of the first equation, (y+2x) is a factor of the second equation. Factor them out. Then start thinking about possibilities.
 
  • #5
So my first equation factors to (2x + y)(6x - 3y + λ) and my second to (x + 2y)(-6y + λ).

Solving the first gives x = -y/2 or λ = 3(y - 2x) ( Lots of solutions, but whatever right ). I'm pretty sure I can solve this now and then obtain my points to test.

Just wondering, without wolfram how I may have seen this factoring occur. It seems... not so out there? Is there a trick I might not know?

Thank you once again for your help.
 
  • #6
Zondrina said:
So my first equation factors to (2x + y)(6x - 3y + λ) and my second to (x + 2y)(-6y + λ).

Solving the first gives x = -y/2 or λ = 3(y - 2x) ( Lots of solutions, but whatever right ). I'm pretty sure I can solve this now and then obtain my points to test.

Just wondering, without wolfram how I may have seen this factoring occur. It seems... not so out there? Is there a trick I might not know?

Thank you once again for your help.

Nah, probably no trick you don't know. Except to figure if they are going to give you this kind of problem on a test they probably cooked it so it could be done fairly easily. And when you set something equal to zero you always try to factor it. So they probably cooked it to factor.
 
  • #7
Zondrina said:
without wolfram how I may have seen this factoring occur.
If you assume it will factor, it's usually not hard to figure out what the factors must be (of quadratics anyway).
In your first equation the y terms are -3y2+λy. The only way that can factor nicely is in the form (... +y)(... -3y+λ). λ only occurs again as 2xλ, we have (2x ... +y)(... -3y+λ). Introducing that 2x also resulted in -6xy, but there's no xy in the equation, so we have to introduce an x term in the other bracket to cancel it: (2x ... +y)(6x ... -3y+λ). Since that produces the desired x2 term, we're done.
 
  • #8
haruspex said:
If you assume it will factor, it's usually not hard to figure out what the factors must be (of quadratics anyway).
In your first equation the y terms are -3y2+λy. The only way that can factor nicely is in the form (... +y)(... -3y+λ). λ only occurs again as 2xλ, we have (2x ... +y)(... -3y+λ). Introducing that 2x also resulted in -6xy, but there's no xy in the equation, so we have to introduce an x term in the other bracket to cancel it: (2x ... +y)(6x ... -3y+λ). Since that produces the desired x2 term, we're done.

Another way is to figure if you try to solve each equation for λ you ought to get something not too bad if it's doable. So whatever is multiplying the λ probably divides the other stuff. That's how I guessed it. Assuming it's going to be easy is a good guessing tool.
 
  • #9
From [itex]\nabla f+ \lambda\nabla g= 0[/itex], we can get [itex]\nabla f= -\lambda\nabla g[/itex]. That gives a series of such equations for the different components. I find it often simplest to eliminate [itex]\lambda[/itex] first (since it is not part of the solution) by dividing one equation by another.
Here those equations are:
[itex]12x^2 −3y^2= -\lambda(2x+y)[/itex]
[itex]−6xy−12y^2= -\lambda(2y+x)[/itex]
and you can eliminate [itex]\lambda[/itex] by dividing the first equation by the second
[tex]\frac{12x^2- 3y^2}{-6xy- 12y^2}= \frac{2x+y}{2y+x}[/tex]
[tex]\frac{4x^2- y^2}{-2xy- 4y^2}= \frac{2x+y}{2y+x}[/tex]
and get rid of the fractions by multiplying both sides by the two denominators
[tex](4x^2- y^2)(2y+ x)= (2x+y)(-2x- 4y^2[/tex]
[tex]4x^3+ 8x^2y- xy^2- 2y^3= -4x^2- 2xy- xy^2- 4y^3[/tex]
 

1. What is the purpose of completing the square?

Completing the square is a method used to solve quadratic equations and graph quadratic functions. It helps simplify the equation and find the vertex of the parabola, which is the maximum or minimum point.

2. How do you complete the square?

To complete the square, you take the coefficient of the x term, divide it by 2, and then square that value. This value is added to both sides of the equation. Then, the resulting expression is factored and the square root is taken on both sides to solve for x.

3. Why is it called "completing the square"?

It is called completing the square because the method involves finding a missing square term to create a perfect square trinomial. This allows us to factor the equation and solve for x.

4. When should I use the completing the square method?

The completing the square method should be used when solving quadratic equations that cannot be easily factored or when graphing quadratic functions to find the vertex.

5. Can completing the square be used for equations with higher powers?

No, completing the square method is only applicable for quadratic equations with the form ax^2 + bx + c = 0. For equations with higher powers, different methods such as the quadratic formula must be used.

Similar threads

  • Calculus and Beyond Homework Help
Replies
2
Views
358
  • Calculus and Beyond Homework Help
Replies
16
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
961
Replies
19
Views
2K
  • Calculus and Beyond Homework Help
Replies
6
Views
1K
  • Calculus and Beyond Homework Help
Replies
9
Views
1K
  • Calculus and Beyond Homework Help
Replies
5
Views
2K
  • Calculus and Beyond Homework Help
Replies
26
Views
4K
  • Calculus and Beyond Homework Help
Replies
9
Views
2K
  • Calculus and Beyond Homework Help
Replies
1
Views
7K
Back
Top