We would let
[tex]\frac{x^5+x^3+2}{x^4-1}\equiv \frac{(ax+b)(x^4-1)+p(x)}{x^4-1} = ax+b + \frac{p(x)}{x^4-1}[/tex]
Where p(x) is a cubic polynomial or less (doesn't matter what it is exactly).If we expanded (ax+b)(x4-1) then we get
[tex]ax^5+bx^4-ax-b[/tex]
But we ignore the -ax-b term because that will be a part of p(x) which we've already said we don't care about. So we want the constant a to be chosen such that [itex]ax^5=x^5[/itex] since the coefficient of [itex]x^5[/itex] on the LHS must be equal to the RHS, hence a=1, and b must be chosen such that [itex]bx^4=0[/itex] for the same reason, hence b=0.
But we ignore the -ax-b term because that will be a part of p(x) which we've already said we don't care about.