Derivative of $\ln\left(\cosh\left(x\right)\right)$
Differentiated with respect to x. Edit the function · Differentiation rules
Step-by-step solution
Input function
$$\ln\left(\cosh\left(x\right)\right)$$
Start of the differentiation
$$\frac{d}{dx}{\left[\ln\left(\cosh\left(x\right)\right)\right]}$$
Yellow: the expression being replaced. Green: its replacement.
Step 1 — Chain rule for the natural logarithm
Differentiation rule
📖 Rule
$$\frac{d}{dx}\big(\ln({u})\big) = \frac{u'}{{u}}$$
With:
- $u = \cosh\left(x\right)$
Why: The outer derivative of the natural logarithm is the reciprocal of its argument. The chain rule adds the derivative of the argument in the numerator.
🧮 Current expression
$$\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{d}{dx}{\left[\ln\left(\cosh\left(x\right)\right)\right]}\,}}}$$
✨ After: Chain rule for the natural logarithm
$$\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{\frac{d}{dx}{\left[\cosh\left(x\right)\right]}}{\cosh\left(x\right)}\,}}}$$
Step 2 — Derivative of the hyperbolic cosine
Differentiation rule
📖 Rule
$$\frac{d}{dx}\cosh\left(x\right)=\sinh\left(x\right)$$
Why: The argument is exactly x. Apply the known elementary derivative.
Changed part:
$\frac{d}{dx}{\left[\cosh\left(x\right)\right]} \;\Longrightarrow\; \sinh\left(x\right)$
🧮 Current expression
$$\frac{\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{d}{dx}{\left[\cosh\left(x\right)\right]}\,}}}}{\cosh\left(x\right)}$$
✨ After: Derivative of the hyperbolic cosine
$$\frac{\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\sinh\left(x\right)\,}}}}{\cosh\left(x\right)}$$
Final result
$$\frac{\sinh\left(x\right)}{\cosh\left(x\right)}$$
Valid where:
- $\cosh\left(x\right)>0$ – The logarithm argument must be positive.
The derivative is only valid where the original function is defined.
Cross-check with a computer algebra system
The derivative computed directly by the computer algebra system Maxima:
$$\frac{\sinh\left(x\right)}{\cosh\left(x\right)}$$
Step-by-step result ↔ Maxima: identical ✓