Carefully expand the expression on the left side of the equation.
(x2+bx−1)(x+1)
x3+bx2−x+x2+bx−1
Rearranging and combining like terms:
x3+bx2+x2+bx−x−1
x3+(b+1)x2+(b−1)x−1
Comparing corresponding parts of both equations:
x3+(b+1)x2+(b−1)x−1=x3+3x2+x−1
Quadratic terms
(b+1)x2=3x2
b+1=3
b=2
Linear terms
(b−1)x=x
b−1=1
b=2
It is not often necessary to expand the entire expression and simplify. If we can identify from the initial expression that there will only be two components that form the quadratic term (x2), we can jump straight to the solution.
(x2+bx−1)(x+1)=x3+3x2+x−1
The only terms that contribute to the quadratic coefficient are x2⋅1 and bx⋅x .
Therefore, bx2 and x2 must combine to form 3x2.
b must be 2.
A similar approach can be used for the components that form the linear term to obtain the value of b.