Worked example: Derivative of log₄(x²+x) using the chain rule