Find the Particular Solution given y(0) = 1

medium CBSE JEE-MAIN JEE-ADVANCED CBSE 2025 Sample Paper 4 min read

Question

Solve the differential equation:

dydx=2xy\frac{dy}{dx} = 2xy

given the initial condition y(0)=1y(0) = 1. Find the particular solution.

This type — a separable ODE with an initial value — appears regularly in CBSE 12 board exams and as warm-up questions in JEE Main. The 2025 CBSE Sample Paper carried a nearly identical question for 3 marks.


Solution — Step by Step

We want all yy terms on one side and all xx terms on the other. Divide both sides by yy (valid as long as y0y \neq 0):

1ydy=2xdx\frac{1}{y}\,dy = 2x\,dx

This is the core move in variable separable ODEs — we’re splitting the equation so each side can be integrated independently.

1ydy=2xdx\int \frac{1}{y}\,dy = \int 2x\,dx lny=x2+C\ln|y| = x^2 + C

where CC is the constant of integration. We write one constant on the right — it absorbs constants from both sides.

Raise ee to both sides:

y=ex2+C=eCex2|y| = e^{x^2 + C} = e^C \cdot e^{x^2}

Let A=±eCA = \pm e^C (which is just an arbitrary non-zero constant). So the general solution is:

y=Aex2y = A\,e^{x^2}

Now we use what we know: when x=0x = 0, y=1y = 1.

1=Ae0=A1    A=11 = A\,e^{0} = A \cdot 1 \implies A = 1

Substituting A=1A = 1:

y=ex2\boxed{y = e^{x^2}}

This is the particular solution satisfying y(0)=1y(0) = 1.


Why This Works

The equation dydx=2xy\frac{dy}{dx} = 2xy says: the rate of change of yy is proportional to both yy itself and to xx. As xx grows, the function grows faster and faster — which is exactly the behaviour of ex2e^{x^2}.

The general solution y=Aex2y = Ae^{x^2} is a family of curves, one for each value of AA. The initial condition y(0)=1y(0) = 1 pins down which specific curve passes through the point (0,1)(0, 1). This is the geometric meaning of an initial value problem.

Every particular solution is a member of this family. Change the initial condition — say y(0)=3y(0) = 3 — and you’d get y=3ex2y = 3e^{x^2}, the same shape but scaled vertically.


Alternative Method — Using the Integrating Factor

While variable separation is the natural approach here, we can also treat this as a linear ODE of the form dydx+P(x)y=Q(x)\frac{dy}{dx} + P(x)\,y = Q(x).

Rewrite: dydx2xy=0\frac{dy}{dx} - 2x\,y = 0, so P(x)=2xP(x) = -2x, Q(x)=0Q(x) = 0.

Integrating factor: μ=e2xdx=ex2\mu = e^{\int -2x\,dx} = e^{-x^2}

Multiply through: ddx(yex2)=0\frac{d}{dx}\left(y \cdot e^{-x^2}\right) = 0

Integrate: yex2=C    y=Cex2y \cdot e^{-x^2} = C \implies y = Ce^{x^2}

Applying y(0)=1y(0) = 1 gives C=1C = 1, so y=ex2y = e^{x^2}.

For linear ODEs where Q(x)=0Q(x) = 0, the integrating factor method and variable separation always give the same result. In exams, use whichever you can execute faster — for CBSE, variable separation saves 30–40 seconds.


Common Mistake

Students often write lny=x2+C\ln y = x^2 + C and then directly apply the initial condition as ln(1)=0+C\ln(1) = 0 + C, getting C=0C = 0, and conclude y=ex2y = e^{x^2}. The answer is correct here — but only by luck. The right process is to first exponentiate to get y=Aex2y = Ae^{x^2}, then substitute. If the initial condition were y(0)=3y(0) = 3, the shortcut gives C=ln3C = \ln 3, so y=ex2+ln3=3ex2y = e^{x^2 + \ln 3} = 3e^{x^2} — messy but correct. Getting into the habit of solving for AA first keeps errors out of your board answer sheet.

Want to master this topic?

Read the complete guide with more examples and exam tips.

Go to full topic guide →

Try These Next