In a recent Maths Challenge, students were told the area of a triangle (7cm2) and the length of two of its sides (6cm and 8cm), and asked how many possible lengths there were for the third side.

Heroic triangle

It’s easy enough to show there are two: let the base of the triangle AB be the 8cm side (purple). If the area of the triangle is 7cm2, the height of the triangle needs to be 74cm (which is less than 6cm); draw a line parallel to the base, 74cm away from it (the dashed line) and draw a circle with radius 8cm centred on one end of the base. Where the circle and line cross (at E and F), you have a possible apex for your triangle.

However, my student misunderstood the question and thought she needed to find the possible lengths of the third side. That’s a substantially harder question - especially in a non-calculator exam! However, it is possible - and you can get an exact answer. It’s just tricky.

I need a Hero, holding out for a Hero ‘til the end of the night

You need to use a formula for the area of a triangle you may not have seen before, known as Hero’s formula. If the sides are a, b and c:

Area=S(Sa)(Sb)(Sc), where the semiperimeter S=a+b+c2

Let’s let a=8 and b=6. To make the sums a little easier, I’m going to call our missing side 2x - because that makes the semiperimeter a nice, manageable S=7+x.

The right hand side of Hero’s formula looks awful, but it simplifies quite nicely: Sa works out to be x1; Sb=x+1, and Sc=7x.

So, squaring both sides and putting in 7 for the area: 49=(7+x)(x1)(x+1)(7x).

Do we have to multiply that out?!

Yup. Luckily, it’s easy if you spot you can use difference of two squares. (7+x)(7x)=49x2, and (x1)(x+1)=x21.

That means we’ve got something a bit more manageable:

49=(49x2)(x21)

That, we can multiply out:

49=49x249x4+x2, or (rearranging) x450x2+98=0

Oh no! It’s a quartic! These can be solved, in general, but we don’t need Cardano’s crazy formulas for this one, it’s a quadratic in disguise: we can just let y=x2 to turn it into:

y250y+98=0

Sadly, that doesn’t factorise, but you can complete the square and solve the traditional way:

(y25)2625+98=0

(y25)2=527

y25=±527 1

y=25±527

However, we made y up - it’s really x2:

x=25±527

And our side length is double that:

x=225±527.

Obviously, you’d use a calculator if you had one - I certainly did - but the Mathematical Ninja probably wouldn’t. He’d say that y was roughly 2.04 or 47.96, and take the square root to get something a bit more than 1.4 and something a bit short of 7 (it’s closer to 43), making the side length a little more than 2.8 or slightly short of 14, both of which fit with our pictures! (The answers are 2.86 and 13.85, which isn’t too shabby for work in our heads).

Does it work for all triangles?

A natural question for a mathematician: can you use the same technique to answer all questions of this kind? The answer, surprisingly, is yes - as long as solutions exist! If you let m be the mean of the sides you’re given (m=a+b2)and d be half the difference between them (d=ab2), the quartic ends up being x4(m2+d2)x2+(A+m2d2)=0, where A is the area.

If you were so inclined, you could work out a general formula for x- but I’ll leave that as an exercise!

Footnotes:

1. The square root of 527 is a smidge short of 23, of course. Off by about 123, since you ask, so it’s 22.96 or so.