Menu
Sign up Sign in

AI HL · AHL 9

Differential Equations

AHL 9.4

Slope fields and solution curves

AHL 9.4

Slope fields and solution curves

Target: I can find the gradient at a point by putting its x and y into dy/dx = f(x, y). (+6 more)

By the end of this section

Key points

Gradient at a point

  • Some equations dy/dx = f(x, y) cannot be solved for y. You can still find the gradient at any point: put in x and y.
  • Put in both coordinates and keep brackets round negative numbers. (−1)² is +1.
  • Use integer points. A table of gradients is quick to build and quick to draw from.

The slope field

  • A slope field is a short segment drawn at each point, with the gradient found at that point.
  • Gradient 0 is flat, 1 rises at 45°, −1 falls at 45°. The larger the gradient, the steeper the segment.
  • Draw every segment the same length, centred on its point.
  • Points with the same gradient often lie on a line or curve. Spotting one saves work.

Solution curves

  • A solution curve starts at a given point and follows the direction of the segments.
  • Solution curves never cross: a point has one gradient, so a curve has only one way to go.
  • To estimate y at a later x, follow the curve to that x and read the height. Say "about" and give one decimal place.

Constant solutions

  • If y = a makes dy/dx = 0 for every x, the horizontal line y = a is a solution. It is a constant solution.
  • Solve f(x, y) = 0 for y. If the answer is a plain number, it is a constant solution.
  • Other curves can come close to a constant solution but never cross it.

Stable and unstable constant solutions

  • Look at the sign of \(\dfrac{dy}{dx}\) just above and just below a constant solution. If curves move towards it from both sides it is stable. If they move away it is unstable.
  • Logistic growth \(\dfrac{dP}{dt}=kP\left(1-\dfrac PM\right)\): \(P=0\) is unstable and \(P=M\) (the carrying capacity) is stable.
  • The rate \(\dfrac{dP}{dt}\) is a quadratic in \(P\). It is greatest halfway between the constant solutions, at \(P=\dfrac M2\), where the curve is steepest.

On the calculator

A slope field

  • Open a differential equations graph and enter dy/dx = f(x, y).
  • Use radians if the equation has sin or cos.
  • Set the window to the x and y values you want to see.
  • Pick a start point to add a solution curve through it.
  • Check one segment by hand.

Screenshot and video to come

Explore: slope fields

Choose an equation dy/dx = f(x, y). Each segment shows the gradient at its point. Drag the orange point to choose a starting condition, predict where the solution curve goes, then press "Show the solution curve".

Start point
Gradient there
y a unit later

The short teal line is the gradient at your point. For y cos x, x is in radians.

Drag the orange point to choose a starting condition.

  1. Choose dy/dx = y − x. Where are the flat segments? What do those points have in common?
  2. Choose dy/dx = x and move the point straight up. What stays the same and what changes? Why do the curves look like copies of each other?
  3. Choose dy/dx = y² − 4 and put the point on y = 2, then a little below it. What does a curve do near y = 2 and near y = −2? Why can no curve cross y = 2?
  4. Predict a curve, then press the button. Where was your sketch wrong? What did the segments show that you missed?

Worked examples

Problems like the ones in class. Pick one, try it, then open the working.
A table of gradients

A solution curve of \(\dfrac{dy}{dx}=y-x\) passes through some points. Find the gradient at the point \((−1, 2)\). Then make a table of the gradients at the integer points with \(-2\le x\le 2\) and \(-2\le y\le 2\).

Working
  1. Substitute the point

    \(\dfrac{dy}{dx}=2-(-1)=3\)

    Put x = −1 and y = 2 into the equation. Keep the bracket round the negative number.

  2. y \ x−2−101224321013210−10210−1−2−110−1−2−3−20−1−2−3−4
    Fill the table

    Row by row: put each x and y into \(y-x\)

    Along a row y is fixed, so the gradient falls by 1 each time x goes up by 1. Use that to check your row.

  3. Look for a pattern

    Gradient 0 at \((−2,−2),(−1,−1),(0,0),(1,1),(2,2)\)

    The gradient is 0 wherever y = x. Those points are on one diagonal of the table.

Video walkthrough coming
A slope field from the table

Use the table of gradients for \(\dfrac{dy}{dx}=y-x\) to sketch the slope field on the integer points. What is the gradient at the point \((2, 2)\)?

Working
  1. Choose the direction

    gradient 0: flat. Gradient 1: up at 45°. Gradient −1: down at 45°. Gradient 3 or −3: steep

    At each point draw a short line segment with the gradient from the table. The segment is a tiny piece of tangent.

  2. −2−112−2−112xy
    Draw every point

    25 short segments, one at each integer point

    Draw them all the same length and centre each one on its point.

  3. Read the picture

    On \(y=x\) the gradient is 0. On \(y=x+1\) the gradient is 1

    Points with the same gradient lie along lines. Spotting them saves drawing time.

Video walkthrough coming
Solution curves through points

The slope field of \(\dfrac{dy}{dx}=y-x\) is drawn on the integer points. Sketch the solution curves through \((−1, 2)\), \((0, 1)\) and \((1, −1)\). Estimate \(y\) when \(x=2\) on the curve through \((0, 1)\).

Working
  1. Start at the point

    Mark \((−1,2)\), \((0,1)\), \((1,−1)\)

    A solution curve has to pass through its starting point.

  2. −2−112−2−112xy
    Follow the segments

    Stay tangent to the lines. Never cross another curve

    At each point the curve points the way the segment points. Look ahead to the next segment and bend smoothly.

  3. The curve through (0, 1)

    \(y=x+1\) gives \(y-x=1\), the gradient of that line

    Every segment on this line has gradient 1, so the curve is the straight line itself.

  4. Read the estimate

    \(y(2)\approx 3\)

    Go along to x = 2 and read up to the curve.

Video walkthrough coming
A slope field on the calculator

Use your calculator to plot the slope field of \(\dfrac{dy}{dx}=y\cos x\) for \(0\le x\le 7\) and \(0\le y\le 4\). Add the solution curve through \((0, 1)\). Then check one segment by hand: find the gradient at \((\pi, 2)\).

Working
  1. Enter the equation

    From the calculator: dy/dx = y cos x, angles in radians

    Set radians first. In degrees the segments come out wrong.

  2. Set the window

    x from 0 to 7, y from 0 to 4

    The window decides which part of the field you see.

  3. 0.511.522.533.544.555.566.570.511.522.533.54xy
    Add the solution curve

    From the calculator: start point (0, 1)

    The curve rises while cos x is positive, levels off where cos x = 0, then falls.

  4. Check one segment by hand

    \(y\cos x=2\cos \pi=2(-1)=-2\)

    The picture should show a segment falling at that point. Always check one.

Video walkthrough coming
Constant solutions

For \(\dfrac{dy}{dx}=y^2-4\), find the constant solutions. State the one with \(y>0\).

Working
  1. What a constant solution is

    \(\dfrac{dy}{dx}=0\) for every x

    The curve is a horizontal line, so its gradient is 0 everywhere on it.

  2. Solve for y

    \(y^2-4=0\), so \(y=2\) or \(y=-2\)

    There is no x in the equation, so each answer is a plain number. The lines y = 2 and y = −2 are solutions.

  3. −3−2−1123−3−2−1123xy
    See it on the field

    Flat segments along \(y=2\) and \(y=-2\)

    Other curves bend towards these lines or away from them, but never cross them.

Video walkthrough coming
Logistic growth: stability and fastest growth

The number of deer \(P\) (in hundreds) on an island after \(t\) years satisfies \(\dfrac{dP}{dt}=0.6P\left(1-\dfrac{P}{12}\right)\). Find the constant solutions and say which is stable. Find the value of \(P\) at which the population grows fastest, and the greatest rate of growth.

Working
  1. Constant solutions

    \(0.6P\left(1-\dfrac{P}{12}\right)=0\ \Rightarrow\ P=0\) or \(P=12\)

    The population does not change when dP/dt = 0.

  2. Look either side

    \(P=3:\ \dfrac{dP}{dt}=1.35\gt0\) \(P=15:\ \dfrac{dP}{dt}=−2.25\lt0\)

    Between 0 and 12 the population rises. Above 12 it falls.

  3. Stability

    P = 12 is stable. P = 0 is unstable.

    Near 12 the curves move towards it. Near 0 they move away.

  4. Fastest growth

    \(\dfrac{dP}{dt}=0.6P-0.05P^2\), greatest at \(P=\dfrac{0.6}{2\times0.05}=6\)

    A quadratic in P: its greatest value is halfway between the two constant solutions. The calculator's maximum of the graph gives the same.

  5. 246810246810121416tP
    Greatest rate

    \(0.6\times6\times\left(1-\dfrac{6}{12}\right)=1.8\)

    1.8 hundred per year, at 600 deer.

Video walkthrough coming