If a cubic polynomial $P(x)$ with real coefficients has remainder 3 when divided by $x-1$ and remainder -7 when divided by $x+1$,
What is the remainder $ax+b$ when divided by $x^2-1$?
I see that since $$P(n) = ax^3 + bx^2 + cx + d$$ then $$P(1) = a + b + c + d = 3 $$ while $$P(-1) = -a + b - c + d = -7$$
I know $x^2-1$ is $(x-1)(x+1)$
I'm stuck here - how can I solve this? Could you please help?