Q.Find the general solution of the differential equation xdxdy+2y=x2 (x=0).
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 Same Idea the Other Way Round
If an equation is linear in x instead — that is, dydx+Px=Q with P,Q functions of y — the method is identical with the roles of x and y swapped: I.F.=e∫Pdy and x⋅I.F.=∫Q⋅I.F.dy+C.
Don't add a constant of integration when computing ∫Pdx for the I.F. — any one antiderivative works, and the single constant C at the final integration captures the whole family of solutions.
The integrating factor method for linear first-order differential equations is one of the highest-weightage techniques in the NCERT Class 12 Differential Equations chapter, and "integrating factor formula and examples" is a top search term among CBSE and JEE Main aspirants. Getting comfortable converting an equation into the standard dy/dx + Py = Q form is the single most useful skill for this whole topic.
The key idea is that this is a first-order linear differential equation of the form dxdy+P(x)y=Q(x).
Step 1: Rewrite in standard form
Divide through by x:
dxdy+x2y=x
Here P(x)=x2 and Q(x)=x.
Step 2: Find the integrating factor
μ(x)=e∫P(x)dx=e∫x2dx=e2log∣x∣=x2
Step 3: Multiply through and integrate
Multiplying the standard form by x2:
x2dxdy+2xy=x3⇒dxd(x2y)=x3
Integrate both sides:
x2y=∫x3dx=4x4+C
Step 4: Solve for y
y=4x2+x2C
The general solution is y=4x2+x2C.
This is a first-order linear ODE solved using the integrating factor method. The general solution is y=4x2+x2C.
The equation xdxdy+2y=x2 is a first-order linear differential equation. The key idea: we can rewrite it in the standard form dxdy+P(x)y=Q(x) and then multiply both sides by an integrating factor — a function that turns the left-hand side into a perfect derivative of a product. This trick works because the derivative of a product always gives two terms, just like the left side of our equation.
Let’s walk through it.
- Rewrite in standard form. Divide through by x (allowed since x=0):
dxdy+x2y=x
Here P(x)=x2 and Q(x)=x.
- Find the integrating factor. The integrating factor μ(x) is given by e∫P(x)dx.
∫x2dx=2log∣x∣=log(x2)
So μ(x)=elog(x2)=x2.
You can drop the absolute value because x=0 and the constant of integration is absorbed later — we only need one integrating factor.
- Multiply the ODE by μ(x).
x2⋅dxdy+x2⋅x2y=x2⋅x
Simplify:
x2dxdy+2xy=x3
- Recognise the left side as a derivative. Notice that dxd(x2y)=x2dxdy+2xy. Exactly our left side! So the equation becomes:
dxd(x2y)=x3
- Integrate both sides.
∫dxd(x2y)dx=∫x3dx
x2y=4x4+C
where C is the constant of integration.
- Solve for y. Divide by x2:
y=4x2+x2C
A common mistake is forgetting the constant C or dividing by x2 without noting x=0 — but the problem already states that, so we’re safe.
The general solution is y=4x2+x2C.
Method: Reduce to standard linear form, then integrating factor
Use this for a linear equation that is NOT yet in standard form — for example one that starts as xdxdy+(⋯)y=(⋯). The coefficient of dxdy must be made 1 before reading off P(x).
Steps
Step 1: Divide through to make the coefficient of dxdy equal to 1.
Only then is dxdy+P(x)y=Q(x) genuinely in standard form and P(x) correct. Skipping this gives a wrong P and a wrong integrating factor.
Step 2: Find the integrating factor μ(x)=e∫Pdx.
Simplify exponentials of logs, e.g. e2log∣x∣=x2.
Step 3: Multiply and recognise the exact derivative.
The left side becomes dxd(μy), so dxd(μy)=μQ.
Step 4: Integrate and divide by μ.
μy=∫μQdx+C,y=μ1(∫μQdx+C).
Common Mistakes
Mistake 1: Reading P(x) before dividing by the leading coefficient.
Why it's wrong: the equation starts as xdxdy+2y=x2; you must divide by x to get dxdy+x2y=x before P(x)=x2 is correct. Using P=2 gives a wrong integrating factor. Correct approach: make the coefficient of dxdy equal to 1 first.
Mistake 2: Simplifying e2log∣x∣ incorrectly.
Why it's wrong: e2log∣x∣=x2, not 2x or 2logx. Correct approach: use elogt=t after writing 2log∣x∣=log(x2).
Mistake 3: Forgetting to divide the constant term by μ.
Why it's wrong: from x2y=4x4+C, dividing by x2 gives x2C, not C. Correct approach: divide the whole right side, including C, by x2.
Showing the 12 most recent of 33 on this concept.
- AP EAPCET 2026Set eng-2026-05-12-FN1 markMCQQ.The differential equation f′(y)dxdy+P(x)f(y)=x3 is reduced to linear differential equation by substituting Z=f(y). If the integrating factor of the reduced linear equation is ex2, then the solution of the given differential equation is (A) x2+Ae−x2−2f(y)=1 (B) f(y)=21(x2−1)+Cex2 (C) x2+Aex2+2f(y)=1 (D) f(y)=(x3+Cex2)
›Reveal solutionSolution
After the substitution Z=f(y), this becomes a standard linear first-order DE with known integrating factor ex2; solving and rearranging gives x2+Ae−x2−2f(y)=1.
Concept and Intuition
Bernoulli-style substitutions like Z=f(y) are used precisely to convert a DE that's nonlinear/awkward in y into a genuinely linear DE in the new variable Z, which can then be solved by the standard integrating-factor method.
Step-by-Step Solution
- With Z=f(y), dxdZ=f′(y)dxdy, so the given equation becomes dxdZ+P(x)Z=x3 — linear in Z.
- The integrating factor is e∫P(x)dx, given as ex2, so ∫Pdx=x2 (i.e. P(x)=2x, though we don't need this explicitly).
- Standard linear-DE solution: Z⋅ex2=∫x3ex2dx+C.
- Compute ∫x3ex2dx: let u=x2, du=2xdx, so x3ex2dx=21ueudu. Using ∫ueudu=eu(u−1): result is 21ex2(x2−1).
- So Zex2=21ex2(x2−1)+C, giving Z=f(y)=21(x2−1)+Ce−x2.
- Multiply by 2: 2f(y)=x2−1+2Ce−x2. Rearranging with A=−2C (still an arbitrary constant): x2+Ae−x2−2f(y)=1.
Common Mistakes
- Losing track of which variable (Z or y) the solution is actually expressed in — the final answer must be stated via f(y), not a bare Z.
- Sign error absorbing the constant when converting 2Ce−x2 into the Ae−x2 form used by the options.
✓Final answerThe correct option is (A) — x2+Ae−x2−2f(y)=1.
ANSWER: A
- 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.
- dxd(tex2)=x3ex2. Integrate the RHS using u=x2 (du=2xdx, so x3dx=u⋅2du): ∫x3ex2dx=21∫ueudu=21eu(u−1)=21ex2(x2−1).
- So tex2=21ex2(x2−1)+C, giving t=tany=21(x2−1)+Ce−x2.
Common Mistakes
- Forgetting to divide by cos2y first, missing the linear structure entirely.
- Sign error on the integrating-factor exponent (e−x2 instead of ex2 in the multiplier), which flips the final exponential's sign.
✓Final answerThe correct option is (B) — tany=21(x2−1)+Ce−x2.
ANSWER: B
- AP EAPCET 2026Set eng-2026-05-14-AN1 markMCQQ.The general solution of the differential equation dxdy+xy=x2 is (A) y=31x3+xc (B) y=41x4+cx (C) y=41x3+c (D) y=41x3+cx−1
›Reveal solutionSolution
A standard first-order linear ODE dxdy+P(x)y=Q(x); the integrating factor x makes the left side an exact derivative, giving the general solution y=41x3+xc.
Concept and Intuition
For a linear equation dxdy+P(x)y=Q(x), multiplying both sides by the integrating factor μ(x)=e∫Pdx turns the left side into the exact derivative dxd(μy), which can then be integrated directly.
Step-by-Step Solution
- Here P(x)=x1, Q(x)=x2.
- Integrating factor: μ(x)=e∫x1dx=elogx=x.
- Multiply through: xdxdy+y=x3, i.e. dxd(xy)=x3.
- Integrate both sides: xy=∫x3dx=4x4+c.
- Divide by x: y=41x3+xc=41x3+cx−1.
Common Mistakes
- Forgetting the integrating factor entirely and trying to integrate the equation term by term as-is.
- Sign or arithmetic slip when integrating x3, or dropping the c/x term after dividing by x.
✓Final answerThe correct option is (D) — y=41x3+cx−1.
ANSWER: D
- AP EAPCET 2026Set eng-2026-05-13-AN1 markMCQQ.The general solution of the differential equation ydx+(x+x2y)dy=0 is (A) xy1+logy=c (B) −xy1+logy=c (C) x−xy1=c (D) logy=cx2
›Reveal solutionSolution
This tests recognizing an exact-differential grouping (ydx+xdy=d(xy)) to reduce the equation to a separable one; the answer is (B).
Concept and Intuition
The equation ydx+(x+x2y)dy=0 looks messy until you notice that ydx+xdy is exactly d(xy). Recognizing hidden exact-differential combinations (like d(xy), d(x/y), d(x2+y2)) is often the fastest route through an ODE that doesn't look separable or linear at first glance.
Step-by-Step Solution
- Rewrite: ydx+xdy+x2ydy=0.
- Since d(xy)=xdy+ydx, this becomes d(xy)+x2ydy=0.
- Let u=xy, so x=u/y. Then x2y=y2u2⋅y=yu2.
- Substituting: du+yu2dy=0⇒u2du=−ydy.
- Integrate both sides: −u1=−logy+c1.
- Substitute back u=xy: −xy1=−logy+c1⇒−xy1+logy=c (writing c=c1).
Common Mistakes
- Trying to force this into a standard linear-in-x or linear-in-y form without first spotting the d(xy) grouping, leading to a much longer (and error-prone) Bernoulli substitution.
- Sign errors when moving −1/u across the equation.
✓Final answerThe correct option is (B) — −xy1+logy=c.
ANSWER: B
- 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.
- So xetan−1y=21e2tan−1y+c′. Multiplying by 2: 2xetan−1y=e2tan−1y+c.
Common Mistakes
- Trying to treat this as linear in y (with x as independent variable) — it isn't; the x and etan−1y terms multiply dy/dx, signalling that x should be the dependent variable.
- Forgetting the factor of 2 that appears when multiplying through to clear the 21.
✓Final answerThe correct option is (D) — 2xetan−1y=e2tan−1y+c.
ANSWER: D
- 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.
- So ysecx=−[secxlog(cosx)+secx]+k=−secxlog(cosx)−secx+k.
- Divide by secx (multiply by cosx): y=−log(cosx)−1+kcosx.
- Rearrange: log(cosx)=kcosx−y−1. Negate: log(secx)=−log(cosx)=y+1−kcosx.
- Exponentiate: secx=ey+1−kcosx=e⋅ey−kcosx.
Common Mistakes
- Forgetting the integration-by-parts step and mis-integrating secxtanxlog(cosx) directly.
- Sign errors converting −log(cosx) to log(secx).
✓Final answerThe correct option is (A) — secx=e⋅ey−kcosx.
ANSWER: A
- AP EAPCET 2026Set eng-2026-05-18-AN1 markMCQQ.The substitution required to reduce the differential equation dxdy+sinycosysinx=sin2xcos2y to a linear differential equation in z is (A) z=tanx (B) z=sin2y (C) z=cosy (D) z=tany
›Reveal solutionSolution
Dividing by cos2y and substituting z=tany converts the equation into a linear first-order ODE in z.
Concept and Intuition
Equations with sinycosy and cos2y terms often become linear after dividing through by cos2y, because dxd(tany)=sec2ydxdy naturally appears in the divided equation.
Step-by-Step Solution
- Given: dxdy+sinycosysinx=sin2xcos2y=2sinxcosxcos2y.
- Divide throughout by cos2y:
sec2ydxdy+tanysinx=2sinxcosx
- Let z=tany⇒dxdz=sec2ydxdy. Substituting:
dxdz+zsinx=2sinxcosx
- This is now linear in z (of the form dxdz+P(x)z=Q(x) with P(x)=sinx), confirming z=tany is the correct substitution.
Common Mistakes
- Dividing by cos2y but forgetting to also rewrite sin2x as 2sinxcosx to match the cos2y factor correctly.
- Confusing this with a Bernoulli-type substitution in y itself rather than tany.
✓Final answerThe correct option is (D) — z=tany.
ANSWER: D
- AP EAPCET 2025Set eng-2025-05-21-FN1 markMCQQ.The general solution of the equation dxdy+x1y=x1ex is (A) y=xex+c (B) y=xex+ce−x (C) y=xex+c (D) y=xe−x+cx
›Reveal solutionSolution
This is a standard linear first-order ODE solved via an integrating factor; the answer is (C).
Concept and Intuition
An equation of the form dxdy+P(x)y=Q(x) is solved by multiplying through by the integrating factor μ=e∫Pdx, which makes the left side a perfect derivative dxd(μy).
Step-by-Step Solution
- Here P(x)=x1, Q(x)=x1ex.
- Integrating factor: μ=e∫x1dx=elogx=x.
- Multiply the ODE by x: xdxdy+y=ex, i.e. dxd(xy)=ex.
- Integrate both sides: xy=ex+c.
- Solve for y: y=xex+c.
Common Mistakes
- Forgetting the arbitrary constant c after integrating.
- Mixing up which factor (x or 1/x) is the correct integrating factor.
✓Final answerThe correct option is (C) — y=xex+c.
ANSWER: C
- AP EAPCET 2025Set eng-2025-05-21-AN1 markMCQQ.The general solution of the differential equation dxdy+xy=4x−2y+8 is (A) y=4−ce−2(x+2)2 (B) y=8+ce2−x2−2x (C) y=ce−(x+2)2+x (D) y+2x=ce−2x−2x
›Reveal solutionSolution
Regroup the equation into standard linear form y′+(x+2)y=4(x+2), solve with integrating factor ex2/2+2x, and complete the square in the exponent. Answer: y=4−ce−(x+2)2/2.
Concept and Intuition
The given equation dxdy+xy=4x−2y+8 looks like it has an x-dependent coefficient and a constant-coefficient term mixed together, but moving the −2y across makes the coefficient of y become (x+2), and simultaneously the right side becomes 4(x+2) — a clean multiple of the same linear factor. This is the key algebraic regrouping that turns it into a standard first-order linear ODE.
Step-by-Step Solution
- Start: dxdy+xy=4x−2y+8.
- Move −2y to the left: dxdy+xy+2y=4x+8⇒dxdy+(x+2)y=4(x+2).
- This is linear: dxdy+P(x)y=Q(x) with P(x)=x+2, Q(x)=4(x+2).
- Integrating factor: μ(x)=e∫(x+2)dx=e2x2+2x.
- Note dxdμ=(x+2)μ, so 4(x+2)μ=4dxdμ, and
dxd(yμ)=Q(x)μ=4dxdμ⟹yμ=4μ+C.
- Hence y=4+Ce−(2x2+2x).
- Complete the square: 2x2+2x=2x2+4x=2(x+2)2−4=2(x+2)2−2.
- So e−(2x2+2x)=e2e−2(x+2)2; absorbing the constant e2 into the arbitrary constant (call it c, and flip its sign, which is still an arbitrary constant) gives
y=4−ce−2(x+2)2.
Common Mistakes
- Trying to treat −2y as part of a separate term instead of combining it with xy into (x+2)y — without this regrouping the equation looks non-standard.
- Losing the constant e2 picked up when completing the square, and thinking the exponent doesn't match — but it's absorbed into the arbitrary constant c, so any option differing only by such a multiplicative constant on c is equivalent.
✓Final answerThe correct option is (A) — y=4−ce−2(x+2)2.
ANSWER: A
- AP EAPCET 2025Set eng-2025-05-21-AN1 markMCQQ.The general solution of the differential equation (x+2y3)dxdy−y=0, y>0 is (A) y=x3+cy (B) x=y3+cy (C) y(1−xy)=cx (D) x(1−xy)=cy
›Reveal solutionSolution
Treat x as the dependent variable and y as independent — the equation is linear in x once rearranged. Answer: x=y3+cy.
Concept and Intuition
The equation (x+2y3)dxdy−y=0 is not linear in y (because of the y3 term), but if we instead regard x as a function of y, it becomes linear in x. This is a standard trick: whenever an ODE is linear in one variable when viewed "the other way around," solve it as dydx+P(y)x=Q(y) instead of dxdy+P(x)y=Q(x).
Step-by-Step Solution
- Given: (x+2y3)dxdy=y⟹dydx=yx+2y3 (inverting the derivative, valid since y>0).
- Expand: dydx=yx+2y2⟹dydx−y1x=2y2.
- This is linear in x with P(y)=−y1, Q(y)=2y2.
- Integrating factor: μ(y)=e∫−y1dy=e−logy=y1.
- Then dyd(yx)=y1⋅2y2=2y.
- Integrate: yx=∫2ydy=y2+c.
- Multiply through by y: x=y3+cy.
Common Mistakes
- Attempting to solve this as a linear ODE in y (treating x as independent) and getting stuck because of the y3 term — the fix is to swap the roles of dependent/independent variable.
- Sign error in the integrating factor exponent: ∫(−1/y)dy=−logy, not +logy, which would invert μ incorrectly.
✓Final answerThe correct option is (B) — x=y3+cy.
ANSWER: B
- 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.
- Writing 1+tanx=secx(cosx+sinx), the solution is secx(cosx+sinx)y=sinx+c.
Common Mistakes
- Trying to integrate P(x) directly by brute force instead of spotting the u′/u shortcut.
- Confusing (1+tanx)y=sinx+c (correct) with (cosx+sinx)y=sinx+c (missing the secx factor that converts 1+tanx into secx(cosx+sinx)).
✓Final answerThe correct option is (D) — secx(cosx+sinx)y=sinx+c.
ANSWER: D
- 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.
- Multiply both sides by cosx: y(1+sinx)=(x−cosx+C)cosx=(x+C)cosx−cos2x.
- This matches option (C) exactly with c=C.
Common Mistakes
- Stopping at y(secx+tanx)=x−cosx+c and matching it (wrongly) against option forms that use cosx or sinx with the wrong sign, without converting the integrating factor form.
- Sign error in ∫cosxtanxdx=∫sinxdx=−cosx.
✓Final answerThe correct option is (C) — (1+sinx)y=(x+c)cosx−cos2x.
ANSWER: 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.