080Mathematics · Spatial trigonometry

Triangle in three-dimensional space

Triangle in three-dimensional space

Triangle in three-dimensional space · AB,AC,BC,∠BAC,S

  • 128 bytes
  • COMP mode
01

Worked examples

Example 1

Three joints of a cuboid have coordinates A(0,0,0), B(3,0,4) and C(0,5,0), measured in centimetres. Find the area of triangle ABC and select the matching option.

  1. A.10 cm²
  2. B.12.5 cm²
  3. C.15 cm²
  4. D.25 cm²
Answer
B — S=12.5 cm².
Standard solution (without a calculator)
  1. Form the displacements: AB=(3,0,4), AC=(0,5,0).
  2. Check the side lengths and angle: AB=5 cm, AC=5 cm, BC=√50≈7.071067812 cm; AB·AC=0, so ∠BAC=90°.
  3. Find the area: |AB×AC|=25 cm², hence S=25/2=12.5 cm².
  4. Select the option: 12.5 cm² is B.
Do it on the calculator

Example 2

A triangular face has A(0,0,0), B(2,0,2) and C(0,2,2), with distances in centimetres. Find its three side lengths, ∠BAC and exact area.

Answer
AB=AC=BC=2√2 cm; ∠BAC=60°; S=2√3 cm².
Standard solution (without a calculator)
  1. Form the displacements: AB=(2,0,2) and AC=(0,2,2).
  2. Find the sides: AB=AC=√8=2√2 cm and BC=√((2−0)²+(0−2)²+(2−2)²)=2√2 cm.
  3. Find the angle: AB·AC=4 and |AB||AC|=8, so cos∠BAC=1/2 and ∠BAC=60°.
  4. Find the area: |AB×AC|=4√3 cm², so S=2√3≈3.464101615 cm².
Do it on the calculator

Example 3

Spatial joints are A(2,−1,3), B(5,−1,4) and C(−1,3,2), measured in metres. Write AB and AC as displacement vectors, then find the three side lengths, ∠BAC to two decimal places and the triangle area.

Answer
AB=(3,0,1), AC=(−3,4,−1); AB=√10 m, AC=√26 m, BC=2√14 m; ∠BAC≈128.33°; S=2√10 m².
Standard solution (without a calculator)
  1. Form the displacements: AB=B−A=(3,0,1) and AC=C−A=(−3,4,−1).
  2. Find the sides: AB=√10 m, AC=√26 m and BC=√56=2√14 m.
  3. Find the angle: AB·AC=−10, so cos∠BAC=−10/√260=−5/√65; ∠BAC≈128.33°.
  4. Find the area: AB×AC=(−4,0,12), with magnitude 4√10; therefore S=2√10≈6.32455532 m².
Do it on the calculator
02

When to use it

For vertices A, B and C in three-dimensional space, use u=AB and v=AC. Vector lengths give the sides, the dot product gives ∠BAC, and half the magnitude of u×v gives area S.

Enter two displacement vectors

  • Compute AB=B−A and AC=C−A first. Enter ABₓ, ABᵧ, AB_z in A, B, C, followed by ACₓ, ACᵧ, AC_z in D, X, Y. These are six components, not nine vertex coordinates; use the same length unit throughout.

Read five results

  • The outputs are AB, AC, BC, ∠BAC in Deg, then area S. Press EXE after each of the first four displays; S uses square units.

Question types

  • Original HKDSE spatial-geometry practice with points and displacement vectors. Dot and cross products are M2 vector methods; the vector solution is an extension beyond Compulsory Part trigonometry.

Before you start

  • Both AB and AC must be nonzero vectors. A zero vector causes Math ERROR when the program takes a reciprocal.
  • Distinct collinear vectors are permitted: the area is zero and the included angle is 0° or 180°, according to their direction.
  • Set Deg for an angle in degrees. The angle is the one at A between AB and AC, not an angle at B or C.
  • Input signed components explicitly. A blank EXE may reuse a stored value; it is not a zero component. Use (−) for a negative input.
  • Avoid extremely large components and near cancellation that exceed the calculator’s range or precision. The program returns numerical checks; retain exact surds in a written solution.
  • P1 occupies 128 bytes within the P1–P4 680-byte space in COMP. It overwrites A, B, C, D, X, Y and M; record prior values first.

Sign in to unlock the full programme

Checking access…

The programme code and appendix unlock together.

Checking access…

Sign in to unlock the full programme

Checking access…

The programme code and appendix unlock together.