Identify whether a given function is a solution to a differential equation or an initial-value problem
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 [latex]{y}^{\prime }=2x[/latex], then [latex]y\left(3\right)=7[/latex] is an initial value, and when taken together, these equations form an initial-value problem. The differential equation [latex]y\text{''}-3{y}^{\prime }+2y=4{e}^{x}[/latex] 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 [latex]y\left(0\right)=2[/latex] and [latex]{y}^{\prime }\left(0\right)=-1[/latex]. 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 [latex]t[/latex], which represents time. Thus, a value of [latex]t=0[/latex] represents the beginning of the problem.
Example: Verifying a Solution to an Initial-Value Problem
Verify that the function [latex]y=2{e}^{-2t}+{e}^{t}[/latex] is a solution to the initial-value problem
For a function to satisfy an initial-value problem, it must satisfy both the differential equation and the initial condition. To show that [latex]y[/latex] satisfies the differential equation, we start by calculating [latex]{y}^{\prime }[/latex]. This gives [latex]{y}^{\prime }=-4{e}^{-2t}+{e}^{t}[/latex]. Next we substitute both [latex]y[/latex] and [latex]{y}^{\prime }[/latex] into the left-hand side of the differential equation and simplify:
This is equal to the right-hand side of the differential equation, so [latex]y=2{e}^{-2t}+{e}^{t}[/latex] solves the differential equation. Next we calculate [latex]y\left(0\right)\text{:}[/latex]
This result verifies the initial value. Therefore the given function satisfies the initial-value problem.
Watch the following video to see the worked solution to Example: Verifying a Solution to an Initial-Value Problem
For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.
First verify that [latex]y[/latex] solves the differential equation. Then check the initial value.
In the previous example, the initial-value problem consisted of two parts. The first part was the differential equation [latex]{y}^{\prime }+2y=3{e}^{x}[/latex], and the second part was the initial value [latex]y\left(0\right)=3[/latex]. 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 [latex]C[/latex]. The family of solutions to the differential equation in the example is given by [latex]y=2{e}^{-2t}+C{e}^{t}[/latex]. This family of solutions is shown in Figure 2, with the particular solution [latex]y=2{e}^{-2t}+{e}^{t}[/latex] labeled.
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
We are able to integrate both sides because the y term appears by itself. Notice that there are two integration constants: [latex]{C}_{1}[/latex] and [latex]{C}_{2}[/latex]. Solving the previous equation for [latex]y[/latex] gives
Because [latex]{C}_{1}[/latex] and [latex]{C}_{2}[/latex] are both constants, [latex]{C}_{2}-{C}_{1}[/latex] is also a constant. We can therefore define [latex]C={C}_{2}-{C}_{1}[/latex], which leads to the equation
Next we determine the value of [latex]C[/latex]. To do this, we substitute [latex]x=0[/latex] and [latex]y=5[/latex] into our aforementioned equation and solve for [latex]C\text{:}[/latex]
Now we substitute the value [latex]C=2[/latex] into our equation. The solution to the initial-value problem is [latex]y=3{e}^{x}+\frac{1}{3}{x}^{3}-4x+2[/latex].
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.
Watch the following video to see the worked solution to Example: Verifying a Solution to an Initial-Value Problem
For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.
First take the antiderivative of both sides of the differential equation. Then substitute [latex]x=0[/latex] and [latex]y=8[/latex] into the resulting equation and solve for [latex]C[/latex].
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 [latex]F=ma[/latex], where [latex]F[/latex] represents force, [latex]m[/latex] represents mass, and [latex]a[/latex] represents acceleration), to derive an equation that can be solved.
In Figure 3. 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, [latex]g[/latex], is approximately [latex]9.8{\text{m/s}}^{2}[/latex]. We introduce a frame of reference, where Earth’s surface is at a height of 0 meters. Let [latex]v\left(t\right)[/latex] represent the velocity of the object in meters per second. If [latex]v\left(t\right)>0[/latex], the ball is rising, and if [latex]v\left(t\right)<0[/latex], the ball is falling (Figure 4).
Our goal is to solve for the velocity [latex]v\left(t\right)[/latex] at any time [latex]t[/latex]. To do this, we set up an initial-value problem. Suppose the mass of the ball is [latex]m[/latex], where [latex]m[/latex] 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 [latex]\left(F=ma\right)[/latex]. Acceleration is the derivative of velocity, so [latex]a\left(t\right)={v}^{\prime }\left(t\right)[/latex]. Therefore the force acting on the baseball is given by [latex]F=m{v}^{\prime }\left(t\right)[/latex]. 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 [latex]{F}_{g}=\text{-}mg[/latex], since this force acts in a downward direction. Therefore we obtain the equation [latex]F={F}_{g}[/latex], which becomes [latex]m{v}^{\prime }\left(t\right)=\text{-}mg[/latex]. Dividing both sides of the equation by [latex]m[/latex] gives the equation
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 [latex]t=0[/latex]. This is denoted by [latex]v\left(0\right)={v}_{0}[/latex].
Example: Velocity of a Moving Baseball
A baseball is thrown upward from a height of [latex]3[/latex] meters above Earth’s surface with an initial velocity of [latex]10\text{m/s}[/latex], and the only force acting on it is gravity. The ball has a mass of [latex]0.15\text{kg}[/latex] at Earth’s surface.
Find the velocity [latex]v\left(t\right)[/latex] of the baseball at time [latex]t[/latex].
What is its velocity after [latex]2[/latex] seconds?
Show Solution
From the preceding discussion, the differential equation that applies in this situation is
where [latex]g=9.8{\text{m/s}}^{2}[/latex]. The initial condition is [latex]v\left(0\right)={v}_{0}[/latex], where [latex]{v}_{0}=10\text{m/s}\text{.}[/latex] Therefore the initial-value problem is [latex]{v}^{\prime }\left(t\right)=-9.8{\text{m/s}}^{2},v\left(0\right)=10\text{m/s}\text{.}[/latex]
The first step in solving this initial-value problem is to take the antiderivative of both sides of the differential equation. This gives
The units of velocity are meters per second. Since the answer is negative, the object is falling at a speed of [latex]9.6\text{m/s}\text{.}[/latex]
try it
Suppose a rock falls from rest from a height of [latex]100[/latex] meters and the only force acting on it is gravity. Find an equation for the velocity [latex]v\left(t\right)[/latex] as a function of time, measured in meters per second.
Hint
What is the initial velocity of the rock? Use this with the differential equation in the example: Velocity of a Moving Baseball to form an initial-value problem, then solve for [latex]v\left(t\right)[/latex].
Show Solution
[latex]v\left(t\right)=-9.8t[/latex]
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 [latex]s\left(t\right)[/latex] 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 [latex]{s}^{\prime }\left(t\right)=v\left(t\right)[/latex]. 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 [latex]s\left(0\right)={s}_{0}[/latex]. Together these assumptions give the initial-value problem
If the velocity function is known, then it is possible to solve for the position function as well.
Example: Height of a Moving Baseball
A baseball is thrown upward from a height of [latex]3[/latex] meters above Earth’s surface with an initial velocity of [latex]10\text{m/s}[/latex], and the only force acting on it is gravity. The ball has a mass of [latex]0.15[/latex] kilogram at Earth’s surface.
Find the position [latex]s\left(t\right)[/latex] of the baseball at time [latex]t[/latex].
What is its height after [latex]2[/latex] seconds?
Show Solution
We already know the velocity function for this problem is [latex]v\left(t\right)=-9.8t+10[/latex]. The initial height of the baseball is [latex]3[/latex] meters, so [latex]{s}_{0}=3[/latex]. Therefore the initial-value problem for this example is
To solve the initial-value problem, we first find the antiderivatives:
Therefore the baseball is [latex]3.4[/latex] meters above Earth’s surface after [latex]2[/latex] seconds. It is worth noting that the mass of the ball cancelled out completely in the process of solving the problem.