Q.The solution of dxdy+y=e−x, y(0)=0 is:
(A) y=e−x(x−1)
(B) y=xex
(C) y=xe−x+1
(D) y=xe−x
🔒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. …
This is a first-order linear differential equation — an Initial Value Problem.
Step 1 – Identify integrating factor
The standard form is dxdy+P(x)y=Q(x). Here P(x)=1, Q(x)=e−x.
Integrating factor: μ=e∫1dx=ex.
Step 2 – Multiply and integrate
Multiplying: exdxdy+exy=1
⇒dxd(yex)=1
Integrate: yex=x+C. …
This is a first-order linear ODE solved using the integrating factor method. The solution satisfying y(0)=0 is y=xe−x, which corresponds to option (D).
The equation dxdy+y=e−x with y(0)=0 is a classic Initial Value Problem (IVP). The key idea: when you have a first-order linear ODE of the form dxdy+P(x)y=Q(x), you can multiply both sides by an integrating factor — a function that turns the left side into the derivative of a product. This makes the equation directly integrable.
Why does this work? Because the left side dxdy+y looks almost like the derivative of y times something, but it's missing the derivative of that "something". The integrating factor supplies exactly that missing piece.
Let's walk through it.
-
Identify the standard form.
The equation is already in the form dxdy+P(x)y=Q(x), with P(x)=1 and Q(x)=e−x.
-
Compute the integrating factor.
The integrating factor μ(x) is given by e∫P(x)dx.
Here ∫1dx=x, so
μ(x)=ex.
- Multiply the entire ODE by μ(x).
exdxdy+exy=ex⋅e−x=1.
Notice the left side is now exactly dxd(exy), because by the product rule:
dxd(exy)=exdxdy+exy.
- Rewrite and integrate.
dxd(exy)=1.
Integrate both sides with respect to x:
exy=∫1dx=x+C,
where C is the constant of integration.
- Solve for y. …
Method: Solve a linear first-order IVP, then apply the initial condition
Use this whenever a linear equation dxdy+P(x)y=Q(x) comes with a condition like y(0)=0.
Steps
Step 1: Find the general solution by the integrating factor.
With P=1, the I.F. is ex, the left side becomes dxd(yex), and integrating gives yex=∫Qexdx+C.
Step 2: Keep the constant C — do not drop it.
The general solution must still contain C at this stage; the initial condition is what pins it down. …
Common Mistakes
Mistake 1: Forgetting to apply the initial condition.
Why it's wrong: stopping at y=e−x(x+C) leaves the answer with an undetermined constant (matching option A). Correct approach: substitute x=0, y=0 to find C=0, giving y=xe−x.
Mistake 2: Using the wrong integrating factor. …
Showing the 12 most recent of 26 on this concept.
- AP EAPCET 2026Set eng-2026-05-14-AN1 markMCQQ.Given that dxdy=yex is such that when x=0,y=e. The value of y (y>0) when x=1 will be (A) e1 (B) e (C) ee (D) loge
›Reveal solutionSolution
This is a separable first-order ODE; separating and integrating gives logy=ex+c, and the initial condition pins c=0, so y(1)=ee.
Concept and Intuition
When a differential equation can be written as ydy=g(x)dx, both sides can be integrated independently, giving logy=G(x)+c where G is the antiderivative of g. The given initial condition then fixes the constant, after which we simply plug in the target x-value.
Step-by-Step Solution
- Given dxdy=yex, separate variables: ydy=exdx.
- Integrate both sides: logy=ex+c (using y>0, so no absolute value needed).
- Apply the initial condition x=0, y=e: loge=e0+c⇒1=1+c⇒c=0. …
- AP EAPCET 2025Set eng-2025-05-24-FN1 markMCQQ.The solution of the differential equation x2(y+1)dxdy+y2(x+1)2=0, when y(1)=2, is (A) log∣x2y∣=x2+y1+x−1 (B) log41x2y=x1+y2+x−1 (C) log21x2y=x1+y1−x−21 (D) log31x2y=x1+y1−x+21
›Reveal solutionSolution
This is a separable ODE; separating and integrating gives an implicit relation, and the initial condition y(1)=2 pins the constant to match option (C).
Concept and Intuition
x2(y+1)dy=−y2(x+1)2dx separates cleanly because all the y-terms can be gathered on one side (as y2y+1) and all x-terms on the other (as x2(x+1)2). Both sides then reduce to standard integrals: y1+y21 integrates via power rule and log, and x2(x+1)2=1+x2+x21 likewise.
Step-by-Step Solution
- Rearranging: x2(y+1)dy=−y2(x+1)2dx⇒y2y+1dy=−x2(x+1)2dx.
- LHS: y2y+1=y1+y21, so ∫(y1+y21)dy=log∣y∣−y1+C1.
- RHS: x2(x+1)2=x2x2+2x+1=1+x2+x21, so −∫(1+x2+x21)dx=−x−2log∣x∣+x1+C2.
- Equate: log∣y∣−y1=−x−2log∣x∣+x1+C.
- Rearranged: log∣y∣+2log∣x∣=x1+y1−x+C⇒log(x2y)=x1+y1−x+C.
- Apply y(1)=2: log(1⋅2)=1+21−1+C⇒ln2=21+C⇒C=ln2−21.
- Substitute back: log(x2y)=x1+y1−x+ln2−21, i.e. log(x2y)−ln2=x1+y1−x−21.
- log(x2y)−ln2=log(2x2y)=log21x2y, so finally …
- AP EAPCET 2026Set eng-2026-05-12-AN1 markMCQQ.If the solution of dxdy=log(x+1) when y(0)=3 is y=(x+1)log(x+1)+f(x), then f(x)= (A) 3−x (B) x−3 (C) 1−x (D) x−1
›Reveal solutionSolution
This tests integrating log(x+1) by substitution and then pinning the constant with the initial condition. The answer is f(x)=3−x.
Concept and Intuition
The differential equation dxdy=log(x+1) is already separated — y is just the antiderivative of the right-hand side. The initial condition y(0)=3 fixes the single constant of integration, and comparing the resulting expression to the given form of the solution lets us read off f(x) without guessing.
Step-by-Step Solution
- Integrate: y=∫log(x+1)dx+C.
- Substitute u=x+1, du=dx: ∫logudu=ulogu−u+C (standard result, by parts with dv=du).
- Back-substitute: y=(x+1)log(x+1)−(x+1)+C.
- Compare with the given form y=(x+1)log(x+1)+f(x): so f(x)=−(x+1)+C=C−1−x. …
- AP EAPCET 2023Set eng-2023-05-19-FN1 markMCQQ.The particular solution of the differential equation dydx=xlog(x2e)siny(1+ycoty), y(1)=0 is (A) ysiny=x2logx (B) y2siny=logx (C) y=(sinee2)(x−1) (D) y=e2secx
›Reveal solutionSolution
Separating variables, both sides integrate to remarkably clean closed forms (x2logx and ysiny), and the initial condition kills the constant.
Concept and Intuition
log(x2e)=2logx+1 simplifies the right-hand denominator nicely, and siny(1+ycoty)=siny+ycosy is exactly the derivative of ysiny — recognizing these product-rule patterns avoids messy integration.
Step-by-Step Solution
- Given dydx=xlog(x2e)siny(1+ycoty), separate variables: xlog(x2e)dx=siny(1+ycoty)dy.
- log(x2e)=logx2+loge=2logx+1, so LHS integrand is x(2logx+1).
- ∫x(2logx+1)dx=∫2xlogxdx+∫xdx. By parts, ∫2xlogxdx=x2logx−∫xdx=x2logx−2x2.
- So LHS integral =x2logx−2x2+2x2=x2logx (the x2/2 terms cancel neatly).
- RHS: siny(1+ycoty)=siny+ycosy (since sinycoty=cosy). Note dyd(ysiny)=siny+ycosy exactly.
- So ∫(siny+ycosy)dy=ysiny. …
- AP EAPCET 2021Set eng-2021-08-24-AN1 markMCQQ.The equation of a curve passing through the point (0,1), given that the slope of the tangent to the curve at any point (x,y) is equal to the sum of the x-coordinate, and the product of x and y coordinates at that point, is ________ (A) y=1−2e(x2/2) (B) y=−1+2e(x2/2) (C) y=−1−2e(x2/2) (D) y=1+2e(x2/2)
›Reveal solutionSolution
Translate the word problem into a separable differential equation dxdy=x(1+y), solve it, and apply the initial point (0,1) to fix the constant — giving y=−1+2ex2/2.
Concept and Intuition
"Slope of the tangent" always means dxdy. The sentence describing the slope translates directly into an algebraic expression in x and y; recognizing that it factors as x(1+y) makes the equation separable, which is the easiest class of ODE to solve.
Step-by-Step Solution
- Translate: slope = (x-coordinate) + (product of x and y) ⇒dxdy=x+xy=x(1+y).
- Separate variables: 1+ydy=xdx.
- Integrate both sides: log∣1+y∣=2x2+C.
- Apply the point (0,1): log∣1+1∣=0+C⇒C=log2. …
- AP EAPCET 2022Set eng-2022-07-08-AN1 markMCQQ.If the solution of dxdy=xe1/y2y3cosx, y(0)=1 is y21=loge(f(x)), then f(x)= (A) 4+4sinx (B) esinx (C) 1−4sinx (D) e−4sinx
›Reveal solutionSolution
This is a separable ODE; separating variables and using the initial condition y(0)=1 gives f(x)=e−4sinx.
Concept and Intuition
The equation separates cleanly into a function of y times dy equal to a function of x times dx. Both sides then need simple substitutions (u=1/y2 and v=x) to become directly integrable exponential/trig forms.
Step-by-Step Solution
- dxdy=xe1/y2y3cosx⇒e1/y2y−3dy=xcosxdx.
- LHS: let u=1/y2⇒du=−2y−3dy⇒y−3dy=−21du. So ∫eu(−21)du=−21eu+C1=−21e1/y2+C1.
- RHS: let v=x⇒dv=2xdx⇒xdx=2dv. So ∫cosv⋅2dv=2sinv+C2=2sinx+C2.
- Combine: −21e1/y2=2sinx+C.
- Apply y(0)=1⇒1/y2=1 at x=0: −21e1=2sin0+C⇒C=−2e. …
- AP EAPCET 2022Set eng-2022-07-05-FN1 markMCQQ.If the general solution of the differential equation cos2xdxdy+y=tanx is y=tanx−1+Ce−tanx satisfies y(π/4)=1, then C= (A) e (B) 1 (C) −1 (D) 1/e
›Reveal solutionSolution
This tests applying an initial condition to a given general solution of a linear first-order DE to find the arbitrary constant.
Concept and Intuition
Once a general solution y=y(x,C) is known, an initial condition (initial value) pins down C by substituting the given point directly — no need to re-derive the DE.
Step-by-Step Solution
- General solution: y=tanx−1+Ce−tanx.
- At x=π/4: tan(π/4)=1.
- So y(π/4)=1−1+Ce−1=Ce−1. …
- AP EAPCET 2025Set eng-2025-05-24-FN1 markMCQQ.If xlogxdxdy+y=logx2 and y(e)=0, then y(e2)= (A) 0 (B) 1 (C) 21 (D) 23
›Reveal solutionSolution
This is a first-order linear ODE in y; finding the integrating factor logx and applying y(e)=0 gives y(e2)=23.
Concept and Intuition
Dividing the given equation by xlogx puts it in the standard linear form dxdy+P(x)y=Q(x), which is always solvable via an integrating factor μ=e∫Pdx. Recognizing log(x2)=2logx also simplifies the RHS immediately.
Step-by-Step Solution
- Given: xlogxdxdy+y=log(x2)=2logx.
- Divide throughout by xlogx: dxdy+xlogxy=x2.
- This is linear with P(x)=xlogx1. Integrating factor:
μ=e∫xlogx1dx.
Let u=logx, du=dx/x, so ∫xlogxdx=∫udu=log∣u∣=log∣logx∣. Hence μ=elog∣logx∣=logx (positive since x>1 in this problem).
4. Multiply the linear ODE by μ=logx:
logx⋅dxdy+xy=x2logx.
- The LHS is exactly dxd(ylogx) (product rule check: y′logx+y⋅x1 — matches).
- Integrate both sides: ylogx=∫x2logxdx. With u=logx: ∫2udu=u2=(logx)2. So ylogx=(logx)2+C. …
- AP EAPCET 2023Set eng-2023-05-18-AN1 markMCQQ.If f(x) is a function such that f′(x)=f2(x)−1 and f(0)=1, then f(1)= (A) 2ee−2+1 (B) 2ee2+1 (C) 2ee2−1 (D) 2ee−2−1
›Reveal solutionSolution
This is a separable differential equation whose natural substitution is the hyperbolic identity cosh2u−sinh2u=1; the answer is f(1)=cosh1=2ee2+1.
Concept and Intuition
Whenever you see f′(x)=f2(x)−1, the structure f2−1 screams hyperbolic substitution, because cosh2u−1=sinh2u. Setting f=coshu turns the messy square root into the clean function sinhu, and the chain rule collapses the whole ODE to u′=1 — a straight line in disguise.
Step-by-Step Solution
- Separate variables: f2−1df=dx.
- Let f=coshu, so df=sinhudu and f2−1=sinhu (taking u≥0 since f≥1 near x=0).
- The equation becomes sinhusinhudu=dx⇒du=dx⇒u=x+C. …
- AP EAPCET 2022Set eng-2022-07-04-FN1 markMCQQ.If the solution of dxdy−yloge0.5=0, y(0)=1, and y(x)→k, as x→∞ then k= (A) ∞ (B) −1 (C) 1 (D) 0
›Reveal solutionSolution
A linear first-order ODE dy/dx=ky with k=loge0.5<0 describes exponential decay, so y→0 as x→∞; k=0.
Concept and Intuition
dxdy=cy always solves to y=y0ecx. The sign of c decides growth (c>0) or decay (c<0) as x→∞. Here c=loge(0.5)=−loge2<0, so the solution decays to zero.
Step-by-Step Solution
- Rewrite: dxdy=yloge(0.5), i.e. ydy=loge(0.5)dx.
- Integrate: logey=xloge(0.5)+C1, so y=Cexloge(0.5)=C(0.5)x.
- Apply y(0)=1: 1=C(0.5)0=C, so C=1. Hence y(x)=(0.5)x. …
- AP EAPCET 2026Set eng-2026-05-12-FN1 markMCQQ.Let the differential equation for which y=Aex+Be−x is the general solution is of degree m and order n. If the above differential equation satisfies the condition y(0)=m and y′(0)=n, then its solution is y= (A) 2ex+e−x (B) 2ex−e−x (C) 23ex−e−x (D) 2ex−3e−x
›Reveal solutionSolution
The general solution y=Aex+Be−x solves y′′−y=0 (order 2, degree 1); using y(0)=1, y′(0)=2 pins down y=23ex−e−x.
Concept and Intuition
Before using the initial conditions we must correctly identify m (degree) and n (order) of the differential equation whose general solution is y=Aex+Be−x. Since this has 2 arbitrary constants, the DE must be second order; and since it can be written with the highest derivative appearing to the first power (y′′=y), the degree is 1.
Step-by-Step Solution
- From y=Aex+Be−x: y′=Aex−Be−x, y′′=Aex+Be−x=y. So the DE is y′′−y=0: order n=2, degree m=1.
- Given conditions: y(0)=m=1, y′(0)=n=2.
- y(0)=A+B=1.
- y′(0)=A−B=2.
- Adding: 2A=3⇒A=23. Subtracting: 2B=1−2=−1⇒B=−21. …
- AP EAPCET 2022Set eng-2022-07-06-FN1 markMCQQ.The solution of (1+y2)dx−xydy=0, y(1)=0 represents a conic. Its eccentricity is (A) 2 (B) 1/e (C) 1 (D) 2
›Reveal solutionSolution
Solving the separable ODE with the given initial condition yields the rectangular hyperbola x2−y2=1, whose eccentricity is 2.
Concept and Intuition
Separate the variables in the ODE, integrate, apply the initial condition to fix the constant, and identify the resulting conic. A rectangular hyperbola (a=b) always has eccentricity 2 — a fact worth recognising instantly once the conic's form is found.
Step-by-Step Solution
- Given (1+y2)dx−xydy=0⇒(1+y2)dx=xydy⇒xdx=1+y2ydy.
- Integrate both sides: logx=21log(1+y2)+C.
- Exponentiate: x=k1+y2 for some constant k>0, i.e. x2=k2(1+y2), or x2−k2y2=k2.
- Apply y(1)=0: at x=1,y=0: 1=k2(1+0)⇒k2=1⇒k=1.
- So the curve is x2−y2=1, a rectangular hyperbola with a2=1, b2=1. …
🎓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.