MGU Mathematics Series — Differential Equations
Part I: Foundations of Differential Equations and Modeling
Slope Fields · Equilibria · Stability · Autonomous Equations · Separable Equations
Chapter 2 of 14
MGU Mathematics Series  ·  Differential Equations  ·  Library Textbook Edition

Chapter 2:
First-Order Differential
Equations and Slope Fields

Slope fields, solution curves, equilibrium solutions, stability, autonomous equations, and simple separable equations — learning to read a differential equation before solving it

■ Math Level: Post-Calculus ■

■ 14 Sections  •  Part I of 5 ■

Follows Chapter 1: What Differential Equations Study  ·  Prepares students for Chapter 3: Separable Differential Equations

Purpose and Overview

Chapter 1 introduced differential equations as equations involving unknown functions and their derivatives. You learned to recognize differential equations, classify them by order and linearity, and understand what it means for a function to be a solution. You also saw how differential equations arise naturally from descriptions of change, motion, growth, decay, and feedback in real systems.

Chapter 2 builds on that foundation by focusing specifically on first-order differential equations, the simplest and most widely used class. But rather than jumping immediately into symbolic solution techniques, this chapter takes a different approach. It teaches you to read a differential equation visually and qualitatively before you solve it symbolically.

The central tool of this chapter is the slope field, also called a direction field. A slope field is a picture of a differential equation. It shows you, at every point in a region of the plane, what slope the solution curve must have as it passes through that point. Even without solving the equation, you can sketch where solutions go, identify equilibrium behavior, and describe what happens to a system in the long run.

This approach is not a shortcut or a preliminary trick. It is a genuine and powerful way of understanding differential equations. In science, engineering, biology, economics, and applied mathematics, many important differential equations cannot be solved symbolically at all. The ability to analyze behavior without formulas is not a fallback strategy. It is a core skill.

By the end of this chapter, you will be able to look at a first-order differential equation and understand it before you solve it. That skill will serve you in every chapter that follows.

Opening Question

A population of bacteria is growing in a culture dish. A biologist monitors the population over several hours and writes down the following relationship:

$$\frac{dP}{dt} = 0.3P\!\left(1 - \frac{P}{500}\right)$$

The biologist does not yet know the formula for $P(t)$. But from this equation alone, can they say anything useful? Can they determine whether the population grows or shrinks? Can they find a population level at which growth stops? Can they predict what happens in the long run? The answer to every question is yes, and this chapter explains why.

14Sections
12Objectives
13Key Terms
8+Worked Examples

Learning Objectives

  1. 1Explain what first-order means in the context of a differential equation.
  2. 2Recognize and write first-order differential equations in the form $\frac{dy}{dx} = f(x,y)$.
  3. 3Describe what a slope field represents and explain how it is constructed.
  4. 4Sketch solution curves on a slope field given initial conditions.
  5. 5Identify and interpret equilibrium solutions from a differential equation or its slope field.
  6. 6Classify equilibrium solutions as stable, unstable, or semistable.
  7. 7Recognize and analyze autonomous differential equations.
  8. 8Use direction field information to describe long-term behavior of solutions.
  9. 9Solve simple separable first-order equations using separation of variables.
  10. 10Verify that a proposed function is a solution to a first-order differential equation.
  11. 11Use technology to generate slope fields and explore solution behavior.
  12. 12Identify and correct common slope field and first-order equation mistakes.

Sections at a Glance

Sections 2.1 – 2.4
First-Order Structure and Slope Fields
What First-Order Means · Standard Form · Constructing Slope Fields · Sketching Solution Curves

What First-Order Means

A differential equation is called first-order if it involves the first derivative of the unknown function but no higher derivatives. The highest derivative present in a differential equation determines its order.

First-order equations describe situations where the rate of change of a quantity depends on the current state of that quantity, on the independent variable, or on both. Population growth depends on current population size. Drug concentration in the bloodstream depends on current concentration. The rate at which a hot object cools depends on the current temperature difference. All of these are first-order relationships.

First-Order ExamplesWhy First-Order
$\dfrac{dy}{dx} = 3x^2$Involves only $y'$; the rate depends on the independent variable alone
$\dfrac{dP}{dt} = 0.05P$Involves only $P'$; growth rate is proportional to current population
$\dfrac{dy}{dx} = x - y$Involves only $y'$; rate depends on both $x$ and $y$
$\dfrac{dQ}{dt} = 10 - 0.2Q$Involves only $Q'$; rate decreases as $Q$ grows
Why One Initial Condition Suffices

For a first-order equation, exactly one initial condition is needed to determine a unique solution. This reflects the structure of the equation: it specifies only $y'$, so one piece of information — the value of $y$ at one point — is enough to identify a single solution curve from the family. Second-order equations (Chapter 6) require two initial conditions.

Differential Equations of the Form $\frac{dy}{dx} = f(x, y)$

The most common way to write a first-order differential equation is $\frac{dy}{dx} = f(x, y)$. This says: the derivative of $y$ with respect to $x$ equals some function of $x$ and $y$ together. The function $f(x, y)$ on the right-hand side may depend on $x$ alone, on $y$ alone, or on both.

CaseExampleCharacter
$f$ depends only on $x$$\dfrac{dy}{dx} = x^2 + 1$Reduces to direct integration; $y = \int f(x)\, dx + C$
$f$ depends only on $y$$\dfrac{dy}{dx} = 0.5y$Autonomous equation; rate depends only on current state
$f$ depends on both$\dfrac{dy}{dx} = x - y$General case; rate depends on both position and value
Reading the Equation as a Rate Statement

The equation $\frac{dy}{dx} = f(x, y)$ is a rate statement. At the point $(x, y)$, the slope of any solution curve is $f(x, y)$. The equation does not tell you what $y$ is — it tells you how fast $y$ is changing at every location in the plane. Finding the function $y(x)$ whose derivative matches this rule at every point is the central challenge of solving a differential equation.

Slope Fields

A slope field, also called a direction field, is a visual representation of the differential equation $\frac{dy}{dx} = f(x, y)$, constructed by drawing short line segments at many points in the $xy$-plane. Each segment at a point $(x, y)$ has slope equal to $f(x, y)$ at that point.

The slope field does not show one solution curve. It shows the slope that any solution curve would have at each point it passes through. In this sense, the slope field is a portrait of the entire family of solutions simultaneously.

How to Construct a Slope Field

Step 1. Choose a grid of points in the $xy$-plane, such as integer coordinate points on a rectangle.

Step 2. At each point $(x, y)$, compute the value of $f(x, y)$.

Step 3. Draw a short line segment centered at $(x, y)$ with slope equal to $f(x, y)$.

Step 4. Repeat for every grid point in the chosen region.

Example 2.3.1
Constructing a slope field by hand for $\frac{dy}{dx} = x - y$
  • ProblemConstruct a slope field for $\frac{dy}{dx} = x - y$ at the nine grid points where $x \in \{-1, 0, 1\}$ and $y \in \{-1, 0, 1\}$.
  • ThinkAt each of the nine points $(x, y)$, I compute $f(x, y) = x - y$ and record the slope.
  • Solve
    Point $(x, y)$Slope $= x - y$
    $(-1,-1)$$0$
    $(-1,\ 0)$$-1$
    $(-1,\ 1)$$-2$
    $(0,-1)$$1$
    $(0,\ 0)$$0$
    $(0,\ 1)$$-1$
    $(1,-1)$$2$
    $(1,\ 0)$$1$
    $(1,\ 1)$$0$
  • Diagram
    Slope Field Diagram — $dy/dx = x - y$

    Draw a coordinate plane. At each of the nine points, place a short line segment with the slope listed above. At $(-1, 0)$: segment slants downward (slope $-1$). At $(1, -1)$: segment rises steeply (slope $2$). At the origin, at $(-1,-1)$, and at $(1,1)$: horizontal segments (slope $0$). Notice that all slope-zero points lie on the diagonal line $y = x$. Above that diagonal, slopes are negative; below it, slopes are positive.

  • InterpretAlong the diagonal $y = x$, the slope is always zero. Solutions passing through this region move horizontally. On one side of the diagonal, slopes are positive; on the other, they are negative. This pattern suggests that solutions are driven toward the diagonal from both sides.
Answer: A nine-point slope field showing horizontal segments along $y = x$ and slopes that increase as you move below the diagonal.
Isoclines — Finding Patterns Quickly

An isocline is a curve along which the slope field has constant slope. The most important is the zero isocline, where $f(x,y) = 0$ and all segments are horizontal. For $\frac{dy}{dx} = x - y$, the zero isocline is $y = x$. Sketching the zero isocline before drawing all the segments helps you see the overall structure of the field immediately.

What a Slope Field Reveals

Slope Field FeatureWhat It Tells You
Horizontal segmentsSolutions momentarily level off here; $\frac{dy}{dx} = 0$
Positive slopesSolutions are increasing in this region
Negative slopesSolutions are decreasing in this region
Steep slopesSolutions are changing rapidly
Consistent horizontal bandsThe equation may be autonomous
Converging patternsSolutions may approach an equilibrium

Sketching Solution Curves

Once a slope field has been drawn, you can sketch solution curves directly on it. A solution curve is a smooth curve in the plane that, at every point, is tangent to the slope field segment at that point. The curve always follows the local direction of the slope.

Rules for Sketching Solution Curves

Rule 1. A solution curve is always tangent to the slope field at each of its points. It never crosses a segment at the wrong angle.

Rule 2. Under standard Existence and Uniqueness conditions, solution curves do not cross each other.

Rule 3. Solution curves are smooth. They have no corners, cusps, or abrupt changes in direction.

Rule 4. Horizontal segments in the slope field indicate where solution curves have horizontal tangents.

Example 2.4.1
Sketching solution curves on the slope field for $\frac{dy}{dx} = x - y$
  • ProblemOn a slope field for $\frac{dy}{dx} = x - y$, sketch three solution curves starting at $(0, 2)$, $(0, 0)$, and $(0, -2)$.
  • ThinkAt each starting point, I compute the initial slope, begin drawing in that direction, and then follow the slope field smoothly as I move across the plane.
  • Solve At $(0, 2)$: slope $= 0 - 2 = -2$. The curve begins by moving steeply downward to the right.

    At $(0, 0)$: slope $= 0 - 0 = 0$. The curve begins moving horizontally.

    At $(0, -2)$: slope $= 0 - (-2) = 2$. The curve begins by moving steeply upward to the right.
  • Diagram
    Solution Curve Sketch — $dy/dx = x - y$

    Draw three smooth curves on the slope field. The curve from $(0, 2)$ curves downward and then bends to follow the slope field toward the upper right. The curve from $(0, -2)$ curves upward and bends similarly. The curve from $(0, 0)$ moves rightward with a slight dip and then rises. All three curves appear to approach a common shape resembling the line $y = x - 1$ for large $x$.

  • InterpretThe slope field reveals that all three solution curves approach the line $y = x - 1$ as $x \to \infty$, regardless of starting point. This is visible from the picture alone, without solving the equation.
  • CheckThe general solution (found using integrating factors in Chapter 4) is $y = x - 1 + Ce^{-x}$. As $x \to \infty$, the term $Ce^{-x} \to 0$, confirming that all solutions approach $y = x - 1$. The slope field told this story first.
Answer: Three smooth curves all converging toward the line $y = x - 1$ as $x$ increases, with initial slopes of $-2$, $0$, and $2$ respectively.
Sections 2.5 – 2.9
Initial Values, Equilibria, Stability, and Long-Term Behavior
Initial Value Problems · Equilibrium Solutions · Stability · Autonomous Equations · Long-Term Behavior

Initial Value Problems

A differential equation describes a family of possible functions. An initial value problem adds one piece of information — the value of the solution at a specific point — which picks out a single solution from the family.

An initial value problem (IVP) has the form:

Initial Value Problem

$$\frac{dy}{dx} = f(x, y), \qquad y(x_0) = y_0$$

The condition $y(x_0) = y_0$ says the solution curve passes through the point $(x_0, y_0)$. In the slope field, the initial condition identifies the starting point. Exactly one solution curve passes through any given point under standard smoothness conditions.

Example 2.5.1
Identifying a particular solution from the general family
  • ProblemThe general solution to $\frac{dy}{dx} = 2y$ is $y = Ce^{2x}$. Find the particular solution satisfying $y(0) = 3$.
  • ThinkSubstitute the initial condition into the general solution and solve for $C$.
  • Solve y(0) = Ce^{2·0} = C · 1 = C Setting C = 3: y = 3e^{2x}
  • CheckDifferentiate: $\frac{d}{dx}(3e^{2x}) = 6e^{2x} = 2 \cdot 3e^{2x} = 2y$. ✓ Also, $y(0) = 3e^0 = 3$. ✓
  • InterpretAmong all exponential functions $y = Ce^{2x}$, the one passing through $(0, 3)$ is $y = 3e^{2x}$. The initial condition selects exactly one solution curve from the infinite family.
Answer: $y = 3e^{2x}$

Equilibrium Solutions

An equilibrium solution is a constant solution $y = c$ such that the differential equation is satisfied for all values of the independent variable. For $\frac{dy}{dx} = f(x, y)$, the constant $y = c$ is an equilibrium solution if and only if $f(x, c) = 0$ for all $x$.

Equilibrium solutions are physically meaningful. In a population model, an equilibrium population is a level at which growth stops. In a temperature model, an equilibrium is where heating or cooling stops. On a slope field, equilibrium solutions appear as horizontal lines along which all slope segments are horizontal.

Example 2.6.1
Finding equilibrium solutions of a logistic model
  • ProblemFind all equilibrium solutions of $\dfrac{dP}{dt} = 0.3P\!\left(1 - \dfrac{P}{500}\right)$.
  • ThinkSet the right-hand side equal to zero and solve for the constant values of $P$.
  • Solve 0.3P(1 - P/500) = 0 P = 0 or 1 - P/500 = 0 → P = 500
  • Check $P = 0$: $0.3(0)(1 - 0) = 0$. ✓
    $P = 500$: $0.3(500)(1 - 500/500) = 0.3(500)(0) = 0$. ✓
  • InterpretThe population never changes if it starts at zero (no bacteria) or at $500$ (the carrying capacity). These are the two possible steady states of this logistic growth model.
Answer: $P = 0$ and $P = 500$ are the equilibrium solutions.

Stability as an Introduction

Finding an equilibrium raises an immediate question: if a system is slightly displaced from equilibrium, does it return there or move further away? This is the question of stability.

TypeBehavior of Nearby SolutionsAnalogy
StableSolutions starting near $y = c$ move toward it as $x$ increasesBottom of a bowl — a displaced ball returns
UnstableSolutions starting near $y = c$ move away from it as $x$ increasesTop of a hill — a displaced ball rolls away
SemistableSolutions on one side approach, solutions on the other side retreatA shoulder or saddle in a landscape
Sign Test for Stability (Autonomous Equations)

For $\frac{dy}{dx} = f(y)$, check the sign of $f(y)$ just below and just above $y = c$:

If $f(y) > 0$ below $c$ and $f(y) < 0$ above $c$: solutions move toward $c$ from both sides. → Stable

If $f(y) < 0$ below $c$ and $f(y) > 0$ above $c$: solutions move away from $c$ on both sides. → Unstable

Example 2.7.1
Stability analysis of the logistic model
  • ProblemClassify the stability of the equilibria $P = 0$ and $P = 500$ for $\dfrac{dP}{dt} = 0.3P\!\left(1 - \dfrac{P}{500}\right)$.
  • ThinkDefine $f(P) = 0.3P(1 - P/500)$ and check its sign in the three intervals separated by the equilibria.
  • Solve P < 0: f(P) < 0 (P negative, factor positive) → P decreases 0 < P < 500: f(P) > 0 (both factors positive) → P increases P > 500: f(P) < 0 (P positive, (1-P/500) negative) → P decreases
    At $P = 0$: just above zero, $f > 0$, so solutions move away. At $P = 0$ from below, $f < 0$, so solutions also move away. → Unstable.

    At $P = 500$: just below, $f > 0$ (moving up toward 500); just above, $f < 0$ (moving down toward 500). → Stable.
  • InterpretAny positive population grows toward the carrying capacity of 500. The zero equilibrium is unstable: a tiny positive population will always grow. The equilibrium at 500 is stable: populations near it converge there over time.
Answer: $P = 0$ is unstable; $P = 500$ is stable.

Autonomous Differential Equations

An autonomous differential equation is a first-order equation in which the right-hand side depends only on $y$, not explicitly on the independent variable:

$$\frac{dy}{dx} = f(y)$$

The rate of change depends only on the current value of $y$, not on where you are along the $x$-axis. This gives the slope field a horizontal symmetry: the slope at $(0, 2)$ equals the slope at $(5, 2)$ and at $(-3, 2)$. The entire slope field consists of horizontal stripes of slope values.

Because the slope depends only on $y$, the behavior of solutions can be summarized by a phase line: a vertical number line marking equilibria with upward arrows where $f(y) > 0$ (solutions increasing) and downward arrows where $f(y) < 0$ (solutions decreasing).

Example 2.8.1
Phase line analysis of an autonomous equation
  • ProblemFor $\dfrac{dy}{dx} = y(2 - y)$, find equilibria, construct a phase line, and describe solution behavior.
  • ThinkSet $f(y) = y(2-y) = 0$ to find equilibria, then determine the sign of $f$ in each interval.
  • Solve Equilibria: y = 0 and y = 2 y < 0: y < 0, (2-y) > 0 → f(y) < 0 ↓ decreasing 0 < y < 2: y > 0, (2-y) > 0 → f(y) > 0 ↑ increasing y > 2: y > 0, (2-y) < 0 → f(y) < 0 ↓ decreasing
  • Diagram
    Phase Line for $dy/dx = y(2-y)$

    Draw a vertical number line. Mark $y = 0$ and $y = 2$. Below $0$: downward arrow (decreasing). Between $0$ and $2$: upward arrow (increasing). Above $2$: downward arrow (decreasing). The equilibrium $y = 2$ has arrows pointing toward it from both sides — stable. The equilibrium $y = 0$ has arrows pointing away on the upper side and downward below — unstable.

  • InterpretSolutions starting above zero converge to $y = 2$. Solutions starting below zero diverge downward without bound. The equilibrium $y = 2$ is stable; $y = 0$ is unstable.
Answer: Equilibria $y = 0$ (unstable) and $y = 2$ (stable). All solutions with positive initial values converge to $y = 2$.
Why Autonomous Equations Are Special

Stability analysis for autonomous equations reduces to a one-dimensional phase line rather than a full two-dimensional slope field, making qualitative analysis much simpler. Many of the most important equations in applications — logistic growth, epidemiological models, chemical kinetics, feedback control — are autonomous.

Direction Fields and Long-Term Behavior

The slope field is especially useful for understanding long-term behavior: what happens to solutions as the independent variable becomes large. Several patterns occur frequently.

Pattern in Slope FieldLong-Term Conclusion
Solutions from many starting points converge to a horizontal line $y = c$$y = c$ is a stable equilibrium; all nearby solutions approach it
Solutions rise or fall without leveling offSolution may grow or decay without bound
Solutions appear to converge to a non-horizontal curveLong-term behavior is a particular solution, not necessarily constant
Example 2.9.1
Long-term behavior of $\frac{dy}{dx} = 2 - y$
  • ProblemDescribe the long-term behavior of solutions to $\dfrac{dy}{dx} = 2 - y$ for various initial conditions.
  • ThinkThis is autonomous. I find the equilibrium and analyze the sign of $f(y) = 2 - y$ on either side.
  • Solve Equilibrium: 2 - y = 0 → y = 2 y < 2: f(y) = 2 - y > 0 → solutions increase toward 2 y > 2: f(y) = 2 - y < 0 → solutions decrease toward 2
  • InterpretEvery solution converges to $y = 2$ as $x \to \infty$, regardless of starting value. The equilibrium $y = 2$ is stable.
  • CheckThe general solution is $y = 2 + Ce^{-x}$ (Chapter 4). As $x \to \infty$, $e^{-x} \to 0$, so $y \to 2$. ✓
Answer: All solutions approach $y = 2$ as $x \to \infty$. Long-term behavior is convergence to the stable equilibrium.
Sections 2.10 – 2.12
Separable Equations, Verification, and Technology
Simple Separable Equations · Checking Solutions · Technology for Slope Fields

Simple Separable Equations

Chapter 3 is devoted entirely to separable equations. Here you will see an introductory version of the method, enough to solve simple first-order equations and to connect the algebra to the slope field picture.

A separable equation can be written in the form $\frac{dy}{dx} = g(x) \cdot h(y)$. The solution strategy is to rewrite the equation as $\frac{1}{h(y)}\, dy = g(x)\, dx$, integrate both sides, and solve for $y$.

Separation of Variables — Preview

Step 1. Identify $g(x)$ and $h(y)$ so that $\frac{dy}{dx} = g(x) h(y)$.

Step 2. Rewrite as $\dfrac{1}{h(y)}\, dy = g(x)\, dx$.

Step 3. Integrate both sides: $\displaystyle\int \dfrac{1}{h(y)}\, dy = \int g(x)\, dx$.

Step 4. Include a constant of integration $C$. Solve for $y$ if possible.

Step 5. Apply any initial conditions to determine $C$.

Example 2.10.1
Solving a simple separable equation — growth
  • ProblemSolve $\dfrac{dy}{dx} = 2xy$ with initial condition $y(0) = 1$.
  • ThinkThe right-hand side factors as $(2x)(y)$, so this is separable with $g(x) = 2x$ and $h(y) = y$. Separate and integrate.
  • Solve 1/y dy = 2x dx ∫(1/y) dy = ∫2x dx ln|y| = x² + C |y| = e^(x²+C) = e^C · e^(x²) y = A e^(x²) where A = ±e^C Apply initial condition $y(0) = 1$: 1 = A e^0 = A → A = 1 Particular solution: y = e^(x²)
  • Check$\frac{d}{dx}(e^{x^2}) = 2x e^{x^2} = 2x \cdot y$. ✓   $y(0) = e^0 = 1$. ✓
  • InterpretThe solution $y = e^{x^2}$ grows very rapidly as $|x|$ increases. On the slope field, the solution curve starting at $(0, 1)$ rises steeply for large $|x|$, consistent with the slope $2xy$ growing rapidly when both $x$ and $y$ are large.
Answer: $y = e^{x^2}$
Example 2.10.2
Solving a separable equation — exponential decay
  • ProblemSolve $\dfrac{dN}{dt} = -0.05N$ with initial condition $N(0) = 200$.
  • ThinkSeparable with $g(t) = -0.05$ and $h(N) = N$. Separate and integrate.
  • Solve 1/N dN = -0.05 dt ln|N| = -0.05t + C N = A e^(-0.05t) Apply $N(0) = 200$: 200 = A e^0 = A Particular solution: N(t) = 200 e^(-0.05t)
  • Check$\frac{dN}{dt} = 200(-0.05)e^{-0.05t} = -0.05 \cdot 200 e^{-0.05t} = -0.05N$. ✓
  • Interpret$N$ decays exponentially from $200$. After $t = 20$, $N \approx 200e^{-1} \approx 73.6$. This could model radioactive decay, drug clearance, or cooling in a simplified setting. On the slope field, the solution curves fall smoothly toward $N = 0$ from above.
Answer: $N(t) = 200e^{-0.05t}$

Checking Solutions

A critical skill in differential equations is the ability to verify that a proposed function actually satisfies a given equation. This is always possible: differentiate the proposed solution, substitute into the equation, and check that both sides are equal. Checking solutions is not optional. It is a fundamental part of the problem-solving process.

The Verification Process

Step 1. Compute $\dfrac{d}{dx}[\phi(x)]$.

Step 2. Compute $f(x, \phi(x))$ by substituting $\phi(x)$ for $y$ in the right-hand side.

Step 3. Confirm the two expressions are equal.

Step 4. If an initial condition was given, verify $\phi(x_0) = y_0$.

Example 2.11.1
Verifying a proposed solution
  • ProblemVerify that $y = 3e^{-2x} + 1$ is a solution to $\dfrac{dy}{dx} = -2(y - 1)$ with initial condition $y(0) = 4$.
  • ThinkDifferentiate the proposed solution and check that it equals the right-hand side of the equation when $y = 3e^{-2x} + 1$ is substituted.
  • Solve Differentiate: d/dx (3e^{-2x} + 1) = -6e^{-2x} Right-hand side with y = 3e^{-2x} + 1: -2(y - 1) = -2(3e^{-2x} + 1 - 1) = -2(3e^{-2x}) = -6e^{-2x} ✓ Check initial condition: y(0) = 3e^0 + 1 = 3 + 1 = 4 ✓
  • InterpretAs $x \to \infty$, $e^{-2x} \to 0$, so $y \to 1$. The equilibrium $y = 1$ (found from $-2(y-1)=0$) is stable, and the solution confirms this convergence.
Answer: Verified. $y = 3e^{-2x} + 1$ satisfies the equation and the initial condition.
Student Warning — Never Skip Verification

Many students skip verification because they feel confident in their algebra. This is a mistake. Verification takes very little time and catches errors that followed every step of the method correctly but introduced a small slip. In applications of differential equations, an incorrect solution function can lead to seriously wrong predictions. Build the habit of always checking.

Technology for Slope Fields

By hand, constructing a slope field for more than a dozen or so points becomes tedious. Technology generates detailed slope fields quickly, allowing you to focus on interpretation rather than arithmetic.

ToolNotes
DesmosFree online; can generate slope fields via parametric features; widely accessible
GeoGebraIncludes a slope field tool and an ODE solver; solution curves can be overlaid
Python (matplotlib + scipy)Fully programmable; used professionally in scientific computing
MATLAB / MathematicaBuilt-in ODE analysis tools; standard in engineering and science programs
Wolfram AlphaCan generate slope fields from a typed query; useful for quick checks

Python Example: Slope Field for $dy/dx = x - y$

import numpy as np import matplotlib.pyplot as plt x = np.linspace(-3, 3, 20) y = np.linspace(-3, 3, 20) X, Y = np.meshgrid(x, y) dydx = X - Y norm = np.sqrt(1 + dydx**2) U = 1 / norm V = dydx / norm plt.figure(figsize=(6, 6)) plt.quiver(X, Y, U, V, angles='xy') plt.xlabel('x') plt.ylabel('y') plt.title("Slope field for dy/dx = x - y") plt.axhline(0, color='gray', linewidth=0.5) plt.axvline(0, color='gray', linewidth=0.5) plt.grid(True, linestyle='--', alpha=0.5) plt.show()
Reading Technology-Generated Slope Fields

When using technology: check the window carefully to ensure the behavior you care about is captured; identify horizontal lines (equilibria); trace solution curves by clicking starting points; and try different initial conditions to see the full family of solution behavior. Do not simply accept the picture, interpret what you see in terms of the differential equation itself.

MGU Library Connection
  • MGU Scientific Computing pages: guided Python tutorial for slope field generation and interpretation
  • MGU Physics and Engineering chapters: direction fields as a standard tool for visualizing dynamical systems
  • Appendix Q of this textbook: Differential Equations Technology Guide
Sections 2.13 – 2.14
Common Mistakes and the Road Ahead
Ten Common Errors · Preparing for Separable and Linear Equations

Common Slope Field and First-Order Mistakes

Mistake 1 — Confusing the slope field with the graph of $f(x,y)$

The slope field is not a graph of $f(x,y)$. It is a collection of short segments showing the slope that any solution curve would have at each point. The solution curves are the graphs; the slope field segments are slope indicators at grid points.

Mistake 2 — Drawing solution curves that cross slope field segments at the wrong angle
Curve crosses a segment at a sharp angle different from the segment's slope

A solution curve must be tangent to the slope field at every point it passes through. If your sketched curve crosses a segment at a different angle, you have not followed the slope field correctly.

Mistake 3 — Letting solution curves cross each other
Two sketched solution curves intersect inside the slope field region

Under standard Existence and Uniqueness conditions, exactly one solution curve passes through each point. If two of your curves cross, at least one is wrong. Identify which is not following the slope field correctly near the crossing point.

Mistake 4 — Confusing equilibrium solutions with initial-value solutions

An equilibrium solution $y = c$ is a constant function satisfying the equation everywhere. It is not merely a solution that starts at height $c$. Any non-equilibrium solution starting near $y = c$ will approach or diverge from it over time, never being equal to it (except at the initial point).

Mistake 5 — Forgetting the constant of integration
$\int \frac{1}{y}\, dy = \int 2x\, dx \implies \ln y = x^2$ (no $+C$)

Always include $+C$ on at least one side after integrating. Without it you have only one particular solution, not the general family. The constant $C$ is determined by the initial condition.

Mistake 6 — Dropping the absolute value inside the logarithm
$\int \frac{1}{y}\, dy = \ln(y) + C$

The correct result is $\ln|y| + C$. The absolute value matters when $y$ can be negative. Dropping it can produce a domain error or an incorrect solution when $y$ takes negative values.

Mistake 7 — Assuming that "autonomous" means "easy to solve"

Autonomous equations are structurally simple (the right-hand side does not depend on $x$), but they are not necessarily easy to solve symbolically. Many autonomous equations lead to integrals that cannot be evaluated in closed form. The advantage of autonomy is that qualitative analysis via phase lines is straightforward, even when exact solutions are not.

Mistake 8 — Misreading stability from a slope field

Some students conclude an equilibrium is stable simply because many arrows appear to point "toward" it on one side. You must check the sign of $f(y)$ on both sides of the equilibrium. A stable equilibrium requires arrows pointing toward it from above and below simultaneously.

Mistake 9 — Ignoring domain restrictions in a solution

A solution $y = \phi(x)$ may only be valid on a restricted interval. For example, $y = 1/(C - x)$ is only valid where $C - x \neq 0$. The domain of validity must include the initial condition and must be verified against the original equation. You will study this in depth in Chapter 3.

Mistake 10 — Treating $y$ as a constant when computing slope at a point
At $(1, 3)$: slope $= f(1, y) = 1 - y$ without substituting $y = 3$

When computing the slope at a specific point $(x_0, y_0)$, substitute both $x_0$ and $y_0$ into $f(x,y)$. The slope at $(1,3)$ for $\frac{dy}{dx} = x - y$ is $1 - 3 = -2$, not an expression involving $y$.

Preparing for Separable and Linear Equations

Chapter 2 has given you the tools to understand first-order differential equations before solving them: constructing and reading slope fields, sketching solution curves, identifying equilibria, analyzing stability informally, recognizing autonomous equations, using phase lines, describing long-term behavior, and solving simple separable equations.

Chapters 3 and 4 develop the two most important families of exact solution methods for first-order equations.

What to Expect in Chapter 3: Separable Differential Equations

Chapter 3 is devoted entirely to separable differential equations. You will learn how to recognize a separable equation, separate variables systematically and carefully, integrate both sides and manage constants of integration, solve for $y$ explicitly or accept an implicit solution, apply initial conditions, and solve growth, decay, cooling, and simple motion problems. You will also study what to do when the solution domain is restricted.

What to Expect in Chapter 4: Linear First-Order Equations

Chapter 4 introduces linear first-order equations of the form $y' + p(x)y = q(x)$. These cannot always be solved by separation of variables, but they have a powerful and reliable solution method: the integrating factor. Chapter 4 will explain why linear first-order equations have a special structure, what an integrating factor is and why it works, how to find and use integrating factors step by step, and how to apply this method to mixing problems, electrical circuits, motion with resistance, and population models.

Connections to Maintain

As you move through Chapters 3 and 4, keep the slope field perspective active. After finding an exact solution, always ask: does this function match what the slope field suggested? Does the long-term behavior of the formula agree with the equilibrium and stability analysis? Connecting symbolic solutions to qualitative pictures is a skill that will serve you throughout differential equations and into advanced applied mathematics.

Chapter Summary

Key Terms Review

first-order equation
A differential equation involving $y'$ but no higher derivatives. Requires exactly one initial condition to determine a unique solution.
slope field
A diagram of short slope-indicating line segments at grid points in the $xy$-plane, each with slope $f(x,y)$. Also called a direction field.
solution curve
A smooth curve in the plane that is everywhere tangent to the slope field. It is the graph of one particular solution to the differential equation.
initial condition
A specified value $y(x_0) = y_0$ that identifies a starting point on the slope field and selects one particular solution from the family.
initial value problem
A differential equation combined with one or more initial conditions, written $\frac{dy}{dx} = f(x,y)$, $y(x_0) = y_0$.
equilibrium solution
A constant solution $y = c$ where $f(x,c) = 0$ for all $x$. Appears as a horizontal line in the slope field; represents a steady state.
stable equilibrium
An equilibrium toward which nearby solutions converge as the independent variable increases. Sign of $f(y)$ is positive below and negative above.
unstable equilibrium
An equilibrium from which nearby solutions diverge as the independent variable increases. Sign of $f(y)$ is negative below and positive above.
semistable equilibrium
An equilibrium where solutions on one side converge and solutions on the other side diverge. The sign of $f(y)$ does not change across the equilibrium.
autonomous equation
A first-order equation $\frac{dy}{dx} = f(y)$ in which the right-hand side depends only on $y$, not on $x$. Its slope field has horizontal symmetry.
phase line
A vertical number line for an autonomous equation, marking equilibria and showing direction arrows (up where $f(y) > 0$, down where $f(y) < 0$).
separable equation
A first-order equation that can be written $\frac{dy}{dx} = g(x) h(y)$, allowing the variables to be separated and each side integrated independently.
general solution
The family of all solutions to a differential equation, usually expressed with an arbitrary constant $C$.
particular solution
A single solution obtained by applying an initial condition to determine the value of the arbitrary constant $C$.

Concept Review Questions

Answer each question in one or two complete sentences.

  1. What does it mean for a differential equation to be first-order? How does this differ from second-order?
  2. Explain in your own words what a slope field shows. Why is it useful even before you solve the equation?
  3. What is a solution curve, and how does it relate to the slope field?
  4. Explain the difference between a general solution and a particular solution.
  5. What is an equilibrium solution? How do you find one?
  6. Explain the difference between stable and unstable equilibria in terms of nearby solution behavior.
  7. What makes a differential equation autonomous? What is special about the slope field of an autonomous equation?
  8. What is a phase line, and what information does it convey?
  9. Describe the steps for separating variables to solve a first-order separable equation.
  10. Why is it important to verify a proposed solution by substitution rather than trusting the method alone?

Slope Field Practice

Practice AComputing and Interpreting Slopes
  1. For $\frac{dy}{dx} = y$: compute the slope at $(-1,1)$, $(0,1)$, $(1,1)$, $(0,2)$, $(0,-1)$. Does the slope depend on $x$? Is the equation autonomous?
  2. For $\frac{dy}{dx} = 1 - y$: compute the slope at $(0,0)$, $(0,1)$, $(0,2)$, $(1,0)$, $(1,2)$. Find the equilibrium. Classify it as stable or unstable. Describe the slope field for $y < 1$ and $y > 1$.
  3. For $\frac{dy}{dx} = x + y$: compute the slope at $(0,0)$, $(1,0)$, $(0,1)$, $(-1,1)$, $(1,-1)$. Is the equation autonomous? Does it have equilibrium solutions?
  4. For $\frac{dy}{dx} = \sin(y)$ on $y \in [-\pi, 2\pi]$: find all equilibrium solutions. Classify each as stable or unstable. Describe the behavior of a solution starting at $y(0) = 0.1$.
Practice BSolution Curves and Long-Term Behavior
  1. On a slope field for $\frac{dy}{dx} = y - 2$: identify the equilibrium; sketch solution curves starting at $y(0) = 0$, $y(0) = 2$, and $y(0) = 4$; describe what happens to each as $x \to \infty$.
  2. On a slope field for $\frac{dy}{dx} = -y$: find the equilibrium; describe the shape of solution curves for $y > 0$ and $y < 0$; describe long-term behavior.
  3. A slope field has horizontal segments along $y = 3$, positive slopes above $y = 3$, and negative slopes below. What can you conclude about the equilibrium at $y = 3$?
  4. A slope field has horizontal segments along $y = 0$ and $y = 4$, positive slopes for $0 < y < 4$, and negative slopes for $y < 0$ and $y > 4$. Sketch a phase line. Classify each equilibrium.

Equilibrium Practice

Practice CFinding and Classifying Equilibria
  1. Find all equilibrium solutions of each equation.
    (a) $\dfrac{dy}{dx} = y(y-3)$
    (b) $\dfrac{dN}{dt} = N(1-N)(N-2)$
    (c) $\dfrac{dP}{dt} = rP - H$, where $r$ and $H$ are positive constants
  2. For $\dfrac{dy}{dx} = y^2 - 4$: find all equilibria; determine the sign of $\frac{dy}{dx}$ in each interval between equilibria; classify each equilibrium; sketch a phase line.
  3. For $\dfrac{dy}{dx} = y^2$: find any equilibrium solutions; determine the sign of $\frac{dy}{dx}$ on either side; classify the equilibrium and explain how this case differs from a clearly stable or unstable one.
  4. For $\dfrac{dP}{dt} = 0.2P - 0.001P^2$: find all equilibria; classify each; describe long-term behavior for $P(0) = 10$, $P(0) = 200$, $P(0) = 300$; interpret in terms of population dynamics.

Initial Value Problems

Practice DSolving and Verifying IVPs
  1. Solve each IVP. Verify your solution in each case.
    (a) $\dfrac{dy}{dx} = 3y$, $y(0) = 2$
    (b) $\dfrac{dy}{dx} = -4y$, $y(0) = 5$
    (c) $\dfrac{dN}{dt} = kN$, $N(0) = N_0$ (general form; leave answer in terms of $k$ and $N_0$)
    (d) $\dfrac{dy}{dx} = 2x$, $y(1) = 3$
  2. The general solution to $\dfrac{dy}{dx} = 2 - y$ is $y = 2 + Ce^{-x}$.
    (a) Find the particular solution with $y(0) = 5$.
    (b) Find the particular solution with $y(0) = 0$.
    (c) What happens to both solutions as $x \to \infty$?
    (d) Which solution starts above the equilibrium, and which below?
  3. For $\dfrac{dy}{dx} = (y-1)(y-3)$: find all equilibria; classify each as stable or unstable; sketch a phase line; describe long-term behavior for $y(0) = 0$, $y(0) = 2$, and $y(0) = 4$.

Applications

Practice EApplied Problems
  1. Radioactive Decay. A radioactive substance decays according to $\dfrac{dA}{dt} = -0.03A$.
    (a) Write the general solution.
    (b) If $A(0) = 100$ grams, find $A(t)$.
    (c) At what time does $A = 50$ grams (the half-life)?
    (d) Describe the shape of the solution curve on a slope field.
  2. Population Growth. A bacterial colony grows at a rate proportional to its size: $\dfrac{dP}{dt} = 0.1P$.
    (a) Solve with $P(0) = 500$.
    (b) How long until the population doubles?
    (c) What does the slope field for this equation look like?
  3. Cooling. The temperature $T$ (°C) of a cup of coffee satisfies $\dfrac{dT}{dt} = -0.15(T - 20)$.
    (a) Find the equilibrium temperature and interpret it physically.
    (b) Classify the equilibrium as stable or unstable.
    (c) If $T(0) = 90°C$, solve for $T(t)$.
    (d) After how many minutes is the coffee at 50°C?
  4. Logistic Growth. A fish population follows $\dfrac{dP}{dt} = 0.4P\!\left(1 - \dfrac{P}{800}\right)$.
    (a) Find all equilibrium solutions.
    (b) Classify each as stable or unstable.
    (c) Describe the long-term behavior starting at $P(0) = 100$.
    (d) Interpret $P = 800$ in practical terms.
  5. Disease Spread (Preview). A simplified model uses $\dfrac{dI}{dt} = \beta I(N - I) - \gamma I$, where $N$, $\beta$, $\gamma$ are positive constants.
    (a) Find all equilibrium solutions.
    (b) Which equilibrium represents no disease?
    (c) Under what condition on $\beta$, $\gamma$, and $N$ is the disease-free equilibrium unstable? What does instability mean here?

Error Analysis

Each problem shows a student's work or claim. Identify the error and write the correct answer or explanation.

Problem 1

A student finds equilibrium solutions for $\dfrac{dy}{dx} = x(y - 2)$ and writes: "Setting equal to zero gives $x = 0$ or $y = 2$, so the equilibrium solutions are $y = 0$ and $y = 2$."

Identify and explain the error. What are the correct equilibrium solutions, if any?

Problem 2
A solution curve on the slope field for dy/dx = y − x has a sharp corner at x = 2 because "the slope changes sign there."

Identify the error and explain what the solution curve should actually look like.

Problem 3

A student separates variables in $\dfrac{dy}{dx} = 3xy$ and writes: $dy = 3xy\, dx$, then $\int dy = \int 3xy\, dx$, then $y = 3xy \cdot x + C$.

Find all errors in this work. Write the correct solution process and final answer.

Problem 4
General solution of dy/dx = 2y is y = e^(2x).

Is this the general solution or a particular solution? Correct the claim and state the general solution.

Problem 5

A student verifies a solution to $\dfrac{dy}{dx} = x - y$ by computing $f(1, 0) = 1 - 0 = 1$ and noting that "at $x = 1$, my function also gives slope 1, so the solution is verified."

Explain why verifying at one point is not sufficient. Describe the correct verification process.

Chapter 2 Checkpoint

Chapter 2 Checkpoint
Complete without assistance — assesses all key skills and concepts from Chapter 2
Section 1 — Vocabulary and Concepts
  1. Define equilibrium solution. How is an equilibrium solution found from $\frac{dy}{dx} = f(y)$?
  2. Explain the difference between a stable and an unstable equilibrium. What sign pattern for $f(y)$ characterizes each?
  3. What is an autonomous differential equation? What is special about its slope field?
Section 2 — Slope Field Calculations
  1. Compute the slope prescribed by $\dfrac{dy}{dx} = x^2 - y$ at each point: $(0, 0)$, $(1, 1)$, $(2, 4)$, and $(0, -1)$.
  2. For $\dfrac{dy}{dx} = y(y-4)$: find all equilibria; classify each; sketch a phase line; describe the long-term behavior of solutions starting at $y(0) = 1$ and $y(0) = 6$.
Section 3 — Solving Initial Value Problems
  1. Solve $\dfrac{dy}{dx} = -3y$, $y(0) = 7$. Verify your solution.
  2. Solve $\dfrac{dy}{dx} = 4xy$, $y(0) = 2$. Verify your solution.
  3. The general solution to $\dfrac{dy}{dx} = 1 - y$ is $y = 1 + Ce^{-x}$. Find the particular solution with $y(0) = 3$. Is the solution curve initially increasing or decreasing? What value does it approach?
Section 4 — Long-Term Behavior
  1. For $\dfrac{dy}{dx} = y^2 - 1$: find and classify the equilibria at $y = 1$ and $y = -1$; sketch a phase line; describe the behavior of a solution with $y(0) = 0$ and a solution with $y(0) = 2$.
Section 5 — Applications
  1. A population of insects grows according to $\dfrac{dP}{dt} = 0.05P$ with $P(0) = 1000$. Write the particular solution. What is the population at $t = 10$? At what time does the population reach 5000?
  2. A tank initially contains $200$ liters of salt water. Freshwater flows in and the mixture drains out, so the amount of salt satisfies $\dfrac{dQ}{dt} = -0.02Q$. If $Q(0) = 50$ kg, find $Q(t)$. When does half the salt remain?
Section 6 — Error Analysis
  1. A student claims that $y = x^2 + 1$ is a solution to $\dfrac{dy}{dx} = 2y$. Verify or refute this claim with a full check.
  2. A student solving $\dfrac{dy}{dx} = 3y^2$ writes $y = \frac{1}{C - 3x}$ as the general solution. Check whether this is correct by verifying it satisfies the equation. Then note any domain restriction required.
Looking Ahead
Chapter 3: Separable Differential Equations

Chapter 2 gave you the ability to see a differential equation before solving it: to read its slope field, to find its equilibria, to analyze stability, and to sketch qualitative solution behavior. These are skills that remain valuable throughout the course, even as the equations grow more complicated.

Chapter 3 shifts focus from qualitative understanding to exact symbolic solutions. The method of separation of variables is one of the most widely used techniques in all of differential equations. It applies when the equation can be written as $\frac{dy}{dx} = g(x) \cdot h(y)$, that is, when the right-hand side factors into a function of $x$ alone times a function of $y$ alone.

Chapter 3 develops this method carefully and completely: recognizing separable equations, separating variables rigorously, managing constants of integration, solving for $y$ explicitly or accepting implicit solutions, determining domains of validity, and applying the method to exponential growth and decay, half-life and doubling time, Newton's Law of Cooling, and simple motion. Everything you learned in Chapter 2 about qualitative behavior will help you interpret every solution you find there.

MGU Library Connection
  • Chapter 1 of this textbook: What Differential Equations Study — classification, order, degree, and solutions as functions
  • Chapter 3 of this textbook: Separable Differential Equations — full development of separation of variables
  • Appendix E of this textbook: Slope Field and Phase Line Reference
  • MGU Calculus, Chapters 4–5: Derivatives, rates of change, and the Fundamental Theorem — prerequisites reviewed in Appendix A
  • MGU Biology and Epidemiology pages: logistic growth models, SIR epidemic models, and phase line analysis in population dynamics
  • MGU Scientific Computing pages: Python tutorials for slope field generation and numerical ODE solving