I have a function that is
$f(x) = \frac{(10x^2)(x^2-3)}{(x^2 -1)^2}$
I need to find the derivative of this function, and I simplify the numerator so the equation looks like $f(x) = \frac{(10x^4-30x^2)}{(x^2 - 1)^2}$. I am using the derivative quotient rule to solve the entire problem and I use the derivative product rule in the numerator.
So I do $f'(x) = \frac{\frac{d}{dx}(10x^4-30x^2)*(x^2 -1)^2 - (10x^4 - 30x^2)\frac{d}{dx}(x^2 - 1)^2}{(x^2 - 1)^4}$
I apply the chain rule to the $\frac{d}{dx}(x^2 - 1)^2$ but I end up with $40x^3+10x^4-90x^2-40x^7+160x^5-120x^3$ in the numerator, which is wrong because the answer in the book the answer for the equation is $f'(x) = \frac{20x(x^2-3)}{(x^2 -1)^3}$. Can someone help me figure out what I am doing wrong?
$\frac {d}{dx}( \frac{(10x^2)(x^2-3)}{(x^2 -1)^2})\\ \frac {(x^2 - 1)^2\left((20x)(x^2 -3) + (10x^2)(2x)\right) - \left(2(x^2 - 1)(2x)\right)(10x^2)(x^2 - 3)}{(x^2-1)^4}$
Every term in the numerator has a factor of $(x^2 - 1)$ that cancels with the denominator.
$\frac {(x^2 - 1)\left((20x)(x^2 -3) + (10x^2)(2x)\right) - (4x)(10x^2)(x^2 - 3)}{(x^2-1)^3}$
And every term has a $20x$ factor, which we can take to the front.
$\frac {20x \left( (x^2 - 1)(2x^2 -3) - (2x^2)(x^2 - 3)\right)}{(x^2-1)^3}$
Multiplying out the numerator and simplify. It looks like the $x^4$ terms cancel.
$\frac {20x( 2x^4 - 5x^2 + 3 - 2x^4 + 6x^2)}{(x^2-1)^3}\\ \frac {20x(x^2 + 3)}{(x^2-1)^3}\\ $