Study Guide

2D and 3D coordinate geometry

IB Mathematics AI HLΒ· 45 min read

1. Distance, Midpoint and Section Formulaβ˜…β˜…β˜†β˜†β˜†β± 15 min

πŸ“˜ Definition

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.

2D distance: d=(x2βˆ’x1)2+(y2βˆ’y1)23D distance: d=(x2βˆ’x1)2+(y2βˆ’y1)2+(z2βˆ’z1)2Section ratio k:m (internal): P=(mx1+kx2k+m,my1+ky2k+m,mz1+kz2k+m)\begin{aligned} \text{2D distance: } d &= \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2} \\ \text{3D distance: } d &= \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2 + (z_2-z_1)^2} \\ \text{Section ratio } k:m \text{ (internal): } P &= \left(\frac{mx_1 + kx_2}{k+m}, \frac{my_1 + ky_2}{k+m}, \frac{mz_1 + kz_2}{k+m}\right) \end{aligned}
πŸ“ Worked Example

Find the coordinates of the point that divides the segment joining and in the ratio internally.

  1. 1

    Identify input values: , , ratio

  2. 2

    Apply the section formula for each coordinate:

  3. 3
    x=(1Γ—1)+(2Γ—3)2+1=73,y=(1Γ—2)+(2Γ—4)3=103,z=(1Γ—βˆ’3)+(2Γ—5)3=73x = \frac{(1 \times 1) + (2 \times 3)}{2 + 1} = \frac{7}{3}, \quad y = \frac{(1 \times 2) + (2 \times 4)}{3} = \frac{10}{3}, \quad z = \frac{(1 \times -3) + (2 \times 5)}{3} = \frac{7}{3}
  4. 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

πŸ“˜ Definition

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 .

πŸ“ Worked Example

Find the parametric equation of the line passing through and parallel to the vector .

  1. 1

    Write the general form for parametric equations:

  2. 2
    x=x0+tdx,y=y0+tdy,z=z0+tdzx = x_0 + td_x, \quad y = y_0 + td_y, \quad z = z_0 + td_z
  3. 3

    Substitute the fixed point and direction vector components

  4. 4

    Final parametric equations:

  5. 5
    x=2+2t,y=βˆ’1βˆ’t,z=3+4t,t∈Rx = 2 + 2t, \quad y = -1 - t, \quad z = 3 + 4t, \quad t \in \mathbb{R}

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.

πŸ“ Worked Example

Check if lines and intersect.

  1. 1

    Set corresponding coordinates equal to get a system of equations:

  2. 2
    1+s=2t,2+3s=1+t,βˆ’s=1+3t1 + s = 2t, \quad 2 + 3s = 1 + t, \quad -s = 1 + 3t
  3. 3

    Solve the first two equations: rearrange first to get , substitute into the second:

  4. 4
    2+3(2tβˆ’1)=1+tβ€…β€ŠβŸΉβ€…β€Š5t=2β€…β€ŠβŸΉβ€…β€Št=25,s=βˆ’152 + 3(2t - 1) = 1 + t \implies 5t = 2 \implies t = \frac{2}{5}, s = -\frac{1}{5}
  5. 5

    Check if the solution satisfies the third equation: Left side , Right side . No match.

  6. 6

    Conclusion: no consistent solution exists, so lines do not intersect.

βœ“ Quick check

If the lines above are not parallel, what are they?

  1. 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 .

cos⁑θ=∣d1β‹…d2∣∣d1∣∣d2∣\cos\theta = \frac{|\mathbf{d_1} \cdot \mathbf{d_2}|}{|\mathbf{d_1}| |\mathbf{d_2}|}
πŸ“ Worked Example

Find the angle between two lines with direction vectors and .

  1. 1

    Calculate the dot product of the two direction vectors:

  2. 2
    d1β‹…d2=(2)(1)+(1)(βˆ’1)+(βˆ’1)(1)=2βˆ’1βˆ’1=0\mathbf{d_1} \cdot \mathbf{d_2} = (2)(1) + (1)(-1) + (-1)(1) = 2 - 1 - 1 = 0
  3. 3

    Substitute into the angle formula:

  4. 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.