The formula to differentiate UV is:
d(UV)/dx = U(dV/dx)+ V(dU/dx)