We can use the chain rule here, which states that the derivative of a composite function is the derivative of the outer function times the derivative of the inner function.
So, the derivative of $(x-1)^{2}$ is $2(x-1)$ and the derivative of the inner function
Show more…