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.
Consider the equation y ′ = 3 x 2 , y ′ = 3 x 2 , which is an example of a differential equation because it includes a derivative. There is a relationship between the variables x x and y : y y : 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 3 x 2 . 3 x 2 . What function has a derivative that is equal to 3 x 2 ? 3 x 2 ? One such function is y = x 3 , y = x 3 , so this function is considered a solution to a differential equation .
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 f f and its derivatives are substituted into the equation.
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 ′ = 2 x y ′ = 2 x | y = x 2 y = x 2 |
y ′ + 3 y = 6 x + 11 y ′ + 3 y = 6 x + 11 | y = e −3 x + 2 x + 3 y = e −3 x + 2 x + 3 |
y ′ ′ − 3 y ′ + 2 y = 24 e −2 x y ′ ′ − 3 y ′ + 2 y = 24 e −2 x | y = 3 e x − 4 e 2 x + 2 e −2 x y = 3 e x − 4 e 2 x + 2 e −2 x |
Note that a solution to a differential equation is not necessarily unique, primarily because the derivative of a constant is zero. For example, y = x 2 + 4 y = x 2 + 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.
Verify that the function y = e −3 x + 2 x + 3 y = e −3 x + 2 x + 3 is a solution to the differential equation y ′ + 3 y = 6 x + 11 . y ′ + 3 y = 6 x + 11 .
To verify the solution, we first calculate y ′ y ′ using the chain rule for derivatives. This gives y ′ = −3 e −3 x + 2 . y ′ = −3 e −3 x + 2 . Next we substitute y y and y ′ y ′ into the left-hand side of the differential equation:
( −3 e −3 x + 2 ) + 3 ( e −3 x + 2 x + 3 ) . ( −3 e −3 x + 2 ) + 3 ( e −3 x + 2 x + 3 ) .The resulting expression can be simplified by first distributing to eliminate the parentheses, giving
−3 e −3 x + 2 + 3 e −3 x + 6 x + 9 . −3 e −3 x + 2 + 3 e −3 x + 6 x + 9 .Combining like terms leads to the expression 6 x + 11 , 6 x + 11 , which is equal to the right-hand side of the differential equation. This result verifies that y = e −3 x + 2 x + 3 y = e −3 x + 2 x + 3 is a solution of the differential equation.
Verify that y = 2 e 3 x − 2 x − 2 y = 2 e 3 x − 2 x − 2 is a solution to the differential equation y ′ − 3 y = 6 x + 4 . y ′ − 3 y = 6 x + 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.
The order of a differential equation is the highest order of any derivative of the unknown function that appears in the equation.
What is the order of each of the following differential equations?
What is the order of the following differential equation?
( x 4 − 3 x ) y ( 5 ) − ( 3 x 2 + 1 ) y ′ + 3 y = sin x cos x ( x 4 − 3 x ) y ( 5 ) − ( 3 x 2 + 1 ) y ′ + 3 y = sin x cos x
We already noted that the differential equation y ′ = 2 x y ′ = 2 x has at least two solutions: y = x 2 y = x 2 and y = x 2 + 4 . y = x 2 + 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 = x 2 + C , y = x 2 + C , where C C represents any constant, is a solution as well. The reason is that the derivative of x 2 + C x 2 + C is 2 x , 2 x , regardless of the value of C . C . It can be shown that any solution of this differential equation must be of the form y = x 2 + C . y = x 2 + 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 C C 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 = x 2 − 3 y = x 2 − 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.
Find the particular solution to the differential equation y ′ = 2 x y ′ = 2 x passing through the point ( 2 , 7 ) . ( 2 , 7 ) .
Any function of the form y = x 2 + C y = x 2 + C is a solution to this differential equation. To determine the value of C , C , we substitute the values x = 2 x = 2 and y = 7 y = 7 into this equation and solve for C : C :
y = x 2 + C 7 = 2 2 + C = 4 + C C = 3. y = x 2 + C 7 = 2 2 + C = 4 + C C = 3.Therefore the particular solution passing through the point ( 2 , 7 ) ( 2 , 7 ) is y = x 2 + 3 . y = x 2 + 3 .
Find the particular solution to the differential equation
y ′ = 4 x + 3 y ′ = 4 x + 3passing through the point ( 1 , 7 ) , ( 1 , 7 ) , given that y = 2 x 2 + 3 x + C y = 2 x 2 + 3 x + C is a general solution to the differential equation.
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 ′ = 2 x , y ′ = 2 x , then y ( 3 ) = 7 y ( 3 ) = 7 is an initial value, and when taken together, these equations form an initial-value problem. The differential equation y ″ − 3 y ′ + 2 y = 4 e x y ″ − 3 y ′ + 2 y = 4 e x 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 ) = 2 y ( 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 = 0 t = 0 represents the beginning of the problem.
Verify that the function y = 2 e −2 t + e t y = 2 e −2 t + e t is a solution to the initial-value problem
y ′ + 2 y = 3 e t , y ( 0 ) = 3 . y ′ + 2 y = 3 e t , y ( 0 ) = 3 .For a function to satisfy an initial-value problem, it must satisfy both the differential equation and the initial condition. To show that y y satisfies the differential equation, we start by calculating y ′ . y ′ . This gives y ′ = −4 e −2 t + e t . y ′ = −4 e −2 t + e t . Next we substitute both y y and y ′ y ′ into the left-hand side of the differential equation and simplify:
y ′ + 2 y = ( −4 e −2 t + e t ) + 2 ( 2 e −2 t + e t ) = −4 e −2 t + e t + 4 e −2 t + 2 e t = 3 e t . y ′ + 2 y = ( −4 e −2 t + e t ) + 2 ( 2 e −2 t + e t ) = −4 e −2 t + e t + 4 e −2 t + 2 e t = 3 e t .
This is equal to the right-hand side of the differential equation, so y = 2 e −2 t + e t y = 2 e −2 t + e t solves the differential equation. Next we calculate y ( 0 ) : y ( 0 ) :
y ( 0 ) = 2 e −2 ( 0 ) + e 0 = 2 + 1 = 3 . y ( 0 ) = 2 e −2 ( 0 ) + e 0 = 2 + 1 = 3 .This result verifies the initial value. Therefore the given function satisfies the initial-value problem.
Verify that y = 3 e 2 t + 4 sin t y = 3 e 2 t + 4 sin t is a solution to the initial-value problem
y ′ − 2 y = 4 cos t − 8 sin t , y ( 0 ) = 3 . y ′ − 2 y = 4 cos t − 8 sin t , y ( 0 ) = 3 .In Example 4.4, the initial-value problem consisted of two parts. The first part was the differential equation y ′ + 2 y = 3 e t , y ′ + 2 y = 3 e t , 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 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 = 2 e −2 t + C e t . y = 2 e −2 t + C e t . This family of solutions is shown in Figure 4.3, with the particular solution y = 2 e −2 t + e t y = 2 e −2 t + e t 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.
Solve the following initial-value problem:
y ′ = 3 e x + x 2 − 4 , y ( 0 ) = 5 . y ′ = 3 e x + x 2 − 4 , y ( 0 ) = 5 .The first step in solving this initial-value problem is to find a general family of solutions. To do this, we find an antiderivative of both sides of the differential equation
∫ y ′ d x = ∫ ( 3 e x + x 2 − 4 ) d x , ∫ y ′ d x = ∫ ( 3 e x + x 2 − 4 ) d x , y + C 1 = 3 e x + 1 3 x 3 − 4 x + C 2 . y + C 1 = 3 e x + 1 3 x 3 − 4 x + C 2 .We are able to integrate both sides because the y term appears by itself. Notice that there are two integration constants: C 1 C 1 and C 2 . C 2 . Solving Equation 4.1 for y y gives
y = 3 e x + 1 3 x 3 − 4 x + C 2 − C 1 . y = 3 e x + 1 3 x 3 − 4 x + C 2 − C 1 .Because C 1 C 1 and C 2 C 2 are both constants, C 2 − C 1 C 2 − C 1 is also a constant. We can therefore define C = C 2 − C 1 , C = C 2 − C 1 , which leads to the equation
y = 3 e x + 1 3 x 3 − 4 x + C . y = 3 e x + 1 3 x 3 − 4 x + C .Next we determine the value of C . C . To do this, we substitute x = 0 x = 0 and y = 5 y = 5 into Equation 4.1 and solve for C : C :
5 = 3 e 0 + 1 3 0 3 − 4 ( 0 ) + C 5 = 3 + C C = 2 . 5 = 3 e 0 + 1 3 0 3 − 4 ( 0 ) + C 5 = 3 + C C = 2 .
Now we substitute the value C = 2 C = 2 into Equation 4.1. The solution to the initial-value problem is y = 3 e x + 1 3 x 3 − 4 x + 2 . y = 3 e x + 1 3 x 3 − 4 x + 2 .
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.
Solve the initial-value problem
y ′ = x 2 − 4 x + 3 − 6 e x , y ( 0 ) = 8 . y ′ = x 2 − 4 x + 3 − 6 e x , 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 = m a , F = m a , where F F represents force, m m represents mass, and a a 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.8 m/s 2 . 9.8 m/s 2 . 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 m m 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 = m a ) . ( F = m a ) . 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 = m v ′ ( t ) . F = m v ′ ( 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 F g = − m g , F g = − m g , since this force acts in a downward direction. Therefore we obtain the equation F = F g , F = F g , which becomes m v ′ ( t ) = − m g . m v ′ ( t ) = − m g . Dividing both sides of the equation by m m 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 ) = v 0 . v ( 0 ) = v 0 .
A baseball is thrown upward from a height of 3 3 meters above Earth’s surface with an initial velocity of 10 m/s , 10 m/s , and the only force acting on it is gravity. The ball has a mass of 0.15 kg 0.15 kg .
where g = 9.8 m/s 2 . g = 9.8 m/s 2 . The initial condition is v ( 0 ) = v 0 , v ( 0 ) = v 0 , where v 0 = 10 m/s . v 0 = 10 m/s . Therefore the initial-value problem is v ′ ( t ) = −9.8 m/s 2 , v ( 0 ) = 10 m/s . v ′ ( t ) = −9.8 m/s 2 , v ( 0 ) = 10 m/s .
The first step in solving this initial-value problem is to take the antiderivative of both sides of the differential equation. This gives
∫ v ′ ( t ) d t = ∫ −9.8 d t v ( t ) = −9.8 t + C . ∫ v ′ ( t ) d t = ∫ −9.8 d t v ( t ) = −9.8 t + C .
The next step is to solve for C . C . To do this, substitute t = 0 t = 0 and v ( 0 ) = 10 : v ( 0 ) = 10 :
v ( t ) = −9.8 t + C v ( 0 ) = −9.8 ( 0 ) + C 10 = C . v ( t ) = −9.8 t + C v ( 0 ) = −9.8 ( 0 ) + C 10 = C .
v ( t ) = −9.8 t + 10 v ( 2 ) = −9.8 ( 2 ) + 10 v ( 2 ) = −9.6. v ( t ) = −9.8 t + 10 v ( 2 ) = −9.8 ( 2 ) + 10 v ( 2 ) = −9.6.
Suppose a rock falls from rest from a height of 100 100 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 ) = s 0 . s ( 0 ) = s 0 . Together these assumptions give the initial-value problem
s ′ ( t ) = v ( t ) , s ( 0 ) = s 0 . s ′ ( t ) = v ( t ) , s ( 0 ) = s 0 .If the velocity function is known, then it is possible to solve for the position function as well.
A baseball is thrown upward from a height of 3 3 meters above Earth’s surface with an initial velocity of 10 m/s , 10 m/s , and the only force acting on it is gravity. The ball has a mass of 0.15 0.15 kilogram.
∫ s ′ ( t ) d t = ∫ −9.8 t + 10 d t s ( t ) = −4.9 t 2 + 10 t + C . ∫ s ′ ( t ) d t = ∫ −9.8 t + 10 d t s ( t ) = −4.9 t 2 + 10 t + C .
s ( t ) = −4.9 t 2 + 10 t + C s ( 0 ) = −4.9 ( 0 ) 2 + 10 ( 0 ) + C 3 = C . s ( t ) = −4.9 t 2 + 10 t + C s ( 0 ) = −4.9 ( 0 ) 2 + 10 ( 0 ) + C 3 = C .
s ( 2 ) = −4.9 ( 2 ) 2 + 10 ( 2 ) + 3 = −4.9 ( 4 ) + 23 = 3.4. s ( 2 ) = −4.9 ( 2 ) 2 + 10 ( 2 ) + 3 = −4.9 ( 4 ) + 23 = 3.4.
Determine the order of the following differential equations.
y ′ + y = 3 y 2 y ′ + y = 3 y 2
( y ′ ) 2 = y ′ + 2 y ( y ′ ) 2 = y ′ + 2 y
y ‴ + y ″ y ′ = 3 x 2 y ‴ + y ″ y ′ = 3 x 2
y ′ = y ″ + 3 t 2 y ′ = y ″ + 3 t 2
d y d t = t d y d t = t
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
( 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.
y = x 3 3 y = x 3 3 solves y ′ = x 2 y ′ = x 2
y = 2 e − x + x − 1 y = 2 e − x + x − 1 solves y ′ = x − y y ′ = x − y
y = e 3 x − e x 2 y = e 3 x − e x 2 solves y ′ = 3 y + e x y ′ = 3 y + e x
y = 1 1 − x y = 1 1 − x solves y ′ = y 2 y ′ = y 2
y = e x 2 / 2 y = e x 2 / 2 solves y ′ = x y y ′ = x y
y = 4 + ln x y = 4 + ln x solves x y ′ = 1 x y ′ = 1
y = 3 − x + x ln x y = 3 − x + x ln x solves y ′ = ln x y ′ = ln x
y = 2 e x − x − 1 y = 2 e x − x − 1 solves y ′ = y + x y ′ = y + x
y = e x + sin x 2 − cos x 2 y = e x + sin x 2 − cos x 2 solves y ′ = cos x + y y ′ = cos x + y
y = π e − cos x y = π e − cos x solves y ′ = y sin x y ′ = y sin x
Verify the following general solutions and find the particular solution.
Find the particular solution to the differential equation y ′ = 4 x 2 y ′ = 4 x 2 that passes through ( −3 , −30 ) , ( −3 , −30 ) , given that y = C + 4 x 3 3 y = C + 4 x 3 3 is a general solution.
Find the particular solution to the differential equation y ′ = 3 x 3 y ′ = 3 x 3 that passes through ( 1 , 4.75 ) , ( 1 , 4.75 ) , given that y = C + 3 x 4 4 y = C + 3 x 4 4 is a general solution.
Find the particular solution to the differential equation y ′ = 3 x 2 y y ′ = 3 x 2 y that passes through ( 0 , 12 ) , ( 0 , 12 ) , given that y = C e x 3 y = C e x 3 is a general solution.
Find the particular solution to the differential equation y ′ = 2 x y y ′ = 2 x y that passes through ( 0 , 1 2 ) , ( 0 , 1 2 ) , given that y = C e x 2 y = C e x 2 is a general solution.
Find the particular solution to the differential equation y ′ = ( 2 x y ) 2 y ′ = ( 2 x y ) 2 that passes through ( 1 , − 1 2 ) , ( 1 , − 1 2 ) , given that y = − 3 C + 4 x 3 y = − 3 C + 4 x 3 is a general solution.
Find the particular solution to the differential equation y ′ x 2 = y y ′ x 2 = y that passes through ( 1 , 2 e ) , ( 1 , 2 e ) , given that y = C e − 1 / x y = C e − 1 / x is a general solution.
Find the particular solution to the differential equation 8 d x d t = −2 cos ( 2 t ) − cos ( 4 t ) 8 d x d t = −2 cos ( 2 t ) − cos ( 4 t ) that passes through ( π , π ) , ( π , π ) , given that x = C − 1 8 sin ( 2 t ) − 1 32 sin ( 4 t ) x = C − 1 8 sin ( 2 t ) − 1 32 sin ( 4 t ) is a general solution.
Find the particular solution to the differential equation d u d t = tan u d u d t = tan u that passes through ( 1 , π 2 ) , ( 1 , π 2 ) , given that u = sin −1 ( e C + t ) u = sin −1 ( e C + t ) is a general solution.
Find the particular solution to the differential equation d y d t = e ( t + y ) d y d t = e ( t + y ) that passes through ( 1 , 0 ) , ( 1 , 0 ) , given that y = − ln ( C − e t ) y = − ln ( C − e t ) is a general solution.
Find the particular solution to the differential equation y ′ ( 1 − x 2 ) = 1 + y y ′ ( 1 − x 2 ) = 1 + y that passes through ( 0 , −2 ) , ( 0 , −2 ) , given that y = C x + 1 1 − x − 1 y = C x + 1 1 − x − 1 is a general solution.
For the following problems, find the general solution to the differential equation.
y ′ = 3 x + e x y ′ = 3 x + e x