Two sides of a triangle have lengths and . The length of the third side is a root of
Find the perimeter of the triangle.
Solve the quadratic to get the candidates. Factor by finding two numbers with product and sum :
Both are positive, so both survive the obvious "a length must be positive" filter - and that is exactly the trap this problem is built around.
Recall the constraint the quadratic knows nothing about. Three positive numbers form a triangle only if each side is shorter than the sum of the other two. With the two known sides and , the third side must satisfy
Test . Here , which is equal to the remaining side rather than greater than it. The three segments would lie flat in a straight line, giving a degenerate figure with no area, so must be rejected.
Test . Check all three inequalities: , , and . All hold strictly, so a genuine triangle with sides , , exists - in fact the familiar right triangle, since .
Compute the perimeter. Only one root is admissible, so there is a single answer:
Answering " or " is the standard mistake: it comes from using both roots without applying the triangle inequality.
Need to solve a different problem like this? Open the solver →