Lines and planes in three dimensions AA HL
A line in three dimensions is a point plus any multiple of a direction vector, and a plane is fixed by a point and a vector at right angles to it, called the normal. This page shows how to write a line in vector, parametric and Cartesian form, how to test whether a point lies on a line, and how to use the vector product to find the normal and the Cartesian equation of a plane. Most of the working is exact, so practise it without a calculator. Work through the lines section first, because the planes section uses it. The planes section also covers where a line meets a plane, where two planes meet, and the angle between a line and a plane or between two planes.
Formulas at a glance
The magnitude of a vector, the scalar product, the size of the vector product and the vector equations of a line and a plane are in the formula booklet. The Cartesian form of a line, the angle between two lines, the angle between a line and a plane, the angle between two planes and the components of the vector product are not, so learn them.
Magnitude of a vector
In the bookletScalar product
In the bookletVector equation of a line
In the bookletParametric form of a line
In the bookletCartesian form of a line
Not in the bookletSize of the vector product
In the bookletComponents of the vector product
Not in the bookletAngle between two lines with directions and
Not in the bookletEquations of a plane
In the bookletAngle between a line with direction and a plane with normal
Not in the bookletAngle between two planes with normals and
Not in the bookletWhich method to use
Decide first whether the question is about a line or a plane, then look at what you are given. A line needs a point and a direction; a plane needs a point and a normal.
| The question has | Use | Notes |
|---|---|---|
| Two points on a line, and the line is wanted | Direction , position , then | Either point can be used for , and any non-zero multiple of is a direction |
| A line in vector form, and the Cartesian form is wanted | Write , and in terms of , make the subject of each and set them equal | If a component of is zero, that coordinate stays fixed and is written separately |
| A point, and a question whether it lies on the line | Find from one coordinate, then check the other two give the same | One matching coordinate is not enough |
| Whether two lines are parallel | Check whether one direction vector is a multiple of the other | The vector product of two parallel vectors is the zero vector |
| Two lines, and whether they intersect, are parallel or are skew | Compare the directions first; if they are not parallel, equate the coordinates with different parameters, solve two of the equations and test the third | The third equation true means the lines meet; false means they are skew |
| The angle between two lines | , using the two direction vectors only | The modulus on top gives the acute angle between the lines |
| A plane through three points | Two direction vectors in the plane, their vector product as the normal, then | Any multiple of a normal is also a normal, so simplify it before finding |
| A line perpendicular to a plane | The direction of the line is a multiple of the normal of | Read the normal straight from the coefficients |
| Where a line meets a plane | Write , and in terms of , substitute into the plane equation and solve for | No left and a false statement: the line is parallel to the plane; a true statement: the line lies in the plane |
| The angle between a line and a plane | , with the line direction and the plane normal | The formula uses sine, not cosine, because the dot product measures the angle to the normal |
| The angle between two planes | , using the two normals only | The modulus on top gives the acute angle between the planes |
| Where two planes meet | The direction of the line of intersection is ; find one point by choosing a value for one coordinate and solving the two equations | Two planes with parallel normals either never meet or are the same plane |
Section 1 of 2 AHL3.14 AHL3.15 AHL3.16
Lines in vector form
A line in two or three dimensions is given by , where is the position vector of a point on the line and is a direction vector. Writing out the components gives the parametric form, and eliminating the parameter gives the Cartesian form. The equation also describes motion when the parameter is time.
Key facts you'll need
Setting up and comparing these equations leans on two vector tools.
Magnitude of a vector
In the formula booklet. You will use it to find a unit direction vector, the speed when the direction vector is a velocity, or the distance between two points on a line.
Vector (cross) product
The booklet gives the size of the vector product, . Two direction vectors are parallel exactly when - a quick way to rule parallel lines in or out before testing for skewness.
Key terms
What is a direction vector?
A direction vector is any non-zero vector parallel to the line. Every scalar multiple of it is also a direction vector for the same line.
e.g. The line through and has direction vector .
What is the parametric form of a line?
The parametric form writes each coordinate separately in terms of the parameter.
e.g. The line gives , and .
What is the Cartesian form of a line in three dimensions?
Make the parameter the subject of each coordinate equation and set them equal, giving . This form needs every component of the direction vector to be non-zero.
e.g. From , and : .
How do you check that a point lies on a line?
Equate the coordinates to the line's equations, find the parameter from one coordinate, then check that the other coordinates give the same parameter value.
e.g. For and the point : gives , and then and , so the point lies on the line.
How do you find the angle between two lines?
Use only the two direction vectors: . The modulus on the top gives the acute angle, which is the angle between the lines.
e.g. Lines with directions and : the scalar product is and the magnitudes are both , so and the angle between the lines is .
How do you tell whether two lines intersect, are parallel or are skew?
If the direction vectors are multiples of each other, the lines are parallel, or coincident if they share a point. Otherwise equate the coordinates using a different parameter for each line, solve two of the equations, and test the third: if it holds the lines intersect, and if it fails they are skew.
e.g. For and , the directions are not multiples. The and equations give and , but then the equation says , which is false, so the lines are skew.
Worked example, step by step
The question No calculator needed [5 marks]
The points and lie on the line .
(a) Find a vector equation of .
(b) Write down the Cartesian form of .
(c) Show that the point lies on .
Worked solution: worked example
Answer: (a) (b) (c) shown, with
Step 1 - Find the direction vector.
The line passes through and , so a direction vector is M1 - Find as the difference of the position vectors
Why? The direction is the position of the end point minus the position of the start point. Taking instead would give a vector pointing the other way, which describes the same line.
Step 2 - Write the vector equation.
Use the position vector of as the point and as the direction: A1 - (or an equivalent form)
Why? In , the vector is a fixed point on the line and is the direction of travel. Do not swap them, and do not use two points where a point and a direction are needed.
Step 3 - Write the Cartesian form.
The parametric equations are , and . Making the subject of each and setting them equal gives A1 -
Why? The numbers on the bottom are the components of the direction vector, and the numbers subtracted on top are the coordinates of the point. Here every component of the direction is non-zero, so all three fractions can be written.
Step 4 - Find for the point .
If is on , then , so . M1 - Use one coordinate to find the value of for ,
Why? Use one coordinate to find the parameter, then test the other two with it. Choosing the coordinate keeps the arithmetic short because its direction component is small.
Step 5 - Check the other two coordinates.
With : and . These are the and coordinates of , so lies on . A1 - Show that the and coordinates also match for , so lies on
Why? One matching coordinate is not enough. The point is on the line only if the same works in all three equations.
M1 Find as the difference of the position vectors
A1 (or an equivalent form)
A1
M1 Use one coordinate to find the value of for ,
A1 Show that the and coordinates also match for , so lies on
Now you try: enter your answers to be marked
These are real practice questions. Type your answer in each box and press Mark it. The worked solution and mark scheme appear straight away, and your first attempt is the one that counts. Use the keyboard for powers, roots and trig, and the working box for your notes.
Worked solution: practice question 1
Worked solution: practice question 2
Worked solution: practice question 3
Your score so far: 0 out of 15 marks
Calculator steps: Magnitude, dot product and angle between vectors
Common mistakes
- Assuming non-intersecting lines must be parallel. In three dimensions, two lines can fail to meet without being parallel - that's exactly what a skew line is.
- Mixing up the point and the direction vector. In , is a fixed position and is the direction you travel in - swapping them, or using two points where a point and a direction are needed, gives the wrong line entirely.
- Stopping after solving only two of the three equations. With two unknown parameters and three coordinate equations, you must check the third equation is also satisfied before concluding the lines intersect - skip it and you can wrongly rule a skew pair as meeting.
Section 2 of 2 AHL3.17 AHL3.16 AHL3.18
Planes and where they meet
A plane in three dimensions can be written as using a point and two non-parallel direction vectors, or in Cartesian form , where is a normal vector. To find the equation, work out a normal vector and substitute a point on the plane to find . Converting between the forms is the main skill.
The two forms of a plane's equation
Normal (scalar product) form
Use when you're given (or can find) a normal vector and a point on the plane - this is usually the fastest route to the Cartesian equation.
Cartesian equation
Expand the normal form and collect terms - the coefficients are exactly the components of the normal vector .
Key terms
What is a normal vector to a plane?
A normal vector is perpendicular to every direction vector lying in the plane. In the equation , the normal vector is .
e.g. The plane has normal vector .
How do you find d in the Cartesian equation?
Substitute the coordinates of a known point on the plane into once the normal vector has given you , and .
e.g. A plane with normal through has , so its equation is .
How do you test whether a point lies on a plane?
Substitute its coordinates into the Cartesian equation. The point lies on the plane only if both sides are equal.
e.g. For , the point gives , so it lies on the plane, but gives , so it does not.
How do you find a normal vector from two direction vectors?
Take the vector product of two non-parallel direction vectors in the plane. The result is perpendicular to both.
e.g. The directions and give normal , because its dot product with each direction is .
How do you find where a line meets a plane?
Write , and in terms of , substitute them into the equation of the plane and solve for . Putting that back into the line gives the point. If disappears and the statement is false, the line is parallel to the plane and never meets it; if the statement is true, the whole line lies in the plane.
e.g. The line and the plane : , so and the line meets the plane at .
How do you find the angle between a line and a plane?
Use the direction of the line and the normal of the plane: . It is sine, not cosine, because the scalar product gives the angle between the line and the normal, which is .
e.g. For and , the scalar product is and both magnitudes are , so and .
How do you find the angle between two planes?
The angle between two planes is the angle between their normals: . The modulus on the top gives the acute angle.
e.g. The normals and have scalar product and magnitudes and , so and .
How do you find where two planes meet?
Two planes that are not parallel meet in a line. Its direction is , because that vector is perpendicular to both normals. For a point on it, choose a value for one coordinate and solve the two equations for the other two. Three planes give three equations to solve together, as on the systems of equations page.
e.g. The planes and have normals and , whose vector product is . With the equations give and , so the line is .
Worked example, step by step
The question No calculator needed [5 marks]
The points , and lie in the plane .
(a) Find the vectors and .
(b) Use the vector product to find a normal vector to .
(c) Find the Cartesian equation of .
Worked solution: worked example
Answer: (a) and (b) , or any multiple, such as (c)
Step 1 - Find two direction vectors in the plane.
Neither is a multiple of the other, so they are not parallel and together they fix the plane. A1 - and
Why? A plane needs two non-parallel directions. Taking both vectors from the same point keeps the working simple.
Step 2 - Find a normal with the vector product.
A vector perpendicular to both is : M1 - Use the vector product of and
Why? The vector product of two vectors in the plane is perpendicular to both, so it is perpendicular to the whole plane. Each component uses the other two components of the vectors, in the cyclic order , , .
Step 3 - Simplify the normal.
so is also a normal. A1 - or a multiple of it
Why? Any non-zero multiple of a normal is still a normal, and the smaller numbers make the next step easier. A quick check is that .
Step 4 - Use the normal form.
With , the equation is , so M1 - Use with a point of the plane to find
Why? The right-hand side is a number, found by taking the scalar product of the position vector of a known point with the normal. It is the in .
Step 5 - Write the Cartesian equation.
With , this gives A1 - (or a multiple of it)
Why? The coefficients of , and are exactly the components of the normal vector.
Step 6 - Check with the other points.
For : . For : . Both satisfy the equation.
Why? Substituting a point into the left-hand side should give . Testing the points that were not used to find catches an arithmetic slip in the vector product.
A1 and
M1 Use the vector product of and
A1 or a multiple of it
M1 Use with a point of the plane to find
A1 (or a multiple of it)
Now you try: enter your answers to be marked
Worked solution: practice question 1
Worked solution: practice question 2
Worked solution: practice question 3
Your score so far: 0 out of 11 marks
Calculator steps: Magnitude, dot product and angle between vectors
Common mistakes
- Reading off the wrong normal vector. In , the normal is exactly as written - not the coordinates of a point on the plane, which is a separate quantity entirely.
- Confusing a point on the plane with the normal vector. The vector form needs both a specific point and the normal - substituting one where the other belongs gives a completely different plane.
- Forgetting a plane needs two direction vectors, not one. Unlike a line, requires two non-parallel vectors and lying in the plane - a single direction vector only describes a line within it.
Using your GDC
The exact key presses for the TI-84 Plus CE, Casio fx-CG50, Casio fx-CG100 and TI-Nspire CX, with what the screen shows. Pick your calculator.
Magnitude, dot product and angle between vectors
Used in: Lines in vector form, Planes and where they meet
How to find the magnitude, dot product and angle between vectors on a TI-84 Plus CE
Store each vector as a list | |
The TI-84 Plus CE has no vector commands, so a vector is a list of its components. For press 2nd ( ({) 2 , (−) 1 , 3 2nd ) (}) sto▶ 2nd 1 (L1) enter. Do the same for , storing it in L2 (2nd 2). Both lists must have the same number of entries. |
{2,-1,3}→L1 {4,0,-2}→L2 |
Dot product | |
Press 2nd stat (LIST), move to MATH with ▶, and choose 5:sum(. Then press 2nd 1 × 2nd 2 ) enter. This multiplies the two lists term by term and adds the products. . |
sum(L1*L2) 2 |
Magnitude | |
Press 2nd x² (√), then 2nd stat (LIST), MATH, 5:sum(, then 2nd 1 x² ) ) enter. This is . Repeat with 2nd 2 for . and to 3 significant figures. |
√(sum(L1²)) 3.741657387 √(sum(L2²)) 4.472135955 |
Angle between the vectors | |
Check the angle mode first (see switching between degrees and radians): use degree mode for an answer in degrees. Press 2nd cos (cos⁻¹) and type the dot product divided by the product of the magnitudes: sum(L1*L2) ÷ ( √(sum(L1²)) × √(sum(L2²)) ) ), using the same keys as above. Press enter. to 1 decimal place. |
cos⁻¹(sum(L1*L2)/(√(sum( L1²))*√(sum(L2²)))) 83.13543366 |
Cross product | |
The cross product of and is a vector at right angles to both. Its components are . The TI-84 Plus CE has no cross product command, so type each component from list entries. For the first component press 2nd 1 ( 2 ) × 2nd 2 ( 3 ) − 2nd 1 ( 3 ) × 2nd 2 ( 2 ) enter. This is L1(2)*L2(3)-L1(3)*L2(2), where L1(2) is the second entry of L1. Use L1(3)*L2(1)-L1(1)*L2(3) for the second component and L1(1)*L2(2)-L1(2)*L2(1) for the third. |
L1(2)*L2(3)-L1(3)*L2(2) 2 |
For the magnitude, store the three components as a list: press 2nd ( ({), type the three expressions above separated by ,, then 2nd ) (}) sto▶ 2nd 3 (L3) enter. Then press 2nd x² (√), 2nd stat (LIST), MATH, 5:sum(, 2nd 3 x² ) ) enter. and its magnitude is to 3 significant figures. |
√(sum(L3²)) 16.61324773 |
Press 2nd enter (ENTRY) to bring back the last line and edit it, so you do not retype the long angle expression for new vectors.
The full guide: Magnitude, dot product and angle between vectors
See the full list of GDC guides for every calculator task.
Syllabus content covered
| Code | Syllabus content |
|---|---|
| AHL3.14 | Vector equation of a line in two and three dimensions: . Relevance of (position) and (direction). Knowledge of the following forms for equations of lines: parametric form ; Cartesian form . The angle between two lines, using the scalar product of the two direction vectors. Simple applications to kinematics. Interpretation of as time and as velocity, with representing speed. |
| AHL3.15 | Coincident, parallel, intersecting and skew lines, distinguishing between these cases. Points of intersection. Skew lines are non-parallel lines that do not intersect in three-dimensional space. |
| AHL3.16 | The definition of the vector product of two vectors: , where is the angle between and , and is the unit normal vector whose direction is given by the right-hand screw rule. For non-zero vectors is equivalent to the vectors being parallel. |
| AHL3.17 | Vector equations of a plane: , where and are non-parallel vectors within the plane. , where is a normal to the plane and is the position vector of a point on the plane. Cartesian equation of a plane . |
| AHL3.18 | Intersections of: a line with a plane; two planes; three planes. Angle between: a line and a plane; two planes. Finding intersections by solving equations; geometrical interpretation of solutions. |
Official IB source: Mathematics: analysis and approaches subject brief (PDF, ibo.org).
Quick questions
What is the vector equation of a line?
, where is the position vector of a known point on the line and is a direction vector. is a scalar parameter that generates every point on the line as it varies.
What is the vector equation of a plane?
, where is a point on the plane and are two non-parallel vectors that lie in it. Equivalently, , where is a vector normal to the plane.
What does it mean for two lines to be skew?
Skew lines are lines in three dimensions that never meet but also are not parallel - their direction vectors are not scalar multiples of each other, and no values of the two parameters satisfy all three coordinate equations at once.
How do I find the Cartesian equation of a plane?
Write using the normal vector and a known point, then expand to get
Is the vector equation of a line unique?
No. Any point on the line can be used for , and any non-zero multiple of the direction can be used for . For example, describes the same line as .
How do I find the equation of a plane through three points?
Form two direction vectors between the points, such as and . Their vector product is a normal vector, and substituting one of the points gives .
How do I find where two lines intersect?
Use different parameter letters for the two lines and equate their components. Solve two of the equations for the parameters, then check the values in the third equation. If the third equation fails, the lines do not meet.
Is the normal vector of a plane unique?
No. Any non-zero multiple of a normal vector is also a normal vector, so and describe the same plane.
What does the direction vector mean in a motion problem?
When gives position at time , the direction vector is the constant velocity and its magnitude is the speed. For , the speed is .
How do I check that two direction vectors are not parallel?
Neither vector may be a scalar multiple of the other. The vectors and are parallel, but and are not.
Ready to practise properly?
Practice questions on every section, marked instantly like the real exam.