The line AD is called a cevian. Stewart's theorem finds its length from the three sides and the position of D. It follows by applying the cosine rule to angles ADB and ADC, which are supplementary so their cosines are opposite, and eliminating the cosine.
Special cases: if D is the midpoint then m=n=2a and the result is Apollonius' theorem for the median; if D is the foot of the bisector then m,n come from the angle bisector theorem; and if AD is an altitude, Pythagoras applies in both small triangles.
For the 13-14-15 triangle, with a=14, b=15, c=13, the median has d2=148 and the altitude from A has d=12. The theorem is used together with Heron's formula and with Ceva's theorem in problems on triangle lengths, and the area in the area of a triangle gives a check.
What is it used for?
Stewart's theorem gives the length of any line from a vertex to the opposite side.
Finding medians, bisectors and altitudes.
Triangle geometry problems.
Checking lengths with coordinates.
How to use stewart's theorem
Label the sides a,b,c and the segments m=BD, n=DC.
Write b2m+c2n=a(d2+mn).
Substitute the known values.
Solve for d2 and take the square root.
Graph
Both dashed lines satisfy Stewart's equation with a = 14, b = 15, c = 13.
Worked examples
These examples are worked by hand, step by step, so you can compare your own working.
Example 1: median
In a triangle with a=14, b=15, c=13, find the median from A.
Worked example
Answer
148≈12.17
m = n = 7
225⋅7+169⋅7=14(d2+49)
Simplify
2758=14d2+686⇒d2=148
Length
d=148≈12.17
Example 2: altitude
In the same triangle, the foot of the altitude from A has m=5, n=9. Check that d=12.
Worked example
Answer
2646=2646
Left side
225⋅5+169⋅9=2646
Right side
14(144+45)=14⋅189=2646
Example 3: angle bisector
In a triangle with a=5, b=4, c=6, find the bisector length from A (here m=3, n=2).
Worked example
Answer
32≈4.243
Equation
16⋅3+36⋅2=5(d2+6)
Solve
120=5d2+30⇒d2=18
Length
d=32
Special cases
A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.
a = 7, b = 5, c = 6, median (m = n = 3.5)
d² = (b²m + c²n)/a − mn
18.25.
Median length
√18.25
4.2720.
Median formula check
(2b² + 2c² − a²)/4
18.25.
Angle bisector from A
bc(1 − a²/(b+c)²)
17.8512.
Word problems
b²m + c²n = a(d² + mn), where D divides BC = a into BD = m, DC = n and AD = d. For a median it reduces to the median-length formula.
d² for the median
a = 7, b = 5, c = 6, m = n = 3.5.
(87.5 + 126)/7 − 12.25
Check: ✓18.25
Median length
√18.25.
4.272
Check: ✓4.272
Check with the median formula Higher
(2b² + 2c² − a²)/4.
(50 + 72 − 49)/4
Check: equal ✓18.25
Angle bisector Higher
d² = bc(1 − a²/(b + c)²).
30 × 0.595
Check: ✓17.8512
Common mistakes
Swapping m and n
b²n + c²m ✗
b²m + c²n ✓
Opposite sides.
Forgetting mn
a d² only ✗
a(d² + mn) ✓
Extra term.
Using a for the cevian
confusion ✗
a = BC, d = AD ✓
Labels.
Median needs equal m, n
general ✗
special case m = n ✓
Formula.
Exam tips
b²m + c²n = a(d² + mn).
m, n are the two parts of a.
Median: m = n = a/2.
Check with the median formula.
Angle bisector via the bisector theorem.
Practice questions
Try each one on paper, then open the answer. Use the solver above to see the full working.
1. Median² for 5-6-7 (a = 7) Foundation
18.25
2. Median² for 3-4-5 to the hypotenuse (a = 5, b = 3, c = 4) Foundation
6.25
3. Median² for 13-14-15 to side 14 (b = 13, c = 15) Foundation
148
4. Median to the hypotenuse of 6-8-10 (half hypotenuse) Higher
5
5. Median² for equilateral side 2 Higher
3
6. RHS a(d² + mn) with a = 7, d² = 18.25, mn = 12.25 Higher
213.5
Practice generator
Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.