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 and 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.
Table of Contents
Before you start
Make sure you are comfortable with:
- The vector between two points, , 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
- Data: get a point and a direction vector from each line, and a point and its normal from each plane.
- Draw a sketch, even a side view: where each thing is and what is being asked.
- Solve with the right tool: ranks for positions, formulas for distances and angles, an auxiliary line for projections and reflections.
- 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 to the point . Write the cable line in vector, parametric, symmetric and implicit form. Then find the general equation of the scoreboard plane, which goes through , and .
The idea
The line: the point and the direction vector , simplified. From the parametric equations, solve for 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 ( and ), 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 line. , and dividing by 20, .
| Form | Cable line |
|---|---|
| Vector | |
| Parametric | |
| Symmetric | |
| Implicit |
The implicit equations, one by one: gives , that is, . And gives , that is, . Check with : and . With the parametric equations give : the point .
The plane. Two vectors in the plane:
Dividing by : . The plane is , and with : , .
Check with the other two: : ; : .
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: and 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 : the symmetric form would contain . Write 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 : they do not define a plane (infinitely many fit). If you get the zero vector, check the points.
Taking one of the vectors or 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 and the mast . (Answer, for example: .)
- Find the plane through , and . (Answer: , the pitch.)
Problem 2: relative positions with ranks
Statement. Study the relative position of: a) the cable and the drone line ; b) the drone line and the line of the ball going straight up from , and their meeting point if there is one; c) the grandstand roof plane, , and the scoreboard plane, .
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 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) and are not proportional (): rank 2. The vector between points is .
Rank 3: skew. The distance between them, as a bonus: , with modulus , and 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 , , .
| Step | Calculation | Why |
|---|---|---|
| 1 | First number of the row, sign : its minor comes from columns 2 and 3 | |
| 2 | Second number, sign : the with that minus sign becomes ; its minor comes from columns 1 and 3 | |
| 3 | Third number, sign : its minor comes from columns 1 and 2 | |
| 4 | Not 0: the three vectors do not fit in one plane; rank 3 | |
| 5 | A vector perpendicular to both direction vectors: the direction of the shortest path between the two lines | |
| 6 | The modulus of the cross product is the area of the parallelogram formed by the two direction vectors | |
| 7 | m | The 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 .
b) The ball goes up along with and . and are not proportional. :
Rank 2: they meet. For the point, equate the parametric equations: , , . The first two give (they agree, as they should) and the third, . The meeting point is .
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 and , which are not proportional, so their rank is still 2. What changes is the vector between points: . The determinant with rows , and is , not 0: rank 3, skew.
Equating the parametric equations shows it too: the asks for , that is , and the asks for , that is . Both cannot happen at once. And the distance: , with modulus , so m.
c) Normals and : not proportional, so the planes meet in a line. Also : they are perpendicular. With ranks: of the augmented matrix.
| Pair | Ranks | Position |
|---|---|---|
| Cable and drone | 2 and 3 | Skew (5.70 m apart) |
| Drone and ball | 2 and 2 | Meet at |
| Roof and scoreboard | 2 and 2 | Meet (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 : three equations in two unknowns which, since the lines meet, are consistent. It gives and (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 , and 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, and give , and free: the line , under the grass (the planes carry on).
Do I need to check the meeting point? Yes, on both lines: satisfies the drone’s implicit equations, and , and it is on the vertical .
Equating the parametric equations using the same letter for both lines. Each line has its own parameter: for one and 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, . (Answer: determinant 30, skew.)
- Where does the cable meet the pitch plane? (Answer: , at , off the pitch, past the corner.)
Problem 3: distances, angles, projection and reflection
Statement. A floodlight is at . Work out its distance to the scoreboard (), its projection onto it and its reflection. Then work out the distance from the center spot 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 in the direction of the normal, intersected with the plane. Reflection: . Point-line distance with the cross product. Angles: sine for line and plane, cosine for two lines.
The projection’s parameter already gives the distance: . Use it to check the formula.
Step by step
Distance to the scoreboard:
Projection. The line in the plane: , that is, , . Then . Check: , and , the same distance.
Reflection: .
Distance from the center spot to the cable. and
with modulus . Divided by : m.
Angle between the cable and the pitch: , .
Angle between the cable and the drone: , .
The angle between the cable and the drone, unfolded:
| Step | Calculation | Why |
|---|---|---|
| 1 | Dot product of the two direction vectors: multiply component by component and add | |
| 2 | and | The moduli of the two direction vectors |
| 3 | The product of the moduli, which removes the effect of how long the vectors are | |
| 4 | The dot product goes in absolute value: the angle between two lines is between and | |
| 5 | It comes out acute, as it should |
Why the absolute value? Because a line has no direction of travel: and are direction vectors of the same drone line. With the second one, the dot product is and the arccosine, , which is the supplementary angle (). By convention, you give the acute one.
| Calculation | Result |
|---|---|
| Projection | |
| Reflection | |
| Cable-pitch angle | |
| Cable-drone angle |
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 solved for : .
Questions you might ask
Why does the projection have the same as ? Because the normal has no component: moving in that direction does not change . That is why the side view (the section ) shows everything.
What if the point is on the plane? The formula gives 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 .
Can I give the angle as an arcsine without decimals? Yes, in the calculator-free exam you leave . The decimals are for checking.
Working out the reflection as or . If is the midpoint, , and solving for it, .
Try it yourself
- Work out the distance from the mast to the scoreboard. (Answer: .)
- Find the reflection of the center spot in the scoreboard plane. (Answer: , , .)
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 . Write its matrix in homogeneous coordinates and apply it to the player at . b) Classify and reduce . c) A clearance follows the parabola (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 . Then comes the translation that keeps the center still.
Step by step
a) Rotating 180° about takes to : the center goes to itself and every point to its opposite about the center. In homogeneous coordinates:
It is the translation by times the 180° rotation: . And the center: .
b) : hyperbolic. Completing the squares:
A hyperbola with center , and , opening left and right.
Completing the squares, line by line:
| Step | Calculation | Why |
|---|---|---|
| 1 | Group the terms of each letter; take the out as a common factor of | |
| 2 | has one 1 too many, so you subtract it | |
| 3 | : there is a 4 left over | |
| 4 | The in front also multiplies the 4 you subtract: it gives | |
| 5 | Substitute both squares into the equation | |
| 6 | The loose numbers, , move to the other side | |
| 7 | Divide by 4 so that the right-hand side is 1: this is the reduced form |
From there you read and , and the vertices, 2 units from the center horizontally: and . Substitute them into the equation in the statement: both give 0.
c) . Completing the square: . Vertex at , : 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 .
Does switching ends twice leave the player where they were? Yes: . Turning 360° is not moving.
How do I know which way the hyperbola opens? From the sign: the positive term is the one, so it crosses the horizontal axis (at ) 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 . 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: , not .
Try it yourself
- Apply twice to . (Answer: it goes back to .)
- Classify . (Answer: , the parabola , with vertex .)
Problem 5: how the exam asks it
Exercise. In real affine space , with the standard dot product, take the points and and the plane . a) (4 points) Find the general equation of the plane with respect to which and are symmetric. b) (2 points) Study the relative position of and and, if possible, work out the distance between them. c) (3 points) Let be the line through perpendicular to . Find the point where meets and the reflection of in .
The idea
a) The perpendicular bisector plane: it goes through the midpoint of and and its normal is . 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 takes the normal of as its direction; intersect it with and apply .
Simplify and you will see it is proportional to the normal of . That gives away the answer to b).
Step by step
a) Midpoint: . Normal: , and dividing by 2, . The plane is with , :
Check: is in () and is perpendicular to (it is proportional to its normal). Both conditions for the symmetry hold.
b) The normals of and are equal, , and the constant terms differ ( and ): they are parallel. With ranks, and . The distance, using the point of :
(With planes sharing the same normal, also works.)
c) . In :
The meeting point is (check: ), and the reflection, .
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: ; ; and is at the same distance from as : and .
A rough split of the 9 points (it is mine, not official; the lecturer may split them differently):
| Part | What earns marks | Points |
|---|---|---|
| a) | Knowing it is the perpendicular bisector plane (midpoint and normal ) | 2 |
| a) | Correct, checked general equation | 2 |
| b) | Parallel, justified with normals or ranks | 1 |
| b) | Distance 6 | 1 |
| c) | Line with the right direction vector | 1 |
| c) | Meeting point | 1 |
| c) | Reflection | 1 |
Questions you might ask
Do I need to write 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 ).
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 (for example, the one of by mistake, or the position vector of ). Here it happens to match the normal of because the exercise was built that way, but not in general.
Try it yourself
- Work out the distance from to . (Answer: , which is : is on the other side of , on the same perpendicular line.)
- Work out the angle between and the plane . (Answer: , .)
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: , not or .
- 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:
planecomes out as : it is multiplied by 2. Divide by 2 and compare with the problem.- Change
QtoP: the normal becomes and there is no plane (two equal points define none). - Add
d_sigma = abs(dot([1 2 -2], P) + 15)/3and check that it gives 3. - In the Workspace,
planeis a row vector with 4 entries: the coefficients in the order of the equation.
Summary
- Line: point and direction ; 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 .
- Positions: ranks of the directions (or normals) and of the system; the determinant with separates “meet” from “skew”.
- Projection and reflection: line through the point along the normal, intersect with the plane, and .
- Perpendicular bisector plane: midpoint and normal .
- Movements and conics: 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 →



