Section 2.5 #10:

Problem: Take the derivative of the function $f(x)=(\frac{8x^2-5}{2-x})^3$

Solution:
Taking this derivative will involve the chain rule AND the quotient rule. First we use the chain rule:

$f'(x)=\frac{d}{dx}(\frac{8x^2-5}{2-x})^3$

$f'(x)=3(\frac{8x^2-5}{2-x})^2(\frac{d}{dx}(\frac{8x^2-5}{2-x}))$

Side quest: evaluate $\frac{d}{dx}(\frac{8x^2-5}{2-x})$. We are going to use the quotient rule here.

$\frac{d}{dx}(\frac{8x^2-5}{2-x})$

$= \frac{(2-x)\frac{d}{dx}(8x^2-5)-(8x^2-5)\frac{d}{dx}(2-x)}{(2-x)^2}$

$= \frac{(2-x)(16x-0)-(8x^2-5)(0-1)}{(2-x)^2}$

$= \frac{(2-x)(16x)-(8x^2-5)(-1)}{(2-x)^2}$

When you do the quotient rule, be very careful to distribute the negative sign you get when subtracting correctly, this is where many people screw up!!! Note here, in this example, we also have the $-1$ to distribute as well, making keeping track of whether things are positive or negative even more complicated.

$= \frac{32x-16x^2+8x^2-5}{(2-x)^2}$

$= \frac{32x-8x^2-5}{(2-x)^2}$

Cool... Now we plug the value we just calculated of 

$\frac{d}{dx}(\frac{8x^2-5}{2-x})$ 

back into 
$f'(x)=3(\frac{8x^2-5}{2-x})^2(\frac{d}{dx}(\frac{8x^2-5}{2-x}))$

to get

$f'(x)=3(\frac{8x^2-5}{2-x})^2(\frac{32x-8x^2-5}{(2-x)^2})$

This is an acceptable answer. We could however write it a little nicer using the properties of exponents:

$f'(x)=3(\frac{(8x^2-5)^2}{(2-x)^2})(\frac{32x-8x^2-5}{(2-x)^2})$

$f'(x)=\frac{3(32x-8x^2-5)(8x^2-5)^2}{(2-x)^4}$