PYQ Vault

JEE Mains Maths · Differential Equations

Separating the Variables

Solving an equation by putting every y on one side and every x on the other, then integrating both sides; including the cases that separate only after a substitution or after spotting an exact differential.

Why this matters

Thirty-one PYQs, and 2024 alone has twelve. Most separate at once, and the work is the integral and the constant from the given point. A few need a substitution for x + y, or a regrouping such as x dy + y dx = d(xy), before they separate. Three ideas cover the page.

Concept 1 of 3: Separate, integrate, fix the constant

If the right side factors as f(x) g(y)f(x)\,g(y), divide by g(y)g(y) and integrate: ∫dyg(y)=∫f(x) dx+C\int\frac{dy}{g(y)}=\int f(x)\,dx+C. One given point fixes CC. Keep the constant as a multiplier when logs appear: ln⁡∣y+3∣=ln⁡∣x∣+C\ln|y+3|=\ln|x|+C is y+3=Axy+3=Ax, which is easier to use.

Definition

  • dydx=f(x)g(y)⇒∫dyg(y)=∫f(x) dx+C\frac{dy}{dx}=f(x)g(y)\Rightarrow\int\frac{dy}{g(y)}=\int f(x)\,dx+C.
  • Factor first: xy−1+x−y=(x−1)(y+1)xy-1+x-y=(x-1)(y+1), 2x+y−2x=2x(2y−1)2^{x+y}-2^x=2^x(2^y-1).
  • ∫dy1+y2=tan⁡−1y\int\frac{dy}{1+y^2}=\tan^{-1}y; ∫ex dx1+e2x=tan⁡−1ex\int\frac{e^x\,dx}{1+e^{2x}}=\tan^{-1}e^x.
  • Two solutions with different constants of y′=y+ky'=y+k never meet.

Separable form

dydx=f(x) g(y) ⇒ ∫dyg(y)=∫f(x) dx+C\frac{dy}{dx}=f(x)\,g(y)\ \Rightarrow\ \int\frac{dy}{g(y)}=\int f(x)\,dx+C

Worked example

Solve dydx=x(1+y2)y\frac{dy}{dx}=\frac{x(1+y^2)}{y} with y(0)=1y(0)=1, and find y2y^2 at x=1x=1.
Practice this conceptself-check · 4 quick reps

The same idea in a real exam question:

JEE Mains · 2025 · 23 Jan 2025 · Q55Moderate

Example 1 · Differential Equations · Separating the Variables

Let a curve y=f(x)y = f(x) pass through the points (0,5)(0,5) and (log⁡e2,k)\left( \log_{e}2,k \right). If the curve satisfies the differential equation 2(3+y)e2xdx−(7+e2x)dy=02(3 + y)e^{2x}dx -\left( 7 +e^{2x} \right)dy = 0, then kk is equal to

Constant before exponentiating

From ln⁡y=x2+C\ln y=x^2+C, the solution is y=Aex2y=Ae^{x^2}, not ex2+Ce^{x^2}+C. Fix the constant in whichever form you keep, and never add it after exponentiating.

Concept 2 of 3: When the slope depends on x alone

If dydx\frac{dy}{dx} is a function of xx only, the equation is just an integral: y=∫f(x) dx+Cy=\int f(x)\,dx+C. The work is the integration — often by parts, by t=ext=e^x, or by recognising a derivative. A second-order equation with no yy in it integrates twice.

Definition

  • y′=f(x)⇒y=∫f(x) dx+Cy'=f(x)\Rightarrow y=\int f(x)\,dx+C.
  • f′′=g′′⇒f−g=ax+bf''=g''\Rightarrow f-g=ax+b.
  • 1+sin⁡2x=(sin⁡x+cos⁡x)2=2sin⁡2(x+π4)1+\sin2x=(\sin x+\cos x)^2=2\sin^2\left(x+\frac\pi4\right).

Direct integration

dydx=f(x) ⇒ y=∫f(x) dx+C\frac{dy}{dx}=f(x)\ \Rightarrow\ y=\int f(x)\,dx+C

Worked example

y′=xcos⁡xy'=x\cos x and y(0)=1y(0)=1. Find y(π)y(\pi).
Practice this conceptself-check · 4 quick reps

The same idea in a real exam question:

JEE Mains · 2026 · 5 Apr 2026 Shift 2 · Q70Moderate

Example 2 · Differential Equations · Separating the Variables

Let f(x)f(x) and g(x)g(x) be twice differentiable functions satisfying f′′(x)=g′′(x)f^{''}(x) =g^{''}(x) for all x∈Rx \in R, f′(1)=2 g′(1)=4f^{'}(1) = 2{\text{ }g}^{'}(1) = 4 and g(2)=3f(2)=9g(2) = 3f(2) = 9. Then f(25)−g(25)f(25) - g(25) is equal to :

Two conditions for a second-order equation

Integrating twice brings two constants, so it needs two conditions — often one on the derivative and one on the value.

Concept 3 of 3: Substituting for x + y, and exact differentials

When the right side is a function of ax+by+cax+by+c, put t=ax+by+ct=ax+by+c: then dtdx=a+bdydx\frac{dt}{dx}=a+b\frac{dy}{dx} and the equation separates in tt and xx. When the equation mixes x dyx\,dy and y dxy\,dx, look for the exact pieces x dy+y dx=d(xy)x\,dy+y\,dx=d(xy) and x dy−y dxx2=d(yx)\frac{x\,dy-y\,dx}{x^2}=d\left(\frac yx\right).

Definition

  • y′=f(ax+by+c)y'=f(ax+by+c): put t=ax+by+ct=ax+by+c, t′=a+bf(t)t'=a+bf(t).
  • x dy+y dx=d(xy)x\,dy+y\,dx=d(xy).
  • x dy−y dxx2=d(yx)\frac{x\,dy-y\,dx}{x^2}=d\left(\frac yx\right), x dy−y dxxy=d(ln⁡yx)\frac{x\,dy-y\,dx}{xy}=d\left(\ln\frac yx\right).
  • M dx+N dy=0M\,dx+N\,dy=0 with My=NxM_y=N_x is exact: integrate to one function F(x,y)=CF(x,y)=C.

Substitution for a linear combination

t=ax+by+c ⇒ dtdx=a+b dydxt=ax+by+c\ \Rightarrow\ \frac{dt}{dx}=a+b\,\frac{dy}{dx}

Worked example

Solve dydx=(x+y)2\frac{dy}{dx}=(x+y)^2 with y(0)=0y(0)=0.
Practice this conceptself-check · 4 quick reps

The same idea in a real exam question:

JEE Mains · 2024 · 27 Jan 2024 · Q83Moderate

Example 3 · Differential Equations · Separating the Variables

If the solution of the differential equation (2x+3y−2)dx+(4x+6y−7)dy=0,y(0)=3(2x+ 3y- 2)dx+ (4x+ 6y- 7)dy= 0,y(0) = 3, is αx+βy+3log⁡e∣2x+3y−γ∣=6\alpha x+\beta y+ 3\log_{e}|2x+ 3y-\gamma| = 6, then α+2β+3γ\alpha+ 2\beta+ 3\gamma is equal to

Differentiate the substitution fully

With t=2x+3yt=2x+3y, dtdx=2+3dydx\frac{dt}{dx}=2+3\frac{dy}{dx}, not 3dydx3\frac{dy}{dx}. Dropping the 2 gives a separable equation with the wrong answer.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (3)

  • Separate, integrate, fix the constant

    Separable form

    dydx=f(x) g(y) ⇒ ∫dyg(y)=∫f(x) dx+C\frac{dy}{dx}=f(x)\,g(y)\ \Rightarrow\ \int\frac{dy}{g(y)}=\int f(x)\,dx+C
  • When the slope depends on x alone

    Direct integration

    dydx=f(x) ⇒ y=∫f(x) dx+C\frac{dy}{dx}=f(x)\ \Rightarrow\ y=\int f(x)\,dx+C
  • Substituting for x + y, and exact differentials

    Substitution for a linear combination

    t=ax+by+c ⇒ dtdx=a+b dydxt=ax+by+c\ \Rightarrow\ \frac{dt}{dx}=a+b\,\frac{dy}{dx}

Watch out for (3)

Test yourself on Differential Equations

20 past JEE Mains questions from this chapter, timed at 48 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.