maths.free › Calculus › 4. Introduction to Differential Equations › Basics of Differential Equations
Basics of Differential Equations
Identify the order of a differential equation.
General Differential Equations
Consider the equation \({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\) and \(y\text{:}\ y\) is an unknown function of \(x.\) Furthermore, the left-hand side of the equation is the derivative of \(y.\) Therefore we can interpret this equation as follows: Start with some function \(y=f(x)\) and take its derivative. The answer must be equal to \(3{x}^{2}.\) What function has a derivative that is equal to \(3{x}^{2}?\) One such function is \(y={x}^{3},\) so this function is considered a solution to a differential equation.
Some examples of differential equations and their solutions appear in .
| Equation | Solution |
| \(y'=2x\) | \(y={x}^{2}\) |
| \(y'+3y=6x+11\) | \(y={e}^{-3x}+2x+3\) |
| \(y''-3y'+2y=24{e}^{-2x}\) | \(y=3{e}^{x}-4{e}^{2x}+2{e}^{-2x}\) |
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\) is also a solution to the first differential equation in . 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
Try it.
Verify that the function \(y={e}^{-3x}+2x+3\) is a solution to the differential equation \({y}^{'}+3y=6x+11.\)
Solution
To verify the solution, we first calculate \({y}^{'}\) using the chain rule for derivatives. This gives \({y}^{'}=-3{e}^{-3x}+2.\) Next we substitute \(y\) and \({y}^{'}\) into the left-hand side of the differential equation:
\[(-3{e}^{-3x}+2)+3({e}^{-3x}+2x+3).\]The resulting expression can be simplified by first distributing to eliminate the parentheses, giving
\[-3{e}^{-3x}+2+3{e}^{-3x}+6x+9.\]Combining like terms leads to the expression \(6x+11,\) which is equal to the right-hand side of the differential equation. This result verifies that \(y={e}^{-3x}+2x+3\) is a solution of the differential equation.
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.
Condensed — the full section is in OpenStax Calculus Volume 2.
General and Particular Solutions
We already noted that the differential equation \({y}^{'}=2x\) has at least two solutions: \(y={x}^{2}\) and \(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,\) where \(C\) represents any constant, is a solution as well. The reason is that the derivative of \({x}^{2}+C\) is \(2x,\) regardless of the value of \(C.\) It can be shown that any solution of this differential equation must be of the form \(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 . (Note: in this graph we used even integer values for \(C\) ranging between \(-4\) and \(4.\) In fact, there is no restriction on the value of \(C;\) it can be an integer or not.)
In this example, we are free to choose any solution we wish; for example, \(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.
Example
Try it.
Find the particular solution to the differential equation \({y}^{'}=2x\) passing through the point \((2,7).\)
Solution
Any function of the form \(y={x}^{2}+C\) is a solution to this differential equation. To determine the value of \(C,\) we substitute the values \(x=2\) and \(y=7\) into this equation and solve for \(C\text{:}\)
\[\begin{array}{l} \\ \\ y={x}^{2}+C \\ 7={2}^{2}+C=4+C \\ C=3.\end{array}\]Therefore the particular solution passing through the point \((2,7)\) is \(y={x}^{2}+3.\)
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,\) then \(y(3)=7\) is an initial value, and when taken together, these equations form an initial-value problem. The differential equation \({y}^{″}-3{y}^{'}+2y=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\) and \({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,\) which represents time. Thus, a value of \(t=0\) represents the beginning of the problem.
Example
Try it.
Verify that the function \(y=2{e}^{-2t}+{e}^{t}\) is a solution to the initial-value problem
\[{y}^{'}+2y=3{e}^{t},\ y(0)=3.\]Solution
For a function to satisfy an initial-value problem, it must satisfy both the differential equation and the initial condition. To show that \(y\) satisfies the differential equation, we start by calculating \({y}^{'}.\) This gives \({y}^{'}=-4{e}^{-2t}+{e}^{t}.\) Next we substitute both \(y\) and \({y}^{'}\) into the left-hand side of the differential equation and simplify:
\[\begin{array}{ll}{y}^{'}+2y & =(-4{e}^{-2t}+{e}^{t})+2(2{e}^{-2t}+{e}^{t}) \\ & =-4{e}^{-2t}+{e}^{t}+4{e}^{-2t}+2{e}^{t} \\ & =3{e}^{t}.\end{array}\]This is equal to the right-hand side of the differential equation, so \(y=2{e}^{-2t}+{e}^{t}\) solves the differential equation. Next we calculate \(y(0)\text{:}\)
\[\begin{array}{ll}y(0) & =2{e}^{-2(0)}+{e}^{0} \\ & =2+1 \\ & =3.\end{array}\]This result verifies the initial value. Therefore the given function satisfies the initial-value problem.
Condensed — the full section is in OpenStax Calculus Volume 2.
Key Concepts
- A differential equation is an equation involving a function \(y=f(x)\) and one or more of its derivatives. A solution is a function \(y=f(x)\) that satisfies the differential equation when \(f\) and its derivatives are substituted into the equation.
- The order of a differential equation is the highest order of any derivative of the unknown function that appears in the equation.
- A differential equation coupled with an initial value is called an initial-value problem. To solve an initial-value problem, first find the general solution to the differential equation, then determine the value of the constant. Initial-value problems have many applications in science and engineering.
Basics of Differential Equations
Determine the order of the following differential equations.
Verify that the following functions are solutions to the given differential equation.
Verify the following general solutions and find the particular solution.
For the following problems, find the general solution to the differential equation.
Solve the following initial-value problems starting from \(y(0)=1\) and \(y(0)=-1.\) Draw both solutions on the same graph.
Solve the following initial-value problems starting from \({y}_{0}=10.\) At what time does \(y\) increase to \(100\) or drop to \(1?\)
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)=-10\) to \(y(t=0)=10\) increasing by \(2.\) Is there some critical point where the behavior of the solution begins to change?
Practice (40)
Try each one on paper first. Reveal the answer to check; verified ones can be opened in the solver for every step.
-
Verify that the function \(y={e}^{-3x}+2x+3\) is a solution to the differential equation \({y}^{'}+3y=6x+11.\)
Jiżvelaw it-tweġiba
To verify the solution, we first calculate \({y}^{'}\) using the chain rule for derivatives. This gives \({y}^{'}=-3{e}^{-3x}+2.\) Next we substitute \(y\) and \({y}^{'}\) into the left-hand side of the differential equation:
\[(-3{e}^{-3x}+2)+3({e}^{-3x}+2x+3).\]The resulting expression can be simplified by first distributing to eliminate the parentheses, giving
\[-3{e}^{-3x}+2+3{e}^{-3x}+6x+9.\]Combining like terms leads to the expression \(6x+11,\) which is equal to the right-hand side of the differential equation. This result verifies that \(y={e}^{-3x}+2x+3\) is a solution of the differential equation.
-
Verify that \(y=2{e}^{3x}-2x-2\) is a solution to the differential equation \({y}^{'}-3y=6x+4.\)
-
What is the order of each of the following differential equations?
- \({y}^{'}-4y={x}^{2}-3x+4\)
- \({x}^{2}y\text{‴}-3x{y}^{″}+x{y}^{'}-3y=\text{sin}\ x\)
- \(\frac{4}{x}{y}^{(4)}-\frac{6}{{x}^{2}}{y}^{″}+\frac{12}{{x}^{4}}y={x}^{3}-3{x}^{2}+4x-12\)
Jiżvelaw it-tweġiba
- The highest derivative in the equation is \({y}^{'},\) so the order is \(1.\)
- The highest derivative in the equation is \(y\text{‴}\text{,}\) so the order is \(3.\)
- The highest derivative in the equation is \({y}^{(4)},\) so the order is \(4.\)
-
What is the order of the following differential equation?
\[({x}^{4}-3x){y}^{(5)}-(3{x}^{2}+1){y}^{'}+3y=\text{sin}\ x\ \text{cos}\ x\]Jiżvelaw it-tweġiba
\(5\)
-
Find the particular solution to the differential equation \({y}^{'}=2x\) passing through the point \((2,7).\)
Jiżvelaw it-tweġiba
Any function of the form \(y={x}^{2}+C\) is a solution to this differential equation. To determine the value of \(C,\) we substitute the values \(x=2\) and \(y=7\) into this equation and solve for \(C\text{:}\)
\[\begin{array}{l} \\ \\ y={x}^{2}+C \\ 7={2}^{2}+C=4+C \\ C=3.\end{array}\]Therefore the particular solution passing through the point \((2,7)\) is \(y={x}^{2}+3.\)
-
Find the particular solution to the differential equation
\[{y}^{'}=4x+3\]passing through the point \((1,7),\) given that \(y=2{x}^{2}+3x+C\) is a general solution to the differential equation.
Jiżvelaw it-tweġiba
\(y=2{x}^{2}+3x+2\)
-
Verify that the function \(y=2{e}^{-2t}+{e}^{t}\) is a solution to the initial-value problem
\[{y}^{'}+2y=3{e}^{t},\ y(0)=3.\]Jiżvelaw it-tweġiba
For a function to satisfy an initial-value problem, it must satisfy both the differential equation and the initial condition. To show that \(y\) satisfies the differential equation, we start by calculating \({y}^{'}.\) This gives \({y}^{'}=-4{e}^{-2t}+{e}^{t}.\) Next we substitute both \(y\) and \({y}^{'}\) into the left-hand side of the differential equation and simplify:
\[\begin{array}{ll}{y}^{'}+2y & =(-4{e}^{-2t}+{e}^{t})+2(2{e}^{-2t}+{e}^{t}) \\ & =-4{e}^{-2t}+{e}^{t}+4{e}^{-2t}+2{e}^{t} \\ & =3{e}^{t}.\end{array}\]This is equal to the right-hand side of the differential equation, so \(y=2{e}^{-2t}+{e}^{t}\) solves the differential equation. Next we calculate \(y(0)\text{:}\)
\[\begin{array}{ll}y(0) & =2{e}^{-2(0)}+{e}^{0} \\ & =2+1 \\ & =3.\end{array}\]This result verifies the initial value. Therefore the given function satisfies the initial-value problem.
-
Verify that \(y=3{e}^{2t}+4\ \text{sin}\ t\) is a solution to the initial-value problem
\[{y}^{'}-2y=4\ \text{cos}\ t-8\ \text{sin}\ t,\ y(0)=3.\] -
Solve the following initial-value problem:
\[{y}^{'}=3{e}^{x}+{x}^{2}-4,\ y(0)=5.\]Jiżvelaw it-tweġiba
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
\[\int {y}^{'}dx=\int (3{e}^{x}+{x}^{2}-4)\ dx,\]namely,
\[y+{C}_{1}=3{e}^{x}+\frac{1}{3}{x}^{3}-4x+{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}\) and \({C}_{2}.\) Solving for \(y\) gives
\[y=3{e}^{x}+\frac{1}{3}{x}^{3}-4x+{C}_{2}-{C}_{1}.\]Because \({C}_{1}\) and \({C}_{2}\) are both constants, \({C}_{2}-{C}_{1}\) is also a constant. We can therefore define \(C={C}_{2}-{C}_{1},\) which leads to the equation
\[y=3{e}^{x}+\frac{1}{3}{x}^{3}-4x+C.\]Next we determine the value of \(C.\) To do this, we substitute \(x=0\) and \(y=5\) into and solve for \(C\text{:}\)
\[\begin{array}{lll} \\ 5 & = & 3{e}^{0}+\frac{1}{3}{0}^{3}-4(0)+C \\ 5 & = & 3+C \\ C & = & 2.\end{array}\]Now we substitute the value \(C=2\) into . The solution to the initial-value problem is \(y=3{e}^{x}+\frac{1}{3}{x}^{3}-4x+2.\)
-
Solve the initial-value problem
\[{y}^{'}={x}^{2}-4x+3-6{e}^{x},\ y(0)=8.\]Jiżvelaw it-tweġiba
\(y=\frac{1}{3}{x}^{3}-2{x}^{2}+3x-6{e}^{x}+14\)
-
A baseball is thrown upward from a height of \(3\) meters above Earth’s surface with an initial velocity of \(10\ \text{m/s},\) and the only force acting on it is gravity. The ball has a mass of \(0.15\ \text{kg}\).
- Find the velocity \(v(t)\) of the baseball at time \(t.\)
- What is its velocity after \(2\) seconds?
Jiżvelaw it-tweġiba
- From the preceding discussion, the differential equation that applies in this situation is
\[{v}^{'}(t)=\text{-}g,\]
where \(g=9.8{\ \text{m/s}}^{2}.\) The initial condition is \(v(0)={v}_{0},\) where \({v}_{0}=10\ \text{m/s}\text{.}\) Therefore the initial-value problem is \({v}^{'}(t)=-9.8{\ \text{m/s}}^{2},v(0)=10\ \text{m/s}\text{.}\)
The first step in solving this initial-value problem is to take the antiderivative of both sides of the differential equation. This gives
\[\begin{array}{lll}\int {v}^{'}(t)\ dt & = & \int -9.8dt \\ v(t) & = & -9.8t+C.\end{array}\]
The next step is to solve for \(C.\) To do this, substitute \(t=0\) and \(v(0)=10\text{:}\)
\[\begin{array}{lll}v(t) & = & -9.8t+C \\ v(0) & = & -9.8(0)+C \\ 10 & = & C.\end{array}\]
Therefore \(C=10\) and the velocity function is given by \(v(t)=-9.8t+10.\) - To find the velocity after \(2\) seconds, substitute \(t=2\) into \(v(t).\)
\[\begin{array}{lll}v(t) & = & -9.8t+10 \\ v(2) & = & -9.8(2)+10 \\ v(2) & = & -9.6.\end{array}\]
The units of velocity are meters per second. Since the answer is negative, the object is falling at a speed of \(9.6\ \text{m/s}\text{.}\)
-
Suppose a rock falls from rest from a height of \(100\) meters and the only force acting on it is gravity. Find an equation for the velocity \(v(t)\) as a function of time, measured in meters per second.
Jiżvelaw it-tweġiba
\(v(t)=-9.8t\)
-
A baseball is thrown upward from a height of \(3\) meters above Earth’s surface with an initial velocity of \(10\ \text{m/s},\) and the only force acting on it is gravity. The ball has a mass of \(0.15\) kilogram.
- Find the position \(s(t)\) of the baseball at time \(t.\)
- What is its height after \(2\) seconds?
Jiżvelaw it-tweġiba
- We already know the velocity function for this problem is \(v(t)=-9.8t+10.\) The initial height of the baseball is \(3\) meters, so \({s}_{0}=3.\) Therefore the initial-value problem for this example is
To solve the initial-value problem, we first find the antiderivatives:
\[\begin{array}{lll}\int {s}^{'}(t)\ dt & = & \int -9.8t+10dt \\ s(t) & = & -4.9{t}^{2}+10t+C.\end{array}\]
Next we substitute \(t=0\) and solve for \(C\text{:}\)
\[\begin{array}{lll}s(t) & = & -4.9{t}^{2}+10t+C \\ s(0) & = & -4.9{(0)}^{2}+10(0)+C \\ 3 & = & C.\end{array}\]
Therefore the position function is \(s(t)=-4.9{t}^{2}+10t+3.\) - The height of the baseball after \(2\ \text{s}\) is given by \(s(2)\text{:}\)
\[\begin{array}{ll}s(2) & =-4.9{(2)}^{2}+10(2)+3 \\ & =-4.9(4)+23 \\ & =3.4.\end{array}\]
Therefore the baseball is \(3.4\) meters above Earth’s surface after \(2\) seconds. It is worth noting that the mass of the ball cancelled out completely in the process of solving the problem.
-
\({y}^{'}+y=3{y}^{2}\)
Jiżvelaw it-tweġiba
\(1\)
-
\({({y}^{'})}^{2}={y}^{'}+2y\)
-
\(y\text{‴}+{y}^{″}{y}^{'}=3{x}^{2}\)
Jiżvelaw it-tweġiba
\(3\)
-
\({y}^{'}={y}^{″}+3{t}^{2}\)
-
\(\frac{dy}{dt}=t\)
Jiżvelaw it-tweġiba
\(1\)
-
\(\frac{dy}{dx}+\frac{{d}^{2}y}{d{x}^{2}}=3{x}^{4}\)
-
\({(\frac{dy}{dt})}^{2}+8\frac{dy}{dt}+3y=4t\)
Jiżvelaw it-tweġiba
\(1\)
-
\(y=\frac{{x}^{3}}{3}\) solves \({y}^{'}={x}^{2}\)
-
\(y=2{e}^{\text{-}x}+x-1\) solves \({y}^{'}=x-y\)
-
\(y={e}^{3x}-\frac{{e}^{x}}{2}\) solves \({y}^{'}=3y+{e}^{x}\)
-
\(y=\frac{1}{1-x}\) solves \({y}^{'}={y}^{2}\)
-
\(y={e}^{{x}^{2}\text{/}2}\) solves \({y}^{'}=xy\)
-
\(y=4+\text{ln}\ x\) solves \(x{y}^{'}=1\)
-
\(y=3-x+x\ \text{ln}\ x\) solves \({y}^{'}=\text{ln}\ x\)
-
\(y=2{e}^{x}-x-1\) solves \({y}^{'}=y+x\)
-
\(y={e}^{x}+\frac{\text{sin}\ x}{2}-\frac{\text{cos}\ x}{2}\) solves \({y}^{'}=\text{cos}\ x+y\)
-
\(y=\pi {e}^{\text{-}\text{cos}\ x}\) solves \({y}^{'}=y\ \text{sin}\ x\)
-
Find the particular solution to the differential equation \({y}^{'}=4{x}^{2}\) that passes through \((-3,-30),\) given that \(y=C+\frac{4{x}^{3}}{3}\) is a general solution.
-
Find the particular solution to the differential equation \({y}^{'}=3{x}^{3}\) that passes through \((1,4.75),\) given that \(y=C+\frac{3{x}^{4}}{4}\) is a general solution.
Jiżvelaw it-tweġiba
\(y=4+\frac{3{x}^{4}}{4}\)
-
Find the particular solution to the differential equation \({y}^{'}=3{x}^{2}y\) that passes through \((0,12),\) given that \(y=C{e}^{{x}^{3}}\) is a general solution.
-
Find the particular solution to the differential equation \({y}^{'}=2xy\) that passes through \((0,\frac{1}{2}),\) given that \(y=C{e}^{{x}^{2}}\) is a general solution.
Jiżvelaw it-tweġiba
\(y=\frac{1}{2}{e}^{{x}^{2}}\)
-
Find the particular solution to the differential equation \({y}^{'}={(2xy)}^{2}\) that passes through \((1,-\frac{1}{2}),\) given that \(y=-\frac{3}{C+4{x}^{3}}\) is a general solution.
-
Find the particular solution to the differential equation \({y}^{'}{x}^{2}=y\) that passes through \((1,\frac{2}{e}),\) given that \(y=C{e}^{\text{-}1\text{/}x}\) is a general solution.
Jiżvelaw it-tweġiba
\(y=2{e}^{\text{-}1\text{/}x}\)
-
Find the particular solution to the differential equation \(8\frac{dx}{dt}=-2\ \text{cos}(2t)-\text{cos}(4t)\) that passes through \((\pi ,\pi ),\) given that \(x=C-\frac{1}{8}\text{sin}(2t)-\frac{1}{32}\text{sin}(4t)\) is a general solution.
-
Find the particular solution to the differential equation \(\frac{du}{dt}=\text{tan}\ u\) that passes through \((1,\frac{\pi }{2}),\) given that \(u={\text{sin}}^{-1}({e}^{C+t})\) is a general solution.
Jiżvelaw it-tweġiba
\(u={\text{sin}}^{-1}({e}^{-1+t})\)
-
Find the particular solution to the differential equation \(\frac{dy}{dt}={e}^{(t+y)}\) that passes through \((1,0),\) given that \(y=\text{-}\text{ln}(C-{e}^{t})\) is a general solution.
-
Find the particular solution to the differential equation \({y}^{'}(1-{x}^{2})=1+y\) that passes through \((0,-2),\) given that \(y=C\frac{\sqrt{x+1}}{\sqrt{1-x}}-1\) is a general solution.
Jiżvelaw it-tweġiba
\(y=-\frac{\sqrt{x+1}}{\sqrt{1-x}}-1\)
Symbols used here
Instantaneous rate of change; slope of the graph.
Prime notation for derivatives with respect to x (or t).
Ratio of a circle's circumference to its diameter, 3.14159…
2.71828…, the base whose exponential is its own derivative.
Not a number: "grows without bound" in limits and intervals.
Ratios of sides in a right triangle; coordinates on the unit circle.
The exponent b must be raised to for x; ln uses base e.
Add a_k for k = 1 up to n.
The value f(x) approaches as x approaches a.
Antiderivative (indefinite) or signed area from a to b (definite).
Constants of integration fixed by initial conditions.
How to: Basics of Differential Equations
- Identify the order of a differential equation.
- Explain what is meant by a solution to a differential equation.
- Distinguish between the general solution and a particular solution of a differential equation.
- Identify an initial-value problem.
- Identify whether a given function is a solution to a differential equation or an initial-value problem.
- The highest derivative in the equation is
- The highest derivative in the equation is
- The highest derivative in the equation is
Questions people ask
What is a derivative in one sentence?
The slope of the graph at a point — the rate at which the output is changing there. Speed is the derivative of position.
What is an integral in one sentence?
The accumulated total of a rate — the area under the curve. Distance travelled is the integral of speed.
Why are derivatives and integrals opposites?
That is the fundamental theorem of calculus: accumulating a rate and then measuring how fast the accumulation grows gets you back the rate. Integration undoes differentiation up to a constant.
When do I use substitution and when integration by parts?
Substitution when part of the integrand is the derivative of another part (u and du both present). Parts when the integrand is a product of two unrelated kinds of function — a polynomial times an exponential, log or trig function.
Ipprova tiegħek stess
Parts of this page are adapted from OpenStax Calculus Volume 2 (CC BY-NC-SA 4.0). Condensed and re-explained here; errors are ours.
Aktar fil Calculus
LimitsDerivativesIntegralsDefinite integralsTaylor seriesSeries and sumsMaxima and minimaThe chain ruleImplicit differentiationRelated rates and optimisationIntegration techniques: substitution, parts, partial fractionsApplications of integration: area, volume, arc lengthInfinite series and convergence tests