document.write( "Question 511717: One leg of a right triangle is 2cm longer than the other leg and 2 cm shorter than the hypotenuse. What is the length of each side? pls. help \n" ); document.write( "
Algebra.Com's Answer #342376 by nerdybill(7384)\"\" \"About 
You can put this solution on YOUR website!
One leg of a right triangle is 2cm longer than the other leg and 2 cm shorter than the hypotenuse. What is the length of each side?
\n" ); document.write( ".
\n" ); document.write( "Let x = length of short leg
\n" ); document.write( "then
\n" ); document.write( "x+2 = length of long leg
\n" ); document.write( "x+2+2 = x+4 = length of hypotenuse
\n" ); document.write( ".
\n" ); document.write( "applying pythagorean:
\n" ); document.write( "x^2 + (x+2)^2 = (x+4)^2
\n" ); document.write( "x^2 + (x+2)(x+2) = (x+4)(x+4)
\n" ); document.write( "x^2 + x^2+4x+4 = x^2+8x+16
\n" ); document.write( "2x^2+4x+4 = x^2+8x+16
\n" ); document.write( "x^2+4x+4 = 8x+16
\n" ); document.write( "x^2-4x+4 = 16
\n" ); document.write( "x^2-4x-12 = 0
\n" ); document.write( "(x-6)(x+2) = 0
\n" ); document.write( "x = {-2,6}
\n" ); document.write( "throw out negative solution (extraneous) leaving
\n" ); document.write( "x = 6 cm (short leg)
\n" ); document.write( ".
\n" ); document.write( "Long leg:
\n" ); document.write( "x+2 = 6+2 = 8 cm
\n" ); document.write( ".
\n" ); document.write( "hypotenuse:
\n" ); document.write( "x+4 = 6+4 = 10 cm\r
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );