最初由 Sceleton JACK 发布
这回计算对了得1
最初由 白米饭 发布
First, we know f(x) = q(x)g(x) + r(x)
Now, we have g(x) = (x+1)(x-1), find r(x)?
And we also know f(-1) = 1, f(1) = 3, sub in the first equation
f(-1) = q(-1)(-1+1)(-1-1) + r(-1) = 1
f(1) = q(1)(1+1)(1-1) + r(1) = 3
then becomes r(-1) =1 or r(1) = 3, since (x+1)(x-1) is a polynomial with degree of 2
then r(x) is a polynomial with dregree of one or zero(constant)
so, assume r(x) = ax + b, then
1 = a(-1) + b
3 = a(1) + b
...... problem solve