My question is to find the first derivative using product and/or quotient rule
$$f(x) = {(x^2+1)(x^2-2) \over 3x+2}.$$
The solution to the problem is: $$f'(x) = {[(2x)(x^2-2)+(x^2+1)(2x)](3x+2)-(3)[(x^2+1)(x^2-2)] \over (3x+2)^2}.$$
I'm having problems getting the same solution would someone be able to help me by showing me the correct way of getting the first derivative of this question
HINT
Let apply the following
$$\left(\frac{f(x)}{g(x)}\right)'=\frac{f'(x)\cdot g(x)-g'(x)f(x)}{g^2(x)}$$
with $$f(x)=p(x)\cdot q(x) \implies f'(x)=p'(x)\cdot q(x)+p(x)\cdot q'(x)$$