Tutorials › AP Statistics › Differential Equations as Slope Rules

Slope Fields and Models · Tutorial 540 of 999

Differential Equations as Slope Rules

Interpret a first-order differential equation as a point-by-point rule for the slope of a solution curve.

Beginner 8 min read

What You'll Learn

  • Identify the slope rule encoded by a first-order differential equation.
  • Evaluate the assigned slope at specified points.
  • Distinguish a slope assigned at one point from a solution curve.
  • Explain why the equation uses the derivative along a curve.
  • Avoid swapping coordinates when evaluating the rule.

From a Differential Equation to a Slope

A first-order differential equation relates an unknown function to its first derivative. In the common form \(y'=f(x,y)\), the right-hand side gives a rule for finding a slope from the coordinates \(x\) and \(y\).

For instance, if the equation is \(y'=2x-y+1\), then at the point with coordinates \((0,0)\), the rule assigns slope \(1\). At \((1,3)\), it assigns slope \(0\). The equation is therefore more than a statement about a single number: it specifies a slope at every point where its right-hand side is defined.

Definition: A first-order differential equation in the form \(y'=f(x,y)\) assigns the value \(f(x,y)\) as the required derivative, or slope, at a point with coordinates \((x,y)\). A differentiable function \(y=g(x)\) is a solution on an interval if \(g'(x)=f(x,g(x))\) at every \(x\) in that interval where the equation is defined.

The coordinates matter in a particular way: the first input to \(f\) is \(x\), and the second is \(y\). Along a solution graph, the point at input \(x\) has coordinates \((x,g(x))\). The equation says that the graph’s derivative there must equal the value of \(f\) at those coordinates.

Why the Right-Hand Side Gives the Tangent Slope

The derivative of a differentiable function at \(x_0\) is the slope of its tangent line at that input. In limit form, it is the limit of the slopes of secant lines between \((x_0,g(x_0))\) and nearby points on the graph:

$$ g'(x_0) = \lim_{h\to 0} \frac{g(x_0+h)-g(x_0)}{h}, $$

provided this limit exists. If \(g\) is a solution of \(y'=f(x,y)\), then its derivative at \(x_0\) must satisfy the differential equation. Substituting the point on the graph, whose coordinates are \((x_0,g(x_0))\), gives the required slope.

$$ g'(x_0)=f(x_0,g(x_0)). $$

This is the reason the differential equation acts as a slope rule: the derivative describes the tangent slope, and the right-hand side specifies what that derivative must be at the point on the graph.

1
Locate the point.
Use the coordinates \((x_0,y_0)\) where the slope is requested.
2
Evaluate the rule.
Substitute \(x_0\) for \(x\) and \(y_0\) for \(y\) in \(f(x,y)\).
3
Interpret the result.
The resulting number is the derivative required at that point for a solution graph passing through it.

Worked Examples: Evaluating the Slope Rule

Worked Example: A Linear Expression in the Coordinates

Suppose \(y'=2x-y+1\). Find the slope assigned at each of the points \((0,0)\), \((1,3)\), and \((-1,2)\).

Here the rule is \(f(x,y)=2x-y+1\). At \((0,0)\), substitute \(x=0\) and \(y=0\):

$$ f(0,0)=2(0)-0+1=1. $$

The assigned slope at \((0,0)\) is \(1\). Check by putting the same coordinates into the right-hand side: it evaluates to \(1\).

At \((1,3)\):

$$ f(1,3)=2(1)-3+1=2-3+1=0. $$

The assigned slope at \((1,3)\) is \(0\), as confirmed by the substitution.

At \((-1,2)\):

$$ f(-1,2)=2(-1)-2+1=-2-2+1=-3. $$

The assigned slope at \((-1,2)\) is \(-3\). Re-evaluating \(2x-y+1\) at \(x=-1\), \(y=2\) gives \(-2-2+1=-3\), so the calculation checks.

Each answer describes the derivative required at its own point. None of the three slope values alone specifies an entire function.

Worked Example: A Quotient as the Slope Rule

Suppose \(y'=\dfrac{x+y}{1+x^2}\). Find the assigned slopes at \((2,1)\), \((-1,3)\), and \((0,-2)\).

The rule is \(f(x,y)=\dfrac{x+y}{1+x^2}\). Its denominator is positive for every real \(x\), since \(1+x^2\geq 1\), so these substitutions are defined.

At \((2,1)\), the numerator is \(2+1=3\) and the denominator is \(1+2^2=1+4=5\). Thus:

$$ f(2,1)=\frac{2+1}{1+2^2}=\frac{3}{5}. $$

The slope assigned there is \(\frac{3}{5}\). Substitution into the original rule gives the same quotient, confirming the result.

At \((-1,3)\), the numerator is \(-1+3=2\) and the denominator is \(1+(-1)^2=2\):

$$ f(-1,3)=\frac{-1+3}{1+(-1)^2}=\frac{2}{2}=1. $$

The assigned slope is \(1\), and the original rule at \((-1,3)\) evaluates to \(1\).

At \((0,-2)\), the numerator is \(0+(-2)=-2\), while the denominator is \(1+0^2=1\):

$$ f(0,-2)=\frac{0+(-2)}{1+0^2}=\frac{-2}{1}=-2. $$

The assigned slope is \(-2\). Substituting the coordinates again gives \(-2/1=-2\), as required.

Worked Example: Substituting Symbolic Coordinates

Suppose \(y'=y^2-x\). First express the slope assigned at an arbitrary point \((a,b)\), then evaluate it at \((2,3)\), \((2,-3)\), and \((1,0)\).

Replace \(x\) by \(a\) and \(y\) by \(b\). The general pointwise rule is:

$$ f(a,b)=b^2-a. $$

At \((2,3)\), \(b=3\) and \(a=2\), so:

$$ f(2,3)=3^2-2=9-2=7. $$

The assigned slope is \(7\), which checks because \(y^2-x=9-2=7\) at that point.

At \((2,-3)\):

$$ f(2,-3)=(-3)^2-2=9-2=7. $$

This also gives slope \(7\); substitution into the original expression confirms it. The result illustrates that different points can receive the same slope.

At \((1,0)\):

$$ f(1,0)=0^2-1=0-1=-1. $$

The assigned slope is \(-1\), and direct substitution gives the same value. These evaluations apply the rule at particular points; they do not by themselves determine a solution function.

A Slope at a Point Is Not a Solution

A differential equation gives a condition that a solution function must satisfy throughout an interval. Evaluating its right-hand side at one point gives only one required derivative value. It does not provide all the function’s values or derivatives elsewhere.

For example, the equation \(y'=2x-y+1\) requires derivative \(1\) at \((0,0)\). That statement is local: it specifies what the derivative must be if a solution graph passes through \((0,0)\). To be a solution on an interval, a function must also satisfy the equation at every other input in that interval. A single pointwise calculation cannot establish that broader condition.

Theorem: If \(g\) is a solution of \(y'=f(x,y)\) on an interval and \(x_0\) is in that interval, then the slope of its graph at \((x_0,g(x_0))\) is \(f(x_0,g(x_0))\). This follows directly from the solution condition \(g'(x)=f(x,g(x))\) and the fact that \(g'(x_0)\) is the tangent slope at \(x_0\).

The converse requires care: prescribing the slope at one point does not prove that a differentiable function satisfies the equation over an interval. The equation is a continuing requirement, not just a list of isolated slope calculations.

Common Pitfall: Reversing the Coordinates

In \(y'=x+2y\), the first coordinate is substituted for \(x\), and the second is substituted for \(y\). At \((1,2)\), a common error is to reverse them and calculate \(2+2(1)=4\). That uses \(x=2\) and \(y=1\), which are the coordinates of a different point.

The correct substitution is \(x=1\), \(y=2\):

$$ f(1,2)=1+2(2)=1+4=5. $$

Thus the required slope at \((1,2)\) is \(5\). A quick check is to write the coordinate assignments before evaluating: first coordinate \(x=1\), second coordinate \(y=2\). Keeping the order explicit prevents the mistake.

Why the Slope-Rule View Matters

Reading a differential equation this way gives a precise interpretation before attempting any further analysis. The expression \(f(x,y)\) is evaluated at a point, and its value is the derivative required there. This viewpoint separates three ideas that are easy to confuse:

  • The equation is a rule that specifies derivatives from coordinates.
  • A pointwise evaluation gives the required slope at one point.
  • A solution is a differentiable function satisfying the rule throughout an interval.

These distinctions make it easier to interpret equations accurately and to understand what a numerical slope calculation does—and does not—tell you. The essential habit is simple: identify the point, substitute its coordinates in the stated order, and interpret the output as a local derivative.

Check Your Understanding

For each question, interpret the right-hand side as a slope rule and show the coordinate substitutions.

  1. For \(y'=3x+y\), what slope is assigned at \((2,-1)\)?
  2. For \(y'=x^2-y\), what slope is assigned at \((-2,1)\)?
  3. In \(y'=f(x,y)\), what does \(f(x_0,y_0)\) represent at the point \((x_0,y_0)\)?
  4. Why does finding the assigned slope at one point not establish that a function is a solution on an interval?
  5. For \(y'=x+2y\), identify the correct values of \(x\) and \(y\) at \((3,1)\) before evaluating the slope rule.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon