Let \(A=x^2+2y^2+2x-4\)
From condition, we have: \(y^2=7-x^2\)
Therefore: \(A=x^2+2\left(7-x^2\right)+2x-4\)
\(\Rightarrow A=-x^2+2x+10=-\left(x-1\right)^2+11\le11\)
\(\Rightarrow A_{max}=11\) when \(\left\{{}\begin{matrix}x=1\\y^2=6\end{matrix}\right.\)