Skip to content

← Grade 11 Mathematics

Coordinates in Space

Unit 13 · Analytic Geometry

Hide the stories, facts, photos, activities and interactives, for revising before an exam
What this builds on from class
In this unit 4 sections
  1. 13.1 Points in space
  2. 13.2 Distance between two points
  3. 13.3 Direction cosines and ratios of a line
  4. Exercise

Trekkers climb Kala Patthar, on a ridge of Pumori above Gorak Shep, for the most easily reached close view of Everest. Its top is about 5,644 m above sea level; Everest’s summit is 8,848.86 m, the height Nepal and China announced together on 8 December 2020.

So here is this unit’s question: how far away is the summit in a straight line, and how high above the horizon must you look to see it? A map gives you how far east and how far north; the heights give you how far up. Three numbers fix a point in space, and this unit turns them into a distance and a direction. The answer comes at the end of 13.3.
Heights and positions: Wikipedia, “Mount Everest” and “Kala Patthar”.

13.1 Points in space

What you need

The distance formula in a plane, (x2−x1)2+(y2−y1)2 \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2} Grade 9: Grade 9 Optional Math, Unit 3, which is Pythagoras’ theorem with coordinates, and the cosine of any angle from 0° to 180°.

Three axes

Stand in a corner of your classroom. Two edges of the floor meet there at a right angle, and a third edge runs straight up the wall. Any point in the room, the tip of the fan, a spider on the ceiling, is fixed by three numbers: how far along the first edge, how far along the second, and how high.

That corner is the origin O, and the three edges, extended both ways, are the axes: X′OX, Y′OY and Z′OZ, each at right angles to the other two. They are drawn right-handed: curl the fingers of your right hand from OX to OY, and your thumb points along OZ. Each pair of axes fixes a coordinate plane: the XY-plane (the floor), the YZ-plane and the ZX-plane (two walls). The three planes cut space into eight octants, numbered differently in different books (one common way below; the signs are what count).

XYZOPABCLMN
Figure 13.1 The point P(2, 3, 4) and its box. A(2, 0, 0), B(0, 3, 0) and C(0, 0, 4) are the feet of the perpendiculars from P to the axes; L(2, 3, 0), M(0, 3, 4) and N(2, 0, 4) are the feet on the XY-, YZ- and ZX-planes. Blue: PL, the height 4.

Coordinates of a point

Through a point P draw three planes parallel to the coordinate planes. They cut the axes at A, B and C and make a rectangular box with O and P at opposite corners (Figure 13.1). Then
x=OA,y=OB,z=OC x = OA, \quad y = OB, \quad z = OC
each with a sign: positive along OX, OY, OZ, negative along OX′, OY′, OZ′. The coordinates of P are (x, y, z). Read another way, x is the distance of P from the YZ-plane (PM in Figure 13.1), y its distance from the ZX-plane, and z its height above the XY-plane, each with its sign.

So a point on the X-axis is (x, 0, 0), and a point in the XY-plane is (x, y, 0): a coordinate is 0 exactly when the point lies in the plane of the other two axes.

Octant I II III IV V VI VII VIII
Signs of x, y, z +, +, + −, +, + −, −, + +, −, + +, +, − −, +, − −, −, − +, −, −

How far is P(3, −4, 2) from the Z-axis?

Pick an answer to see why.

13.2 Distance between two points

Take P(x₁, y₁, z₁) and Q(x₂, y₂, z₂). Draw the box with edges parallel to the axes and PQ as its diagonal (Figure 13.2): S(x₂, y₁, z₁) is along the X direction from P, and R(x₂, y₂, z₁) is straight below Q, at P’s height.

XYZOPQSR
Figure 13.2 P(1, 1, 2) and Q(4, 7, 4): PS = 3 (blue), SR = 6 (green), RQ = 2 (amber). Triangle PSR lies level, with its right angle at S; triangle PRQ stands upright, with its right angle at R. So PQ=9+36+4=7 PQ = \sqrt{9 + 36 + 4} = 7 .
  1. PS = |x₂ − x₁| and SR = |y₂ − y₁|, and PS⊥SR PS \perp SR (they are parallel to the X- and Y-axes). By Pythagoras in △PSR: PR2=(x2−x1)2+(y2−y1)2 PR^2 = (x_2 - x_1)^2 + (y_2 - y_1)^2 .
  2. RQ = |z₂ − z₁|, parallel to the Z-axis, so RQ is perpendicular to the level plane through P, S, R, and to PR in it.
  3. By Pythagoras in △PRQ: PQ2=PR2+RQ2 PQ^2 = PR^2 + RQ^2 . So

PQ=(x2−x1)2+(y2−y1)2+(z2−z1)2 PQ = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2 + (z_2 - z_1)^2}

The plane’s formula with one more square. With P at the origin, the distance of Q(x, y, z) from O is x2+y2+z2 \sqrt{x^2 + y^2 + z^2} .

A(1, 1, 1), B(2, 3, 3), C(3, 5, 5): AB = 3, BC = 3, AC = 6. The three points:

Pick an answer to see why.

13.3 Direction cosines and ratios of a line

In a plane, one angle, the slope’s, fixes a line’s direction. In space a line can lean in any direction, so we use its angles with all three axes.

Direction cosines

Let a line point in a direction, and let α, β, γ \gamma be the angles it makes with the positive X-, Y- and Z-axes (each from 0° to 180°). Their cosines
l=cos⁡α,m=cos⁡β,n=cos⁡γ l = \cos\alpha, \quad m = \cos\beta, \quad n = \cos\gamma
are the line’s direction cosines. Turn the line round to point the other way and each angle becomes 180°− 180° - itself, so the direction cosines become −l, −m, −n. The X-axis has direction cosines 1, 0, 0 (its angles are 0°, 90°, 90°); the Y-axis 0, 1, 0; the Z-axis 0, 0, 1.

l2+m2+n2=1 l^2 + m^2 + n^2 = 1 . Draw the line through O and mark P(x, y, z) on it with OP = r.

  1. Let A be the foot of the perpendicular from P on the X-axis. Then OA = x, and △OAP has its right angle at A (the perpendicular).
  2. So x = r cos α = lr (the angle at O is α; when α>90° \alpha > 90° , x and cos α are both negative). In the same way y = mr and z = nr.
  3. x2+y2+z2=r2 x^2 + y^2 + z^2 = r^2 (the distance from O). So (l2+m2+n2)r2=r2 (l^2 + m^2 + n^2)r^2 = r^2 , and

l2+m2+n2=1 l^2 + m^2 + n^2 = 1

With r = 1, the direction cosines are simply the coordinates of the point 1 unit along the line.

Try it

Turn a line in space

The dashed box shows l, m, n along the axes; the arcs are α, β, γ \gamma .

XYZPO
α = 58.2°
l = 0.527
β = 51.1°
m = 0.628
γ = 55.0°
n = 0.574

l2 + m2 + n2 = 1.000

Rising: γ acute, n > 0. P stays on the ball of radius 1 (faint outline), so its coordinates are l, m, n.

So the three angles are never free: choose two and the third is fixed, up to a sign. The answer is “up to a sign” because cos⁡γ \cos\gamma and cos⁡(180°−γ) \cos(180° - \gamma) have the same square.

Direction ratios

Any three numbers a, b, c proportional to l, m, n are direction ratios of the line: a = kl, b = km, c = kn for some k ≠ 0. They are easier to find; to get back the direction cosines, divide by their length:

  1. a2+b2+c2=k2(l2+m2+n2)=k2 a^2 + b^2 + c^2 = k^2(l^2 + m^2 + n^2) = k^2 , so k=±a2+b2+c2 k = \pm\sqrt{a^2 + b^2 + c^2} .
  2. So

l=±aa2+b2+c2,m=±ba2+b2+c2,n=±ca2+b2+c2 l = \frac{\pm a}{\sqrt{a^2 + b^2 + c^2}}, \quad m = \frac{\pm b}{\sqrt{a^2 + b^2 + c^2}}, \quad n = \frac{\pm c}{\sqrt{a^2 + b^2 + c^2}}

with the same sign all through (one sign for each way along the line).

Through two points. For the line through P(x₁, y₁, z₁) and Q(x₂, y₂, z₂), the result x = lr from the proof of l2+m2+n2=1 l^2 + m^2 + n^2 = 1 , with P in place of O, gives x₂ − x₁ = l · PQ, and so on: so x₂ − x₁, y₂ − y₁, z₂ − z₁ are direction ratios of PQ, and dividing by PQ gives its direction cosines.

A line has direction cosines l, m, n. The same line pointing the other way has direction cosines:

Pick an answer to see why.

Back to Kala Patthar

Put the origin on Kala Patthar (27.9958° N, 86.8284° E, 5,644.5 m), the X-axis east, the Y-axis north and the Z-axis up. Everest’s summit is at 27.9883° N, 86.9253° E, 8,848.86 m. On a sphere of radius 6,371 km, one degree of latitude is 111.19 km and one degree of longitude here is 111.19cos⁡28°≈98.2 111.19 \cos 28° \approx 98.2 km, so the summit is about
Q(9.51, −0.83, 3.20) km Q(9.51,\ -0.83,\ 3.20) \text{ km}

  1. Distance: OQ=9.512+0.832+3.202=101.37≈ OQ = \sqrt{9.51^2 + 0.83^2 + 3.20^2} = \sqrt{101.37} \approx 10.07 km.
  2. Direction cosines: l=9.5110.07=0.944 l = \frac{9.51}{10.07} = 0.944 , m=−0.8310.07=−0.082 m = \frac{-0.83}{10.07} = -0.082 , n=3.2010.07=0.318 n = \frac{3.20}{10.07} = 0.318 .
  3. The line of sight makes γ=cos⁡−10.318≈71.5° \gamma = \cos^{-1} 0.318 \approx 71.5° with the vertical, so it rises 90°−71.5°= 90° - 71.5° = 18.5° above the horizontal.

So the summit is about 10 km away, a little south of east, and you look up at about 18½°. This treats the ground as flat; over these 9.5 km of ground the Earth’s curve drops only about 7 m, too little to change the answer at this rounding. (Some sources give Kala Patthar as 5,545–5,550 m; with 5,550 m the summit is 10.10 km away and 19.1° up.)

For the engineering entrance

IOE’s BE entrance lists “Plane and its equation” beside coordinates in space; NEB’s Grade 11 exam does not ask it. The plane needs the angle between two lines, and entrance questions ask the section formula too, so both come first.

Exercise

Choose the correct option

The point (0, 4, −3) lies:

Pick an answer to see why.

The direction cosines of the Z-axis are:

Pick an answer to see why.

The distance of (3, −4, 12) from the origin is:

Pick an answer to see why.

The distance of P(2, −3, 6) from the XY-plane is:

Pick an answer to see why.

Which of these cannot be the direction cosines of a line?

Pick an answer to see why.

A line has direction ratios 2, −1, 2. Its direction cosines are:

Pick an answer to see why.

A line makes equal angles with the three axes. Its direction cosines are:

Pick an answer to see why.

The foot of the perpendicular from P(3, −2, 5) on the ZX-plane is:

Pick an answer to see why.

A(1, 2, 3), B(3, 6, 7) and C(4, k, 9) are collinear when k is:

Pick an answer to see why.

A line makes angles α,β,γ \alpha, \beta, \gamma with the axes. Then sin⁡2α+sin⁡2β+sin⁡2γ \sin^2\alpha + \sin^2\beta + \sin^2\gamma is:

Pick an answer to see why.

A line makes angles θ₁, θ₂, θ₃, θ₄ with the four long diagonals of a cube. Then cos⁡2θ1+cos⁡2θ2+cos⁡2θ3+cos⁡2θ4 \cos^2\theta_1 + \cos^2\theta_2 + \cos^2\theta_3 + \cos^2\theta_4 is:

Pick an answer to see why.

Short questions

1.

A(2, −1, 3) and B(−4, 1, 0).

  • a.Find AB. (2 marks)
  • b.Find the point on the Z-axis that is equally far from A and B. (3 marks)
Answer
2.
  • a.The direction cosines of a line are proportional to 1, −3, 2. Find them. (2 marks)
  • b.Find the direction cosines of the line from A(2, 3, −4) to B(8, 1, −1), and the angles it makes with the axes. (3 marks)
Answer
3.

Show that for any real numbers a, b, c, not all equal, the points (a, b, c), (b, c, a) and (c, a, b) are the vertices of an equilateral triangle. (5 marks)

Hint
Answer

Long questions

4.

A(3, 1, 5), B(1, 2, 3) and C(3, 4, 2).

  • a.Show that △ABC is right-angled and isosceles. (2 marks)
  • b.Find the direction cosines of AC and the angles it makes with the axes. (2 marks)
  • c.Find the area of △ABC. (2 marks)
  • d.Find D such that ABCD is a square, and check that AD and BC have the same direction ratios. (2 marks)
Hint
Answer

Project work

For the engineering entrance

Questions of the kind IOE sets on lines and planes in space.

Where these facts come from
  • Everest’s height, 8,848.86 m, announced jointly by Nepal and China on 8 December 2020, and its summit at 27°59′18′′ N, 86°55′31′′ E (opening, 13.3): Wikipedia, “Mount Everest”, read November 2026.
  • Kala Patthar on the south ridge of Pumori above Gorak Shep, “the most accessible closeup view of Everest”, at 27°59.750′ N, 86°49.705′ E, 5,644.5 m (a 2006 GPS reading gave 5,643 m; other sources give 5,545–5,550 m) (opening, 13.3): Wikipedia, “Kala Patthar”, read November 2026.
  • The Earth’s mean radius, 6,371 km (IUGG’s arithmetic mean radius, 6,371.0088 km), used for the degrees-to-kilometers conversion (13.3): Wikipedia, “Earth radius”, read November 2026.
  • The right-handed axes, octants and the distance formula (13.1, 13.2), direction angles and cosines (13.3) and the plane’s equations and a point’s distance from a plane (the entrance section) checked against OpenStax, Calculus Volume 3, 2.2, 2.3 and 2.5 (CC BY 4.0).
  • The unit’s items: CDC, Secondary Education Curriculum 2078, Mathematics, Grades 11–12, 3.3 and learning outcome 3.5; the marks and the model question: CDC, Specification Grid 2078, Mathematics, Grade 11, question 21a; IOE, BE/BArch Entrance Syllabus 2083, Mathematics 4.4.

Found a mistake? Please tell us.