Solved Exercises on Sketching Slope Fields

Master slope fields: visualization, interpretation, and analysis of differential equations through these 5 detailed exercises.

Solution: Exercises 1 to 3
1 Basic slope field
Exercise 1
Sketch the slope field for the differential equation:
\(\frac{dy}{dx} = 2\)
Definition:

Slope field (direction field): A graphical representation of a differential equation where small line segments are drawn at various points to indicate the slope of the solution curve at those points.

Sketching method:
  1. Identify the function that determines slopes: \(f(x,y) = \frac{dy}{dx}\)
  2. Choose a grid of points \((x,y)\) in the plane
  3. Calculate the slope at each point using the differential equation
  4. Draw short line segments with the calculated slope at each point
Differential equation
\(\frac{dy}{dx} = 2\)
Slope at any point
Constant slope = 2
Solution curves
\(y = 2x + C\)
Step 1: Analyze the differential equation

\(\frac{dy}{dx} = 2\)

The slope is constant and equal to 2 everywhere in the plane.

Step 2: Choose grid points

Select points like: \((-2,-2)\), \((-2,0)\), \((-2,2)\), \((0,-2)\), \((0,0)\), \((0,2)\), etc.

Step 3: Calculate slopes

At every point: slope = 2

For example: At \((1,3)\), slope = 2; At \((-1,5)\), slope = 2; At \((0,0)\), slope = 2

Step 4: Draw the slope field

Draw short line segments with slope 2 at each grid point

All line segments have the same positive slope of 2

Step 5: Identify solution curves

The general solution is: \(\int dy = \int 2 dx\)

\(y = 2x + C\)

These are parallel straight lines with slope 2

Parallel lines with slope 2
Final answer:

The slope field consists of parallel line segments with slope 2 at every point. Solution curves are parallel straight lines of the form \(y = 2x + C\).

Applied rules:

• Constant slope: When \(\frac{dy}{dx} = k\) (constant), all slopes are equal to k

• Solution curves: For \(\frac{dy}{dx} = k\), solutions are \(y = kx + C\)

• Slope field construction: Draw short line segments with calculated slopes

Tip: When the slope is constant, the slope field is uniform with identical line segments everywhere.
Caution: Make sure line segments are short enough to distinguish individual slopes.
2 Variable slope field
Exercise 2
Sketch the slope field for the differential equation:
\(\frac{dy}{dx} = x\)
Definition:

Variable slope field: A slope field where the slope varies depending on the x-coordinate, y-coordinate, or both.

Differential equation
\(\frac{dy}{dx} = x\)
Slope depends on x
Slope = x-value
Solution curves
\(y = \frac{x^2}{2} + C\)
Step 1: Analyze the differential equation

\(\frac{dy}{dx} = x\)

The slope depends only on the x-coordinate.

Step 2: Choose grid points and calculate slopes

At \((-2,y)\): slope = -2 (negative steep slope)

At \((-1,y)\): slope = -1 (negative gentle slope)

At \((0,y)\): slope = 0 (horizontal line segment)

At \((1,y)\): slope = 1 (positive gentle slope)

At \((2,y)\): slope = 2 (positive steep slope)

Step 3: Observe the pattern

Vertical lines of identical slopes: all points with same x-coordinate have same slope

Left side (x < 0): negative slopes

Middle (x = 0): horizontal slopes

Right side (x > 0): positive slopes

Step 4: Draw the slope field

Draw short line segments with appropriate slopes at chosen points

Line segments become steeper as |x| increases

Step 5: Identify solution curves

The general solution is: \(\int dy = \int x dx\)

\(y = \frac{x^2}{2} + C\)

These are parabolas opening upward, shifted vertically

Parabolic solution curves: \(y = \frac{x^2}{2} + C\)
Final answer:

The slope field has vertical lines of identical slopes. At any point \((x,y)\), the slope is x. Solution curves are parabolas of the form \(y = \frac{x^2}{2} + C\).

Applied rules:

• Slope depends on x: When \(\frac{dy}{dx} = f(x)\), slope depends only on x-coordinate

• Vertical strips: Points with same x-value have identical slopes

• Integration: Solution is \(y = \int f(x) dx + C\)

Tip: When slope depends only on x, look for vertical strips of identical slopes.
Pattern: Notice how the slope changes systematically across the x-axis.
3 Slope field with x and y dependence
Exercise 3
Sketch the slope field for the differential equation:
\(\frac{dy}{dx} = x - y\)
Definition:

Dependent slope field: A slope field where the slope depends on both x and y coordinates, creating a more complex pattern.

Differential equation
\(\frac{dy}{dx} = x - y\)
Slope depends on x and y
Slope = x - y
Solution curves
\(y = x - 1 + Ce^{-x}\)
Step 1: Analyze the differential equation

\(\frac{dy}{dx} = x - y\)

The slope depends on both x and y coordinates.

Step 2: Identify regions where slope is zero

Slope = 0 when \(x - y = 0\), i.e., when \(y = x\)

Along the line \(y = x\), all slope segments are horizontal

Step 3: Calculate sample slopes

At \((1,0)\): slope = 1 - 0 = 1 (positive)

At \((0,1)\): slope = 0 - 1 = -1 (negative)

At \((2,3)\): slope = 2 - 3 = -1 (negative)

At \((3,2)\): slope = 3 - 2 = 1 (positive)

At \((2,2)\): slope = 2 - 2 = 0 (horizontal)

Step 4: Identify patterns

Below the line \(y = x\): \(x > y\), so slope > 0

Above the line \(y = x\): \(x < y\), so slope < 0

On the line \(y = x\): slope = 0

Step 5: Draw the slope field

Draw short line segments with appropriate slopes at chosen points

Notice how slopes change gradually across the plane

Horizontal segments along the line \(y = x\)

Step 6: Identify solution curves

This is a first-order linear ODE: \(\frac{dy}{dx} + y = x\)

Using integrating factor method: \(y = x - 1 + Ce^{-x}\)

As \(x \to \infty\), solutions approach the line \(y = x - 1\)

Solution curves approach: \(y = x - 1\)
Final answer:

The slope field shows how slopes depend on both x and y. Horizontal segments occur along \(y = x\). Solution curves have the form \(y = x - 1 + Ce^{-x}\).

Applied rules:

• Slope = 0 line: Find where \(f(x,y) = 0\) to identify horizontal segments

• Sign analysis: Determine regions where slope is positive/negative

• Behavior patterns: Look for systematic changes in slope direction

Tip: Always identify where the slope equals zero to understand the structure of the field.
Pattern: Look for diagonal patterns when both x and y affect the slope.
Slope Fields: Complete Guide
\(\frac{dy}{dx} = f(x,y)\)
Differential Equation for Slope Field
Constant Slope
\(\frac{dy}{dx} = k\)
Uniform slope field
x-Dependent
\(\frac{dy}{dx} = f(x)\)
Vertical strips of same slope
y-Dependent
\(\frac{dy}{dx} = g(y)\)
Horizontal strips of same slope
Key definitions:

Slope field: A visual representation of a differential equation showing the slope of solution curves at various points in the coordinate plane.

Direction field: Another term for slope field, emphasizing the directional information provided.

Isocline: A curve along which the slope is constant in a slope field.

Solution curve: A curve that follows the direction indicated by the slope field, representing a particular solution to the differential equation.

Construction methodology:
  1. Identify the differential equation: Write as \(\frac{dy}{dx} = f(x,y)\)
  2. Select grid points: Choose points \((x_i, y_j)\) in the region of interest
  3. Calculate slopes: Evaluate \(f(x_i, y_j)\) at each point
  4. Draw segments: Draw short line segments with calculated slopes at each point
  5. Analyze patterns: Identify special features like horizontal slopes or symmetry
  6. Sketch solution curves: Draw curves that follow the direction of the field
Tip 1: Start by finding where the slope is zero (isoclines with slope 0) to understand the field structure.
Tip 2: Look for symmetries in the differential equation to simplify the field sketching.
Tip 3: Draw solution curves tangent to the slope field lines, not crossing them.
Tip 4: Use consistent lengths for slope segments to maintain visual clarity.
Common errors: Drawing segments too long, ignoring zero-slope lines, inconsistent slope directions.
Applications: Qualitative analysis of differential equations, predicting solution behavior without solving explicitly.
Essential principles:

• Slope calculation: At point \((x_0, y_0)\), slope = \(f(x_0, y_0)\)

• Zero slope line: Solve \(f(x,y) = 0\) to find horizontal segments

• Positive/negative regions: Determine where \(f(x,y) > 0\) or \(f(x,y) < 0\)

• Solution curve property: Tangent to slope field at every point

Solution: Exercises 4 to 5
4 Population growth model slope field
Exercise 4
Sketch the slope field for the logistic growth differential equation:
\(\frac{dP}{dt} = rP\left(1 - \frac{P}{K}\right)\)
where \(r = 0.5\) and \(K = 100\).
Definition:

Logistic growth model: A differential equation modeling population growth with a carrying capacity, commonly used in biology and ecology.

Logistic equation
\(\frac{dP}{dt} = 0.5P(1-\frac{P}{100})\)
Critical points
P = 0 and P = 100
Solution behavior
Approaches K = 100
Step 1: Analyze the differential equation

\(\frac{dP}{dt} = 0.5P\left(1 - \frac{P}{100}\right)\)

where P is population, t is time, r = 0.5 is growth rate, K = 100 is carrying capacity.

Step 2: Find critical points (equilibrium solutions)

\(\frac{dP}{dt} = 0\) when \(0.5P\left(1 - \frac{P}{100}\right) = 0\)

This occurs when P = 0 or \(1 - \frac{P}{100} = 0\), i.e., P = 100

So P = 0 and P = 100 are equilibrium solutions

Step 3: Analyze slope behavior in different regions

For 0 < P < 100: \(\frac{dP}{dt} > 0\) (population increases)

For P > 100: \(\frac{dP}{dt} < 0\) (population decreases)

For P < 0: \(\frac{dP}{dt} < 0\) (unrealistic, but mathematically valid)

Step 4: Calculate sample slopes

At P = 0: \(\frac{dP}{dt} = 0\) (horizontal)

At P = 25: \(\frac{dP}{dt} = 0.5(25)(1-0.25) = 9.375\) (steep positive)

At P = 50: \(\frac{dP}{dt} = 0.5(50)(1-0.5) = 12.5\) (steepest positive)

At P = 75: \(\frac{dP}{dt} = 0.5(75)(1-0.75) = 9.375\) (decreasing positive)

At P = 100: \(\frac{dP}{dt} = 0\) (horizontal)

At P = 125: \(\frac{dP}{dt} = 0.5(125)(1-1.25) = -15.625\) (negative)

Step 5: Sketch the slope field

Draw short line segments with appropriate slopes at various points

Horizontal segments at P = 0 and P = 100

Most positive slopes near P = 50 (half the carrying capacity)

Negative slopes above P = 100

Step 6: Interpret solution behavior

Solutions starting with P₀ > 0 approach P = 100 as t increases

Solutions starting with 0 < P₀ < 100 increase toward P = 100

Solutions starting with P₀ > 100 decrease toward P = 100

P = 100 is a stable equilibrium, P = 0 is unstable

Stable equilibrium at P = 100
Final answer:

The slope field shows horizontal segments at P = 0 and P = 100. For 0 < P < 100, slopes are positive and steepest near P = 50. For P > 100, slopes are negative. Solutions approach P = 100.

Applied rules:

• Logistic model: \(\frac{dP}{dt} = rP(1-\frac{P}{K})\) models growth with carrying capacity

• Equilibrium analysis: Find where derivative equals zero

• Stability: Determine whether nearby solutions approach or diverge from equilibria

Tip: Logistic models always have an inflection point at half the carrying capacity where growth is fastest.
Real-world: The carrying capacity represents maximum sustainable population.
5 Temperature cooling model
Exercise 5
Sketch the slope field for Newton's law of cooling:
\(\frac{dT}{dt} = -k(T - T_a)\)
where \(k = 0.1\) and \(T_a = 20°C\).
Definition:

Newton's law of cooling: The rate of temperature change is proportional to the difference between object temperature and ambient temperature.

Cooling equation
\(\frac{dT}{dt} = -0.1(T - 20)\)
Equilibrium
T = 20°C
Solution behavior
Approaches Ta = 20°C
Step 1: Analyze the differential equation

\(\frac{dT}{dt} = -0.1(T - 20)\)

where T is object temperature, t is time, k = 0.1 is cooling constant, Tₐ = 20°C is ambient temperature.

Step 2: Find equilibrium solution

\(\frac{dT}{dt} = 0\) when \(-0.1(T - 20) = 0\)

This occurs when T - 20 = 0, i.e., T = 20

So T = 20°C is the equilibrium temperature

Step 3: Analyze slope behavior in different regions

For T > 20: \(T - 20 > 0\), so \(\frac{dT}{dt} = -0.1(T - 20) < 0\) (temperature decreases)

For T < 20: \(T - 20 < 0\), so \(\frac{dT}{dt} = -0.1(T - 20) > 0\) (temperature increases)

For T = 20: \(\frac{dT}{dt} = 0\) (temperature stays constant)

Step 4: Calculate sample slopes

At T = 20: \(\frac{dT}{dt} = -0.1(0) = 0\) (horizontal)

At T = 25: \(\frac{dT}{dt} = -0.1(5) = -0.5\) (moderate negative)

At T = 30: \(\frac{dT}{dt} = -0.1(10) = -1\) (steeper negative)

At T = 40: \(\frac{dT}{dt} = -0.1(20) = -2\) (very steep negative)

At T = 15: \(\frac{dT}{dt} = -0.1(-5) = 0.5\) (moderate positive)

At T = 10: \(\frac{dT}{dt} = -0.1(-10) = 1\) (steeper positive)

Step 5: Sketch the slope field

Draw short line segments with appropriate slopes at various points

Horizontal segments along T = 20

Increasingly negative slopes as T increases above 20

Increasingly positive slopes as T decreases below 20

Step 6: Interpret solution behavior

Solutions starting with T₀ > 20 decrease toward T = 20

Solutions starting with T₀ < 20 increase toward T = 20

T = 20 is a stable equilibrium

The rate of approach to equilibrium is proportional to the temperature difference

Stable equilibrium at T = 20°C
Final answer:

The slope field shows horizontal segments at T = 20°C. For T > 20, slopes are negative (cooling). For T < 20, slopes are positive (warming). All solutions approach T = 20°C.

Applied rules:

• Newton's law: \(\frac{dT}{dt} = -k(T - T_a)\) describes exponential approach to equilibrium

• Equilibrium stability: Solutions approach the equilibrium temperature

• Proportional rate: Rate of change is proportional to temperature difference

Tip: The closer the object temperature is to ambient, the slower the rate of change.
Real-world: Objects never quite reach ambient temperature in finite time, but get arbitrarily close.
Comprehensive Summary: Sketching Slope Fields
\(\frac{dy}{dx} = f(x,y)\)
General Form for Slope Field
Key definitions:

Slope field: A visual representation of a first-order differential equation where short line segments are drawn at various points to indicate the slope of the solution curve passing through that point.

Direction field: Synonymous with slope field, emphasizing the directional information provided by the line segments.

Isocline: A curve along which the slope is constant in a slope field. For the equation \(\frac{dy}{dx} = f(x,y)\), the isocline with slope m is defined by \(f(x,y) = m\).

Equilibrium solution: A solution where \(\frac{dy}{dx} = 0\) for all x in the domain, represented by horizontal line segments in the slope field.

Solution curve: A curve that passes through the coordinate plane in such a way that at each point, its tangent line is parallel to the corresponding slope segment in the field.

Systematic construction approach:
  1. Identify the differential equation: Express as \(\frac{dy}{dx} = f(x,y)\)
  2. Find special lines: Locate where slope is 0, ∞, or undefined
  3. Calculate sample slopes: Evaluate \(f(x,y)\) at strategic points
  4. Identify symmetries: Look for patterns that can simplify construction
  5. Sketch systematically: Draw segments consistently with appropriate lengths and angles
  6. Analyze behavior: Understand how solutions behave qualitatively
Tip 1: Always start by finding where \(\frac{dy}{dx} = 0\) to identify horizontal slope segments.
Tip 2: Look for where \(\frac{dy}{dx}\) is undefined to identify vertical tangents.
Tip 3: Use consistent spacing for grid points to maintain visual regularity.
Tip 4: Draw short segments to distinguish individual slopes; longer segments can be misleading.
Tip 5: Sketch solution curves that are tangent to the slope field, never crossing the segments.
Common errors: Drawing segments too long, inconsistent slope directions, ignoring special points where slope is zero or undefined.
Applications: Qualitative analysis of ODEs, understanding solution behavior without explicit formulas, modeling physical and biological systems.
Essential principles:

• Slope calculation: At point \((x_0, y_0)\), slope = \(f(x_0, y_0)\)

• Zero slope line: Solve \(f(x,y) = 0\) to find horizontal segments

• Undefined slope: Look for points where denominator of \(f(x,y)\) is zero

• Solution tangency: Solution curves are tangent to slope field at every point

• Qualitative insight: Slope fields reveal long-term behavior and stability properties

Advanced Applications: Phase Portraits
Example: Predator-Prey System
The Lotka-Volterra equations create a 2D phase portrait:
\(\frac{dx}{dt} = ax - bxy\) (Prey)
\(\frac{dy}{dt} = -cy + dxy\) (Predator)
These can be visualized as a vector field in the xy-plane.

Analysis: This extends slope fields to systems of differential equations:

  • Vector field shows direction and magnitude of change
  • Phase trajectories represent population cycles
  • Equilibrium points indicate stable/unstable states
  • Oscillatory behavior is visible in the closed orbits

Questions & Answers

Question: How do I know how many points to include when sketching a slope field? Should I fill the entire plane?

Answer: You don't need to fill the entire plane! Here's a practical approach:

Density considerations:

  • Use enough points to reveal the pattern, typically a 6x6 to 10x10 grid for a standard viewing area
  • Focus on regions where the behavior changes (near equilibrium points, along isoclines)
  • Use more points in areas where slopes change rapidly

Strategic placement:

  • Include points along special curves (where slope is 0, ∞, or undefined)
  • Place points symmetrically if the equation has symmetries
  • Ensure coverage of all quadrants and critical regions

The goal is to capture the essential features of the field, not to be exhaustive. Quality over quantity!

Question: How can I use slope fields to predict the long-term behavior of solutions without solving the differential equation?

Answer: Slope fields are excellent for qualitative analysis! Here's how to predict behavior:

Equilibrium analysis:

  • Identify horizontal segments (where \(\frac{dy}{dx} = 0\))
  • Determine if nearby solutions approach (stable) or diverge from (unstable) equilibria

Stability assessment:

  • If slopes point toward an equilibrium, it's stable
  • If slopes point away from an equilibrium, it's unstable
  • For semistable equilibria, analyze behavior on both sides

Long-term trends:

  • Follow solution curves to see if they approach limits
  • Identify regions where solutions increase or decrease
  • Look for bounded vs. unbounded behavior

This qualitative approach provides valuable insights without explicit solutions!

Question: What's the relationship between slope fields and actual solution curves? How do I draw accurate solution curves?

Answer: The relationship is fundamental and geometric:

Key relationship: At every point \((x_0, y_0)\) on a solution curve, the tangent line to the curve has the same slope as the corresponding line segment in the slope field.

Accurate curve drawing:

  1. Start at initial condition: Begin your curve at the specified point
  2. Follow the field: Ensure the curve is tangent to slope segments as it passes through them
  3. Smooth transitions: Maintain smooth curves without sharp turns
  4. Preserve direction: Don't cross over slope segments
  5. Extend appropriately: Continue in both directions while maintaining tangency

Verification: Your solution curve should be smooth and follow the direction indicated by the slope field at every point. The curve represents the particular solution that satisfies the given initial condition.

Question: How do I handle differential equations where the slope is undefined at certain points?

Answer: Undefined slopes occur when the derivative doesn't exist. Here's how to handle them:

Identification: Undefined slopes typically occur when the denominator of \(\frac{dy}{dx}\) is zero.

For equations of the form \(\frac{dy}{dx} = \frac{M(x,y)}{N(x,y)}\):

  • Slopes are undefined where \(N(x,y) = 0\)
  • At these points, the solution curves may have vertical tangents
  • Mark these locations distinctly in your slope field

Special cases:

  • If both numerator and denominator are zero, use limiting arguments
  • Consider rewriting the equation as \(\frac{dx}{dy}\) to gain insight
  • These points may represent singular solutions

In slope fields, you might indicate undefined slopes with special markings or note them separately.

Question: Can slope fields be used for higher-order differential equations or only first-order ones?

Answer: Standard slope fields are specifically designed for first-order differential equations of the form \(\frac{dy}{dx} = f(x,y)\). However, there are extensions:

Higher-order equations:

  • Convert to systems of first-order equations
  • For \(\frac{d^2y}{dx^2} = f(x,y,\frac{dy}{dx})\), let \(u = \frac{dy}{dx}\) to get the system: \(\frac{dy}{dx} = u\), \(\frac{du}{dx} = f(x,y,u)\)

Phase portraits:

  • For second-order equations, create 2D phase portraits in the (y,u) plane
  • Higher dimensions require specialized visualization techniques

Alternative approaches:

  • Direction fields for systems: Vector fields showing direction of change
  • Numerical methods for visualization of higher-order equations

While traditional slope fields work only for first-order equations, the underlying concept extends to more complex systems.