Skip to main contentSkip to solution

The general solution of the differential equation dydx+ytan⁡x=sec⁡x\frac{dy}{dx} + y \tan x = \sec x

Solution

✅ Correct Option: 1

The given differential equation is dydx+ytan⁡x=sec⁡x\frac{dy}{dx} + y\tan x = \sec x

This is a first-order linear differential equation of the form dydx+P(x)⋅y=Q(x)\frac{dy}{dx} + P(x) \cdot y = Q(x) where P(x)=tan⁡xP(x) = \tan x and Q(x)=sec⁡xQ(x) = \sec x.


The integrating factor is IF=e∫P(x)dx=e∫tan⁡xdxIF = e^{\int P(x)dx} = e^{\int \tan x dx}

∫tan⁡x dx=∫sin⁡xcos⁡xdx\int \tan x \, dx = \int \frac{\sin x}{\cos x} dx

Let u=cos⁡xu = \cos x, then du=−sin⁡x dxdu = -\sin x \, dx

=−∫1udu= -\int \frac{1}{u} du

=−ln⁡∣u∣= -\ln|u|

=−ln⁡∣cos⁡x∣= -\ln|\cos x|

=ln⁡∣sec⁡x∣= \ln|\sec x|

Therefore IF=eln⁡∣sec⁡x∣=sec⁡xIF = e^{\ln|\sec x|} = \sec x


Multiplying the entire equation by sec⁡x\sec x:

sec⁡x⋅dydx+ysec⁡xtan⁡x=sec⁡2x\sec x \cdot \frac{dy}{dx} + y \sec x \tan x = \sec^2 x

The left side is the derivative of (ysec⁡x)(y \sec x) by the product rule.

ddx(ysec⁡x)=sec⁡2x\frac{d}{dx}(y\sec x) = \sec^2 x


Integrating both sides:

∫ddx(ysec⁡x) dx=∫sec⁡2x dx\int \frac{d}{dx}(y\sec x) \, dx = \int \sec^2 x \, dx

ysec⁡x=tan⁡x+cy\sec x = \tan x + c

ysec⁡x−tan⁡x=cy\sec x - \tan x = c

where cc is an arbitrary constant.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question