Question

Difficulty: MediumDifferentiation of Trigonometric, Exponential, and Logarithmic Functions

If y=ln(e3xcosx)y = \ln(e^{3x} \cos x), what is dydx\frac{dy}{dx}?

  1. A
    3+tanx3 + \tan x
  2. 3tanx3 - \tan xAnswer
  3. C
    3cotx3 - \cot x
  4. D
    3+cotx3 + \cot x

Answer

3tanx3 - \tan x
Applying the product rule for logarithms converts y=ln(e3xcosx)y = \ln(e^{3x} \cos x) into y=3x+ln(cosx)y = 3x + \ln(\cos x). Differentiating 3x3x yields 33, and differentiating ln(cosx)\ln(\cos x) by chain rule yields sinxcosx=tanx\frac{-\sin x}{\cos x} = -\tan x. Combining these gives 3tanx3 - \tan x.

Step-by-Step Solution

1
Simplify the logarithmic function using log laws
y=ln(e3x)+ln(cosx)=3x+ln(cosx)y = \ln(e^{3x}) + \ln(\cos x) = 3x + \ln(\cos x)
Splitting the logarithm of a product simplifies the differentiation process.
2
Differentiate each term with respect to xx
\frac{dy}{dx} = \frac{d}{dx}(3x) + \frac{d}{dx}(\ln(\cos x)) = 3 + \frac{1}{\cos x} \cdot (-\sin x)
The derivative of 3x3x is 33, and applying the chain rule to ln(u)\ln(u) gives 1ududx\frac{1}{u} \cdot \frac{du}{dx} where u=cosxu = \cos x.
3
Simplify the trigonometric ratio
\frac{dy}{dx} = 3 - \frac{\sin x}{\cos x} = 3 - \tan x
Replacing sinxcosx\frac{\sin x}{\cos x} with tanx\tan x yields the simplified final derivative.

Key Concept

Differentiation of Logarithmic and Trigonometric Functions via Chain Rule and Log Laws
Rate this question