Slope Fields, Equilibrium Solutions, and Concavity

AP Calculus BC · Unit 7 — Differential Equations

Reading a differential equation before solving it

A slope field draws, at each lattice point $(x,y)$, a short segment of slope $\frac{dy}{dx}$ evaluated there. A solution curve is a curve that is everywhere tangent to those segments; one initial condition picks out one curve.

Three readings that AP asks for again and again:

To decide concavity without solving, differentiate the equation itself. If $\frac{dy}{dx}=f(x,y)$, then $\frac{d^{2}y}{dx^{2}}=f_x+f_y\cdot\frac{dy}{dx}$ in practice: differentiate the right-hand side with respect to $x$, remembering that $y$ is a function of $x$.

(0, 1)y = x - 1xyhorizontal dashes exactly on the line y = x, where dy/dx = 0
The slope field of $\frac{dy}{dx}=x-y$. The dashes are not the same along horizontal rows or along vertical columns — a sign that $\frac{dy}{dx}$ depends on both variables. The horizontal dashes line up along the diagonal $y=x$, exactly where $x-y=0$; that is an isocline, not an equilibrium solution (substitute $y=x$ and the left side equals $1$ while the right side equals $0$). The red curve is the solution through $(0,1)$; it is concave up and gradually hugs the dashed line $y=x-1$, something we can guess just by looking at the picture.

Worked example: concave up or concave down, without solving

Let $\dfrac{dy}{dx}=x-y$ with $y(0)=1$. Without solving the equation, determine whether the solution graph is concave up or concave down at $x=0$, then use the tangent line at $(0,1)$ to approximate $y(0.2)$ and say whether the approximation is an overestimate or an underestimate.

Solution

Step 1 — the slope. $\dfrac{dy}{dx}\Big|_{(0,1)}=0-1=-1$.

Step 2 — the second derivative. Differentiate both sides of $y'=x-y$ with respect to $x$, remembering that $y$ is a function of $x$:

$$y''=1-y'$$

At $(0,1)$ we have $y'=-1$, so $y''=1-(-1)=2>0$. The graph is concave up near $x=0$.

Step 3 — the tangent line. $y\approx 1-1\cdot(x-0)=1-x$, so $y(0.2)\approx 0.8$.

Step 4 — direction of the error. Concave up ⇒ the tangent line lies below the graph ⇒ $0.8$ is an underestimate.

Here the true solution is $y=x-1+2e^{-x}$, giving $y(0.2)\approx0.837$ — indeed larger. But the whole argument above does not need to know that formula, and that is exactly what the problem is meant to test.

Common mistake

Differentiating $y'=x-y$ to get $y''=1$ is the costliest mistake of this problem: the writer treated $y$ as a constant. The correct result is $y''=1-y'$, and the next step is to substitute back $y'=x-y$ so that $y''$ contains only $x$ and $y$. How to prevent it: every time your pen touches the letter $y$ while differentiating with respect to $x$, write $\frac{dy}{dx}$ beside it immediately before doing anything else. A second trap of the same family: confusing “the solution is increasing” with “the graph is concave up” — the sign of $y'$ and the sign of $y''$ are two different questions, and only $y''$ decides whether the tangent line lies above or below.

Key takeaway

Identical rows ⇒ depends on $y$; identical columns ⇒ depends on $x$; horizontal dashes ⇒ an equilibrium solution, and other solutions do not cross it. To say overestimate or underestimate you need $y''$, not $y'$.

← Partial Fractions and Improper Integrals · All AP Calculus BC lessons · Practice AP Calculus BC questions (free, instant scoring) · Separation of Variables and Exponential Models →