Find the maximum value of the product of two real numbers

Click For Summary
SUMMARY

The maximum value of the product of two real numbers \(x\) and \(y\) under the constraint \(x + y = 12\) is established as 36. This conclusion is derived using the inequality of arithmetic and geometric means, leading to the equation \(xy \leq 36\). Additionally, the Lagrange multipliers method confirms that the optimal solution occurs when \(x = y = 6\). Various methods, including direct substitution and graphical analysis, consistently yield the same maximum value.

PREREQUISITES
  • Understanding of the inequality of arithmetic and geometric means
  • Familiarity with quadratic equations and their roots
  • Knowledge of Lagrange multipliers in optimization problems
  • Basic graphing skills for parabolas and their properties
NEXT STEPS
  • Study the application of Lagrange multipliers in constrained optimization problems
  • Explore the properties of quadratic functions and their graphs
  • Learn about the inequality of arithmetic and geometric means in depth
  • Investigate other optimization techniques such as the method of substitution
USEFUL FOR

Mathematicians, students studying calculus or optimization, and anyone interested in maximizing functions under constraints.

chwala
Gold Member
Messages
2,827
Reaction score
415
Homework Statement
The sum of two real numbers ##x## and ##y## is ##12##. Find the maximum value of their product ##xy##.
Relevant Equations
Arithmetic and geometric means
Using the inequality of arithmetic and geometric means,
$$\frac {x+y}{2}≥\sqrt{xy}$$
$$6^2≥xy$$
$$36≥xy$$

I can see the textbook answer is ##36##, my question is can ##x=y?##, like in this case.
 
Physics news on Phys.org
Solve
xy=36
x+y=12
to check your assumption.
 
Last edited:
anuttarasammyak said:
Solve
xy=36
x+y=12
to check your assumption.
$$x^2-12x+36=0$$, Giving us a repeated root... i get that, ok ##⇒x=y## cheers Anutta...
 
Another way to do this that doesn't use the arithmetic mean and geometric mean:

Maximize ##f(x, y) = xy## given that ##x + y = 12##.
##f(x, y) = xy = x(12 - x) = -x^2 + 12x = -(x^2 - 12x + 36) + 36 = -(x - 6)^2 + 36##
The graph of the last expression is a parabola that opens downward, with its vertex at (6, 36). Since the parabola opens downward, its maximum value is 36.
 
  • Like
  • Love
Likes benorin, Delta2 and chwala
Yet another way is direct substitution: use ##x+y =6## to sub in in ##f(x,y)= xy## and get a function of x alone. Then find the max in the usual way.
 
  • Like
Likes benorin, Delta2 and chwala
WWGD said:
Yet another way is direct substitution: use ##x+y =6## to sub in in ##f(x,y)= xy## and get a function of x alone. Then find the max in the usual way.
This is exactly what I did in my previous post.
 
  • Like
  • Love
Likes Delta2 and WWGD
In both ##x+y=12## and ##xy##, ##x## and ##y## appear symmetrically, so I'd expect ##x=y## to correspond to an extremum ##xy##. It's then easy to see that it's a maximum and not a minimum.
 
  • Like
Likes benorin and Delta2
vela said:
In both ##x+y=12## and ##xy##, ##x## and ##y## appear symmetrically, so I'd expect ##x=y## to correspond to an extremum ##xy##. It's then easy to see that it's a maximum and not a minimum.
Good point. Guess we can model it by a rectangle with perimeter 24 ( simplified by halving), whose area is maximized when both its sides are equal.
 
  • Like
Likes benorin
...I just noted that we could also use the Lagrange Multiplier, in solving this kind of problems...
 
  • Like
Likes benorin and PhDeezNutz
  • #10
Lagrange multipliers method:

##f(x,y)=xy##
##g(x,y)=x+y=12##

##\nabla f := \lambda \nabla g##
##<y,x> := \lambda <1,1>##
Hence ##x=\lambda =y\Rightarrow x+x=12\Rightarrow x=6=y##

Not so bad :)
 
  • Like
Likes chwala
  • #11
benorin said:
Lagrange multipliers method:

##f(x,y)=xy##
##g(x,y)=x+y=12##

##\nabla f := \lambda \nabla g##
##<y,x> := \lambda <1,1>##
Hence ##x=\lambda =y\Rightarrow x+x=12\Rightarrow x=6=y##

Not so bad :)
Nice,...##g(x,y)= x+y##...from what I've read... and not ##x+y-12##...Is that correct. Cheers man!
 
  • #12
the derivative of a constant is zero so it doesn't matter
 
  • #13
benorin said:
the derivative of a constant is zero so it doesn't matter
Thanks ...I had already noted that...I just want to be certain on the correct definition of ##g(x,y)##...cheers benorin.
 
  • #14
Don't think of it as a function ##g(x,y)## think of it as a restriction ##g(x,y):=k## is an equation not a function, more precisely it's level curve or surface of the function I told you not to think of. ;)
 
  • Like
Likes chwala

Similar threads

  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 21 ·
Replies
21
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
21
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 5 ·
Replies
5
Views
677
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
7
Views
2K