← Back to learning objective

Chain rule with logarithm of a sum

Let g(x)=ln⁡(sec⁡(x)+tan⁡(x))g(x) = \ln(\sec(x) + \tan(x)). Find g′(x)g'(x).

Hint

Treat g(x)g(x) as ln⁡(u)\ln(u) where u=sec⁡(x)+tan⁡(x)u = \sec(x) + \tan(x). Apply the chain rule: differentiate the outer logarithm first, then multiply by the derivative of the inner expression uu, using ddx[sec⁡x]=sec⁡xtan⁡x\frac{d}{dx}[\sec x] = \sec x \tan x and ddx[tan⁡x]=sec⁡2x\frac{d}{dx}[\tan x] = \sec^2 x.

Step-by-step solution

Identify the outer function as f(u)=ln⁡(u)f(u) = \ln(u) and the inner function as u=sec⁡(x)+tan⁡(x)u = \sec(x) + \tan(x). By the chain rule, g′(x)=f′(u)⋅u′(x)=1sec⁡(x)+tan⁡(x)⋅ddx[sec⁡(x)+tan⁡(x)]g'(x) = f'(u)\cdot u'(x) = \dfrac{1}{\sec(x)+\tan(x)} \cdot \dfrac{d}{dx}[\sec(x)+\tan(x)]. Now compute the derivative of the inner function: ddx[sec⁡(x)+tan⁡(x)]=sec⁡(x)tan⁡(x)+sec⁡2(x)\dfrac{d}{dx}[\sec(x)+\tan(x)] = \sec(x)\tan(x) + \sec^2(x).

Substitute this back to get g′(x)=sec⁡(x)tan⁡(x)+sec⁡2(x)sec⁡(x)+tan⁡(x)g'(x) = \dfrac{\sec(x)\tan(x) + \sec^2(x)}{\sec(x)+\tan(x)}. Factoring sec⁡(x)\sec(x) from the numerator gives g′(x)=sec⁡(x)[tan⁡(x)+sec⁡(x)]sec⁡(x)+tan⁡(x)g'(x) = \dfrac{\sec(x)[\tan(x) + \sec(x)]}{\sec(x)+\tan(x)}, and the common factor (sec⁡(x)+tan⁡(x))(\sec(x)+\tan(x)) cancels, leaving the simplified result g′(x)=sec⁡(x)g'(x) = \sec(x).

Related problems

Practice similar Calculus problems interactively.

Start Closing the Gap