Draw triangle ABC and a line DE parallel to BC, with D on AB and E on AC. The basic proportionality theorem (also called Thales' theorem) says the line cuts the two sides in the same ratio:
If DE ∥ BC, then AD/DB = AE/EC and also AD/AB = AE/AC = DE/BC
The second form compares the small triangle ADE with the whole triangle ABC. They are similar, because the parallel line creates equal corresponding angles. Watch which ratio a question uses: AD/DB compares the two parts of a side, while AD/AB compares a part with the whole side.
Worked example 1: finding a segment
DE ∥ BC, AD = 3 cm, DB = 2 cm and AE = 4.5 cm. Then 3/2 = 4.5/EC, so EC = 4.5 × 2/3 = 3 cm.
Worked example 2: the parallel side itself
AD = 4 cm, AB = 10 cm and BC = 15 cm. DE/BC = AD/AB, so DE = 15 × 4/10 = 6 cm. Using AD/DB here would give the wrong answer, because DE is compared with the whole of BC.