Let f(x)=x¹⁰+5x⁹−8x⁸+7x⁷−x⁶−12x⁵+4x⁴−8x³+12x²−5x−5.

Without using long division (which would be horribly nasty!), find the reminder when f(x) is divided by x²−1.