document.write( "Question 1207016: one leg of a right triangle is 2 cm longer than the other leg, hypotenuse is 7 cm longer than the shorter leg. find the lengths of three sides of the right triangle \n" ); document.write( "
Algebra.Com's Answer #844818 by math_tutor2020(3817)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "a = x = shorter leg
\n" ); document.write( "b = x+2 = longer leg
\n" ); document.write( "c = x+7 = hypotenuse\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The Pythagorean Theorem
\n" ); document.write( "a^2+b^2 = c^2
\n" ); document.write( "leads to
\n" ); document.write( "x^2+(x+2)^2 = (x+7)^2\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Expand everything out and get everything to one side to end up with this
\n" ); document.write( "x^2 - 10x - 45 = 0\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Use of the quadratic formula will lead to:
\n" ); document.write( "x = 5 + sqrt(70) = 13.3666 or x = 5 - sqrt(70) = -3.3666
\n" ); document.write( "The decimal values are approximate.
\n" ); document.write( "The negative solution is tossed out since we cannot have a negative side length.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "x = 13.3666 leads to,
\n" ); document.write( "x+2 = 13.3666+2 = 15.3666
\n" ); document.write( "x+7 = 13.3666+7 = 20.3666\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Summary
\n" ); document.write( "The sides of the right triangle are
\n" ); document.write( "a = 13.3666
\n" ); document.write( "b = 15.3666
\n" ); document.write( "c = 20.3666
\n" ); document.write( "Each value is approximate.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Check:
\n" ); document.write( "a^2+b^2 = c^2
\n" ); document.write( "13.3666^2+15.3666^2 = 20.3666^2
\n" ); document.write( "414.79839112 = 414.79839556
\n" ); document.write( "The two sides aren't an exact match, but they're very close.
\n" ); document.write( "We have a bit of rounding error.
\n" ); document.write( "The decimal portion \"79839\" matches up at least.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Another way to check:
\n" ); document.write( "a^2+b^2 = c^2
\n" ); document.write( "a^2+b^2-c^2 = 0
\n" ); document.write( "13.3666^2+15.3666^2-20.3666^2 = 0
\n" ); document.write( "-0.00000444 = 0
\n" ); document.write( "Note the first five decimal digits are 0 to indicate we have those decimal digits matching in the previous check section (the \"79839\" portion).
\n" ); document.write( "
\n" ); document.write( "
\n" );