document.write( "Question 768064: Let g(x)=3x-x^2. Find the difference quotient of g.\r
\n" ); document.write( "\n" ); document.write( "Here's what I have: (but, the -x^2 is causing me trouble). Are you able to tell me where I'm messing up? Here's what I have so far:
\n" ); document.write( "(x+h)^2+3(x+h)-(-x^2+3x)/h.
\n" ); document.write( "x^2+2xh+H^2+3x+3h+x^2-3x/h.
\n" ); document.write( "2x^2+2xh+h^2+3h/h.
\n" ); document.write( "2x^2+2x+h+3.
\n" ); document.write( "Something tells me this is not correct, though. Will you help me?!?
\n" ); document.write( "

Algebra.Com's Answer #468049 by josgarithmetic(39620)\"\" \"About 
You can put this solution on YOUR website!
\"%28g%28x%2Bh%29-g%28x%29%29%2Fh\"
\n" ); document.write( "\"%28%283%28x%2Bh%29-%28x%2Bh%29%5E2%29-%283x-x%5E2%29%29%2Fh\"
\n" ); document.write( "\"%283x%2B3h-%28x%5E2%2B2xh%2Bh%5E2%29-%283x2-x%5E2%29%29%2Fh\"
\n" ); document.write( "\"%283x%2B3h-x%5E2-2xh-h%5E2-3x%2Bx%5E2%29%2Fh\"
\n" ); document.write( "Watch for simplifications, cancellations within the numerator,
\n" ); document.write( "OKAY...
\n" ); document.write( "\"%283h-2xh-h%5E2%29%2Fh\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "EDIT: Corrected the mistake in my own work,\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "finish the simplification,
\n" ); document.write( "\"highlight%283-2x-h%29\"
\n" ); document.write( "
\n" );