071Mathematics · Mensuration and similarity

Triangle area and altitudes from three sides

Triangle area and altitudes from three sides

Triangle area and altitudes from three sides · S,hₐ,hᵦ,h꜀

  • 162 bytes
  • COMP mode
01

Worked examples

Example 1

A triangular support has side lengths a=3 m, b=4 m and c=5 m. What is the perpendicular height to the 5 m side?

  1. A.2
  2. B.2.4
  3. C.3
  4. D.6
Answer
B — area 6 m²; height to the 5 m side 2.4 m.
Standard solution (without a calculator)
  1. Check the triangle: 3+4>5, and 3²+4²=5², so the sides form a right triangle.
  2. Find the area: the perpendicular sides are 3 m and 4 m, hence S=3×4/2=6 m². Equivalently, s=(3+4+5)/2=6 m and Heron’s formula gives √(6×3×2×1)=6 m².
  3. Use the chosen base: S=5h꜀/2, so h꜀=2S/5=12/5=2.4 m.
  4. Select the answer: 2.4 m is option B. The calculator also gives hₐ and hᵦ for the other two sides.
Do it on the calculator

Example 2

An isosceles triangular sail has equal sides a=b=13 cm and base c=10 cm. Find its area in cm².

  1. A.50
  2. B.60
  3. C.65
  4. D.120
Answer
B — area 60 cm².
Standard solution (without a calculator)
  1. Bisect the base: the altitude to the 10 cm base splits it into two 5 cm segments.
  2. Use Pythagoras: the height is √(13²−5²)=√144=12 cm.
  3. Find the area: S=10×12/2=60 cm². Heron’s check uses s=(13+13+10)/2=18 cm and √(18×5×5×8)=60 cm².
  4. Select the answer: 60 cm² is option B.
Do it on the calculator

Example 3

A triangular lawn has sides a=7 m, b=8 m and c=9 m. Use Heron’s formula to find its area and all three altitudes, giving exact surd answers.

Answer
S=12√5 m²; hₐ=24√5/7 m; hᵦ=3√5 m; h꜀=8√5/3 m.
Standard solution (without a calculator)
  1. Find the semiperimeter: s=(7+8+9)/2=12 m.
  2. Apply Heron’s formula: S=√(12(12−7)(12−8)(12−9))=√720=12√5 m²; the LCD approximation is 26.83281573 m².
  3. Height to a: hₐ=2S/7=24√5/7 m, displayed as 7.66651878 m.
  4. Height to b: hᵦ=2S/8=3√5 m, displayed as 6.708203932 m.
  5. Height to c: h꜀=2S/9=8√5/3 m, displayed as 5.96284794 m.
  6. Check units and order: S is in m²; the heights are in m and correspond to the entered 7 m, 8 m and 9 m sides.
Do it on the calculator
02

When to use it

For sides a, b and c, Heron’s formula finds the area from the semiperimeter. The area also equals one half of each side times its matching perpendicular height, so the same area gives all three altitudes.

Enter the three side lengths

  • Enter A=a, B=b and C=c as the lengths of the three sides. Press EXE after each value. Give all three lengths explicitly in the same unit; the program does not accept an angle in place of a side.
  • The sides must be positive and satisfy each strict triangle inequality. A zero or negative side, or a degenerate or impossible triangle, produces −1 rather than an area.

Read area and matching heights

  • Read S, hₐ, hᵦ and h꜀ in that order. hₐ is perpendicular to the entered side a, hᵦ to b and h꜀ to c; internal sorting does not change this order. Press EXE between Disp screens and AC after the last height.
  • Area uses square units and each height uses the input length unit. A displayed −1 means invalid sides and is not a geometric area or height.

Question types

  • Original HKDSE Mathematics Compulsory Part practice: Heron’s formula, the altitude to a chosen base and exact surd answers for a scalene triangle. Show a written derivation rather than only calculator output.

Before you start

  • Use COMP / Deg / Norm 1 and an empty P1 with at least 162 bytes available. P1–P4 share 680 bytes. A, B, C, D, X, Y and M are used or overwritten.
  • Enter three side lengths a, b, c, not two sides and an angle. All must be positive and satisfy a+b>c, b+c>a and c+a>b. Invalid or degenerate triangles display −1.
  • A, B and C keep the entered side order for the height outputs. The internal working variables are sorted, but hₐ, hᵦ and h꜀ still correspond to a, b and c respectively.
  • Enter all three numbers explicitly. A blank EXE can retain an earlier stored side and therefore give a misleading result; entering 0 is different and makes the triangle invalid.
  • Use one length unit for all sides. S is in its square unit, and the heights are in the original length unit. Preserve exact radicals where possible; LCD values are rounded displays.
  • For nearly degenerate triangles, subtraction in the area calculation can lose precision. Extremely large values can overflow. Check surprising values with a separate written calculation.
  • No angle function is used, so Deg and Rad give the same mathematical answer. Deg is used in the walkthrough. The program does not explain why the triangle inequality holds.

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.