Let O be a center of the sphere.
1) Find the equation of the plane alpha passing through the points M, N and O.
2) Find the equation of the plane beta passing through the point O and perpendicular to the line MN.
3) Let Delta be the line of intersection of the two planes alpha and beta.
3) The points for which is the point of intersection of the line Delta and the sphere S.
Note that, i repaired coordinates of the point M
This is my code
sphere(S,x^2 + y^2 + z^2 -2*x + 2*z + 1 = 0,[x,y,z]):
point(N,3, 1, -1):
solve([x = Eq,y=Eq,z=Eq,Equation(S)],[x,y,z,t]);
If the point M(1, 2, -1), i don't know how get correct anserw. Please help me.