document.write( "Question 971441: Find the lengths of the sides if a right triangle if we know that the longer leg is 2 feet longer than the shorter leg, while the hypotenuse is 5 feet longer than the shorter leg. Set up the equation that models the relationship and then solve \n" ); document.write( "
Algebra.Com's Answer #593913 by amarjeeth123(569)\"\" \"About 
You can put this solution on YOUR website!
Let the shorter leg be x.
\n" ); document.write( "Then the longer leg is (x+2).
\n" ); document.write( "Then the hypotenuse is (x+5).
\n" ); document.write( "In a right angled triangle we have square of the hypotenuse is equal to sum of squares of the other two sides.
\n" ); document.write( "(x+5)^2=(x+2)^2+x^2
\n" ); document.write( "x^2+10x+25=x^2+4x+4+x^2
\n" ); document.write( "x^2+10x+25=2x^2+4x+4
\n" ); document.write( "x^2-6x-21=0
\n" ); document.write( "\n" ); document.write( "\n" ); document.write( " \n" ); document.write( "\n" ); document.write( "
Solved by pluggable solver: SOLVE quadratic equation with variable
Quadratic equation \"ax%5E2%2Bbx%2Bc=0\" (in our case \"1x%5E2%2B-6x%2B-21+=+0\") has the following solutons:
\n" ); document.write( "
\n" ); document.write( " \"x%5B12%5D+=+%28b%2B-sqrt%28+b%5E2-4ac+%29%29%2F2%5Ca\"
\n" ); document.write( "
\n" ); document.write( " For these solutions to exist, the discriminant \"b%5E2-4ac\" should not be a negative number.
\n" ); document.write( "
\n" ); document.write( " First, we need to compute the discriminant \"b%5E2-4ac\": \"b%5E2-4ac=%28-6%29%5E2-4%2A1%2A-21=120\".
\n" ); document.write( "
\n" ); document.write( " Discriminant d=120 is greater than zero. That means that there are two solutions: \"+x%5B12%5D+=+%28--6%2B-sqrt%28+120+%29%29%2F2%5Ca\".
\n" ); document.write( "
\n" ); document.write( " \"x%5B1%5D+=+%28-%28-6%29%2Bsqrt%28+120+%29%29%2F2%5C1+=+8.47722557505166\"
\n" ); document.write( " \"x%5B2%5D+=+%28-%28-6%29-sqrt%28+120+%29%29%2F2%5C1+=+-2.47722557505166\"
\n" ); document.write( "
\n" ); document.write( " Quadratic expression \"1x%5E2%2B-6x%2B-21\" can be factored:
\n" ); document.write( " \"1x%5E2%2B-6x%2B-21+=+1%28x-8.47722557505166%29%2A%28x--2.47722557505166%29\"
\n" ); document.write( " Again, the answer is: 8.47722557505166, -2.47722557505166.\n" ); document.write( "Here's your graph:
\n" ); document.write( "\"graph%28+500%2C+500%2C+-10%2C+10%2C+-20%2C+20%2C+1%2Ax%5E2%2B-6%2Ax%2B-21+%29\"

\n" ); document.write( "\n" ); document.write( "We have x=8.477
\n" ); document.write( "The shorter leg is 8.477 feet.
\n" ); document.write( "The longer leg is 10.477 feet.
\n" ); document.write( "The hypotenuse is 13.477 feet.
\n" ); document.write( "
\n" );