Solve dy/dx = 2x — Simplest ODE

easy CBSE JEE-MAIN JEE-ADVANCED NCERT Class 12 3 min read

Question

Solve the differential equation:

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

Find yy as a function of xx.


Solution — Step by Step

The equation tells us that the rate of change of yy with respect to xx equals 2x2x. We need to find the function yy whose derivative is 2x2x. That’s a direct integration problem.

Rewrite the equation as:

dy=2xdxdy = 2x \, dx

Now integrate both sides:

dy=2xdx\int dy = \int 2x \, dx

The left side integrates trivially to yy. On the right, use xndx=xn+1n+1\int x^n \, dx = \frac{x^{n+1}}{n+1}:

y=2x22+C=x2+Cy = \frac{2x^2}{2} + C = x^2 + C
y=x2+C\boxed{y = x^2 + C}

where CC is an arbitrary constant. This is the general solution.


Why This Works

Every differential equation of the form dydx=f(x)\frac{dy}{dx} = f(x) — where the right side depends only on xx — can be solved by direct integration. There’s no yy term on the right to complicate things, so we just anti-differentiate f(x)f(x).

The constant CC appears because integration is the reverse of differentiation, and constants vanish when we differentiate. So infinitely many curves (a whole family of parabolas) satisfy this equation — one for each value of CC.

If we’re given an initial condition like y(0)=3y(0) = 3, we substitute to get 3=0+C3 = 0 + C, so C=3C = 3. That pins down a particular solution: y=x2+3y = x^2 + 3.


Alternative Method

Using the antiderivative definition directly:

We know ddx(x2)=2x\frac{d}{dx}(x^2) = 2x. So any function of the form y=x2+Cy = x^2 + C has derivative 2x2x. We can write the answer by inspection without formally integrating.

This mental approach is fast during JEE Main MCQs where you only need to verify which option satisfies the ODE. Substitute a given option back into dydx\frac{dy}{dx} and check if it equals 2x2x — takes 10 seconds.

To verify any solution to an ODE, differentiate your answer and check it matches the original equation. For y=x2+Cy = x^2 + C: dydx=2x\frac{dy}{dx} = 2x. Matches. Done.


Common Mistake

Forgetting the constant of integration. Writing y=x2y = x^2 as the final answer is wrong — it’s only one particular solution, not the general solution. NCERT and CBSE board marking schemes explicitly award a mark for +C+ C. In a 3-mark question, you lose 1 mark for this. JEE doesn’t usually penalise this way, but if the question asks for a “general solution”, dropping CC means your answer is incomplete.

A second slip: some students write 2xdx=2x2+C\int 2x \, dx = 2x^2 + C — they forget to divide by the new power. Remember: 2xdx=2x22+C=x2+C\int 2x \, dx = 2 \cdot \frac{x^2}{2} + C = x^2 + C, not 2x2+C2x^2 + C.

Want to master this topic?

Read the complete guide with more examples and exam tips.

Go to full topic guide →

Try These Next