document.write( "Question 79042: one positive integer is 4 more than another. the sum of their squares is 40. Find the numbers.
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #56718 by Earlsdon(6294)\"\" \"About 
You can put this solution on YOUR website!
Let the two numbers be a and b.
\n" ); document.write( "a = b+4 and
\n" ); document.write( "\"a%5E2%2Bb%5E2+=+40\" Substitute the a = b+4 here and solve for b.
\n" ); document.write( "\"%28b%2B4%29%5E2%2Bb%5E2+=+40\" Simplify.
\n" ); document.write( "\"%28b%5E2%2B8b%2B16%29%2Bb%5E2+=+40\"
\n" ); document.write( "\"2b%5E2%2B8b%2B16+=+40\" Now subtract 40 from both sides.
\n" ); document.write( "\"2b%5E2%2B8b-24+=+0\" Divide through by 2 to simplify.
\n" ); document.write( "\"b%5E2%2B4b-12+=+0\" Solve this quadratic equation by factoring.
\n" ); document.write( "\"%28b-2%29%28b%2B6%29+=+0\" Apply the zero products principle.
\n" ); document.write( "\"b-2+=+0\" or \"b%2B6+=+0\", so..
\n" ); document.write( "\"b+=+2\" or \"b=+-6\" Discard the negative solution as you are looking for positive integers only.
\n" ); document.write( "\"a+=+b%2B4\"
\n" ); document.write( "\"a+=+2%2B4\"
\n" ); document.write( "\"a+=+6\"
\n" ); document.write( "The two integers are: 2 and 6\r
\n" ); document.write( "\n" ); document.write( "Check:
\n" ); document.write( "\"2%5E2+%2B+6%5E2+=+4+%2B+36\" = 40
\n" ); document.write( "and...
\n" ); document.write( "\"2%2B4+=+6\"
\n" ); document.write( "
\n" );