document.write( "Question 166813: The hypotenuse of a right triangle is 2.5 units long. The longer leg is 1.5 units longer than the shorter leg. Find the lengths of the sides of the triangle.\r
\n" ); document.write( "\n" ); document.write( "Please help me to get to the answer.
\n" ); document.write( "

Algebra.Com's Answer #122903 by nerdybill(7384)\"\" \"About 
You can put this solution on YOUR website!
The hypotenuse of a right triangle is 2.5 units long. The longer leg is 1.5 units longer than the shorter leg. Find the lengths of the sides of the triangle.
\n" ); document.write( ".
\n" ); document.write( "Let x = length of shorter leg
\n" ); document.write( "then from \"leg is 1.5 units longer than the shorter leg\"
\n" ); document.write( "x+1.5 = length of longer leg
\n" ); document.write( ".
\n" ); document.write( "Applying Pythagorean theorem:
\n" ); document.write( "x^2 + (x+1.5)^2 = 2.5^2
\n" ); document.write( "x^2 + x^2+3x+2.25 = 6.25
\n" ); document.write( "2x^2+3x+2.25 = 6.25
\n" ); document.write( "2x^2+3x-4 = 0
\n" ); document.write( ".
\n" ); document.write( "Since we can't factor, use the quadratic equation. Doing so will produce:
\n" ); document.write( "x = {0.851, -2.351}
\n" ); document.write( ".
\n" ); document.write( "We can toss out the negative solution leaving us with the sides as:
\n" ); document.write( "0.851 units and 2.351 units
\n" ); document.write( ".
\n" ); document.write( "The following is the details of the quadratic:
\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 \"2x%5E2%2B3x%2B-4+=+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=%283%29%5E2-4%2A2%2A-4=41\".
\n" ); document.write( "
\n" ); document.write( " Discriminant d=41 is greater than zero. That means that there are two solutions: \"+x%5B12%5D+=+%28-3%2B-sqrt%28+41+%29%29%2F2%5Ca\".
\n" ); document.write( "
\n" ); document.write( " \"x%5B1%5D+=+%28-%283%29%2Bsqrt%28+41+%29%29%2F2%5C2+=+0.850781059358212\"
\n" ); document.write( " \"x%5B2%5D+=+%28-%283%29-sqrt%28+41+%29%29%2F2%5C2+=+-2.35078105935821\"
\n" ); document.write( "
\n" ); document.write( " Quadratic expression \"2x%5E2%2B3x%2B-4\" can be factored:
\n" ); document.write( " \"2x%5E2%2B3x%2B-4+=+2%28x-0.850781059358212%29%2A%28x--2.35078105935821%29\"
\n" ); document.write( " Again, the answer is: 0.850781059358212, -2.35078105935821.\n" ); document.write( "Here's your graph:
\n" ); document.write( "\"graph%28+500%2C+500%2C+-10%2C+10%2C+-20%2C+20%2C+2%2Ax%5E2%2B3%2Ax%2B-4+%29\"

\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );