PYQ Vault

CBSE Class 12 Maths · Differential Equations

Variables Separable

Equations in which the slope is a function of x times a function of y: separate the variables, integrate both sides, add one constant, and use a given condition to find a particular solution.

Why this matters

68 questions, thirty-one of them from board papers in every year from 2022 to 2026; twelve of the thirty-one are one-mark MCQs. The board asks for general solutions of equations that separate (every year), equations written with an exponential or a logarithm such as log(dy/dx) = 3x + 4y or dy/dx = e to the power x + y (2022 and 2024 to 2026, once in 2026 as assertion-reason), particular solutions from a condition such as y(π/4) = 2 (every year), and case studies on growing bacteria (2024) and a cooling laptop processor (2025). The textbook adds Exercise 9.3, Examples 4 to 9, Miscellaneous Example 20 and several Miscellaneous questions.

Concept 1 of 5: When the slope is a function of x alone

If dy/dx depends on x only, there is nothing to separate: the solution is just the integral of the right side, plus one constant. The work is in simplifying the right side so that it can be integrated.

Definition

  • dydx=g(x)\dfrac{dy}{dx} = g(x) gives dy=g(x) dxdy = g(x)\,dx, so y=∫g(x) dx+Cy = \displaystyle\int g(x)\,dx + C.
  • Simplify first: cancel a common factor, divide out a fraction, or use an identity such as 1−cos⁡x1+cos⁡x=tan⁡2x2=sec⁡2x2−1\dfrac{1 - \cos x}{1 + \cos x} = \tan^2\dfrac{x}{2} = \sec^2\dfrac{x}{2} - 1.
  • dy and dx mixed: rearrange first. x dy=(2x2+1) dxx\,dy = (2x^2 + 1)\,dx gives dy=(2x+1x)dxdy = \left(2x + \dfrac{1}{x}\right)dx.
  • The derivative inside a function: undo the function. edydx=g(x)e^{\frac{dy}{dx}} = g(x) gives dydx=log⁡g(x)\dfrac{dy}{dx} = \log g(x); cos⁡(dydx)=a\cos\left(\dfrac{dy}{dx}\right) = a gives dydx=cos⁡−1a\dfrac{dy}{dx} = \cos^{-1}a.
  • Add exactly one arbitrary constant, on one side.

Direct integration

dydx=g(x)  ⇒  y=∫g(x) dx+C\dfrac{dy}{dx} = g(x) \;\Rightarrow\; y = \int g(x)\,dx + C

Worked example

Find the general solution of (x2+4)dydx=x3(x^2 + 4)\dfrac{dy}{dx} = x^3.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2022 · 65/3/3 · Q3Easy

Example 1 · Differential Equations · Variables Separable

Find the general solution of the differential equation : dydx=3e2x+3e4xex+e−x\dfrac{dy}{dx} = \dfrac{3e^{2x} + 3e^{4x}}{e^x + e^{-x}}

No arbitrary constant

A general solution must carry its constant. y=xsin⁡x+cos⁡xy = x\sin x + \cos x without the + C+\,C is one particular solution, not the general one.

Integrating before simplifying

A fraction such as x3x2+4\dfrac{x^3}{x^2 + 4} cannot be integrated as it stands. Divide first, or cancel the common factor, then integrate term by term.

Concept 2 of 5: Separating a product g(x) h(y)

When the slope is a function of x multiplied by a function of y, move everything with y to the dy side and everything with x to the dx side. Then each side can be integrated on its own.

Definition

  • If dydx=g(x) h(y)\dfrac{dy}{dx} = g(x)\,h(y) with h(y)≠0h(y) \neq 0, separate: dyh(y)=g(x) dx\dfrac{dy}{h(y)} = g(x)\,dx.
  • Integrate both sides: H(y)=G(x)+CH(y) = G(x) + C, where H and G are antiderivatives of 1h(y)\dfrac{1}{h(y)} and g(x)g(x).
  • For an equation in the form M dx+N dy=0M\,dx + N\,dy = 0, divide through by the product of the factors that are on the 'wrong' side, for example by tan⁡xtan⁡y\tan x\tan y.
  • A term f′(x)f(x)\dfrac{f'(x)}{f(x)} integrates to log⁡∣f(x)∣\log|f(x)|. When both sides give logarithms, write the constant as log⁡C\log C and combine: log⁡∣x∣+log⁡∣y∣=log⁡C\log|x| + \log|y| = \log C gives xy=Cxy = C.
  • An improper fraction such as yy+3\dfrac{y}{y + 3} is split first: 1−3y+31 - \dfrac{3}{y + 3}.

Separating the variables

dydx=g(x) h(y)  ⇒  ∫dyh(y)=∫g(x) dx+C\dfrac{dy}{dx} = g(x)\,h(y) \;\Rightarrow\; \int \dfrac{dy}{h(y)} = \int g(x)\,dx + C

Worked example

Find the general solution of x(1+y2) dx+y(1+x2) dy=0x(1 + y^2)\,dx + y(1 + x^2)\,dy = 0.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2023 · 65/4/1 · 29 (b)Moderate

Example 2 · Differential Equations · Variables Separable

Find the general solution of the differential equation extan⁡y dx+(1−ex)sec⁡2y dy=0e^x \tan y\, dx + (1 - e^x)\sec^2 y\, dy = 0.

Leaving x on the dy side

Every factor with y must go with dy and every factor with x with dx. A term like 1+x2y dy\dfrac{1 + x^2}{y}\,dy cannot be integrated with respect to y.

Combining logs wrongly

log⁡∣x∣+log⁡∣y∣=log⁡C\log|x| + \log|y| = \log C gives xy=Cxy = C, not x+y=Cx + y = C. And log⁡∣y∣−log⁡∣x∣=log⁡C\log|y| - \log|x| = \log C gives y=Cxy = Cx.

Dropping a minus sign when you move a term across

From x2 dy+y2 dx=0x^2\,dy + y^2\,dx = 0 you get dyy2=−dxx2\dfrac{dy}{y^2} = -\dfrac{dx}{x^2}. Losing the minus changes which option matches.

Concept 3 of 5: Exponentials and logarithms of the slope

An equation like log(dy/dx) = ax + by, or dy/dx = e to the power x + y, looks hard, but taking the exponential and splitting the power turns it into a product of a function of x and a function of y. Then it separates.

Definition

  • log⁡(dydx)=ax+by\log\left(\dfrac{dy}{dx}\right) = ax + by means dydx=eax+by=eaxeby\dfrac{dy}{dx} = e^{ax + by} = e^{ax}e^{by}.
  • Separate: e−by dy=eax dxe^{-by}\,dy = e^{ax}\,dx. Integrate: −e−byb=eaxa+C-\dfrac{e^{-by}}{b} = \dfrac{e^{ax}}{a} + C.
  • ex−y=exeye^{x - y} = \dfrac{e^{x}}{e^{y}}, so dydx=ex−y\dfrac{dy}{dx} = e^{x - y} separates as ey dy=ex dxe^{y}\,dy = e^{x}\,dx.
  • Clear fractions by multiplying through by the LCM and rename the constant, to match the form of an MCQ option.
  • exe^{x} and e−ye^{-y} are always positive, so a sum such as ex+e−ye^{x} + e^{-y} can never equal zero or a negative number.
  • Assertion-reason (Mathematics, 2023 to 2026): (A) both A and R are true and R explains A; (B) both true but R does not explain A; (C) A is true and R is false; (D) A is false and R is true. Decide A and R separately before you choose.

Splitting an exponential

eax+by=eax ebye^{ax + by} = e^{ax}\,e^{by}

Worked example

Find the general solution of log⁡(dydx)=2x+5y\log\left(\dfrac{dy}{dx}\right) = 2x + 5y.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2026 · 65/3/1 · Q19Moderate

Example 3 · Differential Equations · Variables Separable

Questions number 19 and 20 are Assertion and Reason based questions. Two statements are given, one labelled Assertion (A) and the other labelled Reason (R). Select the correct answer from the codes (A), (B), (C) and (D) as given below.
Assertion (A) : One of the particular solutions of the differential equation dydx=ex+y\dfrac{dy}{dx} = e^{x+y} can be ex+e−y=−2e^x + e^{-y} = -2. Reason (R) : ex+e−y=Ce^x + e^{-y} = C is the general solution of the differential equation dydx=ex+y\dfrac{dy}{dx} = e^{x+y}.

Writing the exponential of a sum as a sum

ex+y=exeye^{x + y} = e^{x}e^{y}, not ex+eye^{x} + e^{y}. Only the product form separates.

Integrating e to the power −5y without the divisor

∫e−5y dy=−e−5y5\displaystyle\int e^{-5y}\,dy = -\dfrac{e^{-5y}}{5}. Forgetting the −15-\dfrac{1}{5} gives an option that looks right but has the wrong coefficients.

Using the Physics meaning of code (D)

In the Mathematics paper, code (D) means the Assertion is false and the Reason is true. It does not mean that both are false.

Concept 4 of 5: A particular solution, and the curve through a point

Solve the equation in general first. Then the given condition, a value of y at some x or a point the curve passes through, picks out one value of the constant. Put it back and you have the particular solution.

Definition

  • Step 1: find the general solution, with its constant C.
  • Step 2: put in the condition, y=y0y = y_0 when x=x0x = x_0 (written y(x0)=y0y(x_0) = y_0), and solve for C.
  • Step 3: write the particular solution with that value of C; simplify it if you can.
  • 'The slope of the tangent at (x,y)(x, y) is ...' means dydx=…\dfrac{dy}{dx} = \ldots; 'the curve passes through (x0,y0)(x_0, y_0)' is the condition.
  • Values to have ready: log⁡1=0\log 1 = 0, e0=1e^{0} = 1, sin⁡π2=1\sin\dfrac{\pi}{2} = 1, sec⁡0=1\sec 0 = 1, tan⁡π4=1\tan\dfrac{\pi}{4} = 1.
  • NCERT also uses a substitution when it gives a hint, such as x−y=tx - y = t (Miscellaneous Question 9): the new equation then separates in x and t.

Fixing the constant

H(y0)=G(x0)+C  ⇒  C=H(y0)−G(x0)H(y_0) = G(x_0) + C \;\Rightarrow\; C = H(y_0) - G(x_0)

Worked example

Find the particular solution of (1+x2)dydx=2xy(1 + x^2)\dfrac{dy}{dx} = 2xy, given that y=4y = 4 when x=1x = 1.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2024 · 65/4/1 · 29 (a)Moderate

Example 4 · Differential Equations · Variables Separable

Find the particular solution of the differential equation dydx=ycot⁡2x\dfrac{dy}{dx} = y \cot 2x, given that y(π4)=2y\left(\dfrac{\pi}{4}\right) = 2.

Putting the condition in before integrating

The condition belongs in the general solution, after you integrate. Substituting it into the differential equation itself does not give C.

Stopping at the value of C

Finding C=2C = 2 is not the answer. Write the particular solution with C replaced, for example y=2(1+x2)y = 2(1 + x^2).

A wrong value at the point

At x=1x = 1, log⁡1=0\log 1 = 0; at x=0x = 0, cos⁡0=1\cos 0 = 1, not 0. A slip here gives the wrong C even when the integration is right.

Concept 5 of 5: Growth, decay and cooling

Many word problems say that a quantity changes at a rate proportional to its size, or to its difference from a fixed value. That sentence is the differential equation, and it always separates. Its solution is an exponential.

Definition

  • Rate proportional to the amount: dPdt=kP\dfrac{dP}{dt} = kP. Separating, log⁡P=kt+C\log P = kt + C, so P=P0ektP = P_0e^{kt}, where P0P_0 is the value at t=0t = 0.
  • Interest compounded continuously at r% a year: dPdt=r100P\dfrac{dP}{dt} = \dfrac{r}{100}P (NCERT Example 9).
  • Rate proportional to a difference, as in cooling towards a room temperature TsT_s: dTdt=−k(T−Ts)\dfrac{dT}{dt} = -k(T - T_s). Separate with T−TsT - T_s to get T−Ts=(T0−Ts)e−ktT - T_s = (T_0 - T_s)e^{-kt}, where T0T_0 is the temperature at t=0t = 0.
  • Doubling: ekt=2e^{kt} = 2 gives t=log⁡2kt = \dfrac{\log 2}{k}.
  • Use the log or exponential values given in the question, and give the answer with its unit.

Rate proportional to the amount

dPdt=kP  ⇒  P=P0ekt\dfrac{dP}{dt} = kP \;\Rightarrow\; P = P_0e^{kt}

Worked example

Rs 500 is deposited in a bank where the principal increases continuously at 8% per year. Find the amount after 5 years. (e0.4=1.492)(e^{0.4} = 1.492)
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2025 · 65/4/1 · 38 (i)Moderate

Example 5 · Differential Equations · Variables Separable

During a heavy gaming session, the temperature of a student's laptop processor increases significantly. After the session, the processor begins to cool down, and the rate of cooling is proportional to the difference between the processor's temperature and the room temperature (25∘C)(25^\circ\text{C}). Initially the processor's temperature is 85∘C85^\circ\text{C}. The rate of cooling is defined by the equation ddt(T(t))=−k(T(t)−25)\frac{d}{dt}(T(t)) = -k(T(t) - 25), where T(t) represents the temperature of the processor at time t (in minutes) and k is a constant. Based on the above information, answer the following questions :
Find the expression for temperature of processor, T(t) given that T(0)=85∘CT(0) = 85^\circ\text{C}.

Writing the percentage as a whole number

Growth at 8% a year means dPdt=0.08P\dfrac{dP}{dt} = 0.08P, not 8P8P.

Losing the minus sign in cooling

A body cooling towards room temperature has dTdt=−k(T−Ts)\dfrac{dT}{dt} = -k(T - T_s) with k>0k > 0. Without the minus the temperature would rise for ever.

No unit in the answer

Answer in the question's words: 'after about 13.86 years', 'Rs 746', 'after 4 weeks'. A bare number loses the last mark.

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 (5)

Watch out for (14)

Test yourself on Differential Equations

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