Introduction to Differential Equations Examples in Math

Start with the recap, study the fully worked examples, then use the practice problems to check your understanding of Introduction to Differential Equations.

This page combines explanation, solved examples, and follow-up practice so you can move from recognition to confident problem-solving in Math.

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.

An algebraic equation like x2=4x^2 = 4 asks 'what number satisfies this?' A differential equation like dydx=2x\frac{dy}{dx} = 2x asks 'what function has this derivative?' The answer isn't a number but a family of functions: y=x2+Cy = x^2 + C.

Read the full concept explanation โ†’

How to Use These Examples

  • Read the first worked example with the solution open so the structure is clear.
  • Try the practice problems before revealing each solution.
  • Use the related concepts and background knowledge badges if you feel stuck.

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.

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

Worked Examples

Example 1

easy
Verify y=3e2xy = 3e^{2x} solves yโ€ฒ=2yy' = 2y, and find the particular solution with y(0)=5y(0) = 5.

Answer

Verified; particular solution y=5e2xy = 5e^{2x}

First step

1
yโ€ฒ=6e2x=2(3e2x)=2yy' = 6e^{2x} = 2(3e^{2x}) = 2y. โœ“

Full solution

  1. 2
    General: y=Ce2xy = Ce^{2x}. Apply y(0)=5y(0)=5: C=5C=5.
  2. 3
    Particular: y=5e2xy = 5e^{2x}.
Verify by substitution; the initial condition pins down CC.

Example 2

medium
Find the general and particular (y(0)=4y(0)=4) solution to yโ€ฒ=3x2+1y' = 3x^2+1.

Example 3

easy
Verify that y=eโˆ’xy = e^{-x} satisfies yโ€ฒ+y=0y' + y = 0.

Example 4

medium
Solve the IVP yโ€ฒโ€ฒ=2y'' = 2, y(0)=1y(0)=1, yโ€ฒ(0)=3y'(0)=3.

Example 5

hard
Verify y=2cosโก(3x)โˆ’sinโก(3x)y = 2\cos(3x) - \sin(3x) solves yโ€ฒโ€ฒ+9y=0y'' + 9y = 0.

Practice Problems

Try these problems on your own first, then open the solution to compare your method.

Example 1

easy
Verify that y=sinโกx+2cosโกxy = \sin x + 2\cos x satisfies yโ€ฒโ€ฒ+y=0y'' + y = 0.

Example 2

medium
Find the particular solution to yโ€ฒ=โˆ’2yy' = -2y with y(0)=3y(0)=3.

Example 3

easy
What is the order of yโ€ฒโ€ฒ+3yโ€ฒโˆ’y=0y''+3y'-y=0?

Example 4

easy
Solve dydx=2x\frac{dy}{dx}=2x for the general solution.

Example 5

easy
Is y=e2xy=e^{2x} a solution of yโ€ฒ=2yy'=2y?

Example 6

easy
Why does dydx=3x2\frac{dy}{dx}=3x^2 have infinitely many solutions?

Example 7

easy
What is the degree of (yโ€ฒ)3+y=x(y')^3+y=x?

Example 8

easy
Find the particular solution of dydx=4\frac{dy}{dx}=4 with y(0)=3y(0)=3.

Example 9

easy
Classify dydx=ky\frac{dy}{dx}=ky in words.

Example 10

easy
Is dydx=x+y\frac{dy}{dx}=x+y separable as stated?

Example 11

medium
Solve the IVP dydx=6x2\frac{dy}{dx}=6x^2, y(1)=5y(1)=5.

Example 12

medium
Verify y=C1cosโกx+C2sinโกxy=C_1\cos x+C_2\sin x solves yโ€ฒโ€ฒ+y=0y''+y=0.

Example 13

medium
Solve dydx=cosโกx\frac{dy}{dx}=\cos x with y(ฯ€/2)=0y(\pi/2)=0.

Example 14

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

Example 15

medium
Is y=x2y=x^2 a solution of xyโ€ฒ=2yxy'=2y?

Example 16

medium
Find the general solution of yโ€ฒโ€ฒ=6xy''=6x.

Example 17

medium
For exponential decay dydt=โˆ’0.5y\frac{dy}{dt}=-0.5y, write the general solution.

Example 18

medium
Determine the order and degree of (d2ydx2)2+yโ€ฒ=x\left(\frac{d^2y}{dx^2}\right)^2+y'=x.

Example 19

medium
Solve the IVP dydx=3x2โˆ’2\frac{dy}{dx}=3x^2-2, y(1)=4y(1)=4.

Example 20

challenge
Find the particular solution of yโ€ฒโ€ฒ=12x2y''=12x^2 with y(0)=1y(0)=1, yโ€ฒ(0)=2y'(0)=2.

Example 21

challenge
Show that y=1xy=\frac{1}{x} solves yโ€ฒ=โˆ’y2y'=-y^2 and state where it is valid.

Example 22

challenge
Find the value of rr so that y=erxy=e^{rx} solves yโ€ฒโ€ฒโˆ’5yโ€ฒ+6y=0y''-5y'+6y=0.

Example 23

easy
State the order of yโ€ฒโ€ฒโ€ฒโˆ’yโ€ฒ=exy''' - y' = e^x.

Example 24

easy
Find the general solution of dydx=5\dfrac{dy}{dx} = 5.

Example 25

easy
Is y=eโˆ’3xy = e^{-3x} a solution of yโ€ฒ+3y=0y' + 3y = 0?

Example 26

easy
Solve dydx=ex\dfrac{dy}{dx} = e^x for the general solution.

Example 27

medium
Solve the IVP dydx=ex\dfrac{dy}{dx} = e^x, y(0)=2y(0) = 2.

Example 28

medium
Find the particular solution of dydx=1x\dfrac{dy}{dx} = \dfrac{1}{x} with y(1)=0y(1) = 0.

Example 29

medium
Find kk so that y=ekty = e^{kt} satisfies dydt=7y\dfrac{dy}{dt} = 7y.

Example 30

medium
A bacteria population satisfies dPdt=0.2P\dfrac{dP}{dt} = 0.2 P with P(0)=50P(0) = 50. Find P(t)P(t).

Example 31

medium
Solve yโ€ฒโ€ฒ=0y'' = 0 for its general solution.

Example 32

medium
Determine the order of (d3ydx3)+sinโกy=0\left(\dfrac{d^3 y}{dx^3}\right) + \sin y = 0.

Example 33

medium
Is y=xexy = x e^x a solution of yโ€ฒโˆ’y=exy' - y = e^x?

Example 34

medium
Write a DE whose general solution is y=Ce4xy = Ce^{4x}.

Example 35

hard
Find the particular solution of dydt=โˆ’3y\dfrac{dy}{dt} = -3y with y(0)=8y(0) = 8, then find y(2)y(2).

Example 36

hard
Find all rr so that y=erxy = e^{rx} solves yโ€ฒโ€ฒ+yโ€ฒโˆ’6y=0y'' + y' - 6y = 0.

Example 37

hard
Solve yโ€ฒ=yy' = y, y(0)=โˆ’2y(0) = -2.

Example 38

hard
Solve the IVP yโ€ฒ=2xyy' = 2xy, y(0)=3y(0) = 3 by inspection (using y=Cex2y = Ce^{x^2}).

Example 39

hard
Newton's cooling: dTdt=โˆ’k(Tโˆ’20)\dfrac{dT}{dt} = -k(T - 20) with T(0)=90T(0) = 90. Write the general form of T(t)T(t).

Example 40

hard
State the order and degree of (dydx)4+y=0\left(\dfrac{dy}{dx}\right)^4 + y = 0.

Example 41

hard
Show that y=x2+Cxy = x^2 + \dfrac{C}{x} solves xyโ€ฒ+y=3x2xy' + y = 3x^2 for any constant CC.

Example 42

challenge
Solve yโ€ฒโ€ฒโˆ’4y=0y'' - 4y = 0 for the general real solution.

Example 43

challenge
Find the value of rr so that y=xry = x^r solves x2yโ€ฒโ€ฒโˆ’2y=0x^2 y'' - 2y = 0.

Background Knowledge

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

derivativeintegral