I am looking to see what would be the intersection of these:
$x_1^2 +x_2^2 +x_3^2 + x_4^2 =k_1$
$x_1 +x_2 +x_3 +x_4= k_2$
I think the intersection is a sphere.
I would appreciate if anyone shed light on this. In addition, can we find a general formula for the intersection of these two surfaces when we have $n$ variables instead of 4. Thank you!
We can rotate the system so that (1,1,...,1) becomes aligned with the x-axis.
That is, the plane becomes $x_1=\frac{k_2}{\sqrt n}$, while the equation of the sphere doesn't change.
Consequently the intersection becomes: $$\frac{k_2^2}{n} + x_2^2+x_3^2+...+x_n^2=k_1 \quad\Rightarrow\quad x_2^2+x_3^2+...+x_n^2=k_1-\frac{k_2^2}n $$ This is an (n-1)-sphere provided that $k_1>\frac{k_2^2}n$. Otherwise it's a point or an empty set.