Class 12 MathsAll 13 chaptersQuick lessonWorked solutionsPast papersPast papersGet updates

Differential Equations.
Find the curve from its slope.

An ordinary equation asks for a number. A differential equation asks for a whole function, and all it tells you is how that function changes: its slope, its rate of growth, its acceleration. From that rule you rebuild the function. That is how physics predicts a falling stone, how banks grow money continuously, and how doctors know when a medicine has worn off.

Each dash shows the slope the equation dy/dx = x − y demands at that point. Every solution curve follows the dashes; the faint ones are the general solution (one for each value of C), and the bold one is the particular solution through the starting point (0, 1).
Part 1 · Sections 9.1–9.2

A differential equation is a rule for slopes.

A differential equation tells you how an unknown function changes. Your job is to find the function itself.

What it is
x dydx + y = 0

An equation with derivatives of a dependent variable y with respect to an independent variable x is a differential equation. With only one independent variable it is ordinary: the only kind in this chapter.

Short names
y′ = dydx,  y″ = d²ydx²

Then y‴ for the third derivative, and yₙ for the nth derivative.

Read it as slopes
dydx = F(x, y)

A first-order equation says: at the point (x, y) the unknown curve must have slope F(x, y). Draw that slope as a little dash at many points: a slope field. Solving means finding curves that follow it.

Slope-field labPick an equation and move the point. The green tangent is the slope the equation demands there. Any solution through that point must leave it in that direction.
slope demanded at the point
Part 2 · Sections 9.2.1–9.2.2

Order and degree.

Two labels describe a differential equation: its order (the highest derivative in it) and its degree (the power of that derivative).

Order
(y‴)² + (y″)³ + y = 0

The order is the order of the highest derivative present. Here that is y‴, so the order is 3.

Degree
(y‴)²  →  degree 2

The degree is the highest power of that highest-order derivative. Order and degree, when defined, are positive integers.

Not always defined
y‴ + y² + ey′ = 0

The degree exists only when the equation is a polynomial in y′, y″, … Functions of x or of y itself are allowed, but not sin(y′), ey′, … So this one has order 3 and no degree.

Build an equationChoose which derivative appears first, its power, and whether it is wrapped inside sin. The other terms are always 3(y′)² + xy = cos x.
result
Example 1

Order and degree of y′ − cos x = 0; xy y″ + x(y′)² − y y′ = 0; y‴ + y² + e^{y′} = 0.

  1. Highest derivative, then its power.
1, 1; 2, 1; 3, not defined.
Part 3 · Section 9.3

General and particular solutions.

A solution is a function that makes the equation true. Usually a whole family of functions works, one for each value of the constants.

A solution
y″ + y = 0

A solution makes the equation true for every x when it and its derivatives are substituted. y = a sin(x + b) solves this one for all values of a and b.

General solution
y = a sin(x + b)

A solution with arbitrary constants is the general solution. It has as many constants as the order: here two, for a second-order equation.

Particular solution
y = 2 sin(x + π4)

Choosing values for the constants gives a particular solution. A condition such as “y = 1 when x = 0” picks it out of the family.

Family laby = a sin(x + b). Change a and b: the curve changes, but y″ + y (measured numerically at x = 1) stays 0. Two constants for a second-order equation.
y″ + y at x = 1
Example 2

y = e^{−3x} solves y″ + y′ − 6y = 0.

  1. 9 − 3 − 6 = 0.
Verified.
Example 3

y = a cos x + b sin x solves y″ + y = 0.

  1. y″ = −y.
Verified.
Part 4 · Section 9.4.1

Variables separable: split, then integrate.

When the slope is an x part times a y part, pull them apart: all the y’s on one side, all the x’s on the other. Then integrate.

Spot it
dydx = g(x) h(y)

The slope is a function of x alone times a function of y alone. Then the variables are separable.

The classic case
dPdt = kP  →  P = P₀ekt

Continuous growth: the rate is proportional to the amount.

How to use it

  1. Check that the equation can be written as dy/dx = g(x) h(y).
  2. Move every y to the left with dy and every x to the right with dx: dy / h(y) = g(x) dx.
  3. Integrate both sides: H(y) = G(x) + C, where H and G are antiderivatives of 1/h(y) and g(x).
  4. If a starting value is given, put it in to find C.
Growth labdP/dt = kP: money growing continuously at rate k. The doubling time log 2/k does not depend on how much you start with.
doubling time log 2/k
Example 4

dy/dx = (x + 1)/(2 − y).

  1. (2 − y) dy = (x + 1) dx.
x² + y² + 2x − 4y + C = 0.
Example 5

dy/dx = (1 + y²)/(1 + x²).

  1. tan⁻¹ on both sides.
tan⁻¹y = tan⁻¹x + C.
Example 6

dy/dx = −4xy², y(0) = 1.

  1. −1/y = −2x² + C.
y = 1/(2x² + 1).
Example 7

x dy = (2x² + 1) dx through (1, 1).

  1. y = x² + log|x| + C.
y = x² + log|x|.
Example 8

Slope 2x/y² through (−2, 3).

  1. y³/3 = x² + C.
y = (3x² + 15)^{1/3}.
Example 9

Principal grows continuously at 5%.

  1. P = 1000e^{t/20}.
Doubles at t = 20 log 2.
Part 5 · Section 9.4.2

Homogeneous equations: put y = vx.

In a homogeneous equation the slope depends only on the ratio y/x. Put y = vx and the equation becomes separable.

Degree n
F(λx, λy) = λⁿ F(x, y)

Scale x and y by the same λ and F scales by λⁿ. Then F is a homogeneous function of degree n.

Homogeneous equation
dydx = F(x, y) = g(yx)

The equation is homogeneous when F has degree 0. Then the slope is the same all along each line y = vx through the origin.

The other way round
dxdy = h(xy)

If the equation has this form, put x = vy instead.

How to use it

  1. Check that F has degree 0, so that it can be written as g(y/x).
  2. Substitute y = vx, so dy/dx = v + x dv/dx.
  3. The equation becomes x dv/dx = g(v) − v, which separates: solve it for v.
  4. Put v = y/x back to get the answer in x and y.
Ray labFor dy/dx = (x + 2y)/(x − y), pick a ray y = vx. Every point on it gets the same slope (1 + 2v)/(1 − v): the slope depends only on v = y/x.
slope along the ray
Example 10

(x − y) dy/dx = x + 2y.

  1. y = vx, then tan⁻¹ and log.
log|x² + xy + y²| = 2√3 tan⁻¹((x + 2y)/(√3x)) + C.
Example 11

x cos(y/x) dy/dx = y cos(y/x) + x.

  1. cos v dv = dx/x.
sin(y/x) = log|Cx|.
Example 12

2y e^{x/y} dx + (y − 2x e^{x/y}) dy = 0, x = 0 when y = 1.

  1. x = vy.
2e^{x/y} + log|y| = 2.
Example 13

Slope (x² + y²)/(2xy).

  1. y = vx.
x² − y² = Cx.
Part 6 · Section 9.4.3

Linear equations: the integrating factor.

Multiply a linear equation by the right factor and its left side becomes one single derivative. One integration then solves it.

The form
dydx + Py = Q

A first-order linear equation, with P and Q constants or functions of x only.

Integrating factor
IF = e∫P dx
y · IF = ∫ (Q × IF) dx + C

Multiplying by the integrating factor turns the left side into the derivative of y · IF.

Linear in x
dxdy + P₁x = Q₁
IF = e∫P₁ dy

Swap the roles of x and y: then x · IF = ∫(Q₁ × IF) dy + C.

How to use it

  1. Write the equation as dy/dx + Py = Q (divide by the number or function in front of dy/dx if there is one) and read off P and Q.
  2. Work out the integrating factor IF = e∫P dx.
  3. Write y · IF = ∫(Q × IF) dx + C and do the integral.
  4. Divide by IF to get y. If a condition is given, use it to find C.
Settling labdy/dx + ky = Q with constant k and Q (like a cooling cup or a filling tank). IF = e^{kx} gives y = Q/k + (y₀ − Q/k)e^{−kx}: every solution settles on the level Q/k.
solution
Example 14

dy/dx − y = cos x.

  1. IF = e^{−x}.
y = (sin x − cos x)/2 + Ceˣ.
Example 15

x dy/dx + 2y = x².

  1. IF = x².
y = x²/4 + Cx⁻².
Example 16

y dx − (x + 2y²) dy = 0.

  1. Linear in x, IF = 1/y.
x = 2y² + Cy.
Example 17

dy/dx + y cot x = 2x + x² cot x, y(π/2) = 0.

  1. IF = sin x.
y = x² − π²/(4 sin x).
Example 18

Slope x + xy through (0, 1).

  1. IF = e^{−x²/2}.
y = −1 + 2e^{x²/2}.
Example 19

y = e^{ax}(c₁ cos bx + c₂ sin bx) solves y″ − 2ay′ + (a² + b²)y = 0.

  1. Differentiate twice, collect.
Verified.
Example 20

log(dy/dx) = 3x + 4y, y(0) = 0.

  1. Separable after exponentiating.
4e^{3x} + 3e^{−4y} − 7 = 0.
Example 21

(x dy − y dx) y sin(y/x) = (y dx + x dy) x cos(y/x).

  1. Homogeneous.
sec(y/x) = Cxy.
Example 22

(tan⁻¹y − x) dy = (1 + y²) dx.

  1. Linear in x.
x = tan⁻¹y − 1 + Ce^{−tan⁻¹y}.
Self-check

The twelve multiple-choice questions, and three more.

Fifteen quick questions to check yourself. Tap an option to see whether it is right, and why.

Every MCQ from Exercises 9.1–9.5 and the miscellaneous exercise, plus three concept checks.

Score0 / 1515 left to answer
Summary

Remember this.

A differential equation involves derivatives of the dependent variable. Order = highest derivative; degree = its power, defined only for polynomial equations in the derivatives.

A solution satisfies the equation identically. The general solution has as many arbitrary constants as the order; a particular solution has none.

Separable: dy/h(y) = g(x) dx, integrate both sides.

Homogeneous (dy/dx = f(x, y) with f of degree 0): put y = vx (or x = vy) and separate.

Linear dy/dx + Py = Q: IF = e^{∫P dx}, y · IF = ∫Q · IF dx + C.

A little history

A language for change.

11 Nov 1675Leibniz

Wrote ∫y dy = ½y², introducing the symbols ∫ and dy; this is often called the birthday of differential equations.

1691–1695Leibniz

Found the methods of separating variables, solving homogeneous first-order equations, and solving linear first-order equations.

1690sthe Bernoullis

James Bernoulli called the answer the "integral" of the equation; John Bernoulli named separation of variables.

late 1800sPoincaré

Championed the word "solution" and started the qualitative study of equations whose solutions cannot be written down.

Finished Chapter 9? Hear when the next one is ready

Leave your email and we will write when a new chapter or a new set of worked solutions is ready. That is all we use it for, and you can ask to be taken off the list at any time.

You are on the list. We will email you when new chapters are added, and for nothing else.