Introduction to Differential Equations Examples in Math

Worked examples of Introduction to Differential Equations to try before you open each solution, then practice problems with answers.

Worked Examples

Example 1

easy
Verify y=3e2x solves y′=2y, and find the particular solution with y(0)=5.
Show solution

Answer

Verified; particular solution y=5e2x

First step

1.
y′=6e2x=2(3e2x)=2y. ✓

Full solution

  1. 2.
    General: y=Ce2x. Apply y(0)=5: C=5.
  2. 3.
    Particular: y=5e2x.
Verify by substitution; the initial condition pins down C.

Example 2

medium
Find the general and particular (y(0)=4) solution to y′=3x2+1.

Example 3

easy
Verify that y=e−x satisfies y′+y=0.

Example 4

medium
Solve the IVP y′′=2, y(0)=1, y′(0)=3.

Example 5

hard
Verify y=2cos⁡(3x)−sin⁡(3x) solves y′′+9y=0.

Practice Problems

Try each one, then open the solution to compare your method.

Example 1

easy
Verify that y=sin⁡x+2cos⁡x satisfies y′′+y=0.

Example 2

medium
Find the particular solution to y′=−2y with y(0)=3.

Example 3

easy
What is the order of y′′+3y′−y=0?

Example 4

easy
Solve dydx=2x for the general solution.

Example 5

easy
Is y=e2x a solution of y′=2y?

Example 6

easy
Why does dydx=3x2 have infinitely many solutions?

Example 7

easy
What is the degree of (y′)3+y=x?

Example 8

easy
Find the particular solution of dydx=4 with y(0)=3.

Example 9

easy
Classify dydx=ky in words.

Example 10

easy
Is dydx=x+y separable as stated?

Example 11

medium
Solve the IVP dydx=6x2, y(1)=5.

Example 12

medium
Verify y=C1cos⁡x+C2sin⁡x solves y′′+y=0.

Example 13

medium
Solve dydx=cos⁡x with y(π/2)=0.

Example 14

medium
How many arbitrary constants does the general solution of a 3rd-order DE have?

Example 15

medium
Is y=x2 a solution of xy′=2y?

Example 16

medium
Find the general solution of y′′=6x.

Example 17

medium
For exponential decay dydt=−0.5y, write the general solution.

Example 18

medium
Determine the order and degree of (d2ydx2)2+y′=x.

Example 19

medium
Solve the IVP dydx=3x2−2, y(1)=4.

Example 20

challenge
Find the particular solution of y′′=12x2 with y(0)=1, y′(0)=2.

Example 21

challenge
Show that y=1x solves y′=−y2 and state where it is valid.

Example 22

challenge
Find the value of r so that y=erx solves y′′−5y′+6y=0.

Example 23

easy
State the order of y′′′−y′=ex.

Example 24

easy
Find the general solution of dydx=5.

Example 25

easy
Is y=e−3x a solution of y′+3y=0?

Example 26

easy
Solve dydx=ex for the general solution.

Example 27

medium
Solve the IVP dydx=ex, y(0)=2.

Example 28

medium
Find the particular solution of dydx=1x with y(1)=0.

Example 29

medium
Find k so that y=ekt satisfies dydt=7y.

Example 30

medium
A bacteria population satisfies dPdt=0.2P with P(0)=50. Find P(t).

Example 31

medium
Solve y′′=0 for its general solution.

Example 32

medium
Determine the order of (d3ydx3)+sin⁡y=0.

Example 33

medium
Is y=xex a solution of y′−y=ex?

Example 34

medium
Write a DE whose general solution is y=Ce4x.

Example 35

hard
Find the particular solution of dydt=−3y with y(0)=8, then find y(2).

Example 36

hard
Find all r so that y=erx solves y′′+y′−6y=0.

Example 37

hard
Solve y′=y, y(0)=−2.

Example 38

hard
Solve the IVP y′=2xy, y(0)=3 by inspection (using y=Cex2).

Example 39

hard
Newton's cooling: dTdt=−k(T−20) with T(0)=90. Write the general form of T(t).

Example 40

hard
State the order and degree of (dydx)4+y=0.

Example 41

hard
Show that y=x2+Cx solves xy′+y=3x2 for any constant C.

Example 42

challenge
Solve y′′−4y=0 for the general real solution.

Example 43

challenge
Find the value of r so that y=xr solves x2y′′−2y=0.

What to focus on

Core idea: A differential equation relates a function to its derivatives; solving it means finding the function(s) that fit.

Common stuck point: The procedure for introduction to differential equations is the easy part; the trap is dropping the constant of integration. Asking "Does the equation involve an unknown function together with its derivative(s), with the goal of finding that function?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

Ask yourself: Does the equation involve an unknown function together with its derivative(s), with the goal of finding that function?

Concept recap

An equation that contains an unknown function and one or more of its derivatives. Solving a DE means finding the function(s) that satisfy the equation.

A differential equation is a recipe for change with no starting point: "every moment, grow by 3% of whatever you have". Start with $100 or with $500 and the same recipe produces different histories; together they form the family of solutions. The initial condition says how much you began with, and that picks out one history.

Read the full lesson on Introduction to Differential Equations

Background knowledge

These ideas may be useful before you work through the harder examples.

derivativeintegral