Q.Solve the following differential equation: dxdy+2ytanx=sinx; y=0 when x=3π
🔒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 — Initial Value Problem
Initial Value Problem
The intuition: a rule of change plus a starting point
A car's speed at time t is v(t)=dtds=2t. Can you say where the car is at t=5? Not yet — you don't know where it started (0 m? 10 m? 100 m?). The differential equation gives the rule of change, but you also need one starting snapshot to pin down the actual motion. Supply "s=5 when t=0" and now everything is determined.
That pairing — a differential equation together with an initial condition — is an Initial Value Problem (IVP).
On its own, a differential equation usually has infinitely many solutions (a whole family of curves, one per value of the arbitrary constant). The initial condition selects exactly one of them.
The precise statement
An IVP has two parts:
- A differential equation, e.g. first-order: dtdy=f(t,y).
- An initial condition, the value at a starting point: y(t0)=y0.
Written together,
dtdy=f(t,y),y(t0)=y0,
and the goal is the particular function y(t) satisfying both.
A worked example
Solve dtdy=3y, y(0)=2.
First solve the equation, ignoring the condition. Separating and integrating, ydy=3dt gives log∣y∣=3t+C, so the general solution is y=Ae3t. Now apply y(0)=2: 2=Ae0=A. Hence the unique solution is
y(t)=2e3t. …
First-order linear equation with the initial condition y(π/3)=0.
Standard form: dxdy+2tanxy=sinx, so P=2tanx, Q=sinx.
Integrating factor: μ=e∫2tanxdx=e2log∣secx∣=sec2x.
Integrate: dxd(ysec2x)=sinxsec2x=tanxsecx, so …
Linear equation with integrating factor sec2x; applying y(π/3)=0 gives y=cosx−2cos2x.
Spotting the type
dxdy+2tanxy=sinx is first-order linear with P=2tanx, Q=sinx.
Integrating factor
∫2tanxdx=−2log∣cosx∣=log(sec2x),
so μ(x)=elog(sec2x)=sec2x.
Multiply and integrate
dxd(ysec2x)=sinxsec2x=cos2xsinx=tanxsecx.
Since dxdsecx=secxtanx,
ysec2x=∫tanxsecxdx=secx+C.
Solve for y
Multiply by cos2x:
y=cosx+Ccos2x. …
Method: Solve the linear equation, then fix C from the initial value
An initial value problem is solved in two stages: first the general solution by integrating factor, then the constant from the given point.
Steps
Step 1: Standard form and integrating factor.
Write dxdy+Py=Q and compute I.F.=e∫Pdx. For P=2tanx, ∫2tanxdx=log(sec2x), so I.F.=sec2x.
Step 2: Multiply and integrate.
y⋅I.F.=∫Q(I.F.)dx+C.
Step 3: Simplify to y=⋯+C(…). …
Common Mistakes
Mistake 1: Getting the I.F. from P=2tanx wrong.
Why it's wrong: ∫2tanxdx=−2log∣cosx∣=log(sec2x), so I.F. =sec2x, not secx or e2tanx. Correct approach: watch the factor 2 and the sign.
Mistake 2: Applying the initial condition before finding the general solution.
Why it's wrong: C can only be fixed from y=cosx+Ccos2x; substituting y(π/3)=0 too early loses it. Correct approach: get the general solution first, then substitute. …
- KEAM 2022Set eng-2022-P2-B14 marksMCQQ.A particular solution of the differential equation dxdy=xy2 with y(0)=1 is (A) y=22−x2 (B) y=2−x22 (C) y=x22−2 (D) y=2x2−2 (E) y=x2−22
›Reveal solutionSolution
y=2−x22.
Concept and Intuition
This is a separable ODE; separate variables and apply the initial condition.
Step-by-Step Solution
- dxdy=xy2⇒y2dy=xdx.
- Integrate: −y1=2x2+C.
- Apply y(0)=1: −1=0+C⇒C=−1.
- −y1=2x2−1=2x2−2⇒y1=22−x2.
- y=2−x22. …
- KEAM 2025Set eng-2025-04234 marksMCQQ.If y(x)=2y′(x), y(x)≥0 and y(0)=e2 then y(x)= (A) ex/2+2 (B) e2x (C) ex/2 (D) e2ex/2 (E) e2x+2
›Reveal solutionSolution
Solving y = 2y' with y(0)=e^2 gives y = e^2 * e^{x/2}.
Concept and Intuition
y = 2y' rearranges to y'/y = 1/2, a separable equation with exponential solution; the initial condition fixes the constant.
Step-by-Step Solution
- From y = 2y', we get y' = y/2, so dy/y = dx/2.
- Integrate: log y = x/2 + C, hence y = A e^{x/2}.
- Apply y(0) = e^2: A = e^2. …
- KEAM 2025Set eng-2025-04284 marksMCQQ.The solution of the linear differential equation dxdy+y=e−x, when x=0,y=1, is (A) ye−x=x−1 (B) ye−x=ex−1 (C) yex=x+1 (D) ye−x=ex+1 (E) yex=x−1
›Reveal solutionSolution
IF =ex makes the LHS dxd(yex)=1; integrate to yex=x+C and apply y(0)=1 to get yex=x+1.
The equation dxdy+y=e−x is linear with integrating factor e∫1dx=ex. Multiplying through:
exdxdy+exy=exe−x=1⇒dxd(yex)=1. …
- KEAM 2024Set eng-2024-06084 marksMCQQ.The solution of the differential equation x+ydxdy=0, given that at x=0, y=5 is (A) x2+y2=5y (B) x2+5y2=125 (C) x2+y=5 (D) x2+y2=25 (E) 2x2+y2=25
›Reveal solutionSolution
Separate variables: ydy=−xdx⇒x2+y2=C; the condition (0,5) fixes C=25.
Rewrite the equation:
x+ydxdy=0 ⇒ ydy=−xdx.
Integrate both sides:
2y2=−2x2+C1 ⇒ x2+y2=C. …
- KEAM 2026Set eng-2026-04214 marksMCQQ.Let f(x) and g(x) be twice differentiable functions defined on [0,2] such that f′′(x)−g′′(x)=0, f′(1)=4, g′(1)=2, f(2)=9, g(2)=3. At x=3/2, f(x)−g(x)= (A) 2 (B) 3 (C) 5 (D) 8 (E) 10
›Reveal solutionSolution
f−g is linear with slope 2 and value 6 at x=2, so f−g=2x+2; at x=3/2 this is 5.
Let h=f−g. Then h′′=f′′−g′′=0, so h(x)=mx+c (a straight line).
Slope: h′(1)=f′(1)−g′(1)=4−2=2, so m=2. …
🎓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.