Question
Question: How do you find the derivative of \(y = \ln \left| {\sec x + \tan x} \right|\)?...
How do you find the derivative of y=ln∣secx+tanx∣?
Solution
First of all, substitute secx+tanx to some variable. Then apply the chain rule of differentiation which is dxdy=dtdy×dxdt. Differentiate it step by step and use formulas dxdsecx=secxtanx and dxdtanx=sec2x. Replace the variable with secx+tanx to get the answer.
Complete step-by-step solution:
According to the question, we have been given a function and we have to determine the derivative of it.
The given function is:
⇒y=ln∣secx+tanx∣
We know that logarithm is defined only for positive values so anything under logarithm must always be positive. Thus we can remove the modulus from the equation. So we have:
⇒y=ln(secx+tanx)
If we substitute secx+tanx=t in the equation, we will get:
⇒y=lnt
Now differentiating the function with respect to x, we’ll get:
⇒dxdy=dxdlnt
Here we will apply chain rule of differentiation. This rule is stated below:
⇒dxdy=dtdy×dxdt
So applying this rule in our differentiation, we’ll get:
⇒dxdy=dtdlnt×dxdt
We know that the differentiation of lnx is x1, using this, we have:
⇒dxdy=t1×dxdt
Putting back the value of t, we’ll get:
⇒dxdy=(secx+tanx)1×dxd(secx+tanx)
Differentiating it step by step, we’ll get:
⇒dxdy=(secx+tanx)1(dxdsecx+dxdtanx)
From the formulas of differentiation, we have:
⇒dxdsecx=secxtanx and dxdtanx=sec2x
Putting these formulas, we’ll get:
⇒dxdy=(secx+tanx)1(secxtanx+sec2x)
Simplifying it further, we’ll get:
⇒dxdy=(secx+tanx)1(tanx+secx)secx
Cancelling (tanx+secx) from both numerator and denominator, we have:
⇒dxdy=secx
secx is the required answer.
Note: Whenever we have to differentiate a composite function, we always use the chain rule of differentiation after substitution. This makes a complex looking function simple from where we can differentiate step by step. For example, consider the given composite function:
⇒y=f(g(x))
To differentiate this function, we’ll substitute g(x)=t, we will have:
⇒y=f(t)
Now we can apply chain rule of differentiation as shown below:
⇒dxdy=dxdf(t)×dxdt
Now this differentiation is simple and we can do it step by step. After doing this, we can put back the value of t to get the answer.