Im struggling with a question I'm my math book and I wanted to use mathematica to visualise it for me, the problem is that I don't even get something remotely similar to what I was expecting. How here is the question and this is how I have visualised it. Could someone please show me the correct way also point out if it is the mathematics that is incorrect and why.
I have already looked at previous examples but some how I get stuck with this one. I know that there are several answers on the web but Im not able to use it to solve this.
So question, visualise the intersection of the planes.
eq1 = x + y == 2;
eq2 = y - z == 3;
{b, a} = CoefficientArrays[{eq1, eq2}, {x, y, z}];
point = LinearSolve[a, -b] // N;(*Solves for point on intersection*)
Cross @@ Reverse[a // Normal];(*Finds the direction vector of the plane*)
line = Graphics3D[{Red, Arrow[{point, 10 {1, -1, -1}}]}](*Draws the vector*)
Now what I was expecting was a red dot, somewhere along the line of intersection between the planes and a red vector being the line intersection for part of the planes intersection. (In particular line of length 10)
Show[Plot3D[x + y == 2, {x, -10, 10}, {y, -10, 10},
PlotStyle -> Blue],
Plot3D[y - z == 3, {y, -10, 10}, {z, -10, 10}, PlotStyle -> Green],
Graphics3D[{Red, Sphere[point]}], line,
PlotLabel -> "Point where surfaces meet", BoxRatios -> Automatic]