BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology, from high school to a graduate year

Direction fields, isoclines and integral curves

Most first-order differential equations y′ = f(x, y) cannot be solved with elementary functions, so 18.03 starts with the geometric view. At each point of the plane draw a short line element of slope f(x, y): the direction field. A function solves the equation exactly when its graph is an integral curve, a curve tangent to the field everywhere. By hand, draw the field with isoclines, the curves f(x, y) = C on which every line element has slope C. Integral curves cannot cross, and by the existence and uniqueness theorem they cannot even touch, as long as f and ∂f/∂y are continuous. Where f is undefined, as for xy′ = y − 1 on the y-axis, existence or uniqueness can fail.

You need this first

Full reading path (14 pages)
  1. The derivative: slope of the tangent line and rate of change (18.01)
  2. Limits and continuity (18.01)
  3. Derivatives of sine and cosine, and the product and quotient rules (18.01)
  4. The chain rule and higher derivatives (18.01)
  5. Implicit differentiation and the derivatives of inverse functions (18.01)
  6. Exponentials and logarithms: the number e and its derivatives (18.01)
  7. Linear and quadratic approximations (18.01)
  8. Curve sketching with the first and second derivative (18.01)
  9. Sketching strategy and maximum–minimum problems (18.01)
  10. More max–min, and related rates (18.01)
  11. A ring on a string, and Newton's method (18.01)
  12. The mean value theorem and inequalities (18.01)
  13. Differentials and antiderivatives (18.01)
  14. Differential equations and separation of variables (18.01)
On this page · 4 sections
  1. Direction fields and integral curves
  2. Drawing the field: isoclines
  3. Integral curves cannot cross or touch
  4. Summary

Differential equations of the simplest kind, first order in standard form, look like y′=f(x,y)y' = f(x, y) (transcript, p. 1). Some are easy: y′=x/yy' = x/y can be solved by separating variables. Others look just as simple but have no solution that can be written with elementary functions: y′=y−x2y' = y - x^2 can be solved (next lectures), while its look-alike y′=x−y2y' = x - y^2 cannot, and such equations are the rule rather than the exception (pp. 1–2). So 18.03 begins without solving anything: it looks at differential equations geometrically, and numerically (pp. 1–2).

Direction fields and integral curves#

The analytic view has the equation y′=f(x,y)y' = f(x, y) and its solutions y1(x)y_1(x). The geometric view has two matching objects (transcript, pp. 2–3):

The key fact (pp. 3–5):

Solutions are integral curves
y1(x) solves y′=f(x,y)⟺y1′(x)=f(x,y1(x))⟺the graph of y1 is an integral curvey_1(x) \text{ solves } y' = f(x, y) \Longleftrightarrow y_1'(x) = f\big(x, y_1(x)\big) \Longleftrightarrow \text{the graph of } y_1 \text{ is an integral curve}
In words

y one (x) solves y prime equals f(x, y) is equivalent to y one prime (x) equals f (x, y one (x) ) is equivalent to the graph of y one is an integral curve

Both sides say the same thing: the slope of the graph, y1′(x)y_1'(x), equals the slope of the field at that point, f(x,y1(x))f(x, y_1(x)). Solving the equation analytically is the same as drawing an integral curve geometrically.

Drawing the field: isoclines#

A computer draws a direction field the naive way: pick equally spaced points, compute f(x,y)f(x, y) at each, draw the line element (transcript, p. 5). A human should work the other way round. Pick a slope CC first, and find all the points where the line elements have that slope (p. 6):

Isocline
f(x,y)=Cf(x, y) = C
In words

f(x, y) equals capital C

This curve, a level curve of ff, is called an isocline. Draw it dashed (it is usually not a solution) and put as many line elements of slope CC along it as you like; a few values of CC fill in the field (pp. 6–7).

Example: y′=−x/yy' = -x/y. The isoclines −x/y=C-x/y = C are the lines y=−x/Cy = -x/C through the origin (p. 7). Their slope, −1/C-1/C, is the negative reciprocal of the slope CC of the line elements on them, so the line elements are perpendicular to the isoclines (p. 8). Writing the isocline as Cy=−xCy = -x, the case C=0C = 0 is the yy-axis; the xx-axis is counted, loosely, as the isocline "C=∞C = \infty", with vertical line elements (pp. 8–9). Curves perpendicular to every ray from the origin are circles, x2+y2=C1x^2 + y^2 = C_1, which separation of variables confirms (p. 9). A solution such as y=C1−x2y = \sqrt{C_1 - x^2} lives only on −C1<x<C1-\sqrt{C_1} < x < \sqrt{C_1}: there is no way to tell from the equation in advance how far a solution extends (p. 10).

Example: y′=1+x−yy' = 1 + x - y. Variables cannot be separated, but the picture comes quickly (transcript, pp. 10–15). The isoclines 1+x−y=C1 + x - y = C are the parallel lines y=x+1−Cy = x + 1 - C. On the isocline for C=1C = 1, the line y=xy = x, the line elements have slope 1, the same as the line: it is an isocline and an integral curve at once, so y=xy = x is a solution (pp. 12–15). Between the isoclines for C=0C = 0 and C=2C = 2 every line element points into the strip, so an integral curve that enters it cannot escape, "like a lobster trap" (p. 13); all solutions approach y=xy = x as x→∞x \to \infty (p. 15).

Integral curves of y′=1+x−yy' = 1 + x - y, computed from its solutions y=x+Ce−xy = x + Ce^{-x} (found by the methods of Lecture 3), with C=2C = 2, 0 and −2: all approach the solution y=xy = x. The dashed isocline y=x+1y = x + 1 is where the line elements are horizontal; the curve from above crosses it at its lowest point.

Integral curves cannot cross or touch#

Two principles help in sketching (transcript, pp. 14–16):

  1. Two integral curves cannot cross at an angle: at the crossing point the field has only one slope (p. 14).
  2. Two integral curves cannot even touch (be tangent). This is less obvious, and follows from the existence and uniqueness theorem (pp. 15–16):
Existence and uniqueness
f and ∂f∂y continuous near (x0,y0)⟹y′=f(x,y) has one and only one solution through (x0,y0)f \text{ and } \frac{\partial f}{\partial y} \text{ continuous near } (x_0, y_0) \Longrightarrow y' = f(x, y) \text{ has one and only one solution through } (x_0, y_0)
In words

f and partial f over partial y continuous near ( x nought, y nought ) which gives y prime equals f(x, y) has one and only one solution through ( x nought, y nought )

The solution exists at least on some interval around x0x_0. Continuity of ff gives existence, at least one solution; continuity of ∂f/∂y\partial f/\partial y gives uniqueness (p. 16). So the curves heading towards y=xy = x in the example above can only approach it, never join it (p. 15).

When the theorem does not apply. Take xy′=y−1xy' = y - 1. Separating variables, ln⁡∣y−1∣=ln⁡∣x∣+c\ln|y - 1| = \ln|x| + c, gives the solutions y=1+Cxy = 1 + Cx: all the lines through (0,1)(0, 1) (pp. 16–17). (The transcript writes the equation with 1−y1 - y and drops a sign when integrating; with 1−y1 - y the solutions would be the hyperbolas y=1−C/xy = 1 - C/x. The lines it describes belong to xy′=y−1xy' = y - 1, used here. The board itself was not checked.) Through a point on the yy-axis other than (0,1)(0, 1) there is no solution at all; through (0,1)(0, 1) there are infinitely many. This does not contradict the theorem: in standard form the equation is y′=(y−1)/xy' = (y - 1)/x, whose right side is not even defined on the yy-axis (pp. 17–18). In practice, this is how existence and uniqueness usually fail: ff is undefined somewhere (p. 18). (Euler's numerical method, planned for this lecture, was left to the notes and comes in Lecture 2, p. 16.)

Worked example

Sketching y′ = x + y

For y′=x+yy' = x + y: (a) find the isoclines; (b) find one isocline that is also an integral curve; (c) check that y=Cex−x−1y = Ce^x - x - 1 solves the equation and describe the integral curves.

(a) Isoclines

x+y=Cx + y = C, the parallel lines y=C−xy = C - x, all of slope −1-1. On them the line elements have slope CC: horizontal on y=−xy = -x, slope 1 on y=1−xy = 1 - x, and so on.

(b) A straight solution

On the isocline for C=−1C = -1, y=−x−1y = -x - 1, the line elements have slope −1-1, the slope of the line itself, so it is an integral curve: indeed y′=−1y' = -1 and x+y=−1x + y = -1.

(c) All the solutions

y=Cex−x−1y = Ce^x - x - 1 gives y′=Cex−1y' = Ce^x - 1 and x+y=Cex−1x + y = Ce^x - 1: they agree for every CC. For C>0C > 0 the curves turn upward, for C<0C < 0 downward, and they move away from the line y=−x−1y = -x - 1 as xx grows; the line repels instead of attracting.

Summary#

  • y′=f(x,y)y' = f(x, y): the direction field has slope f(x,y)f(x, y) at each point; solutions are exactly the integral curves.
  • Sketch the field with isoclines f(x,y)=Cf(x, y) = C, drawn dashed.
  • Integral curves cannot cross, and, by existence and uniqueness (needing ff and ∂f/∂y\partial f/\partial y continuous), cannot touch.
  • Where ff is undefined, as for xy′=y−1xy' = y - 1 on the yy-axis, solutions may not exist or may not be unique.

Symbols on this page

Show the 17 symbols used here
∞\infty infinity.
Infinity: larger than any number. Say it: “infinity”.
→\to arrow.
Goes to (tends to), or becomes. Say it: “goes to”.
⇒\Rightarrow implies.
Implies: what follows is a consequence of what came before. Say it: “which gives”.
⟺\Longleftrightarrow if and only if.
If and only if: each statement implies the other. Say it: “is equivalent to”.
∂\partial partial.
The partial derivative, as in ∂f/∂y. Say it: “partial”.
ln⁡\ln natural logarithm.
Natural logarithm (base e ≈ 2.718). Say it: “log”.
cc c.
A constant of integration. Say it: “c”.
xx x.
The independent variable. Say it: “x”.
yy y.
The unknown function (or the vertical coordinate). Say it: “y”.
ee e.
Euler's number, 2.718…, the base of the exponential. Say it: “e”.
ff f.
The right-hand side of y′ = f(x, y): the slope of the direction field at (x, y). Say it: “f”.
CC C.
The slope belonging to an isocline f(x, y) = C; in solutions, an arbitrary constant. Say it: “capital C”.
y′y' y prime.
The derivative dy/dx. Say it: “y prime”.
x0x_{0} x nought.
The x coordinate of a given starting point. Say it: “x nought”.
y0y_{0} y nought.
The y coordinate of a given starting point. Say it: “y nought”.
y1y_{1} y 1.
A particular solution of the differential equation. Say it: “y one”.
C1C_{1} C 1.
The constant in the circles x² + y² = C₁. Say it: “capital C one”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Words on this page

Show the 23 words used here

New here

direction field.
A picture of a differential equation: at many points, a short line with the slope the equation gives there.
line element.
A short line segment, drawn at a point, with the slope that a differential equation gives there.
integral curve.
A curve that at every point runs along the direction the differential equation gives there: the graph of a solution.
isocline.
A curve along which a differential equation gives the same slope at every point.
existence and uniqueness theorem.
The theorem that, under mild conditions, a differential equation has exactly one solution through each starting point.

Also used

differential equation.
An equation that links an unknown function to its derivatives; solving it means finding the function. Explained in Circular motion dynamics: worked problems.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
analytic.
Worked out exactly with formulas and algebra, rather than by drawing pictures or by computer. Explained in The derivative: slope of the tangent line and rate of change.
tangent.
A straight line that touches a curve at a point and runs in the same direction as the curve there. Explained in Angles, radians and trigonometry.
graph.
The picture of a function: the curve y = f(x) for one variable, or the surface z = f(x, y) for two. Explained in Graphs, straight lines and slope.
field.
Something that has a value at every point of space, such as the temperature, the wind velocity or the electric field at each place. Explained in Newton's law of gravitation.
level curve.
A curve along which a function of two variables keeps the same value, like a line of equal height on a map. Explained in Functions of two variables and partial derivatives.
perpendicular.
At right angles to a line, a surface or another direction. Explained in Inclined planes.
separation of variables.
A way to solve a differential equation by putting everything with one variable on one side, the rest on the other, and integrating both sides. Explained in The rocket equation.
interval.
A stretch between two values or two moments; in maths, all the numbers between two end points. Explained in Time dilation, length contraction and the interval.
continuous.
Without breaks, gaps or jumps: a continuous graph can be drawn without lifting the pen; a continuous quantity can take every value in a range. Explained in The rocket equation.
theorem.
A statement that has been proved true, step by step, from definitions and earlier results. Explained in Limits and continuity.
integration.
Finding an integral: adding up very many small pieces, or finding an antiderivative. Explained in Differentials and antiderivatives.
hyperbola.
An open curve with two separate branches: the set of points whose distances from two fixed points differ by the same amount. Explained in Quadratics and power laws.

Academic

transcript.
A written record of exactly what was said in a recorded lecture, word for word.
numerically.
In terms of actual numbers rather than symbols; often worked out step by step, by computer, instead of from an exact formula.
naive.
Simple and first-guess, without the corrections or care a fuller treatment adds.
in practice.
In reality, as things are actually done or measured, rather than in theory.

Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).

Where this leads

In cosmology

34 more cosmology pages that build on this

Pages that build on this

Practise

Check your understanding

  1. What is an isocline of y′=f(x,y)y' = f(x, y)?
  2. Why can't two integral curves of y′=f(x,y)y' = f(x, y) cross at an angle?
  3. For y′=1+x−yy' = 1 + x - y, which line is both an isocline and an integral curve?
0 of 3 answered

Flashcards

1 / 3