If
\[
x+y=k,\quad x\gt 0,\quad y\gt 0,
\]
then \(x^2+y^2\) is minimum, if
Show Hint
For positive numbers with fixed sum,
\[
x+y=k,
\]
the quantity
\[
x^2+y^2
\]
is minimum when the numbers are equal:
\[
x=y=\frac{k}{2}.
\]
This follows directly from AM-GM or differentiation.