MHB Jacky L's question at Yahoo Answers regarding minimizing a sum of squares

  • Thread starter Thread starter MarkFL
  • Start date Start date
  • Tags Tags
    Squares Sum
AI Thread Summary
To minimize the sum of squares of two numbers whose sum is k, the objective function is f(x,y) = x^2 + y^2 with the constraint x + y = k. Using Lagrange multipliers, it is determined that the minimum occurs when x = y = k/2, yielding a minimum sum of squares of (1/2)k^2. This is verified through various methods, including substituting y = k - x into the function and analyzing the quadratic formed. The second derivative test confirms that this critical point is indeed a minimum. The conclusion is that the sum of their squares is at least (1/2)(k^2).
Mathematics news on Phys.org
Hello Jacky L,

Let's let one number be $x$ and the other be $y$. The expression we want to minimize, our objective function is:

$$f(x,y)=x^2+y^2$$

subject to the constraint:

$$g(x,y)=x+y-k=0$$

Now, using Lagrange multipliers, we obtain the system:

$$2x=\lambda$$

$$2y=\lambda$$

which implies:

$$x=y$$

and substitution into the constraint tells us:

$$x=y=\frac{k}{2}$$

which means there is one extremum for the objective function at:

$$f\left(\frac{k}{2},\frac{k}{2} \right)=\frac{1}{2}k^2$$

We may verify this is the minimum by observing:

$$f(0,k)=f(k,0)=k^2$$

We could also proceed by using:

$$y=k-x$$ and so:

$$f(x)=x^2+(k-x)^2=2x^2-2kx+k^2$$

Since $f(x)$ is a quadratic, we may simply find the axis of symmetry to determine the critical value:

$$x=-\frac{-2k}{2\cdot2}=\frac{k}{2}$$

Since the parabola opens upwards, we know the vertex is the global minimum.

If you are to use the calculus to determine the critical value, we would begin by differentiating with respect to $x$, and equating this to zero, and solving for $x$ and this will reveal the critical value:

$$f'(x)=4x-2=0\,\therefore\,x=\frac{k}{2}$$

Using the second derivative test, we find:

$$f''(x)=4>0$$

Hence the extremum at the critical value is a minimum, and so:

$$f_{\text{min}}=f\left(\frac{k}{2} \right)=\frac{1}{2}k^2$$

To Jacky L, and any other guests viewing this topic, I invite and encourage you to post other optimization questions in our http://www.mathhelpboards.com/f10/ forum.

Best Regards,

Mark.
 
Seemingly by some mathematical coincidence, a hexagon of sides 2,2,7,7, 11, and 11 can be inscribed in a circle of radius 7. The other day I saw a math problem on line, which they said came from a Polish Olympiad, where you compute the length x of the 3rd side which is the same as the radius, so that the sides of length 2,x, and 11 are inscribed on the arc of a semi-circle. The law of cosines applied twice gives the answer for x of exactly 7, but the arithmetic is so complex that the...
Back
Top