Optimization: maximize a triangle surface

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
13 replies · 3K views
Telemachus
Messages
820
Reaction score
30
See if anyone can help me with this: Among all triangles of perimeter equal to P, find the one with the largest area. (Hint: use the formula [tex]A=\sqrt[ ]{p(p-x)(p-y)(p-z)}[/tex] where [tex]P=2p[/tex], [tex]P[/tex] is the perimeter).

So, I have [tex]f|_s[/tex], I think that must be solved using Lagrange multipliers, at least I don't see any other way.

I've proceeded this way: [tex]f=\sqrt[ ]{p(p-x)(p-y)(p-z)}[/tex], [tex]s=p=\displaystyle\frac{x+y+z}{2}[/tex]

Well, I have done so, but all derivatives did wrong (I did [tex]A^2[/tex] arising as if [tex]f=A^2[/tex] and then apply the multiplier to with the 4 conditions ), it became ugly, maybe it was because of that. Anyway, would you tell me if what I did here is ok? Greetings.
 
Physics news on Phys.org
Thanks. I know that I must arrive to x=z=y, an isosceles triangle, but it seems to be harder than what I thought.

[tex]A^2=p(p^2-py-xp+xy)(p-z)=p^4-p^3y-p^3x+p^2xy-p^3z+p^2zy+p^2zx-pzxy[/tex]
Then I call: [tex]f=p(p^2-py-xp+xy)(p-z)=p^4-p^3y-p^3x+p^2xy-p^3z+p^2zy+p^2zx-pzxy[/tex]

And [tex]s=p=\displaystyle\frac{P}{2}=\displaystyle\frac{x+y+z}{2}[/tex]

[tex]\begin{Bmatrix}f_x=p(py+pz-zy-p^2)\\f_y=p(px+pz-zx-p^2)\\f_z=p(px+py-p^2-xy)\end{matrix}[/tex]

[tex]p\neq{0}[/tex]
Then:
[tex]\begin{Bmatrix}py+pz-zy-p^2=\displaystyle\frac{\lambda}{2}\\px+pz-zx-p^2=\displaystyle\frac{\lambda}{2}\\px+py-p^2-xy=\displaystyle\frac{\lambda}{2}\\p=\displaystyle\frac{x+y+z}{2} \end{matrix}[/tex]

From the last condition I replaced p to get lambda.
Then I've found that:
[tex]\displaystyle\frac{\lambda}{2}=-x^2+y^2+z^2-2zy[/tex]
Then I replace in one of the equations

[tex]-x^2+y^2+z^2-2zy=\displaystyle\frac{(x+y+z)}{2}x+\displaystyle\frac{(x+y+z)}{2}z-zx-(\displaystyle\frac{(x+y+z)}{2})^2[/tex]
So I get into what I think its an absurd:
[tex]z=\displaystyle\frac{2y^2-2x^2}{2y-2x}[/tex]
I think its an absurd, but I haven't go ahead from hear. And the reason is that I think I should have an isosceles triangel, so I would be dividing be zero on this equality.
 
Last edited:
I think I've arrived at this conclusion before following another way. But I thought I was wrong, because I've arrived to x=p, z=y=x, and then I thought that what I had was a point, not a surface, so I thought I had a minimum there, not a maximum. And here I think the same, if we got z=p then A=0 from here: [tex]A=\sqrt[ ]{p(p-x)(p-y)(p-z)}[/tex]

I think the solution must be [tex]x=y=z\neq{p}[/tex]
 
It will probably make things a lot clearer if you don't expand all of those products. It looks to me like your f_x equation is -(y-p)(z-p)=lambda/2 and your f_y equation is -(x-p)(z-p)=lambda/2. I think you can draw an important conclusion from those two alone.
 
Alright, thanks Dick, I'll try that way, and then I'll tell you :P
 
I thought so, I think I did something like this in calculus 1 but with a square, that's what's in part drives me to think that the isosceles triangle is the one I'm looking for. But anyway this case seems complicated, maybe it is because I'm not seeing it clearly.
 
Telemachus said:
I thought so, I think I did something like this in calculus 1 but with a square, that's what's in part drives me to think that the isosceles triangle is the one I'm looking for. But anyway this case seems complicated, maybe it is because I'm not seeing it clearly.

It LOOKS complicated because you are multiplying everything out. Don't do that. It's not complicated.
 
This is what I have without the multiplications:

[tex]\begin{Bmatrix}-p(p-y)(p-z)=\displaystyle\frac{\lambda}{2}\\-p(p-x)(p-z)=\displaystyle\frac{\lambda}{2}\\-p(p-x)(p-y)=\displaystyle\frac{\lambda}{2}\\p=\displaystyle \frac{x+y+z}{2} \end{matrix}[/tex]

Then I did: [tex]-p(p-y)(p-z)=\displaystyle\frac{\lambda}{2}\rightarrow{}z=\displaystyle\frac{\lambda}{2p(p-y)}+p[/tex]

[tex]p=\displaystyle \frac{x+y+z}{2}\rightarrow{}z=-x-y+2p[/tex]

[tex]-x-y+2p=\displaystyle\frac{\lambda}{2p(p-y)}+p\rightarrow{}\displaystyle\frac{\lambda}{2}=(-x-y+p)p(p-y)[/tex]

Then:
[tex](-x-y+p)p(p-y)=-p(p-x)(p-y)\rightarrow{}-p+x=-x-y+p\rightarrow{}2x=-y+2p\rightarrow{}x=\displaystyle\frac{-y}{2}+p[/tex]

[tex]z=-x-y+2p\rightarrow{}z=\displaystyle\frac{y}{2}-p-y+2p\rightarrow{}z=\displaystyle\frac{-y}{2}+p\therefore{z=x}[/tex]

Now the problem is "y".
[tex]p=\displaystyle \frac{x+y+z}{2}\rightarrow{}y=2p-2x[/tex] it should give equal to x and z...
 
Ok, I did something really stupid there. I've found the way. Thank you all guys.
 
Telemachus said:
Ok, I did something really stupid there. I've found the way. Thank you all guys.

You're welcome and glad you got it. But I still don't think you are seeing the easy way. Look at the first two derivative equations. Don't they tell you really directly that (p-x)=(p-y)?
 
Haha yes, that's what I saw after I've posted here :P