Q.Find the general solution of the differential equation dxdy−y=cosx.
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 linear first-order ODE — we solve it using an integrating factor.
Step 1 – Identify the standard form
The equation is already in the form dxdy+P(x)y=Q(x) with P(x)=−1 and Q(x)=cosx.
Step 2 – Find the integrating factor
μ(x)=e∫Pdx=e∫−1dx=e−x
Step 3 – Multiply through and integrate
Multiplying: e−xdxdy−e−xy=e−xcosx
The left side is dxd(ye−x), so:
dxd(ye−x)=e−xcosx
Integrate both sides:
ye−x=∫e−xcosxdx
Using integration by parts (or the standard formula), we get:
∫e−xcosxdx=2e−x(sinx−cosx)+C
Step 4 – Solve for y
Multiply through by ex:
y=21(sinx−cosx)+Cex
The general solution is y=21(sinx−cosx)+Cex.
This is a first-order linear ODE solved using the integrating factor method. The general solution is y=21sinx−21cosx+Cex.
The equation dxdy−y=cosx is a first-order linear ordinary differential equation. It has the standard form dxdy+P(x)y=Q(x), where here P(x)=−1 and Q(x)=cosx.
The key idea: we cannot directly integrate because y and its derivative are mixed. But we can multiply both sides by a cleverly chosen function — the integrating factor — that turns the left-hand side into the derivative of a product. Once that happens, we just integrate both sides.
Step-by-step solution
1. Identify the integrating factor.
For an equation of the form dxdy+P(x)y=Q(x), the integrating factor is
μ(x)=e∫P(x)dx.
Here P(x)=−1, so
∫P(x)dx=∫(−1)dx=−x.
Thus
μ(x)=e−x.
2. Multiply the entire equation by μ(x).
Original: dxdy−y=cosx.
Multiply by e−x:
e−xdxdy−e−xy=e−xcosx.
Notice the left-hand side is exactly the derivative of y⋅e−x with respect to x (by the product rule). Check:
dxd(ye−x)=dxdye−x+y⋅(−e−x)=e−xdxdy−e−xy.
So the equation becomes
dxd(ye−x)=e−xcosx.
3. Integrate both sides.
ye−x=∫e−xcosxdx+C.
Now we need the integral I=∫e−xcosxdx. This is a classic integration by parts (or use the formula for ∫eaxcos(bx)dx). Let's do it carefully.
›Proof
Evaluating ∫e−xcosxdx
Use integration by parts twice. Let u=e−x, dv=cosxdx. Then du=−e−xdx, v=sinx.
I=e−xsinx−∫sinx⋅(−e−x)dx=e−xsinx+∫e−xsinxdx.
Now integrate ∫e−xsinxdx by parts again: let u=e−x, dv=sinxdx, so du=−e−xdx, v=−cosx.
∫e−xsinxdx=−e−xcosx−∫(−cosx)(−e−x)dx=−e−xcosx−∫e−xcosxdx.
Substitute back:
I=e−xsinx+(−e−xcosx−I)=e−xsinx−e−xcosx−I.
So 2I=e−x(sinx−cosx), hence
I=21e−x(sinx−cosx).
Thus
ye−x=21e−x(sinx−cosx)+C.
4. Solve for y.
Multiply both sides by ex:
y=21(sinx−cosx)+Cex.
A common mistake is forgetting the constant of integration C or misplacing the sign when integrating by parts. Always check by differentiating your final answer.
The general solution is y=21sinx−21cosx+Cex.
Method: Integrating factor for a linear first-order equation
Use this whenever the equation can be put in the linear standard form dxdy+P(x)y=Q(x) — the unknown y and its derivative appear only to the first power and are not multiplied together.
Steps
Step 1: Identify P(x) and Q(x).
Match the equation to dxdy+P(x)y=Q(x); read off P (the coefficient of y) and Q (everything on the right).
Step 2: Compute the integrating factor.
μ(x)=e∫P(x)dx.
Step 3: Multiply through; the left side becomes an exact derivative.
By design, μdxdy+μPy=dxd(μy), so the equation reads dxd(μy)=μQ.
Step 4: Integrate both sides and solve for y.
μy=∫μQdx+C.
When μQ is a product like e−xcosx, use integration by parts twice and solve for the repeating integral algebraically.
Common Mistakes
Mistake 1: Taking P(x) with the wrong sign.
Why it's wrong: the equation is dxdy+P(x)y=Q(x) with P=−1 here (not +1), so μ=e−x. A sign error gives the wrong integrating factor. Correct approach: rewrite as dxdy+(−1)y=cosx and read P=−1.
Mistake 2: Giving up on ∫e−xcosxdx.
Why it's wrong: it does not have an elementary "obvious" antiderivative but is standard via parts twice, after which you solve algebraically for the repeating integral. Correct approach: apply integration by parts twice and rearrange to get 21e−x(sinx−cosx).
Mistake 3: Forgetting the constant C.
Why it's wrong: the general solution needs the Cex term. Correct approach: add C when integrating, then multiply by ex.
Showing the 12 most recent of 13 on this concept.
- COMEDK 2026Set 2026-A1 markMCQQ.Let the population of a species of birds surviving at a time ' t ' be governed by the differential equation dtdp−p=−100. If p(0)=50, then p(−loge2) is equal to (A) 100 (B) 90 (C) 75 (D) 40
›Reveal solutionSolution
This is a first-order linear ODE solved using an integrating factor. The solution is p(t)=100−50et, and evaluating at t=−log2 gives p=75, so the correct option is (C).
We start with the differential equation
dtdp−p=−100
and the initial condition p(0)=50. The goal is to find p(−log2).
Concept & Intuition
This is a first-order linear ordinary differential equation of the form dtdp+P(t)p=Q(t). Here P(t)=−1 (constant) and Q(t)=−100 (constant). The standard method is to multiply both sides by an integrating factor μ(t)=e∫Pdt, which turns the left side into a perfect derivative. Then we integrate and apply the initial condition.
Step-by-step solution
- Find the integrating factor Since P(t)=−1,
μ(t)=e∫(−1)dt=e−t.
- Multiply the ODE by μ(t)
e−tdtdp−e−tp=−100e−t.
The left side is exactly dtd(pe−t) because
dtd(pe−t)=e−tdtdp−pe−t.
- Rewrite and integrate
dtd(pe−t)=−100e−t.
Integrate both sides with respect to t:
pe−t=∫−100e−tdt=100e−t+C,
where C is the constant of integration.
- Solve for p(t) Multiply through by et:
p(t)=100+Cet.
- Apply the initial condition p(0)=50
50=100+Ce0⇒50=100+C⇒C=−50.
So the particular solution is
p(t)=100−50et.
- Evaluate at t=−log2
p(−log2)=100−50e−log2.
Recall e−log2=21. Therefore,
p(−log2)=100−50⋅21=100−25=75.
TipA quick check: as t→−∞, et→0, so p(t)→100. That makes sense — the population approaches the equilibrium p=100. At t=0 we start at 50, so at a negative time (going backward) the population should be between 50 and 100, and 75 fits perfectly.
Watch outA common mistake is to mis-handle the sign in the integrating factor: ∫(−1)dt=−t, not +t. Also, be careful with e−log2=1/2, not −1/2.
✓Final answerThe correct option is (C).
ANSWER: C
- COMEDK 2026Set 2026-M1 markMCQQ.
[!FORMULA] The solution of dy=cosx(2−ycosecx)dx where y=2 when x=4π is
(A) y=sinx+21cosecx (B) y=tan(2x)+cot(2x) (C) ysinx=21cos2x (D) y=21secx+2cos(2x)›Reveal solutionSolution
This is a first‑order linear differential equation. Rewriting it in standard form and using an integrating factor yields the solution y=sinx+21cscx, which matches option (A).
We start with
dy=cosx(2−ycscx)dx.
Dividing through by dx (treating it as a differential equation in y and x) gives
dxdy=cosx(2−ycscx)=2cosx−ycosxcscx.
Since cosxcscx=cotx, this becomes
dxdy=2cosx−ycotx.
Rearranging into standard linear form dxdy+P(x)y=Q(x):
dxdy+(cotx)y=2cosx.
Why this approach works:
A first‑order linear ODE is solved by multiplying through by an integrating factor μ(x)=e∫Pdx. This turns the left side into the derivative of μ(x)y, which we can then integrate directly.
- Find the integrating factor
μ(x)=e∫cotxdx=elog∣sinx∣=sinx.
(We take sinx>0 for the interval containing x=π/4.)
- Multiply the ODE by μ(x)
sinxdxdy+(sinxcotx)y=2sinxcosx.
Since sinxcotx=cosx, the left side is exactly dxd(ysinx). The right side simplifies: 2sinxcosx=sin2x.
So we have
dxd(ysinx)=sin2x.
- Integrate both sides
ysinx=∫sin2xdx=−21cos2x+C.
- Use the initial condition Given y=2 when x=4π:
2⋅sin4π=−21cos2π+C.
sin4π=22, so left side = 2⋅22=1.
cos2π=0, so 1=0+C ⇒ C=1.
- Write the explicit solution
ysinx=−21cos2x+1.
Using the identity cos2x=1−2sin2x, we get
ysinx=−21(1−2sin2x)+1=−21+sin2x+1=sin2x+21.
Hence
y=sinx+21cscx.
TipThe identity cos2x=1−2sin2x is the cleanest way to simplify; alternatively, one could use cos2x=2cos2x−1 but that leads to a less tidy form.
Watch outA common mistake is forgetting the constant of integration or misapplying the initial condition. Always check that the final expression satisfies both the ODE and the given point.
Comparing with the options, this matches (A).
✓Final answerThe correct option is (A).
ANSWER: A
- KCET 2026Set UNKNOWN1 markMCQQ.Integrating factor of the differential equation (1−x2)dxdy−xy=1 is (A) 1−x2 (B) 21log(1−x2) (C) 1−x2x (D) 1−x2
›Reveal solutionSolution
Convert (1−x2)dxdy−xy=1 into the standard linear form dxdy+Py=Q, then compute the integrating factor e∫Pdx.
Step 1 — Write in standard linear form
Divide throughout by (1−x2):
dxdy−1−x2xy=1−x21.
Comparing with dxdy+Py=Q, we identify
P=−1−x2x.
Step 2 — Integrate P
∫Pdx=∫(−1−x2x)dx.
Let u=1−x2, so du=−2xdx, i.e. xdx=−21du. Then
∫(−1−x2x)dx=∫(−u1)(−21)du=21∫udu=21ln∣u∣=21ln(1−x2).
Step 3 — Form the integrating factor
I.F.=e∫Pdx=e21ln(1−x2)=(1−x2)1/2=1−x2.
✓Final answerThe correct option is (D) — 1−x2.
- COMEDK 2025Set 2025-A1 markMCQQ.Integrating factor of the differential equation dxdy+y=xx3+y is (A) exx (B) ex (C) xex (D) xex
›Reveal solutionSolution
Rearranging to standard linear form gives P(x)=1−x1, so the integrating factor is xex.
Rewrite the right-hand side:
dxdy+y=xx3+y=x2+xy.
Bring the y-terms together:
dxdy+y−xy=x2⟹dxdy+(1−x1)y=x2.
This is linear with P(x)=1−x1. The integrating factor is
I.F.=e∫(1−x1)dx=ex−logx=xex.
✓Final answerIntegrating factor =xex, which is option (C).
- COMEDK 2025Set 2025-E1 markMCQQ.Solve the following differential equation cos2xdxdy+y=tanx, given that y(0)=1. Hence find y(4π) (A) 2 (B) e2 (C) e (D) 1
›Reveal solutionSolution
Rewrite as a linear ODE with integrating factor etanx: y=tanx−1+2e−tanx, so y(4π)=e2.
Divide the equation cos2xdxdy+y=tanx by cos2x:
dxdy+sec2xy=tanxsec2x
This is linear with integrating factor
μ=e∫sec2xdx=etanx
Then
dxd(yetanx)=tanxsec2xetanx
Put t=tanx, dt=sec2xdx:
yetanx=∫tetdt=et(t−1)+C=etanx(tanx−1)+C
Hence
y=tanx−1+Ce−tanx
Apply y(0)=1 (with tan0=0):
1=(0−1)+C⟹C=2
y=tanx−1+2e−tanx
At x=4π, tan4π=1:
y(4π)=1−1+2e−1=e2
✓Final answery(4π)=e2 — option (B).
- COMEDK 2025Set 2025-M1 markMCQQ.The solution of (x+logy)dy+ydx=0 when y(0)=1 is (A) y(x−1+logy)+1=0 (B) xy+ylogy+1=0 (C) xy=ylogy−y−1 (D) y(x+1+logy)−1=0
›Reveal solutionSolution
Treat as a linear ODE in x with respect to y; the integrating factor is y, giving y(x−1+logy)+1=0 — option (A).
Write the equation with x as the dependent variable of y:
ydx+(x+logy)dy=0⇒dydx+y1x=−ylogy.
This is linear in x. Integrating factor:
μ=e∫y1dy=elogy=y.
Multiply through:
dyd(xy)=−logy.
Integrate, using ∫logydy=ylogy−y:
xy=−(ylogy−y)+C=−ylogy+y+C.
Apply y(0)=1 (i.e. x=0,y=1):
0=−1⋅0+1+C⇒C=−1.
Hence
xy=−ylogy+y−1⇒xy+ylogy−y+1=0⇒y(x−1+logy)+1=0.
✓Final answery(x−1+logy)+1=0 — option (A).
- COMEDK 2024Set 2024-A1 markMCQQ.
[!FORMULA] Integrating factor of the differential equation dxdy+y=xx3+y is
(A) exx (B) ex (C) xex (D) xex›Reveal solutionSolution
Collecting the y-terms puts the equation in standard linear form with P(x)=1−x1, giving integrating factor xex — option (C).
Reduce to standard linear form
The standard first-order linear form is dxdy+P(x)y=Q(x), with integrating factor I.F.=e∫Pdx.
Starting from dxdy+y=xx3+y, multiply through by x:
xdxdy+xy=x3+y.
Move the y on the right to the left:
xdxdy+(x−1)y=x3.
Divide by x:
dxdy+xx−1y=x2,P(x)=xx−1=1−x1.
Compute the integrating factor
I.F.=e∫(1−x1)dx=ex−logx=elogxex=xex.
The most common slip is to read the coefficient of y as 1 and get ex; that ignores the y/x hidden on the right-hand side.
✓Final answerIntegrating factor =xex. Correct option: (C).
ANSWER: C
- COMEDK 2024Set 2024-E1 markMCQQ.
[!FORMULA] The general solution of the differential equation (1+tany)(dx−dy)+2xdy=0 is
(A) y(sinx+cosx)=sinx+cex (B) y(sinx+cosx)=sinx+ce−x (C) x(siny+cosy)=siny+cey (D) x(siny+cosy)=siny+ce−y›Reveal solutionSolution
This is a first-order linear ODE in disguise. By rewriting the equation in terms of x as a function of y, we can apply the integrating factor method. The solution matches option (D).
We start with
(1+tany)(dx−dy)+2xdy=0.
The presence of both dx and dy suggests we can treat x as a function of y (or vice versa). Since the options involve x multiplied by trigonometric functions of y, it’s natural to solve for x in terms of y.
Why this approach works:
If we rearrange to isolate dydx, the equation becomes linear in x:
dydx+P(y)x=Q(y).
Then we use the standard integrating factor μ(y)=e∫Pdy.
- Rewrite the equation Expand the given expression:
(1+tany)dx−(1+tany)dy+2xdy=0.
Group the dx and dy terms:
(1+tany)dx+[2x−(1+tany)]dy=0.
- Divide by dy to get dydx Assuming dy=0,
(1+tany)dydx+2x−(1+tany)=0.
So
(1+tany)dydx+2x=1+tany.
- Make it linear in x Divide through by 1+tany (valid where tany=−1):
dydx+1+tany2x=1.
This is a first-order linear ODE:
dydx+P(y)x=Q(y),P(y)=1+tany2,Q(y)=1.
- Find the integrating factor
μ(y)=e∫Pdy=e∫1+tany2dy.
We need ∫1+tanydy. Use the identity tany=cosysiny:
1+tany1=1+cosysiny1=cosy+sinycosy.
So
∫1+tany2dy=2∫cosy+sinycosydy.
- Evaluate the integral A standard trick: Write
cosy=21[(cosy+siny)+(cosy−siny)].
Then
cosy+sinycosy=21+21⋅cosy+sinycosy−siny.
The second term’s integral is easy because the numerator is the derivative of the denominator (up to sign):
dyd(cosy+siny)=−siny+cosy=cosy−siny.
Thus
∫cosy+sinycosy−sinydy=log∣cosy+siny∣+C.
Therefore
2∫cosy+sinycosydy=2(2y+21log∣cosy+siny∣)=y+log∣cosy+siny∣.
So the integrating factor is
μ(y)=ey+log∣cosy+siny∣=ey⋅∣cosy+siny∣.
We can drop the absolute value (absorb sign into constant later) and take
μ(y)=ey(cosy+siny).
- Apply the integrating factor Multiply the ODE by μ(y):
ey(cosy+siny)dydx+ey(cosy+siny)⋅1+tany2x=ey(cosy+siny).
But note:
1+tany2=cosy+siny2cosy,
so the left side becomes
ey(cosy+siny)dydx+2eycosyx.
Observe that
dyd[ey(cosy+siny)x]=ey(cosy+siny)dydx+x⋅dyd[ey(cosy+siny)].
Compute the derivative:
dyd[ey(cosy+siny)]=ey(cosy+siny)+ey(−siny+cosy)=ey(2cosy).
So indeed the left side is exactly dyd[ey(cosy+siny)x].
Thus the equation becomes
dyd[ey(cosy+siny)x]=ey(cosy+siny).
- Integrate both sides
ey(cosy+siny)x=∫ey(cosy+siny)dy+C.
The integral on the right is a standard form:
∫ey(cosy+siny)dy=eysiny+constant,
because dyd(eysiny)=eysiny+eycosy=ey(siny+cosy).
So we have
ey(cosy+siny)x=eysiny+C.
- Solve for x Divide through by ey(cosy+siny) (nonzero in general):
x=cosy+sinysiny+ey(cosy+siny)C.
Multiply numerator and denominator by something? The options are written as x(siny+cosy)=siny+ce−y. Multiply both sides of our result by (cosy+siny):
x(cosy+siny)=siny+Ce−y.
This matches option (D) exactly, with c=C.
Watch outA common mistake is to try solving for y in terms of x first, which leads to a much messier nonlinear equation. Recognizing the linear structure in x as a function of y is key.
TipThe integral ∫1+tanydy can also be done by substituting u=y+π/4, using tan(y)=tan(u−π/4), but the “split numerator” method shown is faster.
✓Final answerThe correct option is (D).
ANSWER: D
- COMEDK 2024Set 2024-M1 markMCQQ.The particular solution of the differential equation cosxdxdy+y=sinx at y(0)=1 (A) y(secx+tanx)=secx+tanx−x+1 (B) y(secx+tanx)=secx+tanx−x (C) y(secx+tanx)=secx+tanx+x (D) y(secx+tanx)=secx+tanx−x+2
›Reveal solutionSolution
Solve the linear ODE with integrating factor secx+tanx; applying y(0)=1 gives C=0, so y(secx+tanx)=secx+tanx−x (option B).
Rewrite the equation in standard linear form by dividing through by cosx:
dxdy+ysecx=tanx
The integrating factor is
IF=e∫secxdx=elog∣secx+tanx∣=secx+tanx
Multiplying through:
dxd[y(secx+tanx)]=tanx(secx+tanx)=secxtanx+tan2x
Using tan2x=sec2x−1:
dxd[y(secx+tanx)]=secxtanx+sec2x−1
Integrating both sides:
y(secx+tanx)=secx+tanx−x+C
Apply the initial condition y(0)=1. At x=0, sec0=1 and tan0=0, so the left side is 1⋅(1+0)=1 and the right side is 1+0−0+C=1+C. Hence C=0.
y(secx+tanx)=secx+tanx−x
✓Final answerThe particular solution is y(secx+tanx)=secx+tanx−x — option (B).
- COMEDK 2023Set 2023-E1 markMCQQ.The general solution of the differential equation (1+y2)dx=(tan−1y−x)dy (A) x=tan−1y−1+cetan−1y (B) x=tan−1y−1+ce−tan−1y (C) x=tan−1y+cetan−1y (D) x=ctan−1y+e−tan−1y
›Reveal solutionSolution
This is linear in x with integrating factor etan−1y; solving gives x=tan−1y−1+ce−tan−1y.
Rewrite (1+y2)dx=(tan−1y−x)dy as
dydx+1+y2x=1+y2tan−1y.
Integrating factor: μ=e∫1+y2dy=etan−1y. Then
xetan−1y=∫1+y2tan−1yetan−1ydy.
Put t=tan−1y, dt=1+y2dy:
∫tetdt=et(t−1)+c.
Hence xet=et(t−1)+c, i.e.
x=tan−1y−1+ce−tan−1y.
✓Final answerThe correct option is (B) — x=tan−1y−1+ce−tan−1y
- COMEDK 2023Set 2023-E1 markMCQQ.The solution of the differential equation dxdy+ycosx=21sin2x (A) yesinx=esinx(sinx+1)+c (B) yesinx=esinx(sinx−1)+c (C) yesin2x=esin2x(sinx−1)+c (D) yecosx=esinx(cosx−1)+c
›Reveal solutionSolution
Back-substitute t = sin x: y e^(sin x) = e^(sin x) (sin x - 1) + c.
Concept: linear first-order ODE, dy/dx + P(x) y = Q(x), solved by the integrating factor e^(integral P dx).
Here P = cos x, Q = (1/2) sin 2x = sin x cos x.
IF = e^(integral cos x dx) = e^(sin x).
Solution: y * e^(sin x) = integral [ sin x cos x * e^(sin x) ] dx.
Put t = sin x, dt = cos x dx:
integral t e^t dt = t e^t - e^t + c = e^t (t - 1) + c.
Back-substitute t = sin x:
y e^(sin x) = e^(sin x) (sin x - 1) + c.
✓Final answerThe correct option is (B) — yesinx=esinx(sinx−1)+c
ANSWER: B
- COMEDK 2021Set 20211 markMCQQ.The solution of the differential equation (1+y2)+(x−etan−1y)dxdy=0 is (A) 2xetan−1y=e2tan−1y+C (B) xetan−1y=tan−1y+C (C) xe2tan−1y=etan−1y+C (D) (x−2)=Ce−tan−1y
›Reveal solutionSolution
Hence x e^(arctan y) = (1/2) e^(2 arctan y) + C', i.e. 2x e^(arctan y) = e^(2 arctan y) + C.
Concept: treat x as the dependent variable and y as the independent variable; it becomes a linear first-order ODE in x.
(1 + y^2) + (x - e^(arctan y)) dy/dx = 0
=> (1 + y^2) dx/dy + x - e^(arctan y) = 0
=> dx/dy + x/(1 + y^2) = e^(arctan y)/(1 + y^2).
Integrating factor: IF = exp( integral dy/(1 + y^2) ) = e^(arctan y).
Multiply through:
d/dy [ x e^(arctan y) ] = e^(2 arctan y)/(1 + y^2).
Integrate the RHS with t = arctan y, dt = dy/(1 + y^2):
integral e^(2t) dt = e^(2t)/2 = e^(2 arctan y)/2.
Hence x e^(arctan y) = (1/2) e^(2 arctan y) + C', i.e.
2x e^(arctan y) = e^(2 arctan y) + C.
✓Final answerThe correct option is (A) — 2xetan−1y=e2tan−1y+C
ANSWER: A
🎓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.