AP Calculus AB and BC

Slope Fields Classroom Activity: A Human Slope Field

Seat students on a 5 by 5 grid, give each a coordinate, and have each set a ruler at the slope x minus y for that point. The room becomes the slope field for dy/dx = x - y, and walkers trace solution curves through it. A whiteboard version, the slope table and the exact solutions are included.

Objective and materials

Students compute slopes from a differential equation at lattice points, assemble them into a slope field, and use the field to describe solution curves before any solution formula is shown. The activity serves CED Topic 7.3, Sketching Slope Fields, and Topic 7.4, Reasoning Using Slope Fields. The closing verification uses Topic 7.2, Verifying Solutions for Differential Equations.

  • Desks arranged in 5 rows of 5, or a whiteboard with a 5 by 5 lattice drawn on it
  • 25 index cards, each with one coordinate pair written on it
  • One ruler or unsharpened pencil per student
  • Masking tape to mark the two axes on the floor
  • A copy of the blank lattice for each student to record the finished field

With fewer than 25 students, give some students two cards or run the whiteboard version. Students need to know that dydx\frac{dy}{dx} is the slope of a curve at a point. They do not need to know how to solve a differential equation.

Setup, 5 minutes

  1. Treat the floor as the coordinate plane. Choose one side wall as the positive xx direction and the front of the room as the positive yy direction, and say so aloud.
  2. The middle desk is the origin. Columns are x=−2,−1,0,1,2x=-2,-1,0,1,2 from one side to the other, and rows are y=−2,−1,0,1,2y=-2,-1,0,1,2 from back to front. Tape the two axes on the floor through the middle desk.
  3. Hand each student the card for their own desk and have them check it with a neighbor.
  4. Show how to set a slope on a desk. For slope mm, the ruler points 1 unit in the positive xx direction and mm units in the positive yy direction. Slope 00 lies along the xx direction. Slope 11 points halfway between the positive xx wall and the front. Negative slopes tilt toward the back.

A 40-minute sequence

MinutesTeacher moveStudent evidence
0 to 5Set up the axes and coordinates.Every student can state their own coordinates.
5 to 11Warm-up field: dydx=x\frac{dy}{dx}=x. Each student sets a ruler. Ask what students in the same column have in common.Rulers set. Each column shares one slope.
11 to 20Main field: dydx=x−y\frac{dy}{dx}=x-y. Each student computes a slope, sets the ruler, then checks the two nearest neighbors.25 rulers set, checked against the slope table.
20 to 28Three walkers trace solution curves through the room while seated students record the field and the paths.A recorded field with three sketched curves.
28 to 36Discussion questions, then verify the solution formula.A written verification by substitution.
36 to 40Exit check.A written exit check.

Warm-up field

For dydx=x\frac{dy}{dx}=x the slope depends only on xx. Every student in the column x=−2x=-2 sets slope −2-2, the next column sets −1-1, the middle column sets 00, and the last two columns set 11 and 22. All five rows look the same.

Ask what curve the rulers suggest. The solutions are the parabolas y=12x2+Cy=\frac{1}{2}x^2+C, one for each value of CC, and the rows look alike because shifting a solution up or down gives another solution.

Main field: slope table

For dydx=x−y\frac{dy}{dx}=x-y each student subtracts their own yy from their own xx. The table is laid out like the room, with the front row (y=2y=2) at the top.

x=−2x=-2x=−1x=-1x=0x=0x=1x=1x=2x=2
y=2y=2−4-4−3-3−2-2−1-100
y=1y=1−3-3−2-2−1-10011
y=0y=0−2-2−1-1001122
y=−1y=-1−1-100112233
y=−2y=-20011223344

Quick visual check

Stand at the back corner and look along the diagonals. Every ruler on the diagonal from (−2,−2)(-2,-2) to (2,2)(2,2) should lie flat along the xx direction. Every ruler on the next diagonal down, from (−1,−2)(-1,-2) to (2,1)(2,1), should have slope 11, and those four rulers should line up end to end.

Walking the solution curves

A walker starts beside a desk, faces the direction of that ruler with xx increasing, and takes small steps, turning to match the nearest ruler along the way. The desks sit on the lattice points, so walkers pass just beside any desk on their path, and walkers leave their own rulers set on their desks. Seated students sketch each path on their recorded field.

  1. Walker 1 starts at (0,1)(0,1). The path heads toward the back at first, levels off as it crosses the diagonal of flat rulers, then turns toward the front and runs nearly parallel to the slope-1 diagonal.
  2. Walker 2 starts at (0,−2)(0,-2). The path climbs steeply toward the front and bends over to run nearly parallel to the slope-1 diagonal from below.
  3. Walker 3 starts at (−1,−2)(-1,-2). The path follows the slope-1 rulers in a straight line through (0,−1)(0,-1) and (1,0)(1,0) to (2,1)(2,1).

Expected positions, from the exact solutions given below:

WalkerAt x=0x=0At x=1x=1At x=2x=2Exact solution
1110.7360.7361.2711.271y=x−1+2e−xy=x-1+2e^{-x}
2−2-2−0.368-0.3680.8650.865y=x−1−e−xy=x-1-e^{-x}
3−1-10011y=x−1y=x-1

Walker 1 reaches its lowest point at x=ln⁡2≈0.69x=\ln 2\approx 0.69, where y≈0.69y\approx 0.69 as well. That point lies on the line y=xy=x, the diagonal of flat rulers.

What students should notice

  • Slopes are equal along each diagonal line y=x−cy=x-c, where the slope is cc. Neither rows nor columns share a slope, because the equation involves both xx and yy.
  • Slopes are zero along y=xy=x. Any solution curve that crosses this line has a horizontal tangent at the crossing.
  • Along y=x−1y=x-1 every segment has slope 11, which is the slope of that line. The segments join into the line, so y=x−1y=x-1 is itself a solution.
  • Solution curves above and below y=x−1y=x-1 bend toward it as xx increases.
  • A slope field shows many solutions at once. A starting point selects one of them.

Verifying the solution formula

The equation dydx=x−y\frac{dy}{dx}=x-y is not separable, so the slope field gives information that separation of variables cannot. Students can still verify a proposed solution by substitution. The claim is that for any constant CC,

y=x−1+Ce−xy=x-1+Ce^{-x}

is a solution. Differentiate the left side: dydx=1−Ce−x\frac{dy}{dx}=1-Ce^{-x}. Compute the right side: x−y=x−(x−1+Ce−x)=1−Ce−xx-y=x-(x-1+Ce^{-x})=1-Ce^{-x}. The two agree for every xx, so the formula satisfies the equation.

The constants for the three walkers come from their starting points. Through (0,1)(0,1): 1=0−1+C1=0-1+C, so C=2C=2. Through (0,−2)(0,-2): −2=−1+C-2=-1+C, so C=−1C=-1. Through (−1,−2)(-1,-2): −2=−2+Ce1-2=-2+Ce^{1}, so C=0C=0. Since Ce−xCe^{-x} approaches 00 as xx increases, every solution approaches the line y=x−1y=x-1, which matches what the walkers showed.

Discussion questions

  1. Where in the room would a walker be heading straight along the xx direction? Answer: anywhere on the line y=xy=x, where x−y=0x-y=0.
  2. Can two different walkers' paths cross? Answer: no. At a crossing point both curves would pass through the same point with the same slope, and for this equation a point determines the solution. In the formula, two different values of CC give curves that differ by a nonzero multiple of e−xe^{-x} and never meet.
  3. Walker 1 started above the line y=x−1y=x-1 and walker 2 started below it. Does either ever cross that line? Answer: no. The line is a solution, and solutions do not cross.
  4. Why did the warm-up field look the same in every row while the main field did not? Answer: in the warm-up the slope depended only on xx. In the main field it depends on yy as well.

Exit check

For dydx=x+y\frac{dy}{dx}=x+y: find the slope at (1,−2)(1,-2), describe where the slope is zero, and find a line y=mx+by=mx+b that is a solution.

Key: the slope at (1,−2)(1,-2) is 1+(−2)=−11+(-2)=-1. The slope is zero along the line y=−xy=-x. For a line to be a solution its slope mm must equal x+yx+y at every point on it, so x+yx+y must be constant along the line, which requires m=−1m=-1. Then x+y=bx+y=b along y=−x+by=-x+b, and setting b=−1b=-1 gives the solution y=−x−1y=-x-1. Check: dydx=−1\frac{dy}{dx}=-1 and x+y=x+(−x−1)=−1x+y=x+(-x-1)=-1.

Whiteboard version

Draw the 5 by 5 lattice on the board with the axes through the middle point. Hand out the coordinate cards. Students come up five at a time and draw a short segment centered on their point: move 1 unit right and mm units up from the point to find the direction, then draw a segment about half a grid unit long in that direction.

Three volunteers then draw solution curves starting from (0,1)(0,1), (0,−2)(0,-2) and (−1,−2)(-1,-2), using the same rule as the walkers. Everything else in the plan stays the same, including the slope table and the key.

Extension and follow-up

  • Euler's method, BC only (CED Topic 7.5, Approximating Solutions Using Euler's Method). Start at (0,1)(0,1) with step size 0.50.5. The points are (0.5, 0.5)(0.5,\ 0.5), (1, 0.5)(1,\ 0.5), (1.5, 0.75)(1.5,\ 0.75) and (2, 1.125)(2,\ 1.125). The exact value is y(2)=1+2e−2≈1.271y(2)=1+2e^{-2}\approx 1.271, so the approximation is low by about 0.1460.146.
  • Second field: run dydx=−xy\frac{dy}{dx}=-\frac{x}{y} on the same lattice, leaving out the five points with y=0y=0, where the slope is undefined. The segments suggest circles centered at the origin.
  • Concavity from the equation: differentiating dydx=x−y\frac{dy}{dx}=x-y gives d2ydx2=1−dydx=1−x+y\frac{d^2y}{dx^2}=1-\frac{dy}{dx}=1-x+y. Solutions are concave up above the line y=x−1y=x-1 and concave down below it, which agrees with the walkers' paths.

The guide to slope fields and Euler's method covers the written skills, and separable differential equations covers the equations that can be solved by separating variables.

Worked examples

Worked example

Computing four segments of the field

For dydx=x−y\frac{dy}{dx}=x-y, find the slope of the segment at (2,−1)(2,-1), (−2,1)(-2,1), (1,1)(1,1) and (0,−1)(0,-1).

  1. At (2,−1)(2,-1): x−y=2−(−1)=3x-y=2-(-1)=3.
  2. At (−2,1)(-2,1): x−y=−2−1=−3x-y=-2-1=-3.
  3. At (1,1)(1,1): x−y=1−1=0x-y=1-1=0, a horizontal segment.
  4. At (0,−1)(0,-1): x−y=0−(−1)=1x-y=0-(-1)=1.

The slopes are 33, −3-3, 00 and 11. A common error is subtracting in the wrong order, which reverses every sign.

Worked example

The solution through (0, 1) and its lowest point

Given that y=x−1+Ce−xy=x-1+Ce^{-x} solves dydx=x−y\frac{dy}{dx}=x-y, find the solution through (0,1)(0,1) and the coordinates of its minimum.

  1. Substitute the point: 1=0−1+Ce01=0-1+Ce^{0}, so C=2C=2 and y=x−1+2e−xy=x-1+2e^{-x}.
  2. Differentiate: dydx=1−2e−x\frac{dy}{dx}=1-2e^{-x}.
  3. Set the derivative equal to zero: 2e−x=12e^{-x}=1, so ex=2e^{x}=2 and x=ln⁡2≈0.693x=\ln 2\approx 0.693.
  4. Find the height: y=ln⁡2−1+2⋅12=ln⁡2≈0.693y=\ln 2-1+2\cdot\frac{1}{2}=\ln 2\approx 0.693.
  5. The derivative 1−2e−x1-2e^{-x} is negative for x<ln⁡2x<\ln 2 and positive for x>ln⁡2x>\ln 2, so this point is a minimum.

The solution is y=x−1+2e−xy=x-1+2e^{-x}, with its minimum at (ln⁡2, ln⁡2)≈(0.693, 0.693)(\ln 2,\ \ln 2)\approx(0.693,\ 0.693), a point on the line y=xy=x where the field has slope zero.

Frequently asked questions

How many students do I need for a human slope field?

Twenty-five fill the 5 by 5 grid. With fewer, give some students two cards and two rulers, or use the whiteboard version, which works with any class size.

What differential equation works best?

This plan uses dydx=x−y\frac{dy}{dx}=x-y because every slope on the grid is a whole number from −4-4 to 44 and the field contains a straight-line solution that students can find by looking.

Do students need to solve the differential equation?

No. They compute slopes, read the field and verify a given formula by substitution. The equation is not separable, so solving it from scratch needs a method beyond separation of variables.

How do students set a slope on a flat desk?

Treat the desktop as a small copy of the floor plane. For slope mm, the ruler points 1 unit toward the positive xx wall and mm units toward the front of the room.