Affine space — guided practice with the spidercam, the ball going up, the scoreboard and an exam exercise step by step (and the plane that came out perpendicular instead of parallel)

Going over a geometry exercise from another year with a classmate, I worked out the plane in which two points were reflections of each other and used a vector lying in the plane as the normal instead of the one joining the two points. The plane I got contained PP and QQ instead of leaving one on each side. Since then, before writing a plane’s equation, I ask myself: “is this vector perpendicular to the plane, or does it run inside it?”. In this practice you will see that question in every problem.

Here we apply the affine space theory to five problems solved by hand and checked in MATLAB, at the same match as the theory: the equations of the spidercam cable and of the scoreboard plane, relative positions with ranks, distances, angles, a projection and a reflection, a movement with matrices and two conics, and to finish a complete exercise in the exam format. They are all medium level, with numbers you can handle by hand.

Before you start

Make sure you are comfortable with:

  • The vector between two points, AB→=B−A\overrightarrow{AB} = B – A, and the midpoint.
  • A line being a point and a direction vector, and a plane a point and a normal vector (or two direction vectors).
  • The dot product (for angles and perpendicularity) and the cross product (for normals), from topic 4.
  • The rank of a matrix and the Rouché-Frobenius theorem, from topic 2.

If any of these feels shaky, go back over the theory before carrying on.

In each problem, first list the “points” and the “vectors” you are given. Half the mistakes in this topic come from using a point where a vector belongs (or the other way round).

How to solve a geometry problem

  1. Data: get a point and a direction vector from each line, and a point and its normal from each plane.
  2. Draw a sketch, even a side view: where each thing is and what is being asked.
  3. Solve with the right tool: ranks for positions, formulas for distances and angles, an auxiliary line for projections and reflections.
  4. Check: substitute the points into the equations, make sure perpendicular vectors give a dot product of 0 and that the results make sense in the drawing.

Problem 1: the spidercam cable and the scoreboard

Statement. The spidercam hangs from a cable running from the mast A=(0,60,30)A = (0, 60, 30) to the point B=(80,20,10)B = (80, 20, 10). Write the cable line in vector, parametric, symmetric and implicit form. Then find the general equation of the scoreboard plane, which goes through P1=(40,−10,5)P_1 = (40, -10, 5), P2=(60,−10,5)P_2 = (60, -10, 5) and P3=(40,−14,13)P_3 = (40, -14, 13).

The idea

The line: the point AA and the direction vector AB→\overrightarrow{AB}, simplified. From the parametric equations, solve for λ\lambda to get the symmetric form, and from the symmetric form equate the fractions two at a time for the implicit equations. The plane: two vectors inside it (P1P2→\overrightarrow{P_1P_2} and P1P3→\overrightarrow{P_1P_3}), their cross product as the normal and a point for the constant term.

Simplify the vectors (divide by the greatest common divisor) before going on: the numbers stay small and the result is the same.

Step by step

The spidercam cable and the scoreboardThe spidercam cable goes from the mast A = (0, 60, 30) to the point B = (80, 20, 10), with direction (4, −2, −1). Behind the goal, tilted, the scoreboard lies in the plane 2y + z + 15 = 0.A = (0, 60, 30)B = (80, 20, 10)scoreboard: 2y + z + 15 = 0cable: (4, −2, −1)xyz
A line through two points and a plane through three: the two pieces of every problem.

The line. AB→=(80,−40,−20)\overrightarrow{AB} = (80, -40, -20), and dividing by 20, u⃗=(4,−2,−1)\vec u = (4, -2, -1).

FormCable line
Vector(x,y,z)=(0,60,30)+λ(4,−2,−1)(x, y, z) = (0, 60, 30) + \lambda(4, -2, -1)
Parametricx=4λ, y=60−2λ, z=30−λx = 4\lambda, \ y = 60 – 2\lambda, \ z = 30 – \lambda
Symmetricx4=y−60−2=z−30−1\dfrac{x}{4} = \dfrac{y – 60}{-2} = \dfrac{z – 30}{-1}
Implicitx+2y−120=0,y−2z=0x + 2y – 120 = 0, \quad y – 2z = 0

The implicit equations, one by one: x4=y−60−2\tfrac{x}{4} = \tfrac{y – 60}{-2} gives −2x=4y−240-2x = 4y – 240, that is, x+2y−120=0x + 2y – 120 = 0. And y−60−2=z−30−1\tfrac{y – 60}{-2} = \tfrac{z – 30}{-1} gives y−60=2(z−30)=2z−60y – 60 = 2(z – 30) = 2z – 60, that is, y−2z=0y – 2z = 0. Check with BB: 80+40−120=080 + 40 – 120 = 0 and 20−20=020 – 20 = 0. With λ=20\lambda = 20 the parametric equations give (80,20,10)(80, 20, 10): the point BB.

The plane. Two vectors in the plane:

P1P2→=(20,0,0),P1P3→=(0,−4,8) \overrightarrow{P_1P_2} = (20, 0, 0), \qquad \overrightarrow{P_1P_3} = (0, -4, 8)
P1P2→×P1P3→=(0⋅8−0⋅(−4), 0⋅0−20⋅8, 20⋅(−4)−0⋅0)=(0,−160,−80) \overrightarrow{P_1P_2} \times \overrightarrow{P_1P_3} = (0 \cdot 8 – 0 \cdot (-4),\ 0 \cdot 0 – 20 \cdot 8,\ 20 \cdot (-4) – 0 \cdot 0) = (0, -160, -80)

Dividing by −80-80: n⃗=(0,2,1)\vec n = (0, 2, 1). The plane is 2y+z+d=02y + z + d = 0, and with P1P_1: −20+5+d=0-20 + 5 + d = 0, d=15d = 15.

scoreboard:2y+z+15=0 \text{scoreboard:}\quad 2y + z + 15 = 0

Check with the other two: P2P_2: −20+5+15=0-20 + 5 + 15 = 0; P3P_3: −28+13+15=0-28 + 13 + 15 = 0.

Check it in MATLAB

A = [0 60 30];  B = [80 20 10];
u1 = (B - A)/20                       % simplified direction vector
n = cross([20 0 0], [0 -4 8])         % normal, not simplified
n = n/(-80)                           % (0, 2, 1)

Output:

u1 =

     4    -2    -1

n =

     0  -160   -80

n =

     0     2     1

Questions you might ask

Does any point and any multiple of the direction vector work? Yes: (0,60,30)+λ(4,−2,−1)(0, 60, 30) + \lambda(4, -2, -1) and (80,20,10)+μ(−8,4,2)(80, 20, 10) + \mu(-8, 4, 2) are the same line written two ways. In the exam, either is correct if it fits the data.

Why are the implicit equations not unique? Because a line is the intersection of infinitely many planes (all those containing it). Any pair of different planes containing it will do; the pair that comes from the symmetric form is the handiest.

What if a direction vector has a 0? For example (1,0,3)(1, 0, 3): the symmetric form would contain y−y00\tfrac{y – y_0}{0}. Write y=y0y = y_0 as one implicit equation, and the other comes from the remaining fractions.

What do I do if the three points of the plane are collinear? Then the cross product gives (0,0,0)(0, 0, 0): they do not define a plane (infinitely many fit). If you get the zero vector, check the points.

Taking one of the vectors P1P2→\overrightarrow{P_1P_2} or P1P3→\overrightarrow{P_1P_3} as the normal. Those run inside the plane; the normal is their cross product.

Try it yourself

  • Write the parametric equations of the line through the corner (100,60,0)(100, 60, 0) and the mast A=(0,60,30)A = (0, 60, 30). (Answer, for example: x=100+10λ, y=60, z=−3λx = 100 + 10\lambda,\ y = 60,\ z = -3\lambda.)
  • Find the plane through (0,0,0)(0, 0, 0), (100,0,0)(100, 0, 0) and (0,60,0)(0, 60, 0). (Answer: z=0z = 0, the pitch.)

Problem 2: relative positions with ranks

Statement. Study the relative position of: a) the cable r1:(0,60,30)+λ(4,−2,−1)r_1: (0, 60, 30) + \lambda(4, -2, -1) and the drone line r:(10,20,30)+t(2,1,−1)r: (10, 20, 30) + t(2, 1, -1); b) the drone line and the line of the ball going straight up from (30,30,0)(30, 30, 0), and their meeting point if there is one; c) the grandstand roof plane, y−2z−20=0y – 2z – 20 = 0, and the scoreboard plane, 2y+z+15=02y + z + 15 = 0.

The idea

Two lines: rank of the direction vectors and rank with the vector joining a point of each. If the direction vectors are not parallel, the 3×33 \times 3 determinant decides between “they meet” (0) and “they are skew” (not 0). Two planes: proportional normals or not.

In words: each rank answers one question. The first is whether the lines go in the same direction, and only the direction vectors can tell you that. If they are proportional (rank 1), the lines are parallel or the same line, and you still have to check whether a point of one lies on the other. If they are not (rank 2), the lines point in different directions and there are two options left: they touch at a point, or they pass each other without touching, like the camera cable and the drone’s route.

The second question is exactly that one, and it is answered by the vector going from a point of one line to a point of the other. If it fits in the same plane as the two direction vectors, the lines lie in that plane and, since they are not parallel, they meet. If it sticks out, no plane contains both: they are skew. “Fitting in the same plane” means the three vectors are linearly dependent, and that means their determinant is 0.

With two planes the first question is enough: if the normals are not proportional, they meet in a line; if they are, the planes are parallel or the same, and the constant term decides which.

Before the determinant, check whether the direction vectors are proportional. If they are, you already know the lines are parallel or coincident and you need nothing else.

Step by step

a) u⃗1=(4,−2,−1)\vec u_1 = (4, -2, -1) and u⃗=(2,1,−1)\vec u = (2, 1, -1) are not proportional (4/2≠−2/14/2 \neq -2/1): rank 2. The vector between points is AD→=(10,20,30)−(0,60,30)=(10,−40,0)\overrightarrow{AD} = (10, 20, 30) – (0, 60, 30) = (10, -40, 0).

∣4−2−121−110−400∣=4(0−40)+2(0+10)−1(−80−10)=−160+20+90=−50≠0 \begin{vmatrix} 4 & -2 & -1 \\ 2 & 1 & -1 \\ 10 & -40 & 0 \end{vmatrix} = 4(0 – 40) + 2(0 + 10) – 1(-80 – 10) = -160 + 20 + 90 = -50 \neq 0

Rank 3: skew. The distance between them, as a bonus: u⃗1×u⃗=(3,2,8)\vec u_1 \times \vec u = (3, 2, 8), with modulus 77\sqrt{77}, and d=∣−50∣77≈5.70d = \tfrac{|-50|}{\sqrt{77}} \approx 5.70 m.

The determinant and the distance, without skipping anything. The determinant is expanded along the first row: each number in that row times the minor left when you cross out its row and its column, with alternating signs + + , − – , + + .

StepCalculationWhy
14⋅(1⋅0−(−1)(−40))=4(0−40)=−160 4 \cdot \big(1 \cdot 0 – (-1)(-40)\big) = 4(0 – 40) = -160 First number of the row, sign + + : its minor comes from columns 2 and 3
2−(−2)⋅(2⋅0−(−1)⋅10)=2⋅10=20 -(-2) \cdot \big(2 \cdot 0 – (-1) \cdot 10\big) = 2 \cdot 10 = 20 Second number, sign − – : the −2 -2 with that minus sign becomes +2 +2 ; its minor comes from columns 1 and 3
3(−1)⋅(2⋅(−40)−1⋅10)=(−1)(−90)=90 (-1) \cdot \big(2 \cdot (-40) – 1 \cdot 10\big) = (-1)(-90) = 90 Third number, sign + + : its minor comes from columns 1 and 2
4−160+20+90=−50 -160 + 20 + 90 = -50 Not 0: the three vectors do not fit in one plane; rank 3
5u⃗1×u⃗=((−2)(−1)−(−1)⋅1, (−1)⋅2−4⋅(−1), 4⋅1−(−2)⋅2)=(3,2,8) \vec u_1 \times \vec u = \big((-2)(-1) – (-1) \cdot 1,\ (-1) \cdot 2 – 4 \cdot (-1),\ 4 \cdot 1 – (-2) \cdot 2\big) = (3, 2, 8) A vector perpendicular to both direction vectors: the direction of the shortest path between the two lines
69+4+64=77 \sqrt{9 + 4 + 64} = \sqrt{77} The modulus of the cross product is the area of the parallelogram formed by the two direction vectors
7d=5077≈5.70 d = \tfrac{50}{\sqrt{77}} \approx 5.70 mThe determinant, without its sign, is the volume of the parallelepiped of the three vectors; volume divided by the area of the base gives the height, and that height is the distance between the lines

A quick check: the determinant is also AD→⋅(u⃗1×u⃗)=(10,−40,0)⋅(3,2,8)=30−80+0=−50 \overrightarrow{AD} \cdot (\vec u_1 \times \vec u) = (10, -40, 0) \cdot (3, 2, 8) = 30 – 80 + 0 = -50 .

b) The ball goes up along P+μw⃗P + \mu\vec w with P=(30,30,0)P = (30, 30, 0) and w⃗=(0,0,1)\vec w = (0, 0, 1). u⃗\vec u and w⃗\vec w are not proportional. DP→=(20,10,−30)\overrightarrow{DP} = (20, 10, -30):

∣21−10012010−30∣=2(0−10)−1(0−20)+(−1)(0−0)=−20+20=0 \begin{vmatrix} 2 & 1 & -1 \\ 0 & 0 & 1 \\ 20 & 10 & -30 \end{vmatrix} = 2(0 – 10) – 1(0 – 20) + (-1)(0 – 0) = -20 + 20 = 0

Rank 2: they meet. For the point, equate the parametric equations: 10+2t=3010 + 2t = 30, 20+t=3020 + t = 30, 30−t=μ30 – t = \mu. The first two give t=10t = 10 (they agree, as they should) and the third, μ=20\mu = 20. The meeting point is (30,30,20)(30, 30, 20).

The ball going up and the drone coming downThe drone line and a vertical line leaving the grass at (30, 30, 0), that of the ball going up. They meet at the point (30, 30, 20).(30, 30, 0)hit: (30, 30, 20)Ddet[u; w; PD] = 0rg(u, w) = 2→ intersectingλ = 10, μ = 20
With the determinant at 0 the lines lie in one plane and meet: at 20 m, the ball would hit the drone.
Check you’ve got it: what would happen if the ball went straight up from (30, 20, 0) instead of from (30, 30, 0)?

It would not hit the drone: the two lines would be skew, about 8.94 m apart. Step by step: the direction vectors are still u⃗=(2,1,−1) \vec u = (2, 1, -1) and w⃗=(0,0,1) \vec w = (0, 0, 1) , which are not proportional, so their rank is still 2. What changes is the vector between points: DP→=(30,20,0)−(10,20,30)=(20,0,−30) \overrightarrow{DP} = (30, 20, 0) – (10, 20, 30) = (20, 0, -30) . The determinant with rows (2,1,−1) (2, 1, -1) , (0,0,1) (0, 0, 1) and (20,0,−30) (20, 0, -30) is 2(0−0)−1(0−20)+(−1)(0−0)=20 2(0 – 0) – 1(0 – 20) + (-1)(0 – 0) = 20 , not 0: rank 3, skew.

Equating the parametric equations shows it too: the x x asks for 10+2t=30 10 + 2t = 30 , that is t=10 t = 10 , and the y y asks for 20+t=20 20 + t = 20 , that is t=0 t = 0 . Both cannot happen at once. And the distance: u⃗×w⃗=(1,−2,0) \vec u \times \vec w = (1, -2, 0) , with modulus 5 \sqrt5 , so d=205=45≈8.94 d = \tfrac{20}{\sqrt5} = 4\sqrt5 \approx 8.94 m.

c) Normals (0,1,−2)(0, 1, -2) and (0,2,1)(0, 2, 1): not proportional, so the planes meet in a line. Also (0,1,−2)⋅(0,2,1)=2−2=0(0, 1, -2) \cdot (0, 2, 1) = 2 – 2 = 0: they are perpendicular. With ranks: rg(01−2021)=2=rg\text{rg}\begin{pmatrix} 0 & 1 & -2 \\ 0 & 2 & 1 \end{pmatrix} = 2 = \text{rg} of the augmented matrix.

PairRanksPosition
Cable and drone2 and 3Skew (5.70 m apart)
Drone and ball2 and 2Meet at (30,30,20)(30, 30, 20)
Roof and scoreboard2 and 2Meet (and are perpendicular)

Check it in MATLAB

u1 = [4 -2 -1];  u = [2 1 -1];  A = [0 60 30];  D = [10 20 30];
rank([u1; u; D - A])                          % 3: skew
abs(det([u1; u; D - A]))/norm(cross(u1, u))   % distance between them
w = [0 0 1];  P = [30 30 0];
rank([u; w]), rank([u; w; P - D])             % 2 and 2: they meet
s = [u' -w'] \ (P - D)'                       % t and mu
D + s(1)*u                                    % the meeting point
M = [0 1 -2; 0 2 1];  b = [20; -15];
rank(M), rank([M b])                          % 2 and 2: intersecting planes

Output:

ans =

     3

ans =

    5.6980

ans =

     2

ans =

     2

s =

   10.0000
   20.0000

ans =

   30.0000   30.0000   20.0000

ans =

     2

ans =

     2

[u' -w'] \ (P - D)' solves tu⃗−μw⃗=DP→t\vec u – \mu\vec w = \overrightarrow{DP}: three equations in two unknowns which, since the lines meet, are consistent. It gives t=10t = 10 and μ=20\mu = 20 (with the rounding zeros).

Questions you might ask

Why does the determinant decide between “meet” and “skew”? Because if it is 0, the three vectors u⃗\vec u, v⃗\vec v and PQ→\overrightarrow{PQ} lie in one plane: so do the two lines, and two non-parallel lines in a plane meet. If it is not 0, no plane contains both.

Can I solve the system directly without the determinant? Yes: equate the parametric equations and see whether the system has a solution. It is the same thing (Rouché). The determinant is quicker for classifying and the system for getting the point.

How do I get the line where two planes meet? By solving the system of their two equations: one parameter is left. With the roof and the scoreboard, y=2z+20y = 2z + 20 and 2(2z+20)+z+15=02(2z + 20) + z + 15 = 0 give z=−11z = -11, y=−2y = -2 and xx free: the line (λ,−2,−11)(\lambda, -2, -11), under the grass (the planes carry on).

Do I need to check the meeting point? Yes, on both lines: (30,30,20)(30, 30, 20) satisfies the drone’s implicit equations, 30−60+30=030 – 60 + 30 = 0 and 30+20−50=030 + 20 – 50 = 0, and it is on the vertical x=30,y=30x = 30, y = 30.

Equating the parametric equations using the same letter for both lines. Each line has its own parameter: tt for one and μ\mu for the other. With the same letter you would be requiring them to pass the point at the same time, which is a different question.

Try it yourself

  • Study the position of the cable and the TV camera line, (0,0,25)+μ(1,1,0)(0, 0, 25) + \mu(1, 1, 0). (Answer: determinant 30, skew.)
  • Where does the cable meet the pitch plane? (Answer: λ=30\lambda = 30, at (120,0,0)(120, 0, 0), off the pitch, past the corner.)

Problem 3: distances, angles, projection and reflection

Statement. A floodlight is at F=(50,4,7)F = (50, 4, 7). Work out its distance to the scoreboard (2y+z+15=02y + z + 15 = 0), its projection onto it and its reflection. Then work out the distance from the center spot C=(50,30,0)C = (50, 30, 0) to the cable, the angle between the cable and the pitch, and the angle between the cable and the drone line.

The idea

Point-plane distance with the formula. Projection: the line through FF in the direction of the normal, intersected with the plane. Reflection: F′=2H−FF' = 2H – F. Point-line distance with the cross product. Angles: sine for line and plane, cosine for two lines.

The projection’s parameter tt already gives the distance: d=∣t∣⋅∣n⃗∣d = |t| \cdot |\vec n|. Use it to check the formula.

Step by step

Distance to the scoreboard:

d(F,π)=∣2⋅4+7+15∣0+4+1=305=65≈13.42 d(F, \pi) = \frac{|2 \cdot 4 + 7 + 15|}{\sqrt{0 + 4 + 1}} = \frac{30}{\sqrt5} = 6\sqrt5 \approx 13.42

Projection. The line F+t(0,2,1)=(50,4+2t,7+t)F + t(0, 2, 1) = (50, 4 + 2t, 7 + t) in the plane: 2(4+2t)+(7+t)+15=02(4 + 2t) + (7 + t) + 15 = 0, that is, 5t+30=05t + 30 = 0, t=−6t = -6. Then H=(50,4−12,7−6)=(50,−8,1)H = (50, 4 – 12, 7 – 6) = (50, -8, 1). Check: −16+1+15=0-16 + 1 + 15 = 0, and ∣t∣⋅∣n⃗∣=65|t| \cdot |\vec n| = 6\sqrt5, the same distance.

Reflection: F′=2H−F=(100−50,−16−4,2−7)=(50,−20,−5)F' = 2H – F = (100 – 50, -16 – 4, 2 – 7) = (50, -20, -5).

Projection and reflection of a pointCross-section of space by the plane x = 50: the scoreboard shows up as the line 2y + z + 15 = 0. The point F = (50, 4, 7), its projection H = (50, −8, 1) and its reflection F prime = (50, −20, −5) lie on the same perpendicular.−24−20−16−12−8−448−8−448yz2y + z + 15 = 0F = (50, 4, 7)H = (50, −8, 1)F' = (50, −20, −5)cross-section at x = 50d = |8 + 7 + 15| / √5 = 30/√5 = 6√5 ≈ 13.42F + t·(0, 2, 1), t = −6F' = 2H − FH, midpoint of F and F'
Since the normal has no x component, everything happens in the section x = 50 and can be drawn flat.

Distance from the center spot to the cable. AC→=(50,30,0)−(0,60,30)=(50,−30,−30)\overrightarrow{AC} = (50, 30, 0) – (0, 60, 30) = (50, -30, -30) and

AC→×u⃗1=((−30)(−1)−(−30)(−2), (−30)⋅4−50⋅(−1), 50⋅(−2)−(−30)⋅4)=(−30,−70,20) \overrightarrow{AC} \times \vec u_1 = \big((-30)(-1) – (-30)(-2),\ (-30) \cdot 4 – 50 \cdot (-1),\ 50 \cdot (-2) – (-30) \cdot 4\big) = (-30, -70, 20)

with modulus 900+4900+400=6200\sqrt{900 + 4900 + 400} = \sqrt{6200}. Divided by ∣u⃗1∣=21|\vec u_1| = \sqrt{21}: d=620021≈17.18d = \tfrac{\sqrt{6200}}{\sqrt{21}} \approx 17.18 m.

Angle between the cable and the pitch: sin⁡φ=∣(4,−2,−1)⋅(0,0,1)∣21⋅1=121\sin\varphi = \dfrac{|(4, -2, -1) \cdot (0, 0, 1)|}{\sqrt{21} \cdot 1} = \dfrac{1}{\sqrt{21}}, φ≈12.60∘\varphi \approx 12.60^\circ.

Angle between the cable and the drone: cos⁡θ=∣8−2+1∣216=7126\cos\theta = \dfrac{|8 – 2 + 1|}{\sqrt{21}\sqrt6} = \dfrac{7}{\sqrt{126}}, θ≈51.42∘\theta \approx 51.42^\circ.

The angle between the cable and the drone, unfolded:

StepCalculationWhy
1u⃗1⋅u⃗=4⋅2+(−2)⋅1+(−1)(−1)=8−2+1=7 \vec u_1 \cdot \vec u = 4 \cdot 2 + (-2) \cdot 1 + (-1)(-1) = 8 – 2 + 1 = 7 Dot product of the two direction vectors: multiply component by component and add
216+4+1=21 \sqrt{16 + 4 + 1} = \sqrt{21} and 4+1+1=6 \sqrt{4 + 1 + 1} = \sqrt6 The moduli of the two direction vectors
321⋅6=126≈11.22 \sqrt{21} \cdot \sqrt6 = \sqrt{126} \approx 11.22 The product of the moduli, which removes the effect of how long the vectors are
4cos⁡θ=7126≈0.6236 \cos\theta = \tfrac{7}{\sqrt{126}} \approx 0.6236 The dot product goes in absolute value: the angle between two lines is between 0∘ 0^\circ and 90∘ 90^\circ
5θ=arccos⁡0.6236≈51.42∘ \theta = \arccos 0.6236 \approx 51.42^\circ It comes out acute, as it should

Why the absolute value? Because a line has no direction of travel: (2,1,−1) (2, 1, -1) and (−2,−1,1) (-2, -1, 1) are direction vectors of the same drone line. With the second one, the dot product is −7 -7 and the arccosine, 128.58∘ 128.58^\circ , which is the supplementary angle (180∘−51.42∘ 180^\circ – 51.42^\circ ). By convention, you give the acute one.

CalculationResult
d(F,scoreboard)d(F, \text{scoreboard})65≈13.426\sqrt5 \approx 13.42
Projection HH(50,−8,1)(50, -8, 1)
Reflection F′F'(50,−20,−5)(50, -20, -5)
d(C,cable)d(C, \text{cable})≈17.18\approx 17.18
Cable-pitch angle≈12.60∘\approx 12.60^\circ
Cable-drone angle≈51.42∘\approx 51.42^\circ

Check it in MATLAB

F = [50 4 7];  n = [0 2 1];
d = abs(dot(n, F) + 15)/norm(n)       % distance to the plane
t = -(dot(n, F) + 15)/dot(n, n)       % projection parameter
H = F + t*n
Fs = 2*H - F                          % reflection
C = [50 30 0];  A = [0 60 30];  u1 = [4 -2 -1];
norm(cross(C - A, u1))/norm(u1)       % point-line distance
asin(1/norm(u1))*180/pi               % cable and pitch
acos(abs(dot(u1, [2 1 -1]))/(norm(u1)*norm([2 1 -1])))*180/pi

Output:

d =

   13.4164

t =

    -6

H =

    50    -8     1

Fs =

    50   -20    -5

ans =

   17.1825

ans =

   12.6044

ans =

   51.4198

The t line is the equation n⃗⋅(F+tn⃗)+15=0\vec n \cdot (F + t\vec n) + 15 = 0 solved for tt: t=−n⃗⋅F+15n⃗⋅n⃗t = -\tfrac{\vec n \cdot F + 15}{\vec n \cdot \vec n}.

Questions you might ask

Why does the projection have the same xx as FF? Because the normal (0,2,1)(0, 2, 1) has no xx component: moving in that direction does not change xx. That is why the side view (the section x=50x = 50) shows everything.

What if the point is on the plane? The formula gives 0, t=0t = 0, the projection is the point itself and so is its reflection.

Why sine for line-plane and cosine for line-line? Because for the plane we use its normal, which makes the complementary angle with the line, and cos⁡(90∘−φ)=sin⁡φ\cos(90^\circ – \varphi) = \sin\varphi.

Can I give the angle as an arcsine without decimals? Yes, in the calculator-free exam you leave φ=arcsin⁡121\varphi = \arcsin\tfrac{1}{\sqrt{21}}. The decimals are for checking.

Working out the reflection as F+2HF + 2H or H−FH – F. If HH is the midpoint, H=F+F′2H = \tfrac{F + F'}{2}, and solving for it, F′=2H−FF' = 2H – F.

Try it yourself

  • Work out the distance from the mast A=(0,60,30)A = (0, 60, 30) to the scoreboard. (Answer: 1655=335≈73.79\tfrac{165}{\sqrt5} = 33\sqrt5 \approx 73.79.)
  • Find the reflection of the center spot C=(50,30,0)C = (50, 30, 0) in the scoreboard plane. (Answer: t=−15t = -15, H=(50,0,−15)H = (50, 0, -15), C′=(50,−30,−30)C' = (50, -30, -30).)

Problem 4: a movement and two conics

Statement. a) On the tactics board (the pitch seen from above, in metres), “switching ends” is rotating 180° about the center (50,30)(50, 30). Write its matrix in homogeneous coordinates and apply it to the player at (20,10)(20, 10). b) Classify and reduce x2−4y2−2x−16y−19=0x^2 – 4y^2 – 2x – 16y – 19 = 0. c) A clearance follows the parabola z=x−x240z = x – \tfrac{x^2}{40} (in metres). What is its maximum height and where does it reach it?

The idea

a) A 180° rotation about a point other than the origin is a 180° rotation about the origin followed by a translation. b) Complete the squares. c) The reduced parabola gives the vertex.

The 180° rotation about the origin is (x,y)→(−x,−y)(x, y) \to (-x, -y). Then comes the translation that keeps the center still.

Step by step

a) Rotating 180° about (50,30)(50, 30) takes (x,y)(x, y) to (100−x,60−y)(100 – x, 60 – y): the center goes to itself and every point to its opposite about the center. In homogeneous coordinates:

R=(−101000−160001),R(20101)=(80501) R = \begin{pmatrix} -1 & 0 & 100 \\ 0 & -1 & 60 \\ 0 & 0 & 1 \end{pmatrix}, \qquad R\begin{pmatrix} 20 \\ 10 \\ 1 \end{pmatrix} = \begin{pmatrix} 80 \\ 50 \\ 1 \end{pmatrix}

It is the translation by (100,60)(100, 60) times the 180° rotation: (101000160001)(−1000−10001)=R\begin{pmatrix} 1 & 0 & 100 \\ 0 & 1 & 60 \\ 0 & 0 & 1 \end{pmatrix}\begin{pmatrix} -1 & 0 & 0 \\ 0 & -1 & 0 \\ 0 & 0 & 1 \end{pmatrix} = R. And the center: R⋅(50,30,1)=(50,30,1)R \cdot (50, 30, 1) = (50, 30, 1).

b) AC−B24=1⋅(−4)−0=−4<0AC – \tfrac{B^2}{4} = 1 \cdot (-4) – 0 = -4 < 0: hyperbolic. Completing the squares:

(x2−2x)−4(y2+4y)−19=0 ⇒ (x−1)2−1−4(y+2)2+16−19=0 ⇒ (x−1)24−(y+2)2=1 (x^2 – 2x) – 4(y^2 + 4y) – 19 = 0 \ \Rightarrow\ (x – 1)^2 – 1 – 4(y + 2)^2 + 16 – 19 = 0 \ \Rightarrow\ \frac{(x – 1)^2}{4} – (y + 2)^2 = 1

A hyperbola with center (1,−2)(1, -2), a=2a = 2 and b=1b = 1, opening left and right.

Completing the squares, line by line:

StepCalculationWhy
1(x2−2x)−4(y2+4y)−19=0 (x^2 – 2x) – 4(y^2 + 4y) – 19 = 0 Group the terms of each letter; take the −4 -4 out as a common factor of −4y2−16y -4y^2 – 16y
2x2−2x=(x−1)2−1 x^2 – 2x = (x – 1)^2 – 1 (x−1)2=x2−2x+1 (x – 1)^2 = x^2 – 2x + 1 has one 1 too many, so you subtract it
3y2+4y=(y+2)2−4 y^2 + 4y = (y + 2)^2 – 4 (y+2)2=y2+4y+4 (y + 2)^2 = y^2 + 4y + 4 : there is a 4 left over
4−4((y+2)2−4)=−4(y+2)2+16 -4\big((y + 2)^2 – 4\big) = -4(y + 2)^2 + 16 The −4 -4 in front also multiplies the 4 you subtract: it gives +16 +16
5(x−1)2−4(y+2)2−1+16−19=0 (x – 1)^2 – 4(y + 2)^2 – 1 + 16 – 19 = 0 Substitute both squares into the equation
6(x−1)2−4(y+2)2=4 (x – 1)^2 – 4(y + 2)^2 = 4 The loose numbers, −1+16−19=−4 -1 + 16 – 19 = -4 , move to the other side
7(x−1)24−(y+2)2=1 \frac{(x – 1)^2}{4} – (y + 2)^2 = 1 Divide by 4 so that the right-hand side is 1: this is the reduced form

From there you read a2=4 a^2 = 4 and b2=1 b^2 = 1 , and the vertices, 2 units from the center horizontally: (3,−2) (3, -2) and (−1,−2) (-1, -2) . Substitute them into the equation in the statement: both give 0.

c) z=x−x240z = x – \tfrac{x^2}{40}. Completing the square: z=−140(x2−40x)=−140((x−20)2−400)=10−(x−20)240z = -\tfrac{1}{40}(x^2 – 40x) = -\tfrac{1}{40}\big((x – 20)^2 – 400\big) = 10 – \tfrac{(x – 20)^2}{40}. Vertex at x=20x = 20, z=10z = 10: the ball rises 10 m and reaches the top 20 m from where it was kicked.

Check it in MATLAB

R = [-1 0 100; 0 -1 60; 0 0 1];
R*[20; 10; 1]              % the player switches ends
R*[50; 30; 1]              % the center does not move
M = [1 0; 0 -4];  det(M)   % the conic's block: negative, hyperbola

Output:

ans =

    80
    50
     1

ans =

    50
    30
     1

ans =

    -4

Questions you might ask

Why is the rotation matrix alone not enough? Because the rotation in the theory table is about the origin (the corner of the pitch). About another point you have to translate: take the center to the origin, rotate and bring it back. Multiplied together, the three give RR.

Does switching ends twice leave the player where they were? Yes: R⋅R=IR \cdot R = I. Turning 360° is not moving.

How do I know which way the hyperbola opens? From the sign: the positive term is the xx one, so it crosses the horizontal axis (at x=1±2x = 1 \pm 2) and opens left and right.

Why does the ball draw a parabola? Because gravity makes the height a second-degree function of time while the horizontal movement is linear: the height ends up being second-degree in xx. It is the most physical of the four conics.

When completing squares with a coefficient in front, forgetting to multiply what you subtract by it: −4(y2+4y)=−4(y+2)2+16-4(y^2 + 4y) = -4(y + 2)^2 + 16, not −4(y+2)2−4-4(y + 2)^2 – 4.

Try it yourself

  • Apply RR twice to (20,10)(20, 10). (Answer: it goes back to (20,10)(20, 10).)
  • Classify x2−6x−8y+1=0x^2 – 6x – 8y + 1 = 0. (Answer: AC−B2/4=0AC – B^2/4 = 0, the parabola (x−3)2=8(y+1)(x – 3)^2 = 8(y + 1), with vertex (3,−1)(3, -1).)

Problem 5: how the exam asks it

Exercise. In real affine space E3E_3, with the standard dot product, take the points P=(2,−1,3)P = (2, -1, 3) and Q=(4,3,−1)Q = (4, 3, -1) and the plane σ:x+2y−2z+15=0\sigma: x + 2y – 2z + 15 = 0. a) (4 points) Find the general equation of the plane π\pi with respect to which PP and QQ are symmetric. b) (2 points) Study the relative position of π\pi and σ\sigma and, if possible, work out the distance between them. c) (3 points) Let ss be the line through PP perpendicular to σ\sigma. Find the point where ss meets σ\sigma and the reflection of PP in σ\sigma.

The idea

a) The perpendicular bisector plane: it goes through the midpoint of PP and QQ and its normal is PQ→\overrightarrow{PQ}. b) Compare normals; if they are proportional and the planes are different, they are parallel and the distance comes from a point of one to the other. c) The line ss takes the normal of σ\sigma as its direction; intersect it with σ\sigma and apply P′=2H−PP' = 2H – P.

Simplify PQ→\overrightarrow{PQ} and you will see it is proportional to the normal of σ\sigma. That gives away the answer to b).

Step by step

a) Midpoint: M=P+Q2=(3,1,1)M = \tfrac{P + Q}{2} = (3, 1, 1). Normal: PQ→=(2,4,−4)\overrightarrow{PQ} = (2, 4, -4), and dividing by 2, n⃗=(1,2,−2)\vec n = (1, 2, -2). The plane is x+2y−2z+d=0x + 2y – 2z + d = 0 with 3+2−2+d=03 + 2 – 2 + d = 0, d=−3d = -3:

π: x+2y−2z−3=0 \pi: \ x + 2y – 2z – 3 = 0

Check: MM is in π\pi (3+2−2−3=03 + 2 – 2 – 3 = 0) and PQ→\overrightarrow{PQ} is perpendicular to π\pi (it is proportional to its normal). Both conditions for the symmetry hold.

b) The normals of π\pi and σ\sigma are equal, (1,2,−2)(1, 2, -2), and the constant terms differ (−3-3 and 1515): they are parallel. With ranks, rg(A)=1\text{rg}(A) = 1 and rg(A∣B)=2\text{rg}(A \mid B) = 2. The distance, using the point MM of π\pi:

d(π,σ)=d(M,σ)=∣3+2−2+15∣1+4+4=183=6 d(\pi, \sigma) = d(M, \sigma) = \frac{|3 + 2 – 2 + 15|}{\sqrt{1 + 4 + 4}} = \frac{18}{3} = 6

(With planes sharing the same normal, ∣15−(−3)∣3=6\tfrac{|15 – (-3)|}{3} = 6 also works.)

c) s:(2,−1,3)+t(1,2,−2)=(2+t,−1+2t,3−2t)s: (2, -1, 3) + t(1, 2, -2) = (2 + t, -1 + 2t, 3 – 2t). In σ\sigma:

(2+t)+2(−1+2t)−2(3−2t)+15=0 ⇒ 9+9t=0 ⇒ t=−1 (2 + t) + 2(-1 + 2t) – 2(3 – 2t) + 15 = 0 \ \Rightarrow\ 9 + 9t = 0 \ \Rightarrow\ t = -1

The meeting point is H=(1,−3,5)H = (1, -3, 5) (check: 1−6−10+15=01 – 6 – 10 + 15 = 0), and the reflection, P′=2H−P=(0,−5,7)P' = 2H – P = (0, -5, 7).

The exam exercise, side viewThe planes π and σ, parallel and 6 apart, seen edge-on. P and Q are reflections of each other in π, which goes through their midpoint M. From P, the perpendicular to σ meets it at H, and on the other side lies the reflection P prime.π: x + 2y − 2z − 3 = 0σ: x + 2y − 2z + 15 = 0Q = (4, 3, −1)P = (2, −1, 3)M = (3, 1, 1)PH = (1, −3, 5)P' = (0, −5, 7)d = 6side view: the normals (1, 2, −2) point up in the drawing
All three parts rest on the same normal, (1, 2, −2).

Check it in MATLAB

P = [2 -1 3];  Q = [4 3 -1];
M = (P + Q)/2                    % midpoint
n = Q - P                        % normal of pi (not simplified)
d = -dot(n/2, M)                 % constant term with n = (1, 2, -2)
abs(15 - (-3))/norm([1 2 -2])    % distance between pi and sigma
t = -(dot([1 2 -2], P) + 15)/9   % s intersected with sigma
H = P + t*[1 2 -2]
2*H - P                          % reflection of P

Output:

M =

     3     1     1

n =

     2     4    -4

d =

    -3

ans =

     6

t =

    -1

H =

     1    -3     5

ans =

     0    -5     7

Checking and marking

Three quick checks: M∈πM \in \pi; H∈σH \in \sigma; and P′P' is at the same distance from σ\sigma as PP: d(P,σ)=∣2−2−6+15∣3=3d(P, \sigma) = \tfrac{|2 – 2 – 6 + 15|}{3} = 3 and d(P′,σ)=∣0−10−14+15∣3=3d(P', \sigma) = \tfrac{|0 – 10 – 14 + 15|}{3} = 3.

A rough split of the 9 points (it is mine, not official; the lecturer may split them differently):

PartWhat earns marksPoints
a)Knowing it is the perpendicular bisector plane (midpoint and normal PQ→\overrightarrow{PQ})2
a)Correct, checked general equation2
b)Parallel, justified with normals or ranks1
b)Distance 61
c)Line ss with the right direction vector1
c)Meeting point HH1
c)Reflection P′P'1

Questions you might ask

Do I need to write ss in parametric form? It is the easiest way to substitute into the plane. In the exam, write the vector and parametric forms: it costs one line and makes the method clear.

Why does the distance between parallel planes come from any point? Because all points of one plane are at the same distance from the other when they are parallel. Choose whichever point you have to hand (you already had MM).

What if the planes in b) were intersecting? Then the distance is 0, and you could be asked for the angle between them (cosine with the normals) or the line where they meet.

Why does part a) carry so many points? Because recognising that “symmetric with respect to a plane” means “perpendicular bisector plane” is the idea of the exercise. The arithmetic is short; what earns marks is knowing which plane to look for.

In a), using as the normal a vector that is not PQ→\overrightarrow{PQ} (for example, the one of σ\sigma by mistake, or the position vector of MM). Here it happens to match the normal of σ\sigma because the exercise was built that way, but not in general.

Try it yourself

  • Work out the distance from QQ to σ\sigma. (Answer: ∣4+6+2+15∣3=9\tfrac{|4 + 6 + 2 + 15|}{3} = 9, which is 3+63 + 6: QQ is on the other side of π\pi, on the same perpendicular line.)
  • Work out the angle between σ\sigma and the plane z=0z = 0. (Answer: cos⁡θ=23\cos\theta = \tfrac{2}{3}, θ≈48.19∘\theta \approx 48.19^\circ.)

Common mistakes in this practice

  • Wrong normal: a vector inside the plane instead of the cross product of two.
  • The same parameter for two lines when looking for where they meet.
  • “They meet” without the determinant when the direction vectors are not parallel.
  • Reflection solved the wrong way: P′=2H−PP' = 2H – P, not H−PH – P or P+2HP + 2H.
  • Sine and cosine swapped for the angle between a line and a plane.
  • Rotations about a point other than the origin without the translation.

Try it in the MATLAB playground

In the MATLAB playground you can turn problem 5 into something that works for any pair of points:

% Plane in which P and Q are reflections: a*x + b*y + c*z + d = 0
P = [2 -1 3];  Q = [4 3 -1];
n = Q - P;                    % normal
M = (P + Q)/2;                % midpoint
d = -dot(n, M);               % constant term
plane = [n d]                 % coefficients [a b c d]
check = dot(n, M) + d         % must be 0

Things to look at:

  1. plane comes out as (2,4,−4,−6)(2, 4, -4, -6): it is π\pi multiplied by 2. Divide by 2 and compare with the problem.
  2. Change Q to P: the normal becomes (0,0,0)(0, 0, 0) and there is no plane (two equal points define none).
  3. Add d_sigma = abs(dot([1 2 -2], P) + 15)/3 and check that it gives 3.
  4. In the Workspace, plane is a row vector with 4 entries: the coefficients in the order of the equation.

Summary

  • Line: point and direction AB→\overrightarrow{AB}; implicit equations by equating fractions of the symmetric form.
  • Plane through three points: normal = cross product of two vectors in the plane; a point for dd.
  • Positions: ranks of the directions (or normals) and of the system; the determinant with PQ→\overrightarrow{PQ} separates “meet” from “skew”.
  • Projection and reflection: line through the point along the normal, intersect with the plane, and P′=2H−PP' = 2H – P.
  • Perpendicular bisector plane: midpoint and normal PQ→\overrightarrow{PQ}.
  • Movements and conics: 3×33 \times 3 matrices that multiply, and completing the square.

Checklist: have you practised it?

  • Can you write a line in all four forms without looking at the theory?
  • Can you get the plane through three points with the cross product and check it?
  • Can you tell “meet” from “skew” with the determinant?
  • Can you project a point onto a plane and get its reflection?
  • Have you checked the five problems in MATLAB and compared them with your working?
  • Have you tried the “Try it yourself” tasks without looking at the theory?

If you said yes to almost everything, you are ready for the affine space exercises, where I no longer give you the steps and there is a 20-question quiz like the Campus ones. See you there!

Next step: exercisesAffine space — exam-style exercises with skew lines, the plane through three points, a reflection, a conic and a 20-question quiz (and the angle that came out as 66° instead of 24°)

Did this article help you? Here is how you can support SergioLearns →