2D and 3D coordinate geometry
IB Mathematics AI HLΒ· 45 min read
1. Distance, Midpoint and Section Formulaβ β ββββ± 15 min
Distance between two points
The shortest straight-line path between two points, derived from Pythagoras' theorem, for both 2D and 3D space.
Example:
Distance between and is units
All core distance and midpoint formulas extend naturally from 2D to 3D by adding a -coordinate term. The section formula finds the coordinates of a point that divides a line segment in a given ratio.
Find the coordinates of the point that divides the segment joining and in the ratio internally.
- 1
Identify input values: , , ratio
- 2
Apply the section formula for each coordinate:
- 3
- 4
Final answer: the required point is
Exam tip:
Always confirm if the ratio requested is internal or external; external division flips the sign of the ratio term.
2. Equations of Straight Linesβ β ββββ± 20 min
Straight line
A set of points defined by a fixed initial point (with position vector ) and a constant direction vector that defines the line's orientation. The parameter scales to reach any point on the line.
In IB AI HL, you will mostly use parametric vector form for lines in 2D and 3D. To find the direction vector of a line passing through two points and , calculate .
Find the parametric equation of the line passing through and parallel to the vector .
- 1
Write the general form for parametric equations:
- 2
- 3
Substitute the fixed point and direction vector components
- 4
Final parametric equations:
- 5
3. Intersection of Two Linesβ β β βββ± 20 min
Two lines can be: (1) intersecting (meet at exactly one point), (2) parallel (never meet, direction vectors are scalar multiples), (3) coincident (the same line), or (4) skew (only in 3D: non-parallel and never intersect). To check for intersection, set parametric coordinates equal and solve for the parameters.
Check if lines and intersect.
- 1
Set corresponding coordinates equal to get a system of equations:
- 2
- 3
Solve the first two equations: rearrange first to get , substitute into the second:
- 4
- 5
Check if the solution satisfies the third equation: Left side , Right side . No match.
- 6
Conclusion: no consistent solution exists, so lines do not intersect.
If the lines above are not parallel, what are they?
What is the classification of the lines in the example?
Coincident
Skew
Perpendicular
Reveal answer
Skew βSkew lines only exist in 3D space, and are defined as non-parallel lines that never intersect.
4. Angle Between Two Linesβ β β βββ± 15 min
The angle between two lines is defined as the smallest (acute) angle between their direction vectors. We use the dot product formula, with an absolute value to ensure we get an acute angle between and .
Find the angle between two lines with direction vectors and .
- 1
Calculate the dot product of the two direction vectors:
- 2
- 3
Substitute into the angle formula:
- 4
Therefore , so the lines are perpendicular.
Exam tip:
Exam questions always ask for the acute angle between two lines, so never leave an obtuse angle as your final answer.
5. Common Pitfalls
Wrong move:
Reversing the weights in the section formula for a ratio
Why:
You mixed up which point gets which weight, leading to incorrect coordinates
Correct move:
If divides in ratio , the coordinates are , so the weight for matches the ratio term for
Wrong move:
Skipping the check for the third coordinate when testing 3D line intersections
Why:
The first two equations will always have a solution, even for skew lines that do not intersect
Correct move:
Always substitute your solved parameters into all three equations to confirm consistency before concluding lines intersect
Wrong move:
Forgetting the absolute value in the angle between two lines formula
Why:
You will calculate the obtuse angle instead of the required acute angle between the lines
Correct move:
Always take the absolute value of the dot product, and give the acute angle as your final answer
Wrong move:
Assuming all non-intersecting 3D lines are parallel
Why:
Skew lines are a common case of non-intersecting, non-parallel lines unique to 3D space
Correct move:
Always check if direction vectors are scalar multiples before classifying non-intersecting lines as parallel
Wrong move:
Subtracting mismatched coordinates when calculating distance
Why:
You swapped and terms, leading to an incorrect distance calculation
Correct move:
Label points clearly, and always subtract from and from before squaring
6. Quick Reference Cheatsheet
Concept | 2D Formula | 3D Formula |
|---|---|---|
Distance between | ||
Midpoint of | ||
Point dividing ratio | ||
Vector line equation | ||
Angle between two lines |
When this came up on past exams
AI-estimated based on syllabus patterns β cross-check with official past papers for accuracy. Use only as revision-focus signals.
- 2023 Β· 1
Intersection of 3D lines
- 2022 Β· 2
Distance and angle between lines
- 2021 Β· 1
Section formula problem
What's Next
Mastering 2D and 3D coordinate geometry is the foundation for all remaining topics in the IB AI HL Geometry and Trigonometry unit. The skills you learned here, especially working with lines, direction vectors and solving systems for intersections, are directly extended to work with planes in 3D space, finding intersections between lines and planes, and calculating volumes and surface areas of complex 3D shapes. These concepts also transfer directly to vector kinematics, where you will use line equations to model motion of particles in 2D and 3D space.
