Skip to content
Exercise 9.5 · Q4

Q.Solve the following differential equation: dydx+(sec⁡x)y=tan⁡x(0≤x<π2)\frac{dy}{dx} + (\sec x) y = \tan x \quad \left(0 \le x < \frac{\pi}{2}\right)

Yanam CbseNCERTSubjective· 3mImportance★★★★★
39% · 86/222 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

This is a first-order linear ODE solved using the Integrating Factor method. The integrating factor is sec⁡x+tan⁡x\sec x + \tan x, and the general solution is y=1−xsec⁡x+tan⁡x+Csec⁡x+tan⁡xy = 1 - \frac{x}{\sec x + \tan x} + \frac{C}{\sec x + \tan x}.

The equation dydx+(sec⁡x)y=tan⁡x\frac{dy}{dx} + (\sec x) y = \tan x is a classic first-order linear differential equation. The standard form is dydx+P(x)y=Q(x)\frac{dy}{dx} + P(x) y = Q(x), and the method of integrating factors is designed exactly for this.

Why does the integrating factor work? The idea is to multiply the entire equation by a cleverly chosen function I(x)I(x) so that the left-hand side becomes the derivative of a product — specifically, ddx[I(x)⋅y]\frac{d}{dx}[I(x) \cdot y]. This turns the problem into a simple integration. The magic is that I(x)=e∫P(x) dxI(x) = e^{\int P(x) \, dx} always does the job, because:

  • ddx(Iy)=Idydx+I′y\frac{d}{dx}(I y) = I \frac{dy}{dx} + I' y
  • If I′=IPI' = I P, then this equals Idydx+IPy=I(dydx+Py)I \frac{dy}{dx} + I P y = I(\frac{dy}{dx} + P y)
  • So multiplying by II collapses the left side into a single derivative.

Let's apply this step by step.

  1. Identify P(x)P(x) and Q(x)Q(x).

    Here, P(x)=sec⁡xP(x) = \sec x and Q(x)=tan⁡xQ(x) = \tan x. The domain is 0≤x<π20 \le x < \frac{\pi}{2}, where both sec⁡x\sec x and tan⁡x\tan x are positive and well-defined.

  2. Compute the integrating factor I(x)=e∫P(x) dxI(x) = e^{\int P(x) \, dx}.

    We need ∫sec⁡x dx\int \sec x \, dx. This is a standard integral with a clever trick:

∫sec⁡x dx=∫sec⁡x⋅sec⁡x+tan⁡xsec⁡x+tan⁡x dx=∫sec⁡2x+sec⁡xtan⁡xsec⁡x+tan⁡x dx\int \sec x \, dx = \int \sec x \cdot \frac{\sec x + \tan x}{\sec x + \tan x} \, dx = \int \frac{\sec^2 x + \sec x \tan x}{\sec x + \tan x} \, dx

Notice the numerator is exactly the derivative of the denominator: ddx(sec⁡x+tan⁡x)=sec⁡xtan⁡x+sec⁡2x\frac{d}{dx}(\sec x + \tan x) = \sec x \tan x + \sec^2 x. So:

∫sec⁡x dx=log⁡∣sec⁡x+tan⁡x∣+C\int \sec x \, dx = \log |\sec x + \tan x| + C

Since xx is in the first quadrant, sec⁡x+tan⁡x>0\sec x + \tan x > 0, so we can drop the absolute value. Thus:

I(x)=elog⁡(sec⁡x+tan⁡x)=sec⁡x+tan⁡xI(x) = e^{\log(\sec x + \tan x)} = \sec x + \tan x

Tip

The integral ∫sec⁡x dx\int \sec x \, dx is a common exam trap. Many students memorize log⁡∣sec⁡x+tan⁡x∣\log|\sec x + \tan x|, but the derivation above shows why it works — it's a clever use of the uu-substitution u=sec⁡x+tan⁡xu = \sec x + \tan x. Keep this trick handy.

  1. Multiply the ODE by the integrating factor. The original equation is:

dydx+(sec⁡x)y=tan⁡x\frac{dy}{dx} + (\sec x) y = \tan x

Multiply through by I(x)=sec⁡x+tan⁡xI(x) = \sec x + \tan x:

(sec⁡x+tan⁡x)dydx+(sec⁡x+tan⁡x)(sec⁡x)y=(sec⁡x+tan⁡x)tan⁡x(\sec x + \tan x) \frac{dy}{dx} + (\sec x + \tan x)(\sec x) y = (\sec x + \tan x) \tan x

The left-hand side should now be ddx[(sec⁡x+tan⁡x)y]\frac{d}{dx}[(\sec x + \tan x) y]. Let's verify quickly:

ddx[(sec⁡x+tan⁡x)y]=(sec⁡x+tan⁡x)dydx+(sec⁡xtan⁡x+sec⁡2x)y\frac{d}{dx}[(\sec x + \tan x) y] = (\sec x + \tan x) \frac{dy}{dx} + (\sec x \tan x + \sec^2 x) y

And (sec⁡x+tan⁡x)(sec⁡x)=sec⁡2x+sec⁡xtan⁡x(\sec x + \tan x)(\sec x) = \sec^2 x + \sec x \tan x, which matches. Perfect.

  1. Rewrite and integrate. The equation becomes: ddx[(sec⁡x+tan⁡x)y]=(sec⁡x+tan⁡x)tan⁡x\frac{d}{dx}[(\sec x + \tan x) y] = (\sec x + \tan x) \tan x …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.