If both x+1 and x−1 are factors of ax3+x2−2x+b, find the values of a and b
If (x+2) and (x-1) are factors of x3−(a+1)x2−(b+2)x+10=0, find the values of a and b