If $a+b+c=k$ and $a^2+b^2+c^2 =2k$ what is the maximum value of $k$? $a,b,c$ are real numbers and they satisfy the following equations.
$a+b+c=k$
$a^2+b^2+c^2=2k$
Find the maximum value of $k$.
I tried substituting for k in the second equation from the first and got
$a^2+b^2+c^2=2(a+b+c)$
Rearranging the terms I got
$a^2-2a+b^2-2b+c^2-2c=0$
Adding 3 to both sides we get
$a^2-2a+1+b^2-2b+1+c^2-2c+1=3$
This can be simplified to the following
$(a-1)^2+(b-1)^2+(c-1)^2=3$
Therefore,
$0\leq(a-1)^2,(b-1)^2,(c-1)^2\leq3$
From here we can deduce the range of values that a,b,c can take as
$1-\sqrt{3}\leq a,b,c\leq1+\sqrt{3}$
I don't know know if this helps to answer the question.


\begin{align} x+y+z&=k \tag{1}\label{1},\\ x^2+y^2+z^2&=2k\tag{2}\label{2}. \end{align}

Expressing $y,z$ in terms of $x,k$ gives
\begin{align}
y,z&=
\tfrac12\,(k-x\pm\sqrt{-k^2+2 x k-3x^2+4k})
,
\end{align}
so we must have
\begin{align}
-k^2+2 x k-3x^2+4k\ge0
,
\end{align}
which leads to expression of $k$ in terms of $x$
\begin{align}
k(x)&=x+2+\sqrt{4+4x-2x^2}
,\\
k'(x)&=
\frac{\sqrt{4+4x-2x^2}+2-2x}{\sqrt{4+4x-2x^2}}
,
\end{align}
$k'(x)=0$ at $x=2$.
\begin{align}
k_{\max}&=k(2)=6
.
\end{align}
