The derivative of ln x is not ln(1/x). (See the definition box.)