Minimize the sum of the squares

  • Thread starter Thread starter star321
  • Start date Start date
  • Tags Tags
    Squares Sum
Click For Summary
SUMMARY

The problem discussed involves minimizing the sum of the squares of two positive numbers, x and y, given their sum n. The mathematical approach utilizes calculus, specifically the derivative, to find that the minimum occurs when both numbers are equal, i.e., x = y = n/2. The minimum value of the sum of their squares is calculated as n²/2. Additionally, an alternative method using the completion of the square confirms this result without requiring calculus knowledge.

PREREQUISITES
  • Understanding of basic calculus concepts, including derivatives
  • Familiarity with the completion of the square technique
  • Knowledge of algebraic manipulation of equations
  • Ability to work with variables and expressions in mathematical contexts
NEXT STEPS
  • Study the application of derivatives in optimization problems
  • Learn about the completion of the square method in algebra
  • Explore the implications of critical points in calculus
  • Practice solving similar optimization problems involving quadratic functions
USEFUL FOR

First-year university calculus students, educators teaching optimization techniques, and anyone interested in mathematical problem-solving strategies.

star321
Messages
7
Reaction score
0
Hello
i need help with a question, other people tried to help me, i just cannot get it! its driving me crazy

Two positive numbers have sum n. What is the smallest value possible for the sum of their squares?

so i have n=x+y
x>0 y>0

y=n-x

we want to minimize S S=x^2+y^2
S=x^2+(n-x)^2
S'=2x-2(n-x)
S'=2x-2n+2x
S'=4x-2n

now ? The above is what I have been shown to do... the red part doesn't make much sense to me... Can someone please help me to continue on...
 
Physics news on Phys.org
What class is this problem in? If it is a calculus problem, then you should know how to take the derivative of x^2 and (n-x)^2 (using the chain rule for the latter). Since the derivative measrures how fast a function is increasing, if S' is positive, for a specific x, the function is increasing- choosing x smaller will make S smaller so that value is not the minimum. If S' is negative, the function is decreasing- choosing x larger will make S smaller so that value is not the minimum. The minimum must occur where the derivative S' is 0. S'= 4x- 2n= 0 give 4x= 2n or x= n/2. Then y= n- n/2= n/2. The minimum occurs when x= y= n/2. The smallest possible value of x^2+ y^2 is n^2/4+ n^2/4= n^2/2.

If this is NOT for a calculus class and you do not know how to take the derivative, you can still do the problem by completing the square:
S= x^2+ (n-x)^2= x^2+ n^2- 2nx+ x^2= 2x^2- 2nx+ n^2= 2(x^2- nx)+ n^2. We complete the square by adding (and subtracting) (-n/2)^2= n^2/4. 2(x^2- nx+ n^2/4- n^2/4)+ n^2= 2(x^2- nx+ n^2/4)- n^2/2+ n^2= 2(x- n/2)^2+ n^2/2. Since a square is never negative, S is n^2/2 plus something unless x= n/2 in which case it is n^2/2+ 0= n^2/2.
 
leave answer with variables?

Hi

So this problem is for first year university calculus.

I got confused about the derivative... i do know how to do derivates... too much calculus in one day i guess.

So from the steps shown, I followed them and they seem pretty clear.
So do I not calculate an actual number then... just leave answers with variables?
Thanks again for the help :smile:
 
So do I not calculate an actual number then... just leave answers with variables?
n is the only variable.The answer should be in terms of n :smile:
 
star321 said:
we want to minimize S S=x^2+y^2
S=x^2+(n-x)^2
S'=2x-2(n-x)
S'=2x-2n+2x
S'=4x-2n
Yes, this is good. :)
Ok, you should notice that 0 <= x <= n, right?
If the derivative of a function at some point, say x0, is positive, then the function is increasing at that point. Otherwise, if it's negative, then the function is decreasing.
So for 0 <= x < n / 2, S' < 0, right? So the function S is decreasing in that interval.
For n / 2 < x < n, S' > 0, the function S is increasing.
So for x = n / 2, S takes the smallest value. Can you find that value?
Is everything clear now? :)
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
Replies
7
Views
1K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
Replies
23
Views
2K
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
1K