Derivative of $\ln\left(\sec\left(x\right)\right)$

Differentiated with respect to x. Edit the function · Differentiation rules

Step-by-step solution

Input function
$$\ln\left(\sec\left(x\right)\right)$$

Start of the differentiation
$$\frac{d}{dx}{\left[\ln\left(\sec\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 = \sec\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(\sec\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[\sec\left(x\right)\right]}}{\sec\left(x\right)}\,}}}$$
Step 2 — Derivative of the secant Differentiation rule
📖 Rule
$$\frac{d}{dx}\sec\left(x\right)=\sec\left(x\right)\,\tan\left(x\right)$$

Why: The argument is exactly x. Apply the known elementary derivative.

Changed part: $\frac{d}{dx}{\left[\sec\left(x\right)\right]} \;\Longrightarrow\; \sec\left(x\right)\,\tan\left(x\right)$
🧮 Current expression
$$\frac{\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{d}{dx}{\left[\sec\left(x\right)\right]}\,}}}}{\sec\left(x\right)}$$
✨ After: Derivative of the secant
$$\frac{\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\sec\left(x\right)\,\tan\left(x\right)\,}}}}{\sec\left(x\right)}$$
Step 3 — Cancel a common factor Simplification
📖 Rule
$$\frac{a^m}{a^n}=a^{m-n}$$

Why: The same factor appears in numerator and denominator. Cancelling subtracts the exponents. Points where this factor is zero remain excluded by the original conditions.

🧮 Current expression
$$\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{\sec\left(x\right)\,\tan\left(x\right)}{\sec\left(x\right)}\,}}}$$
✨ After: Cancel a common factor
$$\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\tan\left(x\right)\,}}}$$
Final result
$$\tan\left(x\right)$$
Valid where:
  • $\cos\left(x\right)\ne0$ – The function and its derivative are undefined at poles.
  • $\sec\left(x\right)>0$ – The logarithm argument must be positive.

The derivative is only valid where the original function is defined.

Copy link to this solution
Cross-check with a computer algebra system

The derivative computed directly by the computer algebra system Maxima:

$$\tan\left(x\right)$$

Step-by-step result ↔ Maxima: identical ✓