I don't understand how I should go about solving the following question:
Find the remainder when polynomial $f(x)=3x^{2019}+5x^{1019}-7x+4$ is divided by $x^2-1$.
I tried to use the factor theorem, but I never encountered a problem with a divisor which, in this case, is $(x+1)(x-1)$, so I simply found $f$ of both roots, so $f(1)$ and $f(-1)$.
Allegedly the remainder is a linear polynomial in the form $ax+b$ but I fail to see how they derived that fact. Apparently they made use of simultaneous equations, but I'm not sure how or why.
Any help would be appreciated!