4c. Find the first and second derivative.
To get the first derivative, we rewrite the function as
and use the chain rule. Haul the exponent down in front, raise the quantity inside the parentheses to one smaller power and multiply by the derivative of the inside function.
This can be rewritten as
The 2's cancel andwe are left with