AP® Calculus AB trainer

Slope fields

Trace a solution curve through a slope field.

About this tool

A differential equation gives the slope of its solutions at every point. Draw that slope as a short segment at many points and you get a slope field: every solution curve runs along the segments. Drag the starting point and the solution through it draws itself; tap a grid point to see its slope worked out.

How it works

Each segment's slope is dydx\frac{dy}{dx} evaluated at that point. The solution curve is traced numerically (an adaptive Runge-Kutta method, accurate to many decimal places), forward and backward from the point, and it stops at the edge of the field or where the slope turns vertical: there the solution's domain ends.

For a separable equation, Details shows the separation of variables through your point, and the exact particular solution is drawn dashed over the traced one, so you can see that they agree. Growth and decay (dydt=ky\frac{dy}{dt} = ky) shows the doubling time or half-life, ln⁡2|k|\frac{\ln 2}{|k|}.

AB covers slope fields, separation of variables and dydt=ky\frac{dy}{dt} = ky. Euler's method and logistic models are BC only, so they are not here.

Notes for this topic: Sketching Slope Fields