document.write( "Question 1183613: The expression ax^3 + bx^2 - 5x + 2a is exactly divisible by x^2 - 3x - 4. Calculate the value of a and of b and factorise the expression completely. \n" ); document.write( "
Algebra.Com's Answer #814032 by greenestamps(13216)\"\" \"About 
You can put this solution on YOUR website!


\n" ); document.write( "And here is a third and very different way to solve the problem....

\n" ); document.write( "We need to have

\n" ); document.write( "\"%28px%2Bq%29%28x%5E2-3x-4%29=ax%5E3%2Bbx%5E2-5x%2B2a\"

\n" ); document.write( "Perform the multiplication on the left...

\n" ); document.write( "\"px%5E3%2B%28q-3p%29x%5E2%2B%28-4p-3q%29x%2B%28-4q%29\"

\n" ); document.write( "... and equate coefficients:

\n" ); document.write( "x^3: p=a [1]
\n" ); document.write( "x^2: q-3p=b [2]
\n" ); document.write( "x: -4p-3q=-5 [3]
\n" ); document.write( "constant: -4q=2a --> q=-0.5a [4]

\n" ); document.write( "We have 4 equations in 4 unknowns, which could have led to a messy solution. But things work out nicely....

\n" ); document.write( "Substitute [1] and [4] into [3]:
\n" ); document.write( "-4a+1.5a=-5
\n" ); document.write( "-2.5a=-5
\n" ); document.write( "a=2

\n" ); document.write( "Then
\n" ); document.write( "p=a=2
\n" ); document.write( "q=-0.5a = -1
\n" ); document.write( "b = q-3p=-1-6=-7

\n" ); document.write( "ANSWER: a=2; b=-7 (and p=2; q=-1)

\n" ); document.write( "CHECK:
\n" ); document.write( "\"%282x-1%29%28x%5E2-3x-4%29=2x%5E3-7x%5E2-5x%2B4=ax%5E3%2Bbx%5E2-5x%5E2%2B2a%29\"

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