←
Class 12 Mathematics
9. Differential Equations · 9 / 13
⌕
Chapter 9 of 13

9. Differential Equations

9 sections · 13,098 words

9.1 Chapter Opener: Introduction and Mathematical Modeling

1,125 words · 5 min read

Chapter 9

Differential Equations

Big idea: many laws of nature do not hand you the quantity itself. They tell you how fast it changes, and solving the differential equation rebuilds the quantity from its rate.

A weather report says how fast the night air cools. A bank states the yearly growth rate of a deposit. A tank manual states the rate at which salt flows in and out. None of these tells you the temperature, the balance, or the salt content directly. Each one states a rule about change. This chapter turns such rules into equations and solves them.

  • 9.1 meets the first rule: a cooling drink, and what it means to solve an equation about change.
  • 9.2 names the parts: differential equation, order, degree, and the family of solutions.
  • 9.3 fixes one curve out of the family with extra conditions.
  • 9.4 sorts first-order equations into three types and gives each type its own method.

A cup of hot drink stands in a room at 20°20°C. You notice that it cools quickly at first, and then more and more slowly. The hotter the drink is compared with the room, the faster it loses heat. A simple law says this exactly: the rate of cooling is proportional to the temperature difference. In symbols, with TT the temperature after tt minutes,

dTdt=−0.1 (T−20).\frac{dT}{dt} = -0.1\,(T - 20).

This is a differential equation: an equation that contains the derivative of an unknown function. It does not give TT. It gives a rule about how TT changes. To find TT, you have to solve the equation. If the drink starts at 80°80°C, the solution is

T(t)=20+60 e−0.1t.T(t) = 20 + 60\,e^{-0.1t}.

You can check this by differentiating: dTdt=−6 e−0.1t\frac{dT}{dt} = -6\,e^{-0.1t}, and −0.1 (T−20)=−0.1⋅60 e−0.1t=−6 e−0.1t-0.1\,(T - 20) = -0.1 \cdot 60\,e^{-0.1t} = -6\,e^{-0.1t}. They match. After 1010 minutes the temperature is T(10)=20+60e−1≈42.07°T(10) = 20 + 60e^{-1} \approx 42.07°C. The computer confirmed this by solving the equation step by step on its own, without using the formula.

The solution T = 20 + 60e^(−0.1t). It never quite reaches the room temperature (dashed line), but gets as close as you like.

Read the figure like this. The horizontal axis is time, the vertical axis is temperature. The orange curve starts at 80 and drops steeply, because the gap to room temperature is large. As the curve nears the dashed line, the gap shrinks, so the curve flattens. The flattening is the picture of the minus sign in the equation: the rate dies away as the difference dies away.

Cooling is only one example. The same pattern appears in many places, and each one leads to a differential equation of the same shape.

SituationUnknown quantityRule about its rate
A drink cools in a roomtemperature T(t)T(t)dTdt\frac{dT}{dt} is proportional to T−20T - 20
A small population grows freelycount P(t)P(t)dPdt\frac{dP}{dt} is proportional to PP
A radioactive sample decaysmass N(t)N(t)dNdt\frac{dN}{dt} is proportional to −N-N

All three rules say the same thing in words: the rate is a fixed multiple of the current amount. You will solve all three with one method in Section 9.4.1. The equation states the rule; the solution rebuilds the quantity.

You already know the simplest kind. In Chapter 7 you solved dydx=2x\frac{dy}{dx} = 2x by integrating: y=x2+Cy = x^2 + C. Every integral is the solution of a differential equation of the form dydx=f(x)\frac{dy}{dx} = f(x). The equations in this chapter are harder, because the right side may contain yy too, as in dydx=x y\frac{dy}{dx} = x\,y. You will need all your integration skills.

Differential equations appear wherever something changes according to a rule: cooling and heating, the growth of a population, a decaying radioactive sample, the motion of a falling object, the charging of a battery, the spread of a rumour.

In this chapter you will learn: how to describe a differential equation by its order and degree; what a general and a particular solution are; and three methods to solve first-order equations: variables separable, homogeneous and linear.

⚡ Quick Check Flashcards2 questions

Answer in your own words, then check.

Question 1
[Board Standard] In the cooling equation, what is the unknown function and what is the independent variable?
Try answering before revealing!
Question 2
[HOTS] Explain in one sentence what "solving" the cooling equation gives you.
Try answering before revealing!

Differential equations grew out of calculus. Their story begins in the late 17th century, when mathematicians first learned to work with rates of change.

  • 1675: Gottfried Wilhelm Leibniz (1646–1716) wrote the integral sign ∫\int and the symbol dydy for the first time, in a note on integrating yy. The birth of the subject is often dated to this year. Leibniz wanted to find a curve from a rule about its tangents, which is exactly a differential equation.
  • 1690: Jakob Bernoulli (1654–1705) used the word "integral" for what we now call a solution. The word solution came later: it was used by Joseph-Louis Lagrange (1736–1813) in 1774, and Henri Poincaré (1854–1912) argued strongly for it. The name "separation of variables" is due to Johann Bernoulli (1667–1748), the younger brother of Jakob.
  • 1691 and later: Leibniz found the method of separating variables, then a method for homogeneous equations (about a year later), and soon after a method for linear first-order equations. All three methods of this chapter came from one person within about 25 years of the first equation.
  • Around 1715: Johann Bernoulli studied the innocent-looking equation x2y′′=2yx^2 y'' = 2y and found solutions of surprisingly different shapes. You can see why: it has the solutions y=x2y = x^2 and y=1xy = \frac{1}{x}, and every combination y=Ax2+Bxy = Ax^2 + \frac{B}{x} also works. With B=0B = 0 the graph is a parabola; with A=0A = 0 it is a hyperbola; with both, a cubic-type curve. (The computer checked all three types.)
  • 20th century: mathematicians turned to qualitative analysis: studying how solutions behave (do they settle down, grow, or oscillate?) without finding a formula. This is now essential in physics, biology and engineering.

Every method in this chapter is over three hundred years old, yet scientists and engineers use them daily: the mathematics of change has never gone out of date.

9.2 Basic Concepts: Order, Degree and Linearity

1,571 words · 7 min read

A differential equation is an equation that contains an unknown function of one variable together with its derivatives. We write the derivatives as dydx\frac{dy}{dx}, d2ydx2\frac{d^2y}{dx^2}, ... or in the short form y′y', y′′y'', ... Here are some examples:

  • [Concept] dydx=2y\dfrac{dy}{dx} = 2y (the rate of growth is twice the value),
  • [Board Standard] y′′+y=0y'' + y = 0 (the second derivative is the negative of the function),
  • [HOTS] x y′=y+xx\,y' = y + x.

In this chapter there is only one independent variable (such as xx or tt), so these are ordinary differential equations.

A solution of a differential equation is a function that makes the equation true when you put it in. To test a candidate, follow three steps: calculate its derivatives, substitute them into the equation, and check that both sides agree for every xx.

Test 1. Is y=3e2xy = 3e^{2x} a solution of y′=2yy' = 2y? Differentiate: y′=6e2xy' = 6e^{2x}. And 2y=6e2x2y = 6e^{2x}. They are equal for every xx, so yes. (At x=0x = 0 both sides equal 66.) What about y=e3xy = e^{3x}? Then y′=3e3xy' = 3e^{3x} but 2y=2e3x2y = 2e^{3x}, which is different, so no. The computer checked both claims at several values of xx.

Test 2. Is y=2cos⁡x+5sin⁡xy = 2\cos x + 5\sin x a solution of y′′+y=0y'' + y = 0? We get y′=−2sin⁡x+5cos⁡xy' = -2\sin x + 5\cos x and y′′=−2cos⁡x−5sin⁡xy'' = -2\cos x - 5\sin x, which is exactly −y-y. So y′′+y=0y'' + y = 0. Yes. Testing by substitution is the one skill you will use in every section, so practise it until it feels automatic.

Take y′=2yy' = 2y again. The function y=C e2xy = C\,e^{2x} is a solution for every number CC. Each value of CC gives one curve, and every curve in the picture satisfies the same equation. The equation does not choose between them. To choose one, you need extra information, such as the value of yy at one point. That is the topic of Section 9.3.

Some solutions y = Ce^(2x) of y′ = 2y, for C = −2, −1, 1, 2. The axis y = 0 (C = 0) is a solution too.

Read the figure curve by curve. For positive C the curves climb to the right, because where y is large the slope 2y is large. For negative C they dive down, for the same reason. The dashed axis is the member with C = 0: zero slope everywhere, still a solution. One equation, many curves: that is why extra conditions matter.

Common mistake: thinking a differential equation has one answer. It usually has infinitely many solutions. It has a single answer only after you add conditions.

⚡ Quick Check Flashcards2 questions

Answer in your own words, then check.

Question 1
[Board Standard] Is y=4e2xy = 4e^{2x} a solution of y′=2yy' = 2y? How do you know without drawing anything?
Try answering before revealing!
Question 2
[HOTS] Why does the picture above show several curves instead of one?
Try answering before revealing!

The order of a differential equation is the order of the highest derivative that appears in it. First derivative: order 11. Second derivative: order 22. And so on. Only the highest derivative counts. The unknown function itself (order 00) and any lower derivatives do not change the order.

EquationHighest derivativeOrder
dydx=x+y\dfrac{dy}{dx} = x + yy′y'11
y′′+4y=0y'' + 4y = 0y′′y''22
y′′′+x y′′+y=sin⁡xy''' + x\,y'' + y = \sin xy′′′y'''33
(y′′)2+y′=0(y'')^2 + y' = 0y′′y''22

Look at the last row: the square does not matter for the order. The highest derivative is still the second one, so the order is 2. Powers belong to the next topic, degree.

In simple words: the order tells you how many times you had to differentiate. It also tells you how many arbitrary constants the general solution has (Section 9.3).
Common mistake: confusing a power with an order. In (y′)3+y=0(y')^3 + y = 0 the highest derivative is y′y', so the order is 11, even though it is cubed. The small number 33 is a power, not an order.

⚡ Quick Check Flashcards2 questions

State the order, then check.

Question 1
[Board Standard] (y′′)4+y=x(y'')^4 + y = x
Try answering before revealing!
Question 2
[HOTS] y′+3y=e2xy' + 3y = e^{2x}
Try answering before revealing!

The degree is defined only when the equation is a polynomial in its derivatives. Then the degree is the power of the highest-order derivative.

Before you read off the degree, clear any roots or fractions that contain derivatives, so that the equation is a polynomial in y′,y′′,…y', y'', \dots. Then look at the highest derivative and find its power.

EquationOrderDegreeWhy
y′′+3(y′)2+y=0y'' + 3(y')^2 + y = 02211highest derivative y′′y'' has power 11
(y′′)3+(y′)2+y=0(y'')^3 + (y')^2 + y = 02233highest derivative y′′y'' is cubed
y′′=1+y′y'' = \sqrt{1 + y'}22square both sides: (y′′)2=1+y′(y'')^2 = 1 + y'
sin⁡(y′)+y=x\sin(y') + y = x1not definedthe derivative is inside a sine, so it is not a polynomial
y=x y′+(y′)2y = x\,y' + (y')^212highest derivative y′y' has power 22

Notice two things. First, in sin⁡(y′)+y=x\sin(y') + y = x the derivative sits inside a sine function. A sine is not a polynomial, so the degree is not defined. Second, the power of yy itself does not matter: y′+y5=0y' + y^5 = 0 has degree 11 because y′y' appears to the first power.

Common mistake: looking at the power of yy instead of the power of the highest derivative. Also, do not forget to clear a root first. Written as y′′=1+y′y'' = \sqrt{1 + y'}, the equation looks like degree 11, but after squaring it is degree 22.

⚡ Quick Check Flashcards3 questions

State the order and degree of each equation.

Question 1
[Concept] y′′′+(y′)4+y=0y''' + (y')^4 + y = 0
Try answering before revealing!
Question 2
[Board Standard] y′+ey′=xy' + e^{y'} = x
Try answering before revealing!
Question 3
[HOTS] y′′+(y′)3+6y=0y'' + (y')^3 + 6y = 0
Try answering before revealing!

⚡ Quick Check Flashcards18 questions
Question 1
[Concept] State the order and the degree (if defined) of dydx+y=ex\dfrac{dy}{dx} + y = e^x.
Try answering before revealing!
Question 2
[Concept] State the order and the degree (if defined) of y′′+(y′)3+6y=0y'' + (y')^3 + 6y = 0.
Try answering before revealing!
Question 3
[Concept] State the order and the degree (if defined) of (y′′′)2+(y′′)3+(y′)4+y5=0(y''')^2 + (y'')^3 + (y')^4 + y^5 = 0.
Try answering before revealing!
Question 4
[Concept] State the order and the degree (if defined) of y′′′+2y′′+y′=0y''' + 2y'' + y' = 0.
Try answering before revealing!
Question 5
[Concept] State the order and the degree (if defined) of (y′)2+x y=0(y')^2 + x\,y = 0.
Try answering before revealing!
Question 6
[Concept] State the order and the degree (if defined) of y′′=cos⁡3x+sin⁡3xy'' = \cos 3x + \sin 3x.
Try answering before revealing!
Question 7
[Board Standard] State the order and the degree (if defined) of sin⁡(y′′)+y=0\sin(y'') + y = 0.
Try answering before revealing!
Question 8
[Board Standard] State the order and the degree (if defined) of x (y′′)2+y (y′)3+x3=0x\,(y'')^2 + y\,(y')^3 + x^3 = 0.
Try answering before revealing!
Question 9
[Board Standard] State the order and the degree (if defined) of y′=1+(y′′)2y' = \sqrt{1 + (y'')^2}. (First rewrite it so that it is a polynomial in the derivatives.)
Try answering before revealing!
Question 10
[Board Standard] State the order and the degree (if defined) of y′′+ey′=0y'' + e^{y'} = 0.
Try answering before revealing!
Question 11
[Board Standard] State the order and the degree (if defined) of (y′)3+y=x(y')^3 + y = x.
Try answering before revealing!
Question 12
[Board Standard] State the order and the degree (if defined) of y′′′′+(y′′′)2+y=0y'''' + (y''')^2 + y = 0.
Try answering before revealing!
Question 13
[Board Standard] State the order and the degree (if defined) of y′′+y′=x\sqrt{y''} + y' = x. (First rewrite it so that it is a polynomial in the derivatives.)
Try answering before revealing!
Question 14
[HOTS] State the order and the degree (if defined) of cos⁡(y′)+y=x2\cos(y') + y = x^2.
Try answering before revealing!
Question 15
[HOTS] State the order and the degree (if defined) of (y′′′)3+y=ex(y''')^3 + y = e^x.
Try answering before revealing!
Question 16
[HOTS] State the order and the degree (if defined) of y′+y2=sin⁡xy' + y^2 = \sin x.
Try answering before revealing!
Question 17
[HOTS] State the order and the degree (if defined) of y′′+(y′)2+y3=0y'' + (y')^2 + y^3 = 0.
Try answering before revealing!
Question 18
[HOTS] State the order and the degree (if defined) of ln⁡(y′′)+y=0\ln(y'') + y = 0.
Try answering before revealing!

9.3 General and Particular Solutions of a Differential Equation

1,695 words · 8 min read

Look at the simplest equation dydx=2x\dfrac{dy}{dx} = 2x. Integrating gives y=x2+Cy = x^2 + C. Here CC is an arbitrary constant: you may choose any number. The result is the general solution. It describes all the solutions in one formula.

A particular solution is one single solution, obtained by giving the arbitrary constants definite values. Usually you do this using a condition, for example "the curve passes through the point (1,3)(1, 3)". Then 3=12+C3 = 1^2 + C, so C=2C = 2, and the particular solution is y=x2+2y = x^2 + 2.

The general solution y = x² + C is a whole family of parabolas. The condition "passes through (1, 3)" picks out the one with C = 2.

Read the figure from bottom to top. Every grey curve has the same shape, because every member has the same slope 2x at each x. They differ only by a vertical shift. The marked dot sits on exactly one of them, the orange curve. One point is enough to choose one curve out of infinitely many.

The general solution of an equation of order nn has nn independent arbitrary constants. The order tells you how many.

  • [Board Standard] Order 11: one constant. Example: y′=2yy' = 2y has general solution y=C e2xy = C\,e^{2x}.
  • [HOTS] Order 22: two constants. Example: y′′+y=0y'' + y = 0 has general solution y=Acos⁡x+Bsin⁡xy = A\cos x + B\sin x. The computer checked, for several choices of AA and BB, that this is a solution.

A second-order equation needs two conditions. For y′′+y=0y'' + y = 0, suppose we are told y(0)=1y(0) = 1 and y′(0)=2y'(0) = 2. Since y=Acos⁡x+Bsin⁡xy = A\cos x + B\sin x and y′=−Asin⁡x+Bcos⁡xy' = -A\sin x + B\cos x, putting x=0x = 0 gives A=1A = 1 and B=2B = 2. So the particular solution is y=cos⁡x+2sin⁡xy = \cos x + 2\sin x. Check: y(0)=1y(0) = 1 and y′(0)=2y'(0) = 2.

A ball is thrown straight up. Its height hh (in metres) after tt seconds follows h′′=−10h'' = -10 (gravity slows it down by 1010 m/s every second). Integrate once: h′=−10t+C1h' = -10t + C_1. Integrate again: h=−5t2+C1t+C2h = -5t^2 + C_1 t + C_2. If the ball starts at ground level with speed 2020 m/s, then h(0)=0h(0) = 0 gives C2=0C_2 = 0, and h′(0)=20h'(0) = 20 gives C1=20C_1 = 20. So h=20t−5t2h = 20t - 5t^2. The ball is highest when h′=20−10t=0h' = 20 - 10t = 0, that is at t=2t = 2, where h=20h = 20 m. It is back on the ground at t=4t = 4 s.

You can also start from a family of curves and find the differential equation it satisfies. The rule is: differentiate once for each arbitrary constant, then eliminate the constants. Each differentiation gives one more relation, so with nn constants you differentiate nn times.

One constant. Start from the family y=C e2xy = C\,e^{2x}. Differentiate once: y′=2C e2xy' = 2C\,e^{2x}. The right side is 2y2y, so y′=2yy' = 2y. The constant has disappeared, and we have found the differential equation that this family satisfies. It is first order, as it should be with one constant.

Two constants. Start from y=Acos⁡x+Bsin⁡x+xy = A\cos x + B\sin x + x. Differentiate once: y′=−Asin⁡x+Bcos⁡x+1y' = -A\sin x + B\cos x + 1. Differentiate again: y′′=−Acos⁡x−Bsin⁡xy'' = -A\cos x - B\sin x. Now look at y−xy - x: it equals Acos⁡x+Bsin⁡xA\cos x + B\sin x, which is exactly −y′′-y''. So y′′=−(y−x)y'' = -(y - x), that is y′′+y=xy'' + y = x. Both constants are gone. The result is second order, as it should be with two constants. The computer checked the solution y=3cos⁡x+2sin⁡x+xy = 3\cos x + 2\sin x + x against y′′+y=xy'' + y = x by substitution.

Common mistake: counting constants that are not really independent. The family y=A ex+By = A\,e^{x + B} looks like it has two constants, but ex+B=eB exe^{x + B} = e^B\,e^x, so it equals A′exA'e^x with one constant A′=AeBA' = A e^B. It really has only one constant. (The computer confirmed 2ex+0.5=2e0.5ex2e^{x + 0.5} = 2e^{0.5}e^x.) The number of independent constants must equal the order.

⚡ Quick Check Flashcards2 questions

Answer in your own words, then check.

Question 1
[Board Standard] The equation y′=4x3y' = 4x^3 has general solution y=x4+Cy = x^4 + C. Which member passes through (1,5)(1, 5)?
Try answering before revealing!
Question 2
[HOTS] A family has two independent arbitrary constants. What is the order of its differential equation?
Try answering before revealing!

⚡ Quick Check Flashcards18 questions
Question 1
[Concept] Show that y=2x+3xy = 2x + \dfrac{3}{x} is a solution of x y′+y=4xx\,y' + y = 4x for x>0x > 0.
Try answering before revealing!
Question 2
[Concept] Show that y=C e−3xy = C\,e^{-3x} is a solution of y′+3y=0y' + 3y = 0. Find CC if y(0)=5y(0) = 5, and then find y(1)y(1).
Try answering before revealing!
Question 3
[Concept] Show that y=Acos⁡2x+Bsin⁡2xy = A\cos 2x + B\sin 2x is a solution of y′′+4y=0y'' + 4y = 0. Find the solution with y(0)=3y(0) = 3 and y′(0)=−4y'(0) = -4.
Try answering before revealing!
Question 4
[Concept] Show that y=xln⁡xy = x\ln x is a solution of y′=yx+1y' = \dfrac{y}{x} + 1 for x>0x > 0.
Try answering before revealing!
Question 5
[Concept] Is y=sin⁡xy = \sin x a solution of y′′+y=0y'' + y = 0? Is y=x2y = x^2?
Try answering before revealing!
Question 6
[Concept] Show that y=C1ex+C2e2xy = C_1 e^{x} + C_2 e^{2x} is a solution of y′′−3y′+2y=0y'' - 3y' + 2y = 0. Find the solution with y(0)=1y(0) = 1 and y′(0)=0y'(0) = 0.
Try answering before revealing!
Question 7
[Board Standard] Find the particular solution of y′=3x2−2xy' = 3x^2 - 2x that satisfies y(1)=4y(1) = 4.
Try answering before revealing!
Question 8
[Board Standard] A population PP grows according to dPdt=0.05 P\dfrac{dP}{dt} = 0.05\,P, with P(0)=200P(0) = 200. Show that P=200 e0.05tP = 200\,e^{0.05t} and find P(20)P(20).
Try answering before revealing!
Question 9
[Board Standard] Show that y=4x2y = 4x^2 is a solution of x y′=2yx\,y' = 2y for x>0x > 0.
Try answering before revealing!
Question 10
[Board Standard] Show that y=5+C e−xy = 5 + C\,e^{-x} is a solution of y′+y=5y' + y = 5. Find the member with y(0)=8y(0) = 8, and then find y(2)y(2).
Try answering before revealing!
Question 11
[Board Standard] Show that y=x3y = x^3 is a solution of x y′′−2y′=0x\,y'' - 2y' = 0 for x>0x > 0.
Try answering before revealing!
Question 12
[Board Standard] Show that y=Acos⁡3x+Bsin⁡3xy = A\cos 3x + B\sin 3x is a solution of y′′+9y=0y'' + 9y = 0. Find the member with y(0)=2y(0) = 2 and y′(0)=3y'(0) = 3.
Try answering before revealing!
Question 13
[Board Standard] Find the particular solution of y′=3x2+1y' = 3x^2 + 1 that satisfies y(1)=7y(1) = 7.
Try answering before revealing!
Question 14
[HOTS] Find the particular solution of y′=2x+1y' = 2x + 1 that satisfies y(0)=4y(0) = 4. What is y(3)y(3)?
Try answering before revealing!
Question 15
[HOTS] Show that y=C x3y = C\,x^3 is a solution of x y′=3yx\,y' = 3y. What goes wrong if you try y=C x2y = C\,x^2?
Try answering before revealing!
Question 16
[HOTS] Show that y=11+x2y = \dfrac{1}{1 + x^2} is a solution of (1+x2)y′+2x y=0(1 + x^2)y' + 2x\,y = 0.
Try answering before revealing!
Question 17
[HOTS] Find the particular solution of y′=e2xy' = e^{2x} with y(0)=3y(0) = 3, and find y(1)y(1).
Try answering before revealing!
Question 18
[HOTS] A culture satisfies dPdt=0.08 P\dfrac{dP}{dt} = 0.08\,P, with P(0)=150P(0) = 150. Show that P=150 e0.08tP = 150\,e^{0.08t} and find P(10)P(10).
Try answering before revealing!

9.4 Methods of Solving Differential Equations: Variables Separable Method

2,396 words · 11 min read

From here on we study equations of order 11 and degree 11. They can be written as dydx=f(x,y)\dfrac{dy}{dx} = f(x, y). There is no single method that solves all of them, but three types cover most of what you will meet. Learn to recognise the type first.

TypeIt looks likeMethodSection
Variables separabledydx=f(x) g(y)\dfrac{dy}{dx} = f(x)\,g(y)put all yy on one side, all xx on the other, integrate9.4.1
Homogeneousdydx=F ⁣(yx)\dfrac{dy}{dx} = F\!\left(\dfrac{y}{x}\right)substitute y=vxy = vx, then separate9.4.2
Lineardydx+P(x) y=Q(x)\dfrac{dy}{dx} + P(x)\,y = Q(x)multiply by an integrating factor9.4.3

Each method turns a hard equation into an easy integration. Separation works because integration undoes differentiation: once the xx part and the yy part stand on different sides, each side is an ordinary integral. Substitution works because setting y=vxy = vx rewrites a homogeneous equation using only the single quantity vv, and the result separates. The integrating factor works because multiplying by it packs the whole left side into one product derivative, (yI)′(yI)', which you then integrate. The next three sections carry out each idea in full.

product f(x) g(y)? Separate (9.4.1)only the ratio y/x? Put y = vx (9.4.2)y' + P y = Q? Integrating factor (9.4.3)
Ask what the right side looks like, then pick the matching method. An equation can belong to more than one type; use whichever feels easiest.

Follow the chart from top to bottom. Test the product shape first, then the ratio shape, then the linear shape. If more than one box fits, any matching method gives the same family of solutions.

An equation dydx=f(x,y)\dfrac{dy}{dx} = f(x, y) is homogeneous if replacing xx by λx\lambda x and yy by λy\lambda y does not change ff: f(λx,λy)=f(x,y)f(\lambda x, \lambda y) = f(x, y). This works exactly when ff can be written using only the ratio yx\frac{y}{x}. The computer tried several values of λ\lambda on each function:

f(x,y)f(x, y)Unchanged by x→λxx \to \lambda x, y→λyy \to \lambda y?Homogeneous?
x+yx\dfrac{x + y}{x}yesYes
x2+y2xy\dfrac{x^2 + y^2}{xy}yesYes
yx+tan⁡yx\dfrac{y}{x} + \tan\dfrac{y}{x}yesYes
x+yx + yno (it becomes λ(x+y)\lambda(x + y))No
x+yxy\dfrac{x + y}{xy}no (it becomes 1λ⋅x+yxy\frac{1}{\lambda}\cdot\frac{x + y}{xy})No
In simple words: if you can divide top and bottom by a power of xx and be left with only yx\frac{y}{x}, the equation is homogeneous.

Some equations belong to more than one type. For instance dydx=yx\frac{dy}{dx} = \frac{y}{x} is separable, homogeneous and linear. Use whichever method you find easiest.

⚡ Quick Check Flashcards3 questions

Name the type of each equation, then check. Do not solve yet.

Question 1
[Concept] dydx=x2 ey\dfrac{dy}{dx} = x^2\,e^{y}
Try answering before revealing!
Question 2
[Board Standard] dydx=2x+yx\dfrac{dy}{dx} = \dfrac{2x + y}{x}
Try answering before revealing!
Question 3
[HOTS] dydx+3yx=x2\dfrac{dy}{dx} + \dfrac{3y}{x} = x^2
Try answering before revealing!

A first-order equation is variables separable if it can be written as

dydx=f(x) g(y),\frac{dy}{dx} = f(x)\,g(y),

a product of a function of xx only and a function of yy only. Then you can move everything with yy to one side and everything with xx to the other, and integrate each side.

The steps:

  1. [Concept] Divide by g(y)g(y) and "multiply by dxdx" to separate: dyg(y)=f(x) dx\dfrac{dy}{g(y)} = f(x)\,dx.
  2. [Board Standard] Integrate both sides: ∫dyg(y)=∫f(x) dx+C\displaystyle\int\frac{dy}{g(y)} = \int f(x)\,dx + C. One constant is enough.
  3. [HOTS] If you can, solve for yy. If not, leave the answer as a relation between xx and yy (an implicit solution).

Why does this work? Integrating undoes differentiating. After separation, the left side involves only yy and the right side only xx, so each side is an ordinary integral of the kind you met in Chapter 7. Separation turns one hard problem into two easy ones. The only price is the division by g(y)g(y), which is why you must check the case g(y)=0g(y) = 0 separately (Example 4).

Goal: solve dydx=x y\dfrac{dy}{dx} = x\,y. Separate: dyy=x dx\dfrac{dy}{y} = x\,dx. Integrate: ln⁡∣y∣=x22+c\ln|y| = \dfrac{x^2}{2} + c. Solve for y: ∣y∣=ec ex2/2|y| = e^c\,e^{x^2/2}, so

y=C ex2/2.y = C\,e^{x^2/2}.

Here C=±ecC = \pm e^c may be positive or negative. The value C=0C = 0 (the solution y=0y = 0) also works. The computer checked this for C=2C = 2 and C=−3C = -3.

Goal: solve dydx=1+y21+x2\dfrac{dy}{dx} = \dfrac{1 + y^2}{1 + x^2}. Separate: dy1+y2=dx1+x2\dfrac{dy}{1 + y^2} = \dfrac{dx}{1 + x^2}. Integrate: tan⁡−1y=tan⁡−1x+c\tan^{-1}y = \tan^{-1}x + c. Take the tangent of both sides and use the addition formula for tangent, writing k=tan⁡ck = \tan c:

y=x+k1−kx.y = \frac{x + k}{1 - kx}.

Check: with k=2k = 2, the computer confirmed that y=x+21−2xy = \frac{x + 2}{1 - 2x} satisfies the equation at several points (away from x=12x = \frac{1}{2}, where the formula breaks down because the denominator is zero).

Goal: solve dydx=−xy\dfrac{dy}{dx} = -\dfrac{x}{y}. Separate: y dy=−x dxy\,dy = -x\,dx. Integrate: y22=−x22+c\dfrac{y^2}{2} = -\dfrac{x^2}{2} + c, which gives

x2+y2=C.x^2 + y^2 = C.

This is an implicit solution: a family of circles centred at the origin. The upper half of the circle with C=25C = 25 is the function y=25−x2y = \sqrt{25 - x^2}, and the computer confirmed that it satisfies the equation, and that the slope of the circle at the points (3,4)(3, 4), (4,3)(4, 3), (−3,4)(-3, 4) and (0,5)(0, 5) is −xy-\frac{x}{y}.

The solutions x² + y² = C of dy/dx = −x/y are circles. Each circle is one particular solution.

Read the figure as follows. Pick any point on a circle and draw the tangent there. Its slope always equals minus x over y at that point, exactly what the equation demands. So each circle is a solution, and together the circles fill the plane. An implicit solution can describe curves that are not functions, like full circles.

Before solving, you can picture the equation. At every point (x,y)(x, y), the equation dydx=−xy\frac{dy}{dx} = -\frac{x}{y} fixes the slope of the solution through that point. Drawing a short dash with that slope at each point of a grid gives a slope field. The solution curves must follow the dashes, like a path following signposts.

Slope field of dy/dx = −x/y with one solution curve. Every dash shows the slope the equation prescribes at that point.

Read the figure dash by dash. Along the top row the dashes tilt down to the right; along the bottom row they tilt up. On the vertical axis they are flat, because x = 0 gives slope 0. The orange curve rides the dashes everywhere it goes. If you can draw the field, you can sketch any solution even before you integrate.

Goal: solve dydx=y2\dfrac{dy}{dx} = y^2. Separate: dyy2=dx\dfrac{dy}{y^2} = dx. Integrate: −1y=x+c-\dfrac{1}{y} = x + c, so y=−1x+cy = -\dfrac{1}{x + c}. But we divided by y2y^2, which is not allowed if y=0y = 0. And y=0y = 0 is a solution of the equation (both sides are 00). It cannot be obtained from y=−1x+cy = -\frac{1}{x + c} for any cc. The computer confirmed that both y=−1x+2y = -\frac{1}{x + 2} and y=0y = 0 are solutions.

Goal: return to the drink of Section 9.1, dTdt=−0.1 (T−20)\dfrac{dT}{dt} = -0.1\,(T - 20), T(0)=80T(0) = 80. Separate: dTT−20=−0.1 dt\dfrac{dT}{T - 20} = -0.1\,dt. Integrate: ln⁡∣T−20∣=−0.1t+c\ln|T - 20| = -0.1t + c. Solve for T: T=20+A e−0.1tT = 20 + A\,e^{-0.1t}. Use the condition: from T(0)=80T(0) = 80 we get A=60A = 60. When does the drink reach 30°30°C? Solve 60e−0.1t=1060e^{-0.1t} = 10: t=10ln⁡6≈17.92t = 10\ln 6 \approx 17.92 minutes. A step-by-step numerical solution gives T=30T = 30 at that time.

Common mistakes: (1) adding a constant on both sides (one CC is enough); (2) dividing by an expression that could be zero without checking whether it gives an extra solution; (3) trying to separate an equation like dydx=x+y\frac{dy}{dx} = x + y, which is not a product, so it is not separable.

⚡ Quick Check Flashcards2 questions

Try these, then check.

Question 1
[Board Standard] Is dydx=exsin⁡y\dfrac{dy}{dx} = e^x\sin y separable? If yes, write the separated form.
Try answering before revealing!
Question 2
[HOTS] Solve dydx=2y\dfrac{dy}{dx} = 2y with y(0)=3y(0) = 3, and find y(1)y(1).
Try answering before revealing!

⚡ Quick Check Flashcards18 questions
Question 1
[Concept] Solve dydx=yx\dfrac{dy}{dx} = \dfrac{y}{x} for x>0x > 0.
Try answering before revealing!
Question 2
[Concept] Solve dydx=ex−y\dfrac{dy}{dx} = e^{x - y}.
Try answering before revealing!
Question 3
[Concept] Solve (1+x2)dydx=x y(1 + x^2)\dfrac{dy}{dx} = x\,y.
Try answering before revealing!
Question 4
[Concept] Solve dydx=2x (y+1)\dfrac{dy}{dx} = 2x\,(y + 1) with y(0)=1y(0) = 1.
Try answering before revealing!
Question 5
[Concept] Solve dydx=ycos⁡x\dfrac{dy}{dx} = y\cos x with y(0)=2y(0) = 2.
Try answering before revealing!
Question 6
[Concept] Solve xdydx+y=0x\dfrac{dy}{dx} + y = 0 for x>0x > 0. What is the solution through (1,4)(1, 4)?
Try answering before revealing!
Question 7
[Board Standard] Solve dydx=y2x\dfrac{dy}{dx} = \dfrac{y^2}{x} for x>0x > 0. Is there a solution that this method misses?
Try answering before revealing!
Question 8
[Board Standard] A population of bacteria satisfies dNdt=0.03 N\dfrac{dN}{dt} = 0.03\,N, with N(0)=500N(0) = 500. Find N(30)N(30).
Try answering before revealing!
Question 9
[Board Standard] Find the curve through (0,4)(0, 4) whose slope at every point is −xy-\dfrac{x}{y}. (Take y>0y > 0.)
Try answering before revealing!
Question 10
[Board Standard] Solve dydx=x2y\dfrac{dy}{dx} = x^2 y with y(0)=2y(0) = 2.
Try answering before revealing!
Question 11
[Board Standard] Solve dydx=yx2\dfrac{dy}{dx} = \dfrac{y}{x^2} for x>0x > 0, with y(1)=5y(1) = 5. Then find y(2)y(2).
Try answering before revealing!
Question 12
[Board Standard] Solve dydx=x (y+2)\dfrac{dy}{dx} = x\,(y + 2) with y(0)=1y(0) = 1.
Try answering before revealing!
Question 13
[Board Standard] Solve dydx=e−ysin⁡x\dfrac{dy}{dx} = e^{-y}\sin x with y(0)=0y(0) = 0.
Try answering before revealing!
Question 14
[HOTS] Solve dydx=(x+1)(y−1)\dfrac{dy}{dx} = (x + 1)(y - 1) with y(0)=4y(0) = 4. Then find y(1)y(1).
Try answering before revealing!
Question 15
[HOTS] A drink at 95°95°C stands in a room at 25°25°C. It cools by dTdt=−0.2 (T−25)\dfrac{dT}{dt} = -0.2\,(T - 25), with T(0)=95T(0) = 95. Find T(5)T(5).
Try answering before revealing!
Question 16
[HOTS] Solve dydx=−2x y2\dfrac{dy}{dx} = -2x\,y^2. Is there a solution that this method misses?
Try answering before revealing!
Question 17
[HOTS] Which of these are separable: (a) dydx=x+y\dfrac{dy}{dx} = x + y, (b) dydx=xy\dfrac{dy}{dx} = xy, (c) dydx=sin⁡xcos⁡y\dfrac{dy}{dx} = \sin x\cos y, (d) dydx=yx+1\dfrac{dy}{dx} = \dfrac{y}{x} + 1?
Try answering before revealing!
Question 18
[HOTS] A sample decays by dNdt=−0.05 N\dfrac{dN}{dt} = -0.05\,N, with N(0)=800N(0) = 800. Find N(20)N(20).
Try answering before revealing!

9.5 Homogeneous Differential Equations

1,970 words · 9 min read

An equation dydx=f(x,y)\dfrac{dy}{dx} = f(x, y) is homogeneous when ff depends only on the ratio yx\dfrac{y}{x}, that is, f(λx,λy)=f(x,y)f(\lambda x, \lambda y) = f(x, y) (Section 9.4). It is not separable directly, but a change of variable makes it so.

The method. Put y=v xy = v\,x, where vv is a new unknown function of xx. By the product rule,

dydx=v+x dvdx.\frac{dy}{dx} = v + x\,\frac{dv}{dx}.

Substitute into the equation. The ratio yx\frac{y}{x} becomes just vv, and the result is a separable equation in vv and xx. Solve it, then replace vv by yx\frac{y}{x}.

Why does this work? Scaling both xx and yy by the same factor leaves a homogeneous equation unchanged, so only the ratio yx\frac{y}{x} carries new information. The substitution names that ratio vv. Once the equation speaks only about vv and xx, the variables separate, and you are back on familiar ground. Substitution reduces a new type to an old one.

Goal: solve dydx=x+yx\dfrac{dy}{dx} = \dfrac{x + y}{x}. Rewrite: x+yx=1+yx=1+v\dfrac{x + y}{x} = 1 + \dfrac{y}{x} = 1 + v. Substitute: v+xdvdx=1+vv + x\dfrac{dv}{dx} = 1 + v, which gives xdvdx=1x\dfrac{dv}{dx} = 1, that is dv=dxxdv = \dfrac{dx}{x}. Integrate: v=ln⁡∣x∣+Cv = \ln|x| + C. Put v back as yx\frac{y}{x}:

y=x (ln⁡∣x∣+C).y = x\,(\ln|x| + C).

Check: the computer verified y=x(ln⁡x+2)y = x(\ln x + 2) against the equation for several x>0x > 0.

Solutions y = x(ln x + C) of dy/dx = (x + y)/x, for C = −1, 0, 1, 2.

Read the figure from left to right. Near x = 0 every curve hugs the axis, because the factor x squeezes all members together. Further right the curves fan out: a larger C lifts the whole curve. One equation, one substitution, and a whole family appears.

Goal: solve dydx=x2+y2xy\dfrac{dy}{dx} = \dfrac{x^2 + y^2}{xy}. Rewrite: divide top and bottom by x2x^2: the right side is 1+v2v\dfrac{1 + v^2}{v}. Substitute: v+xdvdx=1+v2vv + x\dfrac{dv}{dx} = \dfrac{1 + v^2}{v}, hence xdvdx=1+v2v−v=1vx\dfrac{dv}{dx} = \dfrac{1 + v^2}{v} - v = \dfrac{1}{v}. Separate: v dv=dxxv\,dv = \dfrac{dx}{x}. Integrate: v22=ln⁡∣x∣+c\dfrac{v^2}{2} = \ln|x| + c. Put v back: so y2=x2 (2ln⁡∣x∣+C)y^2 = x^2\,(2\ln|x| + C). For x>0x > 0 and y>0y > 0:

y=x2ln⁡x+C.y = x\sqrt{2\ln x + C}.

Goal: solve dydx=yx+tan⁡yx\dfrac{dy}{dx} = \dfrac{y}{x} + \tan\dfrac{y}{x}. Substitute: v+xdvdx=v+tan⁡vv + x\dfrac{dv}{dx} = v + \tan v, so xdvdx=tan⁡vx\dfrac{dv}{dx} = \tan v. Separate: cot⁡v dv=dxx\cot v\,dv = \dfrac{dx}{x}. Integrate: ln⁡∣sin⁡v∣=ln⁡∣x∣+c\ln|\sin v| = \ln|x| + c, so sin⁡v=Cx\sin v = Cx. Put v back: hence sin⁡yx=Cx\sin\dfrac{y}{x} = Cx, or y=xsin⁡−1(Cx)y = x\sin^{-1}(Cx).

Goal: solve xdydx=y+x2+y2x\dfrac{dy}{dx} = y + \sqrt{x^2 + y^2} for x>0x > 0. Rewrite: divide by xx: dydx=v+1+v2\dfrac{dy}{dx} = v + \sqrt{1 + v^2}. Substitute: v+xdvdx=v+1+v2v + x\dfrac{dv}{dx} = v + \sqrt{1 + v^2}, which gives dv1+v2=dxx\dfrac{dv}{\sqrt{1 + v^2}} = \dfrac{dx}{x}. Integrate: sinh⁡−1v=ln⁡x+c\sinh^{-1}v = \ln x + c, which gives v=sinh⁡(ln⁡x+c)v = \sinh(\ln x + c). Writing K=ecK = e^c and using sinh⁡u=eu−e−u2\sinh u = \frac{e^u - e^{-u}}{2}:

y=Kx2−1K2.y = \frac{K x^2 - \frac{1}{K}}{2}.

Check: with K=1K = 1 this is y=x2−12y = \frac{x^2 - 1}{2}, and with K=2K = 2 it is y=x2−14y = x^2 - \frac{1}{4}. The computer checked both against the original equation.

Goal: find the solution of dydx=x+yx\dfrac{dy}{dx} = \dfrac{x + y}{x} with y(1)=2y(1) = 2. From Example 1, y=x(ln⁡x+C)y = x(\ln x + C). Use the condition: at x=1x = 1: 2=1⋅(0+C)2 = 1\cdot(0 + C), so C=2C = 2. Then y(e)=e (1+2)=3e≈8.1548y(e) = e\,(1 + 2) = 3e \approx 8.1548. A step-by-step numerical solution of the equation from x=1x = 1 to x=ex = e agrees.

Common mistakes: (1) forgetting that dydx=v+xdvdx\frac{dy}{dx} = v + x\frac{dv}{dx}, not just xdvdxx\frac{dv}{dx}; (2) not simplifying the right side to a function of vv alone: if an xx is left over, the equation was not homogeneous; (3) forgetting to put v=yxv = \frac{y}{x} back at the end.

⚡ Quick Check Flashcards2 questions

Try these, then check.

Question 1
[Board Standard] Put y=vxy = vx into dydx=x−yx\dfrac{dy}{dx} = \dfrac{x - y}{x}. What separable equation in vv and xx do you get?
Try answering before revealing!
Question 2
[HOTS] Is dydx=x2+yxy\dfrac{dy}{dx} = \dfrac{x^2 + y}{xy} homogeneous? Why or why not?
Try answering before revealing!

⚡ Quick Check Flashcards18 questions
Question 1
[Concept] Solve dydx=x−yx\dfrac{dy}{dx} = \dfrac{x - y}{x} for x>0x > 0.
Try answering before revealing!
Question 2
[Concept] Solve dydx=y+2xx\dfrac{dy}{dx} = \dfrac{y + 2x}{x} for x>0x > 0.
Try answering before revealing!
Question 3
[Concept] Solve dydx=x2+2y2xy\dfrac{dy}{dx} = \dfrac{x^2 + 2y^2}{xy} for x>0x > 0, y>0y > 0.
Try answering before revealing!
Question 4
[Concept] Solve dydx=yx+sin⁡yx\dfrac{dy}{dx} = \dfrac{y}{x} + \sin\dfrac{y}{x} for x>0x > 0.
Try answering before revealing!
Question 5
[Concept] Which of these are homogeneous: (a) dydx=x2+y2xy\dfrac{dy}{dx} = \dfrac{x^2 + y^2}{xy}, (b) dydx=xy\dfrac{dy}{dx} = \dfrac{x}{y}, (c) dydx=x2−y22xy\dfrac{dy}{dx} = \dfrac{x^2 - y^2}{2xy}, (d) dydx=x3+y3x2y2\dfrac{dy}{dx} = \dfrac{x^3 + y^3}{x^2y^2}, (e) dydx=x+3y\dfrac{dy}{dx} = \dfrac{x + 3}{y}?
Try answering before revealing!
Question 6
[Concept] Solve dydx=3x+2yx\dfrac{dy}{dx} = \dfrac{3x + 2y}{x} with y(1)=0y(1) = 0.
Try answering before revealing!
Question 7
[Board Standard] Solve dydx=yx+y2x2\dfrac{dy}{dx} = \dfrac{y}{x} + \dfrac{y^2}{x^2} for x≥1x \ge 1.
Try answering before revealing!
Question 8
[Board Standard] Solve dydx=x2+y2xy\dfrac{dy}{dx} = \dfrac{x^2 + y^2}{xy} with y(1)=1y(1) = 1 and find y(e)y(e).
Try answering before revealing!
Question 9
[Board Standard] Solve dydx=y−xx\dfrac{dy}{dx} = \dfrac{y - x}{x} for x>0x > 0.
Try answering before revealing!
Question 10
[Board Standard] Solve dydx=x2+2y2xy\dfrac{dy}{dx} = \dfrac{x^2 + 2y^2}{xy} in the form y2=Kx4−x2y^2 = Kx^4 - x^2 for x>1x > 1, y>0y > 0. (Hint: you get 1+v2=Kx21 + v^2 = Kx^2.)
Try answering before revealing!
Question 11
[Board Standard] Solve dydx=yx+ey/x\dfrac{dy}{dx} = \dfrac{y}{x} + e^{y/x} for x>1x > 1.
Try answering before revealing!
Question 12
[Board Standard] Solve dydx=yx−sin⁡yx\dfrac{dy}{dx} = \dfrac{y}{x} - \sin\dfrac{y}{x} for x>0x > 0.
Try answering before revealing!
Question 13
[Board Standard] Solve dydx=3x+yx\dfrac{dy}{dx} = \dfrac{3x + y}{x} with y(1)=2y(1) = 2, and find y(e)y(e).
Try answering before revealing!
Question 14
[HOTS] Solve dydx=2x2+y2xy\dfrac{dy}{dx} = \dfrac{2x^2 + y^2}{xy} with y(1)=1y(1) = 1.
Try answering before revealing!
Question 15
[HOTS] Solve dydx=y2−x22xy\dfrac{dy}{dx} = \dfrac{y^2 - x^2}{2xy} in implicit form.
Try answering before revealing!
Question 16
[HOTS] Solve dydx=x2+y2xy\dfrac{dy}{dx} = \dfrac{x^2 + y^2}{xy} with y(1)=2y(1) = 2, and find y(e)y(e).
Try answering before revealing!
Question 17
[HOTS] Solve dydx=x2+y22xy\dfrac{dy}{dx} = \dfrac{x^2 + y^2}{2xy} with y(1)=2y(1) = 2.
Try answering before revealing!
Question 18
[HOTS] Solve dydx=3x−yx\dfrac{dy}{dx} = \dfrac{3x - y}{x} with y(1)=5y(1) = 5.
Try answering before revealing!

9.6 Linear Differential Equations and Integrating Factors

1,816 words · 8 min read

A first-order equation is linear if it can be written in the standard form

dydx+P y=Q,\frac{dy}{dx} + P\,y = Q,

where PP and QQ are functions of xx only (or constants). "Linear" means that yy and dydx\frac{dy}{dx} appear only to the first power and are not multiplied together.

Define the integrating factor I=e∫P dxI = e^{\int P\,dx}. It has the useful property I′=P II' = P\,I. Now multiply the whole equation by II and use the product rule:

ddx(y I)=y′I+y I′=I (y′+P y)=I Q.\frac{d}{dx}(y\,I) = y'I + y\,I' = I\,(y' + P\,y) = I\,Q.

The left side is the derivative of a single product. So we can integrate both sides:

y I=∫Q I dx+C.y\,I = \int Q\,I\,dx + C.

Why does this work? The factor II is built exactly so that I′=PII' = PI, which is the missing piece the product rule needs. Multiplying by II packs the two terms y′y' and PyPy into one derivative, (yI)′(yI)'. After that packing, one integration finishes the job.

The steps:

  1. [Concept] Write the equation in the standard form y′+Py=Qy' + Py = Q (divide by the coefficient of y′y' if needed).
  2. [Board Standard] Find I=e∫P dxI = e^{\int P\,dx}. You do not need a constant here.
  3. [Board Standard] Multiply the equation by II, and integrate: y I=∫Q I dx+Cy\,I = \int Q\,I\,dx + C.
  4. [HOTS] Divide by II to get yy.

The computer checked the property I′=P II' = P\,I for each integrating factor used below.

Goal: solve dydx+2y=e−x\dfrac{dy}{dx} + 2y = e^{-x}. Find I: here P=2P = 2, so I=e2xI = e^{2x}. Pack and integrate: (y e2x)′=e2xe−x=ex(y\,e^{2x})' = e^{2x}e^{-x} = e^{x}. Integrate: y e2x=ex+Cy\,e^{2x} = e^x + C. Divide: so

y=e−x+C e−2x.y = e^{-x} + C\,e^{-2x}.

Solutions y = e^(−x) + Ce^(−2x) for C = −2, −1, 0, 1, 2. The part with C dies away quickly, so all solutions follow the same curve for large x.

Read the figure from left to right. The five curves start far apart, because C matters most when e^(−2x) is large. As x grows, e^(−2x) shrinks to nearly zero, so every curve settles onto the orange middle curve e^(−x). The C part is temporary; the e^(−x) part is permanent.

Goal: solve dydx+yx=x2\dfrac{dy}{dx} + \dfrac{y}{x} = x^2 for x>0x > 0. Find I: here P=1xP = \frac{1}{x}, so I=eln⁡x=xI = e^{\ln x} = x. Pack and integrate: then (x y)′=x⋅x2=x3(x\,y)' = x\cdot x^2 = x^3. Integrate: x y=x44+Cx\,y = \dfrac{x^4}{4} + C, so y=x34+Cxy = \dfrac{x^3}{4} + \dfrac{C}{x}.

Goal: solve (1+x2)dydx+2x y=11+x2(1 + x^2)\dfrac{dy}{dx} + 2x\,y = \dfrac{1}{1 + x^2}. Standard form first: divide by 1+x21 + x^2 to reach the standard form: P=2x1+x2P = \dfrac{2x}{1 + x^2}, so I=eln⁡(1+x2)=1+x2I = e^{\ln(1 + x^2)} = 1 + x^2. Pack and integrate: then (y (1+x2))′=11+x2\big(y\,(1 + x^2)\big)' = \dfrac{1}{1 + x^2}, so y (1+x2)=tan⁡−1x+Cy\,(1 + x^2) = \tan^{-1}x + C and

y=tan⁡−1x+C1+x2.y = \frac{\tan^{-1}x + C}{1 + x^2}.

Goal: a balance BB (in units) grows continuously at the rate 0.10.1 per year, and also receives steady deposits of 55 units per year. Then dBdt=0.1B+5\dfrac{dB}{dt} = 0.1B + 5, or dBdt−0.1B=5\dfrac{dB}{dt} - 0.1B = 5. Find I: here P=−0.1P = -0.1 and I=e−0.1tI = e^{-0.1t}. Pack and integrate: so (B e−0.1t)′=5e−0.1t(B\,e^{-0.1t})' = 5e^{-0.1t}, and B e−0.1t=−50e−0.1t+CB\,e^{-0.1t} = -50e^{-0.1t} + C. Divide: therefore B=Ce0.1t−50B = Ce^{0.1t} - 50. Use the condition: if B(0)=100B(0) = 100, then C=150C = 150 and B=150e0.1t−50B = 150e^{0.1t} - 50. After 1010 years, B(10)=150e−50≈357.74B(10) = 150e - 50 \approx 357.74. A step-by-step numerical solution agrees.

Sometimes it is easier to treat xx as the unknown and yy as the variable. The equation dxdy+P1 x=Q1\dfrac{dx}{dy} + P_1\,x = Q_1, with P1,Q1P_1, Q_1 functions of yy, is solved in exactly the same way, with I=e∫P1 dyI = e^{\int P_1\,dy}. For example, dxdy+x=y\dfrac{dx}{dy} + x = y has I=eyI = e^y, so x ey=(y−1)ey+Cx\,e^y = (y - 1)e^y + C and x=y−1+Ce−yx = y - 1 + Ce^{-y}. (The computer checked C=2C = 2.)

Common mistakes: (1) forgetting to divide by the coefficient of y′y' first, so that PP is wrong; (2) leaving out the constant CC when integrating Q IQ\,I; (3) dividing only part of the right side by II at the end. Divide every term, including CC.

⚡ Quick Check Flashcards2 questions

Try these, then check.

Question 1
[Board Standard] Write xdydx+2y=x3x\dfrac{dy}{dx} + 2y = x^3 in standard form and give its integrating factor.
Try answering before revealing!
Question 2
[HOTS] What is the integrating factor of dydx−4y=0\dfrac{dy}{dx} - 4y = 0?
Try answering before revealing!

⚡ Quick Check Flashcards18 questions
Question 1
[Concept] Solve dydx+3y=e2x\dfrac{dy}{dx} + 3y = e^{2x}.
Try answering before revealing!
Question 2
[Concept] Solve dydx+2yx=x\dfrac{dy}{dx} + \dfrac{2y}{x} = x for x>0x > 0.
Try answering before revealing!
Question 3
[Concept] Solve dydx+ycot⁡x=2cos⁡x\dfrac{dy}{dx} + y\cot x = 2\cos x for 0<x<π0 < x < \pi.
Try answering before revealing!
Question 4
[Concept] Solve dydx−y=sin⁡x\dfrac{dy}{dx} - y = \sin x.
Try answering before revealing!
Question 5
[Concept] Solve dydx+y=x\dfrac{dy}{dx} + y = x with y(0)=1y(0) = 1, and find y(2)y(2).
Try answering before revealing!
Question 6
[Concept] Solve dxdy+2x=e−y\dfrac{dx}{dy} + 2x = e^{-y}, treating xx as the unknown.
Try answering before revealing!
Question 7
[Board Standard] A capacitor charges according to dqdt+2q=4\dfrac{dq}{dt} + 2q = 4, with q(0)=0q(0) = 0. Find q(t)q(t) and q(1)q(1).
Try answering before revealing!
Question 8
[Board Standard] Solve xln⁡x dydx+y=2ln⁡xx\ln x\,\dfrac{dy}{dx} + y = 2\ln x for x>1x > 1.
Try answering before revealing!
Question 9
[Board Standard] Solve dydx+y=e−x\dfrac{dy}{dx} + y = e^{-x} with y(0)=1y(0) = 1, and find y(1)y(1).
Try answering before revealing!
Question 10
[Board Standard] Solve dydx+2yx=x3\dfrac{dy}{dx} + \dfrac{2y}{x} = x^3 for x>0x > 0.
Try answering before revealing!
Question 11
[Board Standard] Solve dydx−3y=e3x\dfrac{dy}{dx} - 3y = e^{3x} with y(0)=2y(0) = 2.
Try answering before revealing!
Question 12
[Board Standard] Solve xdydx−2y=x3x\dfrac{dy}{dx} - 2y = x^3 for x>0x > 0, with y(1)=5y(1) = 5. What is y(2)y(2)?
Try answering before revealing!
Question 13
[Board Standard] Solve dydx+ytan⁡x=sec⁡x\dfrac{dy}{dx} + y\tan x = \sec x for −π2<x<π2-\dfrac{\pi}{2} < x < \dfrac{\pi}{2}, with y(0)=2y(0) = 2.
Try answering before revealing!
Question 14
[HOTS] Solve dxdy+xy=y2\dfrac{dx}{dy} + \dfrac{x}{y} = y^2 for y>0y > 0, treating xx as the unknown.
Try answering before revealing!
Question 15
[HOTS] Solve xdydx+y=cos⁡xx\dfrac{dy}{dx} + y = \cos x for x>0x > 0, with y(π2)=1y\left(\dfrac{\pi}{2}\right) = 1. What is y(π)y(\pi)?
Try answering before revealing!
Question 16
[HOTS] A tank drains and refills so that dydt+0.5y=10\dfrac{dy}{dt} + 0.5y = 10, with y(0)=0y(0) = 0. Find y(t)y(t) and y(4)y(4).
Try answering before revealing!
Question 17
[HOTS] Which of these are linear: (a) dydx+xy=x3\dfrac{dy}{dx} + xy = x^3, (b) ydydx+x=1y\dfrac{dy}{dx} + x = 1, (c) (1+x2)dydx+2xy=ex(1 + x^2)\dfrac{dy}{dx} + 2xy = e^x, (d) dydx+y2=x\dfrac{dy}{dx} + y^2 = x, (e) dxdy+yx=sin⁡y\dfrac{dx}{dy} + yx = \sin y?
Try answering before revealing!
Question 18
[HOTS] Solve dydx−yx=2x\dfrac{dy}{dx} - \dfrac{y}{x} = 2x for x>0x > 0, with y(1)=3y(1) = 3.
Try answering before revealing!

9.7 Miscellaneous Worked Examples

1,004 words · 5 min read

The examples below mix all three methods. For each one, first name the type, then solve. This is how the chapter test will ask them: the type is never announced.

Type: separable, since yx2=1x2⋅y\dfrac{y}{x^2} = \dfrac{1}{x^2}\cdot y. Goal: find the curve through (1,e)(1, e) whose slope at every point (x,y)(x, y) is yx2\dfrac{y}{x^2}. Separate: dyy=dxx2\dfrac{dy}{y} = \dfrac{dx}{x^2}. Integrate: ln⁡∣y∣=−1x+c\ln|y| = -\dfrac{1}{x} + c, so y=Ce−1/xy = Ce^{-1/x}. Use the condition: at (1,e)(1, e): e=Ce−1e = Ce^{-1}, so C=e2C = e^2. Hence y=e2−1/xy = e^{2 - 1/x}. Check: at x=1x = 1 this gives 2.71832.7183, which is ee.

Type: separable. Goal: a radioactive sample decays at a rate proportional to the amount present: dNdt=−kN\dfrac{dN}{dt} = -kN. Its half-life is 55 days. How much remains after 1515 days? Solve: the solution is N=N0e−ktN = N_0 e^{-kt}. Half-life 55 means e−5k=12e^{-5k} = \frac{1}{2}, so k=ln⁡25k = \frac{\ln 2}{5}. After 1515 days, N=N0e−3ln⁡2=N0(12)3=0.125 N0N = N_0 e^{-3\ln 2} = N_0\left(\frac{1}{2}\right)^3 = 0.125\,N_0. That is 18\frac{1}{8} of the original amount, as you expect from three halvings. A step-by-step numerical solution agrees.

Radioactive decay with a 5-day half-life. Every 5 days the amount halves: 1, 1/2, 1/4, 1/8.

Read the figure in steps of 5 days. Each step cuts the height in half: from 1 to one half, to one quarter, to one eighth. The dots sit exactly on the curve, which shows the formula and the halving idea agree. Half-life means the same fraction is lost in every equal time step.

Type: homogeneous (every term has degree 22). Goal: solve dydx=2x+yx+2y\dfrac{dy}{dx} = \dfrac{2x + y}{x + 2y}. Substitute: put y=vxy = vx: v+xdvdx=2+v1+2vv + x\dfrac{dv}{dx} = \dfrac{2 + v}{1 + 2v}, so xdvdx=2−2v21+2vx\dfrac{dv}{dx} = \dfrac{2 - 2v^2}{1 + 2v}. Separate: 1+2v1−v2 dv=2 dxx\dfrac{1 + 2v}{1 - v^2}\,dv = \dfrac{2\,dx}{x}. Partial fractions: 1+2v(1−v)(1+v)=3/21−v−1/21+v\dfrac{1 + 2v}{(1 - v)(1 + v)} = \dfrac{3/2}{1 - v} - \dfrac{1/2}{1 + v}. Integrate and tidy up:

(x−y)3 (x+y)=K.(x - y)^3\,(x + y) = K.

Check: this is an implicit solution. The computer checked, at the points (2,0)(2, 0), (8.5,7.5)(8.5, 7.5) and (2.125,−1.875)(2.125, -1.875) of the curve with K=16K = 16, that its slope equals 2x+yx+2y\frac{2x + y}{x + 2y}.

Type: separable. Goal: solve dydx=yx(x+1)\dfrac{dy}{dx} = \dfrac{y}{x(x + 1)} for x>0x > 0. Separate: dyy=dxx(x+1)=(1x−1x+1)dx\dfrac{dy}{y} = \dfrac{dx}{x(x + 1)} = \left(\dfrac{1}{x} - \dfrac{1}{x + 1}\right)dx. Integrate: ln⁡∣y∣=ln⁡x−ln⁡(x+1)+c\ln|y| = \ln x - \ln(x + 1) + c. So y=C xx+1y = \dfrac{C\,x}{x + 1}.

Type: linear (after writing it in standard form). Goal: a tank holds 5050 litres of pure water. Salt water with 33 grams of salt per litre flows in at 22 litres per minute, and the well-mixed liquid flows out at 22 litres per minute. Let SS be the grams of salt in the tank after tt minutes. Salt comes in at 3×2=63 \times 2 = 6 g/min. Salt leaves at S50×2=0.04 S\frac{S}{50} \times 2 = 0.04\,S g/min. So

dSdt+0.04 S=6,S(0)=0.\frac{dS}{dt} + 0.04\,S = 6, \qquad S(0) = 0.

S(t) g of salttank: 50 Lin: 2 L/min, 3 g/Lout: mixed, 2 L/min
Salt flows in with the incoming water and out with the mixed water. The tank volume stays at 50 L because inflow equals outflow.

Read the diagram like a balance sheet. The top arrow adds 6 grams every minute. The bottom arrow removes liquid whose concentration is S divided by 50, times 2 litres per minute. Inflow minus outflow is the rate of change of S, which is exactly the differential equation.

Solve: this is linear with I=e0.04tI = e^{0.04t}. Then (S e0.04t)′=6e0.04t(S\,e^{0.04t})' = 6e^{0.04t}, so S e0.04t=150e0.04t+CS\,e^{0.04t} = 150e^{0.04t} + C. Use the condition: with S(0)=0S(0) = 0: C=−150C = -150. So S=150 (1−e−0.04t)S = 150\,(1 - e^{-0.04t}). After 2525 minutes, S=150(1−e−1)≈94.82S = 150(1 - e^{-1}) \approx 94.82 grams. In the long run the tank holds 150150 g, which is 5050 L ×\times 33 g/L, the concentration of the incoming water.

S(t) = 150(1 − e^(−0.04t)) approaches 150 g, the amount that matches the incoming concentration.

Read the figure in two halves. In the first half the curve climbs fast, because the tank is nearly fresh and almost all incoming salt stays. In the second half it flattens towards the dashed line: the outgoing liquid is now nearly as salty as the incoming one, so little extra salt accumulates. The dashed line is not a guess; it is 50 litres times 3 grams per litre.

Type: separable, since ex+y=ex eye^{x + y} = e^x\,e^y. Goal: solve dydx=ex+y\dfrac{dy}{dx} = e^{x + y}. Separate: e−y dy=ex dxe^{-y}\,dy = e^x\,dx. Integrate: −e−y=ex+c-e^{-y} = e^x + c, so e−y=C−exe^{-y} = C - e^x and y=−ln⁡(C−ex)y = -\ln(C - e^x). Check the domain: this exists only while C−ex>0C - e^x > 0. For C=3C = 3, the solution stops at x=ln⁡3x = \ln 3, where yy goes to infinity. The computer checked y=−ln⁡(3−ex)y = -\ln(3 - e^x) for x<ln⁡3x < \ln 3. Solutions of differential equations do not always exist for all xx.

9.8 Miscellaneous Exercise and Board Assessment

1,224 words · 6 min read

⚡ Quick Check Flashcards18 questions
Question 1
[Concept] State the order and degree (if defined) of (a) (y′′)2+cos⁡(y′)=0(y'')^2 + \cos(y') = 0 and (b) y′′′=(y′′)2+sin⁡(y′′′)y''' = (y'')^2 + \sin(y''').
Try answering before revealing!
Question 2
[Concept] Show that y=Ax+Bxy = Ax + \dfrac{B}{x} is a solution of x2y′′+xy′−y=0x^2y'' + xy' - y = 0. Find the particular solution with y(1)=5y(1) = 5 and y′(1)=−1y'(1) = -1.
Try answering before revealing!
Question 3
[Concept] Solve dydx=y2sin⁡x\dfrac{dy}{dx} = y^2\sin x. Is there a solution that your method misses?
Try answering before revealing!
Question 4
[Concept] Solve dydx=x2−y22xy\dfrac{dy}{dx} = \dfrac{x^2 - y^2}{2xy}.
Try answering before revealing!
Question 5
[Concept] Solve dydx+2y=sin⁡x\dfrac{dy}{dx} + 2y = \sin x.
Try answering before revealing!
Question 6
[Concept] Solve xdydx+y=x exx\dfrac{dy}{dx} + y = x\,e^x with y(1)=1y(1) = 1 and find y(2)y(2).
Try answering before revealing!
Question 7
[Board Standard] A drink at 90°90°C stands in a room at 22°22°C. After 55 minutes it is 70°70°C. Assuming Newton's law of cooling, dTdt=−k(T−22)\dfrac{dT}{dt} = -k(T - 22), find kk and the time it takes to reach 40°40°C.
Try answering before revealing!
Question 8
[Board Standard] Show that y=exsin⁡xy = e^x\sin x and y=excos⁡xy = e^x\cos x are solutions of y′′−2y′+2y=0y'' - 2y' + 2y = 0. Find the solution y=A excos⁡x+B exsin⁡xy = A\,e^x\cos x + B\,e^x\sin x with y(0)=2y(0) = 2 and y′(0)=3y'(0) = 3.
Try answering before revealing!
Question 9
[Board Standard] State the order and degree (if defined) of (a) (y′)4+(y′′)3=x(y')^4 + (y'')^3 = x and (b) y′′′+y′′=0y''' + \sqrt{y''} = 0. (For (b), clear the root first.)
Try answering before revealing!
Question 10
[Board Standard] Show that y=e2xcos⁡3xy = e^{2x}\cos 3x is a solution of y′′−4y′+13y=0y'' - 4y' + 13y = 0.
Try answering before revealing!
Question 11
[Board Standard] Solve dydx=x (y+1)\dfrac{dy}{dx} = x\,(y + 1) with y(0)=5y(0) = 5. Then find y(1)y(1).
Try answering before revealing!
Question 12
[Board Standard] Solve dydx=y2+xyx2\dfrac{dy}{dx} = \dfrac{y^2 + xy}{x^2} for x>1x > 1.
Try answering before revealing!
Question 13
[Board Standard] Solve dydx+y=cos⁡x\dfrac{dy}{dx} + y = \cos x with y(0)=1y(0) = 1. What is y(π2)y\left(\dfrac{\pi}{2}\right)?
Try answering before revealing!
Question 14
[HOTS] A sample of mass 11 unit halves every 1010 days, so dNdt=−kN\dfrac{dN}{dt} = -kN. What fraction remains after 3030 days?
Try answering before revealing!
Question 15
[HOTS] A herd satisfies dPdt=0.12 P\dfrac{dP}{dt} = 0.12\,P, with P(0)=400P(0) = 400. Show that P=400 e0.12tP = 400\,e^{0.12t} and find P(25)P(25).
Try answering before revealing!
Question 16
[HOTS] Solve dydx=yx+y2\dfrac{dy}{dx} = \dfrac{y}{x + y^2} by treating xx as a function of yy (take y>0y > 0).
Try answering before revealing!
Question 17
[HOTS] The family y=Acos⁡x+Bsin⁡x+xy = A\cos x + B\sin x + x has two independent arbitrary constants. What order is its differential equation? Verify that y=2cos⁡x+3sin⁡x+xy = 2\cos x + 3\sin x + x satisfies y′′+y=xy'' + y = x.
Try answering before revealing!
Question 18
[HOTS] A tank holds 100100 litres of pure water. Mixture with 44 grams of salt per litre flows in at 33 litres per minute, and the well-mixed liquid flows out at 33 litres per minute. Let SS be the grams of salt after tt minutes. Set up and solve the equation for SS, and find S(30)S(30).
Try answering before revealing!

9.9 Chapter Summary and Decision Flowchart for ODEs

297 words · 1 min read

This chapter began with a rule about change and ended with the quantity itself. These are the ideas to carry forward.

  • A differential equation contains an unknown function and its derivatives. Its order is the order of the highest derivative. Its degree is the power of the highest derivative, when the equation is a polynomial in the derivatives (otherwise the degree is not defined).
  • A solution is a function that makes the equation true. The general solution of an equation of order nn has nn independent arbitrary constants. A particular solution fixes the constants using conditions.
  • Variables separable: dydx=f(x) g(y)\dfrac{dy}{dx} = f(x)\,g(y). Write dyg(y)=f(x) dx\dfrac{dy}{g(y)} = f(x)\,dx and integrate both sides. Check whether g(y)=0g(y) = 0 gives an extra solution.
  • Homogeneous: dydx=F ⁣(yx)\dfrac{dy}{dx} = F\!\left(\dfrac{y}{x}\right), that is, f(λx,λy)=f(x,y)f(\lambda x, \lambda y) = f(x, y). Put y=vxy = vx, so dydx=v+xdvdx\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}, separate, integrate, and replace vv by yx\dfrac{y}{x}.
  • Linear: dydx+P y=Q\dfrac{dy}{dx} + P\,y = Q. The integrating factor is I=e∫P dxI = e^{\int P\,dx}, and the solution is y I=∫Q I dx+Cy\,I = \int Q\,I\,dx + C. If the equation has xx as the unknown, dxdy+P1 x=Q1\dfrac{dx}{dy} + P_1\,x = Q_1, use I=e∫P1 dyI = e^{\int P_1\,dy}.
  • Always check: differentiate your solution and substitute it back into the equation.
If the equation looks likeThen it isAnd the first step is
a product f(x)g(y)f(x)g(y)separablewrite dyg(y)=f(x) dx\frac{dy}{g(y)} = f(x)\,dx
a function of y/xy/x onlyhomogeneousput y=vxy = vx
y′+Py=Qy' + Py = Q with P,QP, Q in xxlinearmultiply by I=e∫P dxI = e^{\int P\,dx}

When you meet a new equation, name its type before you touch your pen. The type chooses the method, and the method is mostly integration you already know.

Up next
Continue to the next chapter