Q.Solve the following differential equation: dxdy+(secx)y=tanx(0≤x<2π)
🔒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 →Concept understanding — Integrating Factor Method
Integrating Factor Method
Some first-order differential equations refuse to separate — you cannot get all the y's on one side and all the x's on the other. The integrating factor method is the standard trick for a special (and very common) family of these: the linear first-order equation. The idea is beautifully simple: multiply the whole equation by one cleverly chosen function, and the messy left-hand side collapses into a single derivative that we can integrate directly.
The Standard Form
An equation is linear of first order if it can be written as
dxdy+Py=Q
where P and Q are functions of x alone (or constants). Notice y and dxdy appear only to the first power, and never multiplied together — that is what "linear" means here.
Always rearrange into this exact shape first. The coefficient of dxdy must be 1 before you read off P and Q.
The Integrating Factor
The magic multiplier is
I.F.=e∫Pdx.
Why this one? Multiply the equation by e∫Pdx:
e∫Pdxdxdy+Pe∫Pdxy=Qe∫Pdx.
By the product rule, the left-hand side is exactly dxd(y⋅e∫Pdx), because the derivative of e∫Pdx is Pe∫Pdx. So the equation becomes
dxd(y⋅I.F.)=Q⋅I.F.
The left side is now a single derivative — that is the whole point of choosing this factor.
The Solution
Integrate both sides with respect to x:
y⋅I.F.=∫(Q⋅I.F.)dx+C.
This is the general solution. In words: (solution) × (integrating factor) = integral of (Q × integrating factor), plus a constant.
A Quick Illustration
For dxdy+x1y=x, we read P=x1, Q=x. Then ∫Pdx=logx, so I.F.=elogx=x. The solution is
y⋅x=∫x⋅xdx+C=3x3+C.
--- …
The equation is linear in y with dxdy+P(x)y=Q(x), where P(x)=secx and Q(x)=tanx.
Step 1: Find the integrating factor
μ(x)=e∫P(x)dx=e∫secxdx=elog∣secx+tanx∣=secx+tanx.
Step 2: Multiply through
(secx+tanx)dxdy+(secx+tanx)secxy=(secx+tanx)tanx.
The left side is dxd[(secx+tanx)y].
Step 3: Integrate both sides
(secx+tanx)y=∫(secx+tanx)tanxdx.
Compute: secxtanx+tan2x=secxtanx+(sec2x−1). …
This is a first-order linear ODE solved using the Integrating Factor method. The integrating factor is secx+tanx, and the general solution is y=1−secx+tanxx+secx+tanxC.
The equation dxdy+(secx)y=tanx is a classic first-order linear differential equation. The standard form is dxdy+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) so that the left-hand side becomes the derivative of a product — specifically, dxd[I(x)⋅y]. This turns the problem into a simple integration. The magic is that I(x)=e∫P(x)dx always does the job, because:
- dxd(Iy)=Idxdy+I′y
- If I′=IP, then this equals Idxdy+IPy=I(dxdy+Py)
- So multiplying by I collapses the left side into a single derivative.
Let's apply this step by step.
-
Identify P(x) and Q(x).
Here, P(x)=secx and Q(x)=tanx. The domain is 0≤x<2π, where both secx and tanx are positive and well-defined.
-
Compute the integrating factor I(x)=e∫P(x)dx.
We need ∫secxdx. This is a standard integral with a clever trick:
∫secxdx=∫secx⋅secx+tanxsecx+tanxdx=∫secx+tanxsec2x+secxtanxdx
Notice the numerator is exactly the derivative of the denominator: dxd(secx+tanx)=secxtanx+sec2x. So:
∫secxdx=log∣secx+tanx∣+C
Since x is in the first quadrant, secx+tanx>0, so we can drop the absolute value. Thus:
I(x)=elog(secx+tanx)=secx+tanx
The integral ∫secxdx is a common exam trap. Many students memorize log∣secx+tanx∣, but the derivation above shows why it works — it's a clever use of the u-substitution u=secx+tanx. Keep this trick handy.
- Multiply the ODE by the integrating factor. The original equation is:
dxdy+(secx)y=tanx
Multiply through by I(x)=secx+tanx:
(secx+tanx)dxdy+(secx+tanx)(secx)y=(secx+tanx)tanx
The left-hand side should now be dxd[(secx+tanx)y]. Let's verify quickly:
dxd[(secx+tanx)y]=(secx+tanx)dxdy+(secxtanx+sec2x)y
And (secx+tanx)(secx)=sec2x+secxtanx, which matches. Perfect.
- Rewrite and integrate. The equation becomes: dxd[(secx+tanx)y]=(secx+tanx)tanx …
Method: Integrating factor when P involves secx
Use this for a linear equation where computing ∫Pdx needs a standard trig integral such as ∫secxdx.
Steps
Step 1: Standard form; identify P and Q.
Here the coefficient of dxdy is already 1.
Step 2: Recall the awkward integral.
∫secxdx=log∣secx+tanx∣,soI.F.=secx+tanx.
Step 3: Multiply and integrate the right side. …
Common Mistakes
Mistake 1: Not knowing ∫secxdx=log∣secx+tanx∣.
Why it's wrong: without this the integrating factor secx+tanx cannot be found. Correct approach: memorise this standard integral; the I.F. is exactly secx+tanx.
Mistake 2: Forgetting tan2x=sec2x−1 when integrating the right side.
Why it's wrong: ∫tan2xdx=tanx−x, not tanx; missing the −x term changes the answer. Correct approach: rewrite tan2x before integrating. …
Showing the 12 most recent of 33 on this concept.
- AP EAPCET 2026Set eng-2026-05-15-FN1 markMCQQ.The general solution of the differential equation dxdy+ytanx=−tanxlog(cosx) (0<x<2π) (A) secx=e⋅ey−kcosx (B) secx=e⋅ey−ksecx (C) tanx=e⋅ey−kcosx (D) tanx=e⋅ey+ksecx
›Reveal solutionSolution
A first-order linear ODE with integrating factor secx; solving it and rearranging the logarithmic solution into exponential form reproduces exactly the printed option. Answer: secx=e⋅ey−kcosx.
Concept and Intuition
The equation is a standard linear ODE dxdy+P(x)y=Q(x) with P(x)=tanx. Its integrating factor is e∫tanxdx=e−logcosx=secx. After solving, the answer is naturally logarithmic; the answer choices present it exponentiated, so the final algebraic step is just re-expressing log(cosx)=… as secx=e⋅e(…).
Step-by-Step Solution
- Standard form: dxdy+ytanx=−tanxlog(cosx), P(x)=tanx, Q(x)=−tanxlog(cosx).
- Integrating factor: IF=e∫tanxdx=e−log(cosx)=cosx1=secx.
- Solution: ysecx=∫secx⋅(−tanxlog(cosx))dx+k=−∫secxtanxlog(cosx)dx+k.
- Integrate by parts with u=log(cosx), dv=secxtanxdx⇒v=secx: ∫secxtanxlog(cosx)dx=secxlog(cosx)−∫secx⋅(−tanx)dx=secxlog(cosx)+secx+C. …
- AP EAPCET 2025Set eng-2025-05-22-FN1 markMCQQ.The general solution of the differential equation y+cosx(dxdy)−cos2x=0 is (A) (secx+tanx)y=x+cosx+c (B) (1+cosx)y=(x+c)cosx−cos2x (C) (1+sinx)y=(x+c)cosx−cos2x (D) (secx+tanx)y=x−sinx+c
›Reveal solutionSolution
A first-order linear ODE in y; using the integrating factor secx+tanx and rewriting it as (1+sinx)/cosx yields option (C).
Concept and Intuition
After dividing by cosx, the equation becomes linear in y with integrating factor e∫secxdx=secx+tanx (a standard integral). Since secx+tanx=cosx1+sinx, the solution can be rewritten multiplying through by cosx, which is exactly the form the answer choices use.
Step-by-Step Solution
- Start with y+cosxdxdy−cos2x=0. Divide by cosx: dxdy+ysecx=cosx.
- This is linear: P(x)=secx, Q(x)=cosx. Integrating factor μ=e∫secxdx=elog∣secx+tanx∣=secx+tanx.
- The solution is y⋅μ=∫Q⋅μdx: y(secx+tanx)=∫cosx(secx+tanx)dx=∫(1+sinx)dx=x−cosx+C.
- Now write secx+tanx=cosx1+sinx, so y⋅cosx1+sinx=x−cosx+C. …
- AP EAPCET 2025Set eng-2025-05-22-AN1 markMCQQ.The general solution of the differential equation dxdy+cosx+sinxsecxy=1+tanxcosx is (A) (cosx+sinx)y=sinx+c (B) (cosx+sinx)y=cosx+c (C) (1+tanx)y=cosx+c (D) secx(cosx+sinx)y=sinx+c
›Reveal solutionSolution
Recognising P(x)=secx/(cosx+sinx) as sec2x/(1+tanx) gives the integrating factor 1+tanx; the equation then integrates cleanly to secx(cosx+sinx)y=sinx+c.
Concept and Intuition
For a linear ODE y′+P(x)y=Q(x), the integrating factor is e∫Pdx. Spotting that a messy P(x) is secretly of the form u(x)u′(x) for some simple u(x) (here u=1+tanx) instantly gives ∫Pdx=log∣u∣ without a hard integration.
Step-by-Step Solution
- Here P(x)=cosx+sinxsecx. Multiply numerator and denominator by secx: secx(cosx+sinx)sec2x=1+tanxsec2x (since cosx(cosx+sinx)=cos2x(1+tanx)).
- So P(x)=1+tanxsec2x=dxdlog(1+tanx), giving integrating factor IF=1+tanx.
- Q(x)=1+tanxcosx, so Q⋅IF=1+tanxcosx⋅(1+tanx)=cosx.
- The linear-ODE solution is y⋅IF=∫Q⋅IFdx+c: (1+tanx)y=∫cosxdx+c=sinx+c. …
- AP EAPCET 2024Set eng-2024-05-18-FN1 markMCQQ.The general solution of the differential equation (sinycos2y−xsec2y)dy=(tany)dx is (A) tany=3xcos3y+c (B) x(secy+tany)=cos2y+c (C) ysiny=x2cos2y+c (D) 3xtany+cos3y=c
›Reveal solutionSolution
Treating x as the dependent variable turns this into a linear ODE with integrating factor tany, giving 3xtany+cos3y=c.
Concept and Intuition
When an ODE is not linear in y but becomes linear if we treat x as a function of y instead, switching the roles of dependent/independent variable is the key move — here dx/dy appears linearly in x, so it is a standard first-order linear equation solvable via an integrating factor.
Step-by-Step Solution
- Given: (sinycos2y−xsec2y)dy=tanydx. Solve for dx/dy: dydx=tanysinycos2y−xsec2y.
- Split: tanysinycos2y=sinycos2y⋅sinycosy=cos3y, and tanysec2y=cos2y1⋅sinycosy=sinycosy1.
- So dydx=cos3y−sinycosyx, i.e. dydx+sinycosyx=cos3y — linear in x.
- Integrating factor: μ=exp(∫sinycosydy). Since dydlog(tany)=tanysec2y=sinycosy1, we get μ=tany.
- Then dyd(xtany)=cos3y⋅tany=cos3y⋅cosysiny=cos2ysiny. …
- AP EAPCET 2024Set eng-2024-05-22-FN1 markMCQQ.The general solution of the differential equation (1+tany)(dx−dy)+2xdy=0 is (A) ex(ycosx+sinx)+sinx=c (B) ex(ycosx+ysinx−sinx)+cosx=0 (C) ey(xcosy+xsiny−siny)=c (D) ey(xcosy+xsiny+siny)=c
›Reveal solutionSolution
This is a first-order linear ODE in x as a function of y; finding the right integrating factor is the crux. Answer: option (C).
Concept and Intuition
Grouping the dx terms and dy terms shows this is linear in x (treating y as the independent variable), of the form dydx+P(y)x=Q(y). The integrating factor e∫Pdy simplifies neatly once we split 2cosy/(cosy+siny) using the identity for a sum/difference of sine and cosine.
Step-by-Step Solution
- Expand: (1+tany)dx−(1+tany)dy+2xdy=0⇒(1+tany)dx+[2x−(1+tany)]dy=0.
- Divide by (1+tany)dy: dydx+1+tany2x=1.
- Write 1+tany2=cosy+siny2cosy. Using 2cosy=(cosy+siny)+(cosy−siny): cosy+siny2cosy=1+cosy+sinycosy−siny.
- Integrating factor: μ(y)=exp[∫(1+cosy+sinycosy−siny)dy]=exp[y+log∣cosy+siny∣]=ey(cosy+siny). …
- AP EAPCET 2026Set eng-2026-05-12-AN1 markMCQQ.The general solution of the differential equation dxdy=x3cos2y−xsin2y is (A) tany=21(x2+1)+e−x2 (B) tany=21(x2−1)+Ce−x2 (C) tany=21(x2−1)+Cex2 (D) tany=21(x2+1)+Cex2
›Reveal solutionSolution
This tests converting a nonlinear-looking ODE in y into a linear first-order ODE via the substitution t=tany, then solving with an integrating factor. The answer is tany=21(x2−1)+Ce−x2.
Concept and Intuition
The presence of cos2y and sin2y=2sinycosy is a strong hint to divide through by cos2y: this turns every y-term into a function of tany, because sin2y/cos2y=2tany. Substituting t=tany then reduces the equation to the standard linear form dxdt+P(x)t=Q(x), solvable by an integrating factor.
Step-by-Step Solution
- Start with dxdy=x3cos2y−xsin2y=x3cos2y−2xsinycosy.
- Divide both sides by cos2y: sec2ydxdy=x3−2xtany.
- Let t=tany, so dxdt=sec2ydxdy. The equation becomes dxdt+2xt=x3 — linear in t.
- Integrating factor: μ=e∫2xdx=ex2. …
- AP EAPCET 2024Set eng-2024-05-20-AN1 markMCQQ.Integrating factor of the differential equation sinxdxdy−ycosx=1 is (A) sinx (B) cosx (C) secx (D) cosecx
›Reveal solutionSolution
Rewriting the equation in standard linear form and computing e∫Pdx gives the integrating factor cscx — (D).
Concept and Intuition
A first-order linear ODE dxdy+P(x)y=Q(x) has integrating factor e∫P(x)dx. The given equation must first be divided through so the coefficient of dxdy is exactly 1.
Step-by-Step Solution
- Given: sinxdxdy−ycosx=1.
- Divide by sinx: dxdy−sinxcosxy=sinx1, i.e. dxdy−(cotx)y=cscx.
- Here P(x)=−cotx.
- Integrating factor =e∫−cotxdx=e−log∣sinx∣=(sinx)−1=cscx.
Common Mistakes …
- AP EAPCET 2026Set eng-2026-05-15-AN1 markMCQQ.The general solution of the differential equation (1+y2)+(x−etan−1y)dxdy=0 is (A) xetan−1y=tan−1y+c (B) x2e2tan−1y=etan−1y+c (C) (x−2)=ce−tan−1y (D) 2xetan−1y=e2tan−1y+c
›Reveal solutionSolution
This is a first-order linear ODE that becomes linear in x (not y) once you recognise the tan−1y integrating factor. The answer is (D).
Concept and Intuition
When the equation is not linear in y but treating x as the dependent variable (function of y) makes it linear, we should switch roles: write it as dydx+P(y)x=Q(y) and use the integrating factor e∫Pdy.
Step-by-Step Solution
- Given: (1+y2)+(x−etan−1y)dxdy=0.
- Rearranging: (x−etan−1y)dxdy=−(1+y2), so dydx=−(1+y2)x−etan−1y=1+y2etan−1y−x.
- This gives the linear form: dydx+1+y21x=1+y2etan−1y.
- Integrating factor: I=e∫1+y2dy=etan−1y.
- Multiply through: dyd(xetan−1y)=etan−1y⋅1+y2etan−1y=1+y2e2tan−1y.
- Let t=tan−1y, so dt=1+y2dy. Then ∫e2tdt=21e2t. …
- AP EAPCET 2025Set eng-2025-05-26-AN1 markMCQQ.The general solution of the differential equation (1+sin2x)dxdy+ysin2x=cosx+sin2xcosx is (A) (sin2x)y=sin2x+c (B) (1+sin2x)y=sinx−3sin3x+c (C) (1+sin2x)y=sinx+3sin3x+c (D) (sin2x)y=sinx+sin2x+c
›Reveal solutionSolution
The equation is linear in y with integrating factor 1+sin2x; once multiplied through, the left side collapses to dxd[(1+sin2x)y] and the right side integrates cleanly.
Concept and Intuition
A first-order linear ODE dxdy+P(x)y=Q(x) has integrating factor e∫Pdx. Here, spotting that the RHS conveniently factors to cancel the (1+sin2x) divisor makes Q(x) simplify to just cosx, and P(x)=1+sin2xsin2x integrates to log(1+sin2x) neatly.
Step-by-Step Solution
- Divide by (1+sin2x): dxdy+1+sin2xsin2xy=1+sin2xcosx+sin2xcosx.
- RHS numerator factors: cosx+sin2xcosx=cosx(1+sin2x), so RHS =cosx exactly. Equation becomes: dxdy+1+sin2xsin2xy=cosx.
- Integrating factor: μ=e∫1+sin2xsin2xdx. Since dxd(1+sin2x)=2sinxcosx=sin2x, the integral is log(1+sin2x), so μ=1+sin2x.
- Multiply through: dxd[(1+sin2x)y]=(1+sin2x)cosx=cosx+sin2xcosx. …
- AP EAPCET 2021Set eng-2021-08-23-AN1 markMCQQ.Find the particular solution of the following differential equation, given that y=1 when x=0. (1+x2)dxdy=em(Tan−1(x))−y (A) xeTan−1(x)=Tan−1(x)+1 (B) xeTan−1(x)=Tan−1(x)−1 (C) yeTan−1(x)=Tan−1(x)+1 (D) yeTan−1(x)=Tan−1(x)−1
›Reveal solutionSolution
This is a first-order linear ODE in y; the integrating factor etan−1x turns the left side into an exact derivative, and the initial condition fixes the constant to 1.
Concept and Intuition
Any equation of the form (1+x2)y′+y=g(x) is linear, since dividing by (1+x2) gives y′+1+x2y=1+x2g(x), and the coefficient of y, 1+x21, integrates to tan−1x — so the integrating factor is always etan−1x for this family of equations.
Step-by-Step Solution
- Rewrite: dxdy+1+x2y=1+x2e−tan−1x.
- Integrating factor: μ=e∫1+x2dx=etan−1x.
- Multiplying through: dxd[yetan−1x]=1+x2etan−1x⋅e−tan−1x=1+x21.
- Integrate both sides: yetan−1x=tan−1x+C. …
- AP EAPCET 2025Set eng-2025-05-23-AN1 markMCQQ.The equation of the curve passing through the point (0,π) and satisfying the differential equation ydx=(x+y3cosy)dy is (A) x=y2siny+ycos2y (B) x=y2siny+2ycos22y (C) x=y2siny+ycos22y (D) x=y2siny−ycos2y
›Reveal solutionSolution
This tests recognizing a linear differential equation in x (treating y as the independent variable) and applying the integrating-factor method. With the given initial point, the curve is x=y2siny+2ycos2(y/2), option (B).
Concept and Intuition
The equation is not linear in y as a function of x, but it IS linear in x as a function of y: dydx−yx=y2cosy has the standard linear form dydx+P(y)x=Q(y). Recognizing which variable to treat as "dependent" is the key insight — trying to solve it as linear in y would fail since the equation isn't linear in y.
Step-by-Step Solution
- Divide the given equation by ydy: dydx=yx+y2cosy, i.e. dydx−y1x=y2cosy.
- Integrating factor: IF=e−∫dy/y=e−logy=y1.
- Multiply through: dyd(yx)=yy2cosy=ycosy.
- Integrate by parts: ∫ycosydy=ysiny−∫sinydy=ysiny+cosy+C.
- So yx=ysiny+cosy+C⇒x=y2siny+ycosy+Cy.
- Apply (x,y)=(0,π): 0=π2sinπ+πcosπ+Cπ=0−π+Cπ⇒C=1.
- So x=y2siny+ycosy+y=y2siny+y(1+cosy). …
- AP EAPCET 2023Set eng-2023-05-18-AN1 markMCQQ.If y=y(x) is a particular solution of 1−x2dxdy+1−x22xy=x, y(0)=1, then y(21)= (A) 23 (B) 41 (C) 21 (D) 0
›Reveal solutionSolution
This is a linear first-order ODE; its integrating factor is 1−x21, leading to the clean solution y=1−x2, so y(1/2)=3/2.
Concept and Intuition
After dividing by 1−x2, the equation becomes the standard linear form y′+P(x)y=Q(x) with P(x)=1−x22x. Since P is (up to sign) the logarithmic derivative of 1−x2, the integrating factor collapses to a simple power of (1−x2), which is the usual sign that a linear ODE has been set up correctly.
Step-by-Step Solution
- Divide the given equation by 1−x2: dxdy+1−x22xy=1−x2x.
- Integrating factor: μ(x)=exp(∫1−x22xdx)=exp(−log(1−x2))=1−x21.
- Multiply through: dxd[1−x2y]=(1−x2)3/2x.
- Integrate the RHS (substitute w=1−x2, dw=−2xdx): ∫(1−x2)3/2xdx=1−x21+C. …
🎓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.