Class 12 Maths, Worked in Full Past papersGet updates
Chapter 9 · Differential Equations · Go for it

Differential equations, the quick way

A differential equation is a rule about a slope. Read off its order and degree, then pick one of three methods to solve it. Nine kinds of question cover the chapter.

Start here

The chapter in one minute

What a differential equation is, and what the exam asks.

A differential equation is an equation with a derivative in it, like dydx=x+y\frac{dy}{dx} = x + y⁠. It is a rule about the slope of a curve.

To solve it, you find yy itself. The general solution has a constant CC in it. A particular solution has a number in place of CC⁠, found from a given point.

The exam asks for the order and degree, asks you to check a solution, and asks you to solve an equation by one of three methods: separate the variables, put y=vxy = vx⁠, or use an integrating factor.

Most questions are one of nine kinds, and each kind has a fixed recipe. You will learn all nine below.

9question types
12formula cards
3ways to solve: separate, put y = vx, integrating factor
1check that catches most mistakes: put your answer back into the equation
Formulas

The formulas you must know

Learn these cards. Every question in the chapter is built from them.

Order and degree
(d2ydx2)3+dydx=0\left(\frac{d^2y}{dx^2}\right)^3 + \frac{dy}{dx} = 0

Order 2: the highest derivative is the second one. Degree 3: the highest power of that derivative.

Degree not defined
dydx+sin⁡(dydx)=0\frac{dy}{dx} + \sin\left(\frac{dy}{dx}\right) = 0

A degree needs a polynomial in the derivatives. A derivative inside sin, cos, tan, log or e is not one, so the degree is not defined. The order is still 1.

General solution
y=acos⁡x+bsin⁡xy = a\cos x + b\sin x

It solves y′′+y=0y'' + y = 0⁠, which has order 2, so it has 2 constants, aa and bb⁠. A particular solution has none.

Variables separable
dydx=g(x) h(y)⇒∫dyh(y)=∫g(x) dx\begin{aligned} &\frac{dy}{dx} = g(x)\,h(y) \\ &\Rightarrow \int\frac{dy}{h(y)} = \int g(x)\,dx \end{aligned}

All yy with dydy⁠, all xx with dxdx⁠. Then integrate and add + C+\,C⁠.

Homogeneous test
F(λx,λy)=F(x,y)F(\lambda x, \lambda y) = F(x, y)

If this holds, dydx=F(x,y)\frac{dy}{dx} = F(x, y) is homogeneous. Quick look: every term on the top and bottom of the fraction has the same degree, or yy and xx appear only as yx\frac{y}{x}⁠.

Put y=vxy = vx
y=vxdydx=v+xdvdx\begin{aligned} y &= vx \\ \frac{dy}{dx} &= v + x\frac{dv}{dx} \end{aligned}

Then separate vv and xx⁠. At the end, put v=yxv = \frac{y}{x} back.

Linear equation
dydx+Py=Q\frac{dy}{dx} + Py = Q

PP and QQ are numbers or functions of xx only. Divide first, so that nothing multiplies dydx\frac{dy}{dx}⁠.

Integrating factor
I.F.=e∫P dx\text{I.F.} = e^{\int P\,dx}

Integrate PP first, then raise ee to it.

The linear answer
y⋅I.F.=∫Q⋅I.F. dx+C\begin{aligned} &y\cdot\text{I.F.} \\ &= \int Q\cdot\text{I.F.}\,dx + C \end{aligned}

Multiply QQ by the I.F., integrate, and add CC⁠.

xx as the unknown
dxdy+P1x=Q1\frac{dx}{dy} + P_1x = Q_1

P1P_1 and Q1Q_1 are numbers or functions of yy only. Then I.F.=e∫P1 dy\text{I.F.} = e^{\int P_1\,dy} and x⋅I.F.x\cdot\text{I.F.} =∫Q1⋅I.F. dy+C= \int Q_1\cdot\text{I.F.}\,dy + C⁠.

e and log cancel
elog⁡f(x)=f(x)e^{\log f(x)} = f(x)

For f(x)>0f(x) > 0⁠. So elog⁡x=xe^{\log x} = x and e−log⁡x=1xe^{-\log x} = \frac{1}{x}⁠.

Growth at a rate
dPdt=kP⇒P=P0ekt\begin{aligned} &\frac{dP}{dt} = kP \\ &\Rightarrow P = P_0e^{kt} \end{aligned}

P0P_0 is the amount at the start. For rr% a year, k=r100k = \frac{r}{100}⁠.

Question types

The question types and how to crack each one

For each type: how to spot it, what to do, and one real NCERT question worked the exam way.

1. Order and degree: the highest derivative, and its power

Spot it: "find the order and degree (if defined)". Often an MCQ.

  1. Find the highest derivative. If it is y′′′y'''⁠, the order is 3.
  2. Check that the equation is a polynomial in the derivatives. A derivative inside sin, cos, tan, log or e is not, so then the degree is not defined.
  3. If it is a polynomial, the degree is the highest power of the highest derivative. Powers of other terms do not count.

Exercise 9.1 Q6. Find the order and degree of

(y′′′)2+(y′′)3+(y′)4+y5=0\begin{aligned} &(y''')^2 + (y'')^3 \\ &\quad + (y')^4 + y^5 = 0 \end{aligned}

The highest derivative is y′′′y'''⁠, so the order is 3.

It is a polynomial in y′′′y'''⁠, y′′y'' and y′y'⁠, so the degree is defined. It is the highest power of y′′′y'''⁠, which is 2. The 5 on yy does not count: yy is not a derivative.

∴ Order 3; degree 2

In past papers (8): click to see

2. Is it a solution? Differentiate, then substitute

Spot it: "verify that the given function is a solution of the differential equation".

  1. Differentiate the function as many times as the equation needs.
  2. Put yy⁠, y′y' (and y′′y''⁠) into each side, and simplify.
  3. Show that L.H.S. equals R.H.S., and say so in words.

Exercise 9.2 Q4. Verify that y=1+x2y = \sqrt{1 + x^2} is a solution of y′=xy1+x2y' = \frac{xy}{1 + x^2}⁠.

L.H.S.=y′=2x21+x2=x1+x2\begin{aligned} \text{L.H.S.} = y' &= \frac{2x}{2\sqrt{1 + x^2}} \\ &= \frac{x}{\sqrt{1 + x^2}} \end{aligned} R.H.S.=x1+x21+x2=x1+x2\begin{aligned} \text{R.H.S.} &= \frac{x\sqrt{1 + x^2}}{1 + x^2} \\ &= \frac{x}{\sqrt{1 + x^2}} \end{aligned}

∴ L.H.S.=R.H.S.\text{L.H.S.} = \text{R.H.S.}⁠, so the function is a solution

3. Variables separable: yy on one side, xx on the other

Spot it: dydx\frac{dy}{dx} equals a part in xx times a part in yy⁠, like (1+x2)(1+y2)(1 + x^2)(1 + y^2)⁠.

  1. Move every yy to the side with dydy⁠, and every xx to the side with dxdx⁠.
  2. Put an integral sign on both sides and integrate.
  3. Add one + C+\,C⁠, on the xx side.

Exercise 9.3 Q6. Solve dydx=(1+x2)(1+y2)\frac{dy}{dx} = (1 + x^2)(1 + y^2)⁠.

Separate the variables:

dy1+y2=(1+x2) dx\frac{dy}{1 + y^2} = (1 + x^2)\,dx

Integrate both sides:

∫dy1+y2=∫(1+x2) dx\begin{aligned} &\int\frac{dy}{1 + y^2} \\ &= \int(1 + x^2)\,dx \end{aligned}

∴ tan⁡−1y=x+x33+C\tan^{-1}y = x + \frac{x^3}{3} + C

In past papers (7): click to see

4. A particular solution: solve, then find CC

Spot it: a condition such as "y=1y = 1 when x=0x = 0", or "the curve passes through a point".

  1. Find the general solution, with + C+\,C⁠.
  2. Put in the given xx and yy⁠, on a line of their own, and work out CC⁠.
  3. Put that value of CC back. The answer has no CC⁠.

Exercise 9.3 Q14. Solve dydx=ytan⁡x\frac{dy}{dx} = y\tan x⁠, given y=1y = 1 when x=0x = 0⁠.

Separate and integrate:

dyy=tan⁡x dx\frac{dy}{y} = \tan x\,dx log⁡∣y∣=log⁡∣sec⁡x∣+C\log|y| = \log|\sec x| + C

Put x=0x = 0 and y=1y = 1⁠: log⁡1=log⁡1+C\log 1 = \log 1 + C⁠, so C=0C = 0⁠.

So ∣y∣=∣sec⁡x∣|y| = |\sec x|⁠. At the given point both are positive.

∴ y=sec⁡xy = \sec x

In past papers (10): click to see

5. Growth at a rate: money and bacteria

Spot it: "increases continuously at 5% per year", or "the rate of growth is proportional to the number present".

  1. Write the rate as an equation: dPdt=kP\frac{dP}{dt} = kP⁠.
  2. Separate and integrate: P=AektP = Ae^{kt}⁠.
  3. Use the start value to find AA⁠, then put in the time asked for.

Exercise 9.3 Q21. Money grows continuously at 5% per year. What does Rs 1000 become after 10 years? Use e0.5=1.648e^{0.5} = 1.648⁠.

Let PP be the amount after tt years. It grows at 5% of itself each year:

dPdt=5P100=P20\frac{dP}{dt} = \frac{5P}{100} = \frac{P}{20}

Separate and integrate:

∫dPP=∫dt20\int\frac{dP}{P} = \int\frac{dt}{20} log⁡P=t20+C\log P = \frac{t}{20} + C

So P=Aet/20P = Ae^{t/20}⁠, where A=eCA = e^C⁠. At the start, t=0t = 0 and P=1000P = 1000⁠, so A=1000A = 1000⁠.

P=1000e10/20=1000×1.648=1648\begin{aligned} P &= 1000e^{10/20} \\ &= 1000\times 1.648 = 1648 \end{aligned}

∴ After 10 years, P=1648P = 1648⁠: the amount is Rs 1648

6. Homogeneous equations: put y=vxy = vx

Spot it: every term has the same degree, like x2x^2⁠, xyxy and y2y^2⁠, or you see yx\frac{y}{x} inside sin, cos or log. You cannot separate xx and yy⁠.

  1. Write dydx=F(x,y)\frac{dy}{dx} = F(x, y) and show that F(λx,λy)=F(x,y)F(\lambda x, \lambda y) = F(x, y)⁠.
  2. Put y=vxy = vx and dydx=v+xdvdx\frac{dy}{dx} = v + x\frac{dv}{dx}⁠.
  3. Separate vv and xx⁠, and integrate.
  4. Put v=yxv = \frac{y}{x} back and tidy up.

Exercise 9.4 Q4. Solve (x2−y2) dx+2xy dy=0(x^2 - y^2)\,dx + 2xy\,dy = 0⁠.

dydx=y2−x22xy=F(x,y)\frac{dy}{dx} = \frac{y^2 - x^2}{2xy} = F(x, y) F(λx,λy)=λ2(y2−x2)λ2⋅2xy=F(x,y)\begin{aligned} F(\lambda x, \lambda y) &= \frac{\lambda^2(y^2 - x^2)}{\lambda^2\cdot 2xy} \\ &= F(x, y) \end{aligned}

So it is homogeneous. Put y=vxy = vx⁠, so dydx=v+xdvdx\frac{dy}{dx} = v + x\frac{dv}{dx}⁠.

v+xdvdx=v2−12vxdvdx=−1+v22v\begin{aligned} v + x\frac{dv}{dx} &= \frac{v^2 - 1}{2v} \\ x\frac{dv}{dx} &= -\frac{1 + v^2}{2v} \end{aligned} 2v1+v2 dv=−dxx\frac{2v}{1 + v^2}\,dv = -\frac{dx}{x} log⁡(1+v2)=−log⁡∣x∣+log⁡C\begin{aligned} &\log(1 + v^2) \\ &= -\log|x| + \log C \end{aligned}

So (1+v2) x=C(1 + v^2)\,x = C⁠. Put v=yxv = \frac{y}{x} back:

(1+y2x2)x=C\left(1 + \frac{y^2}{x^2}\right)x = C

∴ x2+y2=Cxx^2 + y^2 = Cx

In past papers (12): click to see

7. Linear equations: the integrating factor

Spot it: dydx+Py=Q\frac{dy}{dx} + Py = Q⁠, with PP and QQ in xx only, and yy only to power 1.

  1. Divide so that dydx\frac{dy}{dx} stands alone. Read off PP and QQ⁠.
  2. Find I.F.=e∫P dx\text{I.F.} = e^{\int P\,dx} and simplify it.
  3. Write y⋅I.F.y\cdot\text{I.F.} =∫Q⋅I.F. dx+C= \int Q\cdot\text{I.F.}\,dx + C⁠, and integrate.

Exercise 9.5 Q3. Solve dydx+yx=x2\frac{dy}{dx} + \frac{y}{x} = x^2⁠.

It is linear, with P=1xP = \frac{1}{x} and Q=x2Q = x^2⁠.

I.F.=e∫1xdx=elog⁡x=x\begin{aligned} \text{I.F.} &= e^{\int\frac{1}{x}dx} \\ &= e^{\log x} = x \end{aligned} y⋅x=∫x2⋅x dx=x44+C\begin{aligned} y\cdot x &= \int x^2\cdot x\,dx \\ &= \frac{x^4}{4} + C \end{aligned}

∴ xy=x44+Cxy = \frac{x^4}{4} + C

In past papers (7): click to see

8. Linear in xx⁠: when yy will not behave, solve for xx

Spot it: there is a y2y^2 or tan⁡−1y\tan^{-1}y next to dydy⁠, but xx appears only to power 1.

  1. Divide to get dxdy+P1x=Q1\frac{dx}{dy} + P_1x = Q_1⁠, with P1P_1 and Q1Q_1 in yy only.
  2. Find I.F.=e∫P1 dy\text{I.F.} = e^{\int P_1\,dy}⁠.
  3. Write x⋅I.F.x\cdot\text{I.F.} =∫Q1⋅I.F. dy+C= \int Q_1\cdot\text{I.F.}\,dy + C⁠.

Exercise 9.5 Q11. Solve y dx+(x−y2) dy=0y\,dx + (x - y^2)\,dy = 0⁠.

Here xx appears only to power 1, so divide by y dyy\,dy and take xx as the unknown:

dxdy+xy=y\frac{dx}{dy} + \frac{x}{y} = y

So P1=1yP_1 = \frac{1}{y} and Q1=yQ_1 = y⁠.

I.F.=e∫1ydy=elog⁡y=y\begin{aligned} \text{I.F.} &= e^{\int\frac{1}{y}dy} \\ &= e^{\log y} = y \end{aligned} x⋅y=∫y⋅y dy=y33+C\begin{aligned} x\cdot y &= \int y\cdot y\,dy \\ &= \frac{y^3}{3} + C \end{aligned}

∴ x=y23+Cyx = \frac{y^2}{3} + \frac{C}{y}

In past papers (3): click to see

9. A curve from words: turn the slope into an equation

Spot it: "the slope of the tangent at any point (x,y)(x, y) is …", and a point the curve passes through.

  1. The slope of the tangent is dydx\frac{dy}{dx}⁠. Write the words as an equation.
  2. Decide the type (separable, homogeneous or linear) and solve it.
  3. Use the point to find CC⁠, as in type 4.

Exercise 9.5 Q16. Find the equation of a curve through the origin, given that the slope of the tangent at any point (x,y)(x, y) is the sum of the coordinates of the point.

dydx=x+y\frac{dy}{dx} = x + y dydx−y=x\frac{dy}{dx} - y = x

It is linear, with P=−1P = -1 and Q=xQ = x⁠. So I.F.=e∫−1 dx=e−x\text{I.F.} = e^{\int -1\,dx} = e^{-x}⁠.

ye−x=∫xe−x dx=−xe−x−e−x+C\begin{aligned} ye^{-x} &= \int xe^{-x}\,dx \\ &= -xe^{-x} - e^{-x} + C \end{aligned}

The integral is by parts. Through the origin: put x=0x = 0 and y=0y = 0⁠: 0=0−1+C0 = 0 - 1 + C⁠, so C=1C = 1⁠.

ye−x=−xe−x−e−x+1ye^{-x} = -xe^{-x} - e^{-x} + 1

Multiply by exe^x and rearrange.

∴ x+y+1=exx + y + 1 = e^x

Shortcuts

Shortcuts and quick tips

Small habits that save time and marks.

  • Check your answer: differentiate it and put it back into the equation. If both sides agree, you are right.
  • Pick the method in ten seconds. Can you split xx and yy⁠? Separate. Same degree in every term? Put y=vxy = vx⁠. Does it fit dydx+Py=Q\frac{dy}{dx} + Py = Q⁠? Integrating factor.
  • Order and degree MCQ: look first for a derivative inside sin, cos, tan, log or e. If there is one, the answer is "not defined".
  • But sin⁡y\sin y is fine, because yy is not a derivative: y′′+2y′+sin⁡y=0y'' + 2y' + \sin y = 0 has order 2 and degree 1.
  • A general solution of an order 4 equation has 4 constants. A particular solution has none.
  • When the other terms are logs, write the constant as log⁡C\log C⁠. Then the logs combine in one step.
  • Simplify the I.F. at once: elog⁡x=xe^{\log x} = x⁠, e−log⁡x=1xe^{-\log x} = \frac{1}{x}⁠, e2log⁡x=x2e^{2\log x} = x^2⁠.
  • Divide first, then read off PP⁠: for xdydx−y=2x2x\frac{dy}{dx} - y = 2x^2⁠, divide by xx⁠, so P=−1xP = -\frac{1}{x} and I.F.=1x\text{I.F.} = \frac{1}{x}⁠.
  • Find CC straight after integrating, before you tidy up the answer.
Watch out

Mistakes that cost marks

Each one is common, and each has an easy fix.

  • Taking the degree from the biggest power anywhere → use the power of the highest derivative only.
  • Writing the solution of dydx=y\frac{dy}{dx} = y as y=ex+Cy = e^x + C → separate first: log⁡∣y∣=x+C\log|y| = x + C⁠, so y=Aexy = Ae^x⁠.
  • Using I.F.=eP\text{I.F.} = e^{P} → integrate first: I.F.=e∫P dx\text{I.F.} = e^{\int P\,dx}⁠.
  • Reading off PP while dydx\frac{dy}{dx} still has a number or xx in front → divide through first.
  • Writing y=∫Q⋅I.F. dx+Cy = \int Q\cdot\text{I.F.}\,dx + C → the left side is y⋅I.F.y\cdot\text{I.F.}⁠, not yy⁠.
  • Leaving vv in the answer → put v=yxv = \frac{y}{x} back.
  • Putting in the given point before adding + C+\,C → add CC when you integrate, then use the point.
Marks

How the examiner gives marks

From CBSE's own marking schemes. Write these lines and the marks follow.

  • Marks go to value points: lines that change the form. Here that means the separated line, the y=vxy = vx line with its dydx\frac{dy}{dx}⁠, and the I.F. line. Write each one.
  • Say what you use, in a few words: "homogeneous, so put y=vxy = vx", or "linear, with P=…P = \ldots and Q=…Q = \ldots".
  • A general solution ends with one + C+\,C⁠. For a particular solution, show the line where the given values go in and CC comes out.
  • In a "verify" (show that) question, end with "L.H.S. = R.H.S., so it is a solution". CBSE's model answers give the conclusion line half a mark.
  • Give the final answer on its own line. A slip is penalised only once, so keep going. An MCQ earns 1 mark for the right option only.
Practice

Practise these first

Easiest first. Together they cover every type above.

  1. Exercise 9.1 Q4 a derivative inside cos: degree not defined
  2. Exercise 9.2 Q1 verify, with y′y' and y′′y''
  3. Exercise 9.3 Q4 separate the variables
  4. Exercise 9.3 Q15 a curve through (0,0)(0, 0)⁠: find CC
  5. Exercise 9.5 Q18 MCQ: divide by xx first, then the I.F.
  6. Exercise 9.5 Q2 a linear equation with P=3P = 3
  7. Exercise 9.5 Q12 linear in xx⁠: take xx as the unknown
  8. Exercise 9.4 Q3 homogeneous: put y=vxy = vx
  9. Exercise 9.4 Q12 homogeneous, then find CC
  10. Example 18 a slope in words, then a linear equation
  11. Exercise 9.3 Q22 bacteria: growth proportional to the number
Next

You can do this

Nine kinds of question, one recipe each. Spot the type, solve, and put your answer back into the equation to check it. Work through the practice list and you are ready for the exam.

Past papers

31 CBSE board and sample-paper questions on Differential Equations, each with a full-marks exam answer. Practise them →