Calculus Volume 2

# 4.1Basics of Differential Equations

Calculus Volume 24.1 Basics of Differential Equations

### Learning Objectives

• 4.1.1 Identify the order of a differential equation.
• 4.1.2 Explain what is meant by a solution to a differential equation.
• 4.1.3 Distinguish between the general solution and a particular solution of a differential equation.
• 4.1.4 Identify an initial-value problem.
• 4.1.5 Identify whether a given function is a solution to a differential equation or an initial-value problem.

Calculus is the mathematics of change, and rates of change are expressed by derivatives. Thus, one of the most common ways to use calculus is to set up an equation containing an unknown function $y=f(x)y=f(x)$ and its derivative, known as a differential equation. Solving such equations often provides information about how quantities change and frequently provides insight into how and why the changes occur.

Techniques for solving differential equations can take many different forms, including direct solution, use of graphs, or computer calculations. We introduce the main ideas in this chapter and describe them in a little more detail later in the course. In this section we study what differential equations are, how to verify their solutions, some methods that are used for solving them, and some examples of common and useful equations.

### General Differential Equations

Consider the equation $y′=3x2,y′=3x2,$ which is an example of a differential equation because it includes a derivative. There is a relationship between the variables $xx$ and $y:yy:y$ is an unknown function of $x.x.$ Furthermore, the left-hand side of the equation is the derivative of $y.y.$ Therefore we can interpret this equation as follows: Start with some function $y=f(x)y=f(x)$ and take its derivative. The answer must be equal to $3x2.3x2.$ What function has a derivative that is equal to $3x2?3x2?$ One such function is $y=x3,y=x3,$ so this function is considered a solution to a differential equation.

### Definition

A differential equation is an equation involving an unknown function $y=f(x)y=f(x)$ and one or more of its derivatives. A solution to a differential equation is a function $y=f(x)y=f(x)$ that satisfies the differential equation when $ff$ and its derivatives are substituted into the equation.

### Media

Go to this website to explore more on this topic.

Some examples of differential equations and their solutions appear in Table 4.1.

Equation Solution
$y′=2xy′=2x$ $y=x2y=x2$
$y′+3y=6x+11y′+3y=6x+11$ $y=e−3x+2x+3y=e−3x+2x+3$
$y′′−3y′+2y=24e−2xy′′−3y′+2y=24e−2x$ $y=3ex−4e2x+2e−2xy=3ex−4e2x+2e−2x$
Table 4.1 Examples of Differential Equations and Their Solutions

Note that a solution to a differential equation is not necessarily unique, primarily because the derivative of a constant is zero. For example, $y=x2+4y=x2+4$ is also a solution to the first differential equation in Table 4.1. We will return to this idea a little bit later in this section. For now, let’s focus on what it means for a function to be a solution to a differential equation.

### Example 4.1

#### Verifying Solutions of Differential Equations

Verify that the function $y=e−3x+2x+3y=e−3x+2x+3$ is a solution to the differential equation $y′+3y=6x+11.y′+3y=6x+11.$

### Checkpoint4.1

Verify that $y=2e3x−2x−2y=2e3x−2x−2$ is a solution to the differential equation $y′−3y=6x+4.y′−3y=6x+4.$

It is convenient to define characteristics of differential equations that make it easier to talk about them and categorize them. The most basic characteristic of a differential equation is its order.

### Definition

The order of a differential equation is the highest order of any derivative of the unknown function that appears in the equation.

### Example 4.2

#### Identifying the Order of a Differential Equation

What is the order of each of the following differential equations?

1. $y′−4y=x2−3x+4y′−4y=x2−3x+4$
2. $x2y‴−3xy″+xy′−3y=sinxx2y‴−3xy″+xy′−3y=sinx$
3. $4xy(4)−6x2y″+12x4y=x3−3x2+4x−124xy(4)−6x2y″+12x4y=x3−3x2+4x−12$

### Checkpoint4.2

What is the order of the following differential equation?

$(x4−3x)y(5)−(3x2+1)y′+3y=sinxcosx(x4−3x)y(5)−(3x2+1)y′+3y=sinxcosx$

### General and Particular Solutions

We already noted that the differential equation $y′=2xy′=2x$ has at least two solutions: $y=x2y=x2$ and $y=x2+4.y=x2+4.$ The only difference between these two solutions is the last term, which is a constant. What if the last term is a different constant? Will this expression still be a solution to the differential equation? In fact, any function of the form $y=x2+C,y=x2+C,$ where $CC$ represents any constant, is a solution as well. The reason is that the derivative of $x2+Cx2+C$ is $2x,2x,$ regardless of the value of $C.C.$ It can be shown that any solution of this differential equation must be of the form $y=x2+C.y=x2+C.$ This is an example of a general solution to a differential equation. A graph of some of these solutions is given in Figure 4.2. (Note: in this graph we used even integer values for $CC$ ranging between $−4−4$ and $4.4.$ In fact, there is no restriction on the value of $C;C;$ it can be an integer or not.)

Figure 4.2 Family of solutions to the differential equation $y ′ = 2 x . y ′ = 2 x .$

In this example, we are free to choose any solution we wish; for example, $y=x2−3y=x2−3$ is a member of the family of solutions to this differential equation. This is called a particular solution to the differential equation. A particular solution can often be uniquely identified if we are given additional information about the problem.

### Example 4.3

#### Finding a Particular Solution

Find the particular solution to the differential equation $y′=2xy′=2x$ passing through the point $(2,7).(2,7).$

### Checkpoint4.3

Find the particular solution to the differential equation

$y′=4x+3y′=4x+3$

passing through the point $(1,7),(1,7),$ given that $y=2x2+3x+Cy=2x2+3x+C$ is a general solution to the differential equation.

### Initial-Value Problems

Usually a given differential equation has an infinite number of solutions, so it is natural to ask which one we want to use. To choose one solution, more information is needed. Some specific information that can be useful is an initial value, which is an ordered pair that is used to find a particular solution.

A differential equation together with one or more initial values is called an initial-value problem. The general rule is that the number of initial values needed for an initial-value problem is equal to the order of the differential equation. For example, if we have the differential equation $y′=2x,y′=2x,$ then $y(3)=7y(3)=7$ is an initial value, and when taken together, these equations form an initial-value problem. The differential equation $y″−3y′+2y=4exy″−3y′+2y=4ex$ is second order, so we need two initial values. With initial-value problems of order greater than one, the same value should be used for the independent variable. An example of initial values for this second-order equation would be $y(0)=2y(0)=2$ and $y′(0)=−1.y′(0)=−1.$ These two initial values together with the differential equation form an initial-value problem. These problems are so named because often the independent variable in the unknown function is $t,t,$ which represents time. Thus, a value of $t=0t=0$ represents the beginning of the problem.

### Example 4.4

#### Verifying a Solution to an Initial-Value Problem

Verify that the function $y=2e−2t+ety=2e−2t+et$ is a solution to the initial-value problem

$y′+2y=3et,y(0)=3.y′+2y=3et,y(0)=3.$

### Checkpoint4.4

Verify that $y=3e2t+4sinty=3e2t+4sint$ is a solution to the initial-value problem

$y′−2y=4cost−8sint,y(0)=3.y′−2y=4cost−8sint,y(0)=3.$

In Example 4.4, the initial-value problem consisted of two parts. The first part was the differential equation $y′+2y=3ex,y′+2y=3ex,$ and the second part was the initial value $y(0)=3.y(0)=3.$ These two equations together formed the initial-value problem.

The same is true in general. An initial-value problem will consists of two parts: the differential equation and the initial condition. The differential equation has a family of solutions, and the initial condition determines the value of $C.C.$ The family of solutions to the differential equation in Example 4.4 is given by $y=2e−2t+Cet.y=2e−2t+Cet.$ This family of solutions is shown in Figure 4.3, with the particular solution $y=2e−2t+ety=2e−2t+et$ labeled.

Figure 4.3 A family of solutions to the differential equation $y ′ + 2 y = 3 e t . y ′ + 2 y = 3 e t .$ The particular solution $y = 2 e −2 t + e t y = 2 e −2 t + e t$ is labeled.

### Example 4.5

#### Solving an Initial-value Problem

Solve the following initial-value problem:

$y′=3ex+x2−4,y(0)=5.y′=3ex+x2−4,y(0)=5.$

#### Analysis

The difference between a general solution and a particular solution is that a general solution involves a family of functions, either explicitly or implicitly defined, of the independent variable. The initial value or values determine which particular solution in the family of solutions satisfies the desired conditions.

### Checkpoint4.5

Solve the initial-value problem

$y′=x2−4x+3−6ex,y(0)=8.y′=x2−4x+3−6ex,y(0)=8.$

In physics and engineering applications, we often consider the forces acting upon an object, and use this information to understand the resulting motion that may occur. For example, if we start with an object at Earth’s surface, the primary force acting upon that object is gravity. Physicists and engineers can use this information, along with Newton’s second law of motion (in equation form $F=ma,F=ma,$ where $FF$ represents force, $mm$ represents mass, and $aa$ represents acceleration), to derive an equation that can be solved.

Figure 4.4 For a baseball falling in air, the only force acting on it is gravity (neglecting air resistance).

In Figure 4.4 we assume that the only force acting on a baseball is the force of gravity. This assumption ignores air resistance. (The force due to air resistance is considered in a later discussion.) The acceleration due to gravity at Earth’s surface, $g,g,$ is approximately $9.8m/s2.9.8m/s2.$ We introduce a frame of reference, where Earth’s surface is at a height of 0 meters. Let $v(t)v(t)$ represent the velocity of the object in meters per second. If $v(t)>0,v(t)>0,$ the ball is rising, and if $v(t)<0,v(t)<0,$ the ball is falling (Figure 4.5).

Figure 4.5 Possible velocities for the rising/falling baseball.

Our goal is to solve for the velocity $v(t)v(t)$ at any time $t.t.$ To do this, we set up an initial-value problem. Suppose the mass of the ball is $m,m,$ where $mm$ is measured in kilograms. We use Newton’s second law, which states that the force acting on an object is equal to its mass times its acceleration $(F=ma).(F=ma).$ Acceleration is the derivative of velocity, so $a(t)=v′(t).a(t)=v′(t).$ Therefore the force acting on the baseball is given by $F=mv′(t).F=mv′(t).$ However, this force must be equal to the force of gravity acting on the object, which (again using Newton’s second law) is given by $Fg=−mg,Fg=−mg,$ since this force acts in a downward direction. Therefore we obtain the equation $F=Fg,F=Fg,$ which becomes $mv′(t)=−mg.mv′(t)=−mg.$ Dividing both sides of the equation by $mm$ gives the equation

$v′(t)=−g.v′(t)=−g.$

Notice that this differential equation remains the same regardless of the mass of the object.

We now need an initial value. Because we are solving for velocity, it makes sense in the context of the problem to assume that we know the initial velocity, or the velocity at time $t=0.t=0.$ This is denoted by $v(0)=v0.v(0)=v0.$

### Example 4.6

#### Velocity of a Moving Baseball

A baseball is thrown upward from a height of $33$ meters above Earth’s surface with an initial velocity of $10m/s,10m/s,$ and the only force acting on it is gravity. The ball has a mass of $0.15kg0.15kg$ at Earth’s surface.

1. Find the velocity $v(t)v(t)$ of the baseball at time $t.t.$
2. What is its velocity after $22$ seconds?

### Checkpoint4.6

Suppose a rock falls from rest from a height of $100100$ meters and the only force acting on it is gravity. Find an equation for the velocity $v(t)v(t)$ as a function of time, measured in meters per second.

A natural question to ask after solving this type of problem is how high the object will be above Earth’s surface at a given point in time. Let $s(t)s(t)$ denote the height above Earth’s surface of the object, measured in meters. Because velocity is the derivative of position (in this case height), this assumption gives the equation $s′(t)=v(t).s′(t)=v(t).$ An initial value is necessary; in this case the initial height of the object works well. Let the initial height be given by the equation $s(0)=s0.s(0)=s0.$ Together these assumptions give the initial-value problem

$s′(t)=v(t),s(0)=s0.s′(t)=v(t),s(0)=s0.$

If the velocity function is known, then it is possible to solve for the position function as well.

### Example 4.7

#### Height of a Moving Baseball

A baseball is thrown upward from a height of $33$ meters above Earth’s surface with an initial velocity of $10m/s,10m/s,$ and the only force acting on it is gravity. The ball has a mass of $0.150.15$ kilogram at Earth’s surface.

1. Find the position $s(t)s(t)$ of the baseball at time $t.t.$
2. What is its height after $22$ seconds?

### Section 4.1 Exercises

Determine the order of the following differential equations.

1.

$y ′ + y = 3 y 2 y ′ + y = 3 y 2$

2.

$( y ′ ) 2 = y ′ + 2 y ( y ′ ) 2 = y ′ + 2 y$

3.

$y ‴ + y ″ y ′ = 3 x 2 y ‴ + y ″ y ′ = 3 x 2$

4.

$y ′ = y ″ + 3 t 2 y ′ = y ″ + 3 t 2$

5.

$d y d t = t d y d t = t$

6.

$d y d x + d 2 y d x 2 = 3 x 4 d y d x + d 2 y d x 2 = 3 x 4$

7.

$( d y d t ) 2 + 8 d y d t + 3 y = 4 t ( d y d t ) 2 + 8 d y d t + 3 y = 4 t$

Verify that the following functions are solutions to the given differential equation.

8.

$y=x33y=x33$ solves $y′=x2y′=x2$

9.

$y=2e−x+x−1y=2e−x+x−1$ solves $y′=x−yy′=x−y$

10.

$y=e3x−ex2y=e3x−ex2$ solves $y′=3y+exy′=3y+ex$

11.

$y=11−xy=11−x$ solves $y′=y2y′=y2$

12.

$y=ex2/2y=ex2/2$ solves $y′=xyy′=xy$

13.

$y=4+lnxy=4+lnx$ solves $xy′=1xy′=1$

14.

$y=3−x+xlnxy=3−x+xlnx$ solves $y′=lnxy′=lnx$

15.

$y=2ex−x−1y=2ex−x−1$ solves $y′=y+xy′=y+x$

16.

$y=ex+sinx2−cosx2y=ex+sinx2−cosx2$ solves $y′=cosx+yy′=cosx+y$

17.

$y=πe−cosxy=πe−cosx$ solves $y′=ysinxy′=ysinx$

Verify the following general solutions and find the particular solution.

18.

Find the particular solution to the differential equation $y′=4x2y′=4x2$ that passes through $(−3,−30),(−3,−30),$ given that $y=C+4x33y=C+4x33$ is a general solution.

19.

Find the particular solution to the differential equation $y′=3x3y′=3x3$ that passes through $(1,4.75),(1,4.75),$ given that $y=C+3x44y=C+3x44$ is a general solution.

20.

Find the particular solution to the differential equation $y′=3x2yy′=3x2y$ that passes through $(0,12),(0,12),$ given that $y=Cex3y=Cex3$ is a general solution.

21.

Find the particular solution to the differential equation $y′=2xyy′=2xy$ that passes through $(0,12),(0,12),$ given that $y=Cex2y=Cex2$ is a general solution.

22.

Find the particular solution to the differential equation $y′=(2xy)2y′=(2xy)2$ that passes through $(1,−12),(1,−12),$ given that $y=−3C+4x3y=−3C+4x3$ is a general solution.

23.

Find the particular solution to the differential equation $y′x2=yy′x2=y$ that passes through $(1,2e),(1,2e),$ given that $y=Ce−1/xy=Ce−1/x$ is a general solution.

24.

Find the particular solution to the differential equation $8dxdt=−2cos(2t)−cos(4t)8dxdt=−2cos(2t)−cos(4t)$ that passes through $(π,π),(π,π),$ given that $x=C−18sin(2t)−132sin(4t)x=C−18sin(2t)−132sin(4t)$ is a general solution.

25.

Find the particular solution to the differential equation $dudt=tanududt=tanu$ that passes through $(1,π2),(1,π2),$ given that $u=sin−1(eC+t)u=sin−1(eC+t)$ is a general solution.

26.

Find the particular solution to the differential equation $dydt=e(t+y)dydt=e(t+y)$ that passes through $(1,0),(1,0),$ given that $y=−ln(C−et)y=−ln(C−et)$ is a general solution.

27.

Find the particular solution to the differential equation $y′(1−x2)=1+yy′(1−x2)=1+y$ that passes through $(0,−2),(0,−2),$ given that $y=Cx+11−x−1y=Cx+11−x−1$ is a general solution.

For the following problems, find the general solution to the differential equation.

28.

$y ′ = 3 x + e x y ′ = 3 x + e x$

29.

$y ′ = ln x + tan x y ′ = ln x + tan x$

30.

$y ′ = sin x e cos x y ′ = sin x e cos x$

31.

$y ′ = 4 x y ′ = 4 x$

32.

$y ′ = sin −1 ( 2 x ) y ′ = sin −1 ( 2 x )$

33.

$y ′ = 2 t t 2 + 16 y ′ = 2 t t 2 + 16$

34.

$x ′ = coth t + ln t + 3 t 2 x ′ = coth t + ln t + 3 t 2$

35.

$x ′ = t 4 + t x ′ = t 4 + t$

36.

$y ′ = y y ′ = y$

37.

$y ′ = y x y ′ = y x$

Solve the following initial-value problems starting from $y(0)=1y(0)=1$ and $y(0)=−1.y(0)=−1.$ Draw both solutions on the same graph.

38.

$d y d t = 2 t d y d t = 2 t$

39.

$d y d t = − t d y d t = − t$

40.

$d y d t = 2 y d y d t = 2 y$

41.

$d y d t = − y d y d t = − y$

42.

$d y d t = 2 d y d t = 2$

Solve the following initial-value problems starting from $y0=10.y0=10.$ At what time does $yy$ increase to $100100$ or drop to $1?1?$

43.

$d y d t = 4 t d y d t = 4 t$

44.

$d y d t = 4 y d y d t = 4 y$

45.

$d y d t = −2 y d y d t = −2 y$

46.

$d y d t = e 4 t d y d t = e 4 t$

47.

$d y d t = e −4 t d y d t = e −4 t$

Recall that a family of solutions includes solutions to a differential equation that differ by a constant. For the following problems, use your calculator to graph a family of solutions to the given differential equation. Use initial conditions from $y(t=0)=−10y(t=0)=−10$ to $y(t=0)=10y(t=0)=10$ increasing by $2.2.$ Is there some critical point where the behavior of the solution begins to change?

48.

[T] $y′=y(x)y′=y(x)$

49.

[T] $xy′=yxy′=y$

50.

[T] $y′=t3y′=t3$

51.

[T] $y′=x+yy′=x+y$ (Hint: $y=Cex−x−1y=Cex−x−1$ is the general solution)

52.

[T] $y′=xlnx+sinxy′=xlnx+sinx$

53.

Find the general solution to describe the velocity of a ball of mass $1lb1lb$ that is thrown upward at a rate $aa$ ft/sec.

54.

In the preceding problem, if the initial velocity of the ball thrown into the air is $a=25a=25$ ft/s, write the particular solution to the velocity of the ball. Solve to find the time when the ball hits the ground.

55.

You throw two objects with differing masses $m1m1$ and $m2m2$ upward into the air with the same initial velocity $aa$ ft/s. What is the difference in their velocity after $11$ second?

56.

[T] You throw a ball of mass $11$ kilogram upward with a velocity of $a=25a=25$ m/s on Mars, where the acceleration of gravity is $g=−3.711g=−3.711$ m/s2. Use your calculator to approximate how much longer the ball is in the air on Mars than on Earth, where $g=-9.8m/s2g=-9.8m/s2$.

57.

[T] For the previous problem, use your calculator to approximate how much higher the ball went on Mars, where $g=-9.8m/s2g=-9.8m/s2$.

58.

[T] A car on the freeway accelerates according to $a=15cos(πt),a=15cos(πt),$ where $tt$ is measured in hours. Set up and solve the differential equation to determine the velocity of the car if it has an initial speed of $5050$ mph. After $4040$ minutes of driving, what is the driver’s velocity?

59.

[T] For the car in the preceding problem, find the expression for the distance the car has traveled in time $t,t,$ assuming an initial distance of $0.0.$ How long does it take the car to travel $100100$ miles? Round your answer to hours and minutes.

60.

[T] For the previous problem, find the total distance traveled in the first hour.

61.

Substitute $y=Be3ty=Be3t$ into $y′−y=8e3ty′−y=8e3t$ to find a particular solution.

62.

Substitute $y=acos(2t)+bsin(2t)y=acos(2t)+bsin(2t)$ into $y′+y=4sin(2t)y′+y=4sin(2t)$ to find a particular solution.

63.

Substitute $y=a+bt+ct2y=a+bt+ct2$ into $y′+y=1+t2y′+y=1+t2$ to find a particular solution.

64.

Substitute $y=aetcost+betsinty=aetcost+betsint$ into $y′=2etcosty′=2etcost$ to find a particular solution.

65.

Solve $y′=ekty′=ekt$ with the initial condition $y(0)=0y(0)=0$ and solve $y′=1y′=1$ with the same initial condition. As $kk$ approaches $0,0,$ what do you notice?

Do you know how you learn best?
Order a print copy

As an Amazon Associate we earn from qualifying purchases.