ResourcesMathematicsDifferential Equations (Intro)
Mathematics (Calculus AP)High School

Introduction to Differential Equations

Differential equations describe how quantities change and are among the most powerful tools in mathematics. They model everything from population growth and radioactive decay to the motion of planets.

This guide covers key definitions, slope fields, separable equations, exponential growth and decay, initial value problems, worked examples, memory aids, and a practice quiz.

1Introduction

Differential equations (DEs) are equations that involve an unknown function and one or more of its derivatives. They are incredibly powerful tools used to model real-world phenomena in physics, engineering, biology, economics, and more, as they describe how quantities change over time or space.

In AP Calculus, we primarily focus on understanding what differential equations are, how to visualize their solutions using slope fields, and how to solve a specific type called separable equations. We also study the important special case of exponential growth and decay.

Picture This

Imagine a cup of hot coffee cooling on your desk. The rate at which its temperature drops depends on the difference between the coffee temperature and room temperature. A differential equation captures this relationship -- the rate of change depends on the current state. Solving it tells you exactly how hot the coffee will be at any future moment.

Why It Matters

Physics

Modeling motion, forces, electric circuits, heat transfer, and wave propagation.

Biology

Population dynamics, spread of diseases, and predator-prey models.

Economics

Compound interest, economic growth models, and supply-demand equilibrium.

Engineering

Control systems, signal processing, fluid dynamics, and structural analysis.

2Key Definitions

Differential Equation (DE)

An equation that relates an unknown function with one or more of its derivatives. Example: dy/dx = 2x.

Order of a DE

The order of the highest derivative present. dy/dx = 2x is 1st order; y'' + 3y' - y = sin(x) is 2nd order.

Degree of a DE

The power of the highest order derivative after the equation has been rationalized. (dy/dx)³ + y = x is 1st order, 3rd degree.

Solution to a DE

A function that, when substituted into the DE along with its derivatives, satisfies the equation.

General Solution

The set of all possible solutions, typically containing one or more arbitrary constants (e.g., +C for first-order DEs).

Particular Solution

A specific solution derived from the general solution by using given initial conditions to determine the value(s) of the arbitrary constant(s).

Separable Equation

A first-order DE that can be written in the form g(y) dy = f(x) dx, with all y terms on one side and all x terms on the other.

Initial Condition

A specific point (x0, y0) that the solution curve must pass through, used to find the particular solution.

3Slope Fields (Direction Fields)

A slope field is a graphical representation of the general solution to a first-order differential equation of the form dy/dx = f(x, y). It provides a visual map of how solution curves behave without actually solving the equation.

How It Works

  • At various points (x, y) in the coordinate plane, calculate the value of dy/dx using the given equation.
  • This value represents the slope of the solution curve passing through that point.
  • Draw a small line segment with that slope at that point.
  • The collection of all these segments forms the slope field.
Tip

Think of slope fields as a map with tiny arrows showing which direction to flow. Starting at any initial point, you can follow the arrows to trace out the particular solution curve. Each slope segment acts as a tangent line to the solution curve passing through that point.

Purpose of Slope Fields

Visualize Behavior

See the general behavior of solutions without actually solving the DE analytically.

Sketch Particular Solutions

Start at an initial point and follow the direction indicated by the slope segments to sketch a particular solution curve.

Example: Reading a Slope Field

For dy/dx = x - y, determine slopes at key points:

At (0, 0): slope = 0 - 0 = 0 (horizontal segment)

At (1, 0): slope = 1 - 0 = 1 (upward at 45 degrees)

At (0, 1): slope = 0 - 1 = -1 (downward at 45 degrees)

At (2, 1): slope = 2 - 1 = 1 (upward at 45 degrees)

Where x = y, the slope is always 0 (horizontal segments along y = x)

4Separable Equations

A first-order differential equation is separable if it can be written in the form g(y) dy = f(x) dx. This means all terms involving y (and dy) can be moved to one side of the equation, and all terms involving x (and dx) can be moved to the other side.

Steps to Solve Separable Equations (SICS)

  1. S
    Separate the variables: Rearrange so all y terms (and dy) are on one side, all x terms (and dx) on the other.
  2. I
    Integrate both sides: Integrate the y side with respect to y and the x side with respect to x.
  3. C
    Constant (+C): Add the constant of integration to one side (typically the x side).
  4. S
    Solve for y: Algebraically isolate y to express the general solution explicitly, if possible.

Example: Solving dy/dx = 2xy

Separate, integrate, and solve for y

Step 1: Separate variables

dy/y = 2x dx

Step 2: Integrate both sides

∫ (1/y) dy = ∫ 2x dx

ln|y| = x² + C

Step 3: Solve for y

|y| = ex² + C = e · eC

Let A = ±eC (arbitrary non-zero constant)

y = Ae

Checking if an Equation is Separable

Ask yourself: can I write the right side as a product of a function of x only and a function of y only? If dy/dx = f(x) * g(y), it is separable. If the x and y terms are added or otherwise tangled (like dy/dx = x + y), it is not separable.

5Exponential Growth & Decay

This is a special and very important type of separable differential equation. The model states that the rate of change of a quantity P is directly proportional to the amount of P present.

The Model

dP/dt = kP

The rate of change of P is proportional to P itself, with proportionality constant k.

k > 0: Exponential Growth

The quantity increases over time. Examples: population growth, compound interest.

k < 0: Exponential Decay

The quantity decreases over time. Examples: radioactive decay, cooling.

General Solution

P(t) = P₀ekt

P₀ is the initial amount at t = 0, k is the growth/decay constant.

Derivation Using Separation of Variables

dP/P = k dt

∫ (1/P) dP = ∫ k dt

ln|P| = kt + C

|P| = ekt + C = ekt · eC

P = Aekt, where A = ±eC

At t = 0: P(0) = Ae⁰ = A, so A = P₀

P(t) = P₀ekt

Applications

Population Growth

Bacteria cultures, animal populations, viral spread -- all can follow exponential growth when resources are unlimited.

Radioactive Decay

The amount of a radioactive substance decreases at a rate proportional to how much remains, described by half-life.

Compound Interest

Continuously compounded interest follows the exponential growth model with the interest rate as k.

Newton's Law of Cooling

The rate of cooling of an object is proportional to the temperature difference between the object and its surroundings.

6Initial Value Problems (IVPs)

An Initial Value Problem consists of a differential equation along with one or more initial conditions. An initial condition provides a specific point (x0, y0) that the solution curve must pass through, allowing us to find a unique particular solution.

Steps to Solve an IVP

  1. 1
    Find the general solution to the differential equation (usually using separation of variables). This will contain an arbitrary constant C.
  2. 2
    Substitute the initial condition values into the general solution.
  3. 3
    Solve for the constant C using the substituted values.
  4. 4
    Substitute the value of C back into the general solution to obtain the particular solution.

7Worked Examples

Example 1: Solving a Separable DE -- dy/dx = (x² + 1)/y²

Find the general solution

Step 1: Separate variables

y² dy = (x² + 1) dx

Step 2: Integrate both sides

∫ y² dy = ∫ (x² + 1) dx

y³/3 = x³/3 + x + C

Step 3: Solve for y

y³ = x³ + 3x + K (where K = 3C)

y = ³√(x³ + 3x + K)

Example 2: Solving an IVP -- dy/dx = y cos(x), y(0) = 1

Find the particular solution

Step 1: Separate variables

dy/y = cos(x) dx

Step 2: Integrate both sides

∫ (1/y) dy = ∫ cos(x) dx

ln|y| = sin(x) + C

Step 3: General solution

y = Aesin(x)

Step 4: Apply initial condition y(0) = 1

1 = Aesin(0) = Ae⁰ = A · 1

A = 1

y = esin(x)

Example 3: Exponential Growth Application

A bacteria population doubles every 3 hours, starting with 100. Find the population after 9 hours.

Step 1: Identify the model

dP/dt = kP → P(t) = P₀ekt

Step 2: Use initial condition

P₀ = 100, so P(t) = 100ekt

Step 3: Find k using doubling time

P(3) = 200 → 200 = 100e3k

2 = e3k → ln(2) = 3k → k = ln(2)/3

Step 4: Find P(9)

P(9) = 100e(ln(2)/3) · 9 = 100e3ln(2)

= 100eln(8) = 100 · 8

P(9) = 800 bacteria

8Key Formulas

General 1st Order DE

dy/dx = f(x, y)

Separable DE Form

g(y) dy = f(x) dx

Exponential Growth/Decay DE

dP/dt = kP

Exponential Growth/Decay Solution

P(t) = P₀ekt

Natural Log Integration

∫ (1/u) du = ln|u| + C

9Memory Aids

SICS for Separable Equations

Separate, Integrate, Constant (+C), Solve for y. Follow this order every time you solve a separable equation.

Slope Fields Are Maps

They show you the direction (slope) to follow to trace out solution curves. Starting from any initial point, follow the arrows to sketch the particular solution.

P₀ Is P(0)

In the formula P(t) = P₀ekt, P₀ is the initial amount at time t = 0. To find it, just plug in t = 0.

Don't Forget the +C!

The most common mistake in differential equations. Without it, you only have a particular solution, not the general one.

10Common Mistakes

Forgetting the +C

This is the most frequent error. Without the constant of integration, you only have one specific solution, not the general family of solutions.

Incorrectly Separating Variables

Ensure all y terms (and dy) are on one side and all x terms (and dx) are on the other. Forgetting dx or dy during separation is a common slip.

Integration Errors

Mistakes in applying integration rules or finding antiderivatives. Double-check your integration work, especially with ln and exponential functions.

Forgetting Absolute Values with ln

Remember that ∫ (1/y) dy = ln|y| + C. While often absorbed by the constant A = ±eC in the final step, the absolute value is technically required.

Confusing General and Particular Solutions

Not using the initial condition to find C when asked for a particular solution, or presenting a particular solution when a general solution is requested.

Misinterpreting Slope Fields

Not understanding that the line segments indicate the slope of the solution at that point, not the solution itself. Each segment is a tiny tangent line.

Quick Revision Summary

  • Differential equations relate an unknown function with one or more of its derivatives.
  • They are classified by order (highest derivative) and degree (power of highest derivative).
  • Slope fields provide a visual understanding of solution curves without solving the DE.
  • Separable equations can be written as g(y) dy = f(x) dx and solved by separating and integrating.
  • Use SICS: Separate, Integrate, Constant (+C), Solve for y.
  • The exponential growth/decay model dP/dt = kP has the solution P(t) = P₀ekt.
  • Initial Value Problems combine a DE with a specific condition to find a unique particular solution.
  • Always remember the constant of integration +C when finding general solutions.

Frequently Asked Questions

When do I add the +C when solving a differential equation?
After you have integrated both sides of the separable equation. You only need one +C (usually on the x side) because if you added one to each side, you could combine them into a single constant.
Do I always have to solve for y explicitly?
Not always, but typically in AP Calculus you are expected to provide an explicit solution for y if possible. If it is too complex or impossible to isolate y, an implicit solution is acceptable.
What if a differential equation is not separable?
In AP Calculus, you will only be tested on separable differential equations. Other types (linear, exact, etc.) are covered in more advanced differential equations courses.
What is the difference between a general and a particular solution?
A general solution includes an arbitrary constant C and represents a family of curves. A particular solution has a specific value for C (found using an initial condition) and represents a single, unique curve from that family.
Why are slope fields useful if we can solve the equations?
Many differential equations cannot be solved analytically (with a formula). Slope fields allow us to visualize the behavior of solutions even for these complex equations, providing qualitative insights about the solution curves.

Practice Quiz

Test your knowledge — select the correct answer for each question.

1.What is the order of the differential equation dy/dx + y = x?

2.The general solution to a first-order differential equation typically contains:

3.A particular solution is found by:

4.What is the order and degree of (y'')² + (y')³ + y = x?

5.Which of the following is a solution to the differential equation dy/dx = 2x?

6.A slope field for dy/dx = y would have horizontal line segments at:

7.Which of the following differential equations is separable?

8.The differential equation dP/dt = -0.05P models:

9.For a slope field of dy/dx = x - y, what is the slope at the point (2, 1)?

10.If ln|y| = x² + C, which is the general solution for y?

Final Study Advice

  • 1.Practice the SICS method until it becomes second nature -- Separate, Integrate, Constant, Solve.
  • 2.When given a slope field, practice sketching solution curves starting from different initial points to build visual intuition.
  • 3.For exponential models, always identify the initial condition and the constant k before plugging into the formula.
  • 4.After solving, verify your solution by differentiating and substituting back into the original DE.
  • 5.Connect each DE to a real-world scenario (population growth, cooling, decay) to deepen your conceptual understanding.

Related Topics