




























































































Estude fácil! Tem muito documento disponível na Docsity
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
Esta página não é visível na pré-visualização
Não perca as partes importantes!





























































































GABRIEL NAGY
Mathematics Department, Michigan State University, East Lansing, MI, 48824.
JANUARY 13, 2015
Summary. This is an introduction to ordinary differential equations. We describe the main ideas to solve certain differential equations, like first order scalar equations, second order linear equations, and systems of linear equations. We use power series methods to solve variable coefficients second order linear equations. We introduce Laplace trans- form methods to find solutions to constant coefficients equations with generalized source functions. We provide a brief introduction to boundary value problems, Sturm-Liouville problems, and Fourier Series expansions. We end these notes solving our first partial differential equation, the Heat Equation. We use the method of separation of variables, hence solutions to the partial differential equation are obtained solving infinitely many ordinary differential equations.
x 2
x 1
x^1
x^2
b^ a
1
1.1. Linear Constant Coefficients Equations 1.1.1. Overview of Differential Equations. A differential equation is an equation, the unknown is a function, and both the function and its derivatives may appear in the equation. Differential equations are essential for a mathematical description of nature. They are at the core of many physical theories: Newton’s and Lagrange equations for classical mechanics, Maxwell’s equations for classical electromagnetism, Schr¨odinger’s equation for quantum mechanics, and Einstein’s equation for the general theory of gravitation, to mention a few of them. The following examples show how differential equations look like. (a) Newton’s second law of motion for a single particle. The unknown is the position in space of the particle, x(t), at the time t. From a mathematical point of view the unknown is a single variable vector-valued function in space. This function is usually written as x or x : R → R^3 , where the function domain is every t ∈ R, and the function range is any point in space x(t) ∈ R^3. The differential equation is
m
d^2 x dt^2
(t) = f (t, x(t)),
where the positive constant m is the mass of the particle and f : R × R^3 → R^3 is the force acting on the particle, which depends on the time t and the position in space x. This is the well-known law of motion mass times acceleration equals force. (b) The time decay of a radioactive substance. The unknown is a scalar-valued function u : R → R, where u(t) is the concentration of the radioactive substance at the time t. The differential equation is du dt (t) = −k u(t),
where k is a positive constant. The equation says the higher the material concentration the faster it decays. (c) The wave equation, which describes waves propagating in a media. An example is sound, where pressure waves propagate in the air. The unknown is a scalar-valued function of two variables u : R × R^3 → R, where u(t, x) is a perturbation in the air density at the time t and point x = (x, y, z) in space. (We used the same notation for vectors and points, although they are different type of objects.) The equation is
∂ttu(t, x) = v^2
∂xxu(t, x) + ∂yy u(t, x) + ∂zz u(t, x)
where v is a positive constant describing the wave speed, and we have used the notation ∂ to mean partial derivative. (d) The heat conduction equation, which describes the variation of temperature in a solid material. The unknown is a scalar-valued function u : R × R^3 → R, where u(t, x) is the temperature at time t and the point x = (x, y, z) in the solid. The equation is ∂tu(t, x) = k
∂xxu(t, x) + ∂yy u(t, x) + ∂zz u(t, x)
where k is a positive constant representing thermal properties of the material. The equations in examples (a) and (b) are called ordinary differential equations (ODE), since the unknown function depends on a single independent variable, t in these examples. The equations in examples (c) and (d) are called partial differential equations (PDE), since the unknown function depends on two or more independent variables, t, x, y, and z in these examples, and their partial derivatives appear in the equations. The order of a differential equation is the highest derivative order that appears in the equation. Newton’s equation in Example (a) is second order, the time decay equation in Example (b) is first order, the wave equation in Example (c) is second order is time and
space variables, and the heat equation in Example (d) is first order in time and second order in space variables.
1.1.2. Linear Equations. A good start is a precise definition of the differential equations we are about to study in this Chapter. We use primes to denote derivatives, dy dt
(t) = y′(t).
This is a compact notation and we use it when there is no risk of confusion. Definition 1.1.1. A first order ordinary differential equation in the unknown y is y′(t) = f (t, y(t)), (1.1.1) where y : R → R is the unknown function and f : R^2 → R is a given function. The equation in (1.1.1) is called linear iff the function with values f (t, y) is linear on its second argument; that is, there exist functions a, b : R → R such that y′(t) = a(t) y(t) + b(t), f (t, y) = a(t) y + b(t). (1.1.2)
A different sign convention for Eq. (1.1.2) may be found in the literature. For example, Boyce-DiPrima [3] writes it as y′^ = −a y + b. The sign choice in front of function a is just a convention. Some people like the negative sign, because later on, when they write the equation as y′^ + a y = b, they get a plus sign on the left-hand side. In any case, we stick here to the convention y′^ = ay + b. A linear first order equation has constant coefficients iff both functions a and b in Eq. (1.1.2) are constants. Otherwise, the equation has variable coefficients.
Example 1.1.1: (a) An example of a first order linear ODE is the equation y′(t) = 2 y(t) + 3. In this case, the right-hand side is given by the function f (t, y) = 2y + 3, where we can see that a(t) = 2 and b(t) = 3. Since these coefficients do not depend on t, this is a constant coefficients equation. (b) Another example of a first order linear ODE is the equation
y′(t) = −
t
y(t) + 4t.
In this case, the right hand side is given by the function f (t, y) = − 2 y/t + 4t, where a(t) = − 2 /t and b(t) = 4t. Since the coefficients are nonconstant functions of t, this is a variable coefficients equation. (^) C
A function y : D ⊂ R → R is solution of the differential equation in (1.1.1) iff the equation is satisfied for all values of the independent variable t in the domain D of the function y.
Example 1.1.2: Show that y(t) = e^2 t^ −
is solution of the equation y′(t) = 2 y(t) + 3.
Solution: We need to compute the left and right-hand sides of the equation and verify they agree. On the one hand we compute y′(t) = 2e^2 t. On the other hand we compute
2 y(t) + 3 = 2
e^2 t^ −
We conclude that y′(t) = 2 y(t) + 3 for all t ∈ R. C
Proof of Theorem 1.1.2: The integrating factor method is the key idea in the proof of Theorem 1.1.2. Write the differential equation with the unknown function on one side only, y′(t) − a y(t) = b, and then multiply the differential equation by the exponential e−at, where the exponent is negative the constant coefficient a in the differential equation multiplied by t. This exponential function is an integrating factor for the differential equation. The reason to choose this particular function, e−at, is explained in Lemma 1.1.3, below. The result is [ y′(t) − a y(t)
e−at^ = b e−at^ ⇔ e−at^ y′(t) − a e−at^ y(t) = b e−at. This exponential is chosen because of the following property, −a e−at^ =
e−ay^
Introducing this property into the differential equation we get e−at^ y′(t) +
e−at
y(t) = b e−at. Now the product rule for derivatives implies that the left-hand side above is a total derivative, [ e−at^ y(t)
= b e−at. At this point we can go one step further, writing the right-hand side in the differential equation as b e−at^ =
b a
e−at
. We obtain [ e−at^ y(t) +
b a e−at
y(t) +
b a
e−at
Hence, the whole differential equation is a total derivative. The whole differential equation is the total derivative of the function,
ψ(t, y(t)) =
y(t) +
b a
e−at,
called potential function. The equation now has the form dψ dt
(t, y(t)) = 0.
It is simple to integrate the differential equation when written using a potential function,
ψ(t, y(t)) = c ⇔
y(t) +
b a
e−at^ = c.
Simple algebraic manipulations imply that
y(t) = c eat^ − b a
This establishes the Theorem. Remarks: (a) Why do we start the Proof of Theorem 1.1.2 multiplying the equation by the function e−at? At first sight it is not clear where this idea comes from. In Lemma 1.1.3 we show that functions proportional to e−at^ are the only functions having the property needed to be an integrating factor. In Lemma 1.1.3 we multiply the differential equation by a function μ and we find that this function must be μ(t) = c e−at. (b) Since the function μ is used to multiply the original differential equation, we can freely choose any normalization for μ, such as μ(0) = 1. Any other integrating factor differs from this μ by a multiplicative constant. (c) It is important we understand the origin of the integrating factor e−at^ in order to extend results from constant coefficients equations to variable coefficients equations.
The following Lemma states that those functions proportional to e−at^ are integrating factors for the differential equation in (1.1.3).
Lemma 1.1.3 (Integrating Factor). Given any differentiable function y and constant a, every function μ satisfying (y′^ − ay)μ = (yμ)′,
must be given by the expression below, for any c ∈ R,
μ(t) = c e−at.
Proof of Lemma 1.1.3: Multiply Eq. (1.1.3) by a nonvanishing but otherwise arbitrary function with values μ(t), and order the terms in the equation as follows
μ(y′^ − a y) = b μ. (1.1.5)
The key idea of the proof is to choose the function μ such that the following equation holds
μ(y′^ − a y) =
μy
This Eq. (1.1.6) is an equation for μ. To see that this is the case, rewrite it as follows,
μ y′^ − a μy = μ′^ y + μ y′^ ⇔ −a μy = μ′^ y ⇔ −a μ = μ′.
The function y does not appear on the equation on the far right above, making it an equation for μ. So the same is true for Eq. (1.1.6). The equation above can be solved for μ as follows:
μ′ μ
= −a ⇔
ln(μ)
= −a.
Integrate the equation above,
ln(μ) = −at + c 0 ⇔ eln(μ)^ = e−at+c^0 = e−atec^0 ,
where c 0 is an arbitrary constant. Denoting c = ec^0 , the integrating factor is the nonvanish- ing function
μ(t) = c e−at.
This establishes the Lemma. We first solve the problem in Example 1.1.3 below using the formula in Theorem 1.1.2.
Example 1.1.3: Find all solutions to the constant coefficient equation
y′^ = 2y + 3 (1.1.7)
Solution: The equation above is the particular case of Eq. (1.1.3) given by a = 2 and b = 3. Therefore, using these values in the expression for the solution given in Eq. (1.1.4) we obtain
y(t) = ce^2 t^ −
We now solve the same problem above following the steps given in the proof of Theo- rem 1.1.2. In this way we see how the ideas in the proof of the Theorem work in a particular example.
Example 1.1.4: Find all solutions to the constant coefficient equation
y′^ = 2y + 3 (1.1.8)
Proof of Theorem 1.1.5: The general solution of the differential equation in (1.1.9) is given in Eq. (1.1.4) for any choice of the integration constant c,
y(t) = c eat^ − b a
The initial condition determines the value of the constant c, as follows
y 0 = y(t 0 ) = c eat^0 −
b a
⇔ c =
y 0 +
b a
e−at^0.
Introduce this expression for the constant c into the differential equation in Eq. (1.1.9),
y(t) =
y 0 +
b a
ea(t−t^0 )^ −
b a
This establishes the Theorem.
Example 1.1.5: Find the unique solution of the initial value problem
y′^ = 2y + 3, y(0) = 1. (1.1.11)
Solution: Every solution of the differential equation is given by y(t) = ce^2 t^ − (3/2), where c is an arbitrary constant. The initial condition in Eq. (1.1.11) determines the value of c,
1 = y(0) = c −
⇔ c =
Then, the unique solution to the IVP above is y(t) =
e^2 t^ −
Example 1.1.6: Find the solution y to the initial value problem
y′^ = − 3 y + 1, y(0) = 1.
Solution: Write the differential equation as y′^ + 3 y = 1. Multiplying the equation by the exponential e^3 t^ converts the left-hand side above into a total derivative,
e^3 ty′^ + 3 e^3 t^ y = e^3 t^ ⇔ e^3 ty′^ +
e^3 t
y = e^3 t.
This is the key idea, because the derivative of a product implies [ e^3 t^ y
= e^3 t.
The exponential e^3 t^ is an integrating factor. Integrate on both sides of the equation,
e^3 t^ y =
e^3 t^ + c.
So every solution of the differential equation above is given by
y(t) = c e−^3 t^ +
, c ∈ R.
The initial condition y(0) = 2 selects only one solution:
1 = y(0) = c +
⇒ c =
We conclude that y(t) =
e−^3 t^ +
Notes. This section corresponds to Boyce-DiPrima [3] Section 2.1, where both constant and variable coefficient equations are studied. Zill and Wright give a more concise exposition in [17] Section 2.3, and a one page description is given by Simmons in [10] in Section 2.10.
1.1.5. Exercises.
1.1.1.- Verify that y(t) = (t + 2) e^2 t^ is solu- tion of the IVP y′^ = 2y + e^2 t, y(0) = 2.
1.1.2.- Follow the steps below to find all so- lutions of y′^ = − 4 y + 2 (a) Find the integrating factor μ. (b) Write the equations as a total de- rivative of a function ψ, that is y′^ = − 4 y + 2 ⇔ ψ′^ = 0. (c) Integrate the equation for ψ. (d) Compute y using part (c).
1.1.3.- Find all solutions of y′^ = 2y + 5
1.1.4.- Find the solution of the IVP y′^ = − 4 y + 2, y(0) = 5.
1.1.5.- Find the solution of the IVP dy dt (t) = 3 y(t) − 2 , y(1) = 1.
1.1.6.- Express the differential equation y′^ = 6 y + 1 (1.1.12) as a total derivative of a potential func- tion ψ(t, y), that is, find ψ satisfying y′^ = 6 y + 1 ⇔ ψ′^ = 0. Integrate the equation for the poten- tial function ψ to find all solutions y of Eq. (1.1.12).
1.1.7.- Find the solution of the IVP y′^ = 6 y + 1, y(0) = 1.
One way to proceed at this point is to rewrite the right-hand side above in terms of its
primitive function, B(t) =
e−A(t)^ b(t) dt, that is, [ e−A(t)y
= B′(t) ⇔
e−A(t)y − B(t)
As in the constant coefficient case, the whole differential equation has been rewritten as the total derivative of a function, in this case,
ψ(t, y(t)) = e−A(t)^ y(t) −
e−A(t)^ b(t) dt,
called potential function. The differential equation now has the form
dψ dt
(t, y(t)) = 0.
It is simple to integrate the differential equation when written using a potential function,
ψ(t, y(t)) = c ⇔ e−A(t)^ y(t) −
e−A(t)^ b(t) dt = c.
For each value of the constant c ∈ R we have the solution
y(t) = c eA(t)^ + eA(t)
e−A(t)^ b(t) dt.
This establishes the Theorem. Lemma 1.1.3 can be generalized to the variable coefficient case, henceforth stating that the integrating factor μ(t) = e−A(t)^ describes all possible integrating factors for Eq. (1.2.1).
Lemma 1.2.2 (Integrating Factor). Given any differentiable function y and integrable function a, every function μ satisfying
(y′^ − ay)μ = (yμ)′,
must be given in terms of any primitive of function a, A(t) =
a(t) dt, as follows,
μ(t) = e−A(t).
Proof of Lemma 1.2.2: Multiply Eq. (1.2.1) by a non-vanishing, but otherwise arbitrary, function with values μ(t), μ(y′^ − a(t) y) = b(t) μ. (1.2.3)
The key idea of the proof is to choose the function μ such that the following equation holds
μ(y′^ − a(t) y) =
μy
Eq. (1.2.4) is an equation for μ, since it can be rewritten as follows,
μ y′^ − a(t) μy = μ′^ y + μ y′^ ⇔ −a(t) μy = μ′^ y ⇔ −a(t) μ = μ′.
The function y does not appear the last equation above, so it does not appear in Eq. (1.2.4) either. The equation on the far right above can be solved for μ as follows,
μ′ μ
= −a(t) ⇔
ln(μ)
= −a(t).
Integrate the equation above and denote A(t) =
a(t) dt, so A is any primitive of a,
ln(μ) = −A(t) ⇔ eln(μ)^ = e−A(t)^ ⇔ μ(t) = e−A(t).
This establishes the Lemma.
Example 1.2.1: Find all solutions y to the differential equation
y′^ =
t
y + t^5.
Solution: Rewrite the equation as
y′^ −
t
y = t^5.
Introduce a primitive of the coefficient function a(t) = 3/t,
A(t) =
t
dt = 3 ln(t) = ln(t^3 ),
so we have A(t) = ln(t^3 ). The integrating factor μ is then
μ(t) = e−A(t)^ = e−^ ln(t
(^3) ) = eln(t
− (^3) ) = t−^3 ,
hence μ(t) = t−^3. We multiply the differential equation by the integrating factor
t−^3
y′^ −
t
y − t^5
= 0 ⇔ t−^3 y′^ − 3 t−^4 y − t^2 = 0.
Since − 3 t−^4 = (t−^3 )′, we get
t−^3 y′^ + (t−^3 )′^ y − t^2 = 0 ⇔
t−^3 y − t^3 3
The potential function in this case is ψ(t, y) = t−^3 y − t^3 3
. Integrating the total derivative
we obtain
t−^3 y −
t^3 3
= c ⇒ t−^3 y = c +
t^3 3
so all solutions to the differential equation are y(t) = c t^3 +
t^6 3
, with c ∈ R. C
1.2.2. The Initial Value Problem. We now generalize Theorems 1.1.5 from constant coefficients to variable coefficients equations. We first introduce the initial value problem for a variable coefficients equation, a simple generalization of Def. 1.1.4.
Definition 1.2.3. The initial value problem (IVP) for a first order linear ODE is the following: Given functions a, b : R → R and constants t 0 , y 0 ∈ R, find y : R → R solution of
y′^ = a(t) y + b(t), y(t 0 ) = y 0. (1.2.5)
As we did with the constant coefficients IVP, the second equation in (1.2.5) is called the initial condition of the problem. We saw in Theorem 1.2.1 that the differential equation in (1.2.5) has infinitely many solutions, parametrized by a real constant c. The associated initial value problem has a unique solution though, because the initial condition fixes the constant c.
Theorem 1.2.4 (Variable coefficients IVP). Given continuous functions a, b, with do- main (t 1 , t 2 ), and constants t 0 ∈ (t 1 , t 2 ) and y 0 ∈ R, the initial value problem
y′^ = a(t) y + b(t), y(t 0 ) = y 0 , (1.2.6)
has the unique solution y : (t 1 , t 2 ) → R given by
y(t) = eA(t)
y 0 +
∫ (^) t
t 0
e−A(s)^ b(s) ds
where the function A(t) =
∫ (^) t
t 0
a(s) ds is a particular primitive of function a.
Now rewrite the equation as
y′^ +
t
y = 4t,
and multiply it by the function μ = eA(t),
eA(t)^ y′^ +
t
eA(t)^ y = 4t eA(t).
The function A in the integrating factor eA(t)^ must be the one satisfying
A′(t) =
t
⇔ A(t) =
t
dt.
In this case the differential equation can be written as
eA(t)^ y′^ + A′(t) eA(t)^ y = 4t eA(t)^ ⇔
eA(t)^ y
= 4t eA(t).
We now compute the function A,
A(t) = 2
dt t = 2 ln(|t|) ⇒ A(t) = ln(t^2 ).
This implies that eA(t)^ = t^2.
The differential equation, therefore, can be written as ( t^2 y
= 4t^3.
Integrating on both sides we obtain that
t^2 y = t^4 + c ⇒ y(t) = t^2 +
c t^2
The initial condition implies that
2 = y(1) = c + 1 ⇒ c = 1 ⇒ y(t) =
t^2
Remark: It is not needed to compute the potential function to find the solution in the Example above. However, it could be useful to see this function for the differential equation in the Example. When the equation is written as ( t^2 y
= 4t^3 ⇔ (t^2 y)′^ = (t^4 )′^ ⇔ (t^2 y − t^4 )′^ = 0,
it is simple to see that the potential function is
ψ(t, y(t)) = t^2 y(t) − t^4.
The differential equation is then trivial to integrate,
t^2 y − t^4 = c ⇔ t^2 y = c + t^4 ⇔ y(t) =
c t^2
Example 1.2.3: Find the solution of the problem given in Example 1.2.2 using the results of Theorem 1.2.4.
Solution: We find the solution simply by using Eq. (1.2.7). First, find the integrating factor function μ as follows:
A(t) = −
∫ (^) t
1
s
ds = − 2
ln(t) − ln(1)
= −2 ln(t) ⇒ A(t) = ln(t−^2 ).
The integrating factor is μ(t) = e−A(t), that is,
μ(t) = e−^ ln(t
− (^2) ) = eln(t
(^2) ) ⇒ μ(t) = t^2.
Then, we compute the solution as follows:
y(t) =
t^2
1
s^2 4 s ds
t^2
t^2
∫ (^) t
1
4 s^3 ds
t^2
t^2
(t^4 − 1)
=
t^2
t^2
⇒ y(t) =
t^2
1.2.3. The Bernoulli Equation. In 1696 Jacob Bernoulli struggled for months trying to solve a particular differential equation, now known as Bernoulli’s differential equation. He could not solve it, so he organized a contest among his peers to solve the equation. In short time his brother Johann Bernoulli solved it. This was bad news for Jacob because the relation between the brothers was not the best at that time. Later on the equation was solved by Leibniz using a different method than Johann. Leibniz transformed the original nonlinear equation into a linear equation. We now explain Leibniz’s idea in more detail.
Definition 1.2.5. A Bernoulli equation in the unknown function y, determined by the functions p, q : (t 1 , t 2 ) → R and a number n ∈ R, is the differential equation
y′^ = p(t) y + q(t) yn. (1.2.9)
In the case that n = 0 or n = 1 the Bernoulli equation reduces to a linear equation. The interesting cases are when the Bernoulli equation is nonlinear. We now show in an Example the main idea to solve a Bernoulli equation: To transform the original nonlinear equation into a linear equation.
Example 1.2.4: Find every solution of the differential equation
y′^ = y + 2y^5.
Solution: This is a Bernoulli equation for n = 5. Divide the equation by the nonlinear factor y^5 , y′ y^5
y^4
Introduce the function v = 1/y^4 and its derivative v′^ = −4(y′/y^5 ), into the differential equation above,
−
v′ 4
= v + 2 ⇒ v′^ = − 4 v − 8 ⇒ v′^ + 4 v = − 8.
The last equation is a linear differential equation for the function v. This equation can be solved using the integrating factor method. Multiply the equation by μ(t) = e^4 t, then ( e^4 tv
= − 8 e^4 t^ ⇒ e^4 tv = −
e^4 t^ + c.
We obtain that v = c e−^4 t^ − 2. Since v = 1/y^4 ,
1 y^4
= c e−^4 t^ − 2 ⇒ y(t) = ±
c e−^4 t^ − 2