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...
Thread 'Video on imaginary numbers and some queries'
Hi, I was watching the following video. I found some points confusing. Could you please help me to understand the gaps? Thanks, in advance! Question 1: Around 4:22, the video says the following. So for those mathematicians, negative numbers didn't exist. You could subtract, that is find the difference between two positive quantities, but you couldn't have a negative answer or negative coefficients. Mathematicians were so averse to negative numbers that there was no single quadratic...
Thread 'Unit Circle Double Angle Derivations'
Here I made a terrible mistake of assuming this to be an equilateral triangle and set 2sinx=1 => x=pi/6. Although this did derive the double angle formulas it also led into a terrible mess trying to find all the combinations of sides. I must have been tired and just assumed 6x=180 and 2sinx=1. By that time, I was so mindset that I nearly scolded a person for even saying 90-x. I wonder if this is a case of biased observation that seeks to dis credit me like Jesus of Nazareth since in reality...
Back
Top