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.
 
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Back
Top