x^3-1

问题描述:

x^3-1
f(x)= -------- x不等于+1或-1,
x^2-1
x^2+x+1
g(x)=---------- x不等于-1,或2
x^2-x-2
如果f(x)除以g(x)=ax+b,求a和b.

f(x)/g(x)=(x^3-1)(x^2-x-2)/[(x^2-1)(x^2+x+1)]
=(x-1)(x^2+x+1)(x-2)(x+1)/[(x-1)(x+1)(x^2+x+1)]
=x-2
f(x)/g(x)=x-2=ax+b
a=1,b=-2