Docsity

Ordinary differential equations, Notas de estudo de Engenharia Civil

Toggle sidebar
bg1
ORDINARY DIFFERENTIAL EQUATIONS
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.
x2
x1
x1
x2
a
b
0
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Pré-visualização parcial do texto

Baixe Ordinary differential equations e outras Notas de estudo em PDF para Engenharia Civil, somente na Docsity!

ORDINARY DIFFERENTIAL EQUATIONS

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

G. NAGY – ODE January 13, 2015 I

  • Chapter 1. First Order Equations Contents
    • 1.1. Linear Constant Coefficients Equations
    • 1.1.1. Overview of Differential Equations
    • 1.1.2. Linear Equations
    • 1.1.3. Linear Equations with Constant Coefficients
    • 1.1.4. The Initial Value Problem
    • 1.1.5. Exercises
    • 1.2. Linear Variable Coefficients Equations
    • 1.2.1. Linear Equations with Variable Coefficients
    • 1.2.2. The Initial Value Problem
    • 1.2.3. The Bernoulli Equation
    • 1.2.4. Exercises
    • 1.3. Separable Equations
    • 1.3.1. Separable Equations
    • 1.3.2. Euler Homogeneous Equations
    • 1.3.3. Exercises
    • 1.4. Exact Equations
    • 1.4.1. Exact Differential Equations
    • 1.4.2. The Poincar´e Lemma
    • 1.4.3. Solutions and a Geometric Interpretation
    • 1.4.4. The Integrating Factor Method
    • 1.4.5. The Integrating Factor for the Inverse Function
    • 1.4.6. Exercises
    • 1.5. Applications
    • 1.5.1. Radioactive Decay
    • 1.5.2. Newton’s Cooling Law
    • 1.5.3. Salt in a Water Tank
    • 1.5.4. Exercises
    • 1.6. Nonlinear Equations
    • 1.6.1. The Picard-Lindel¨of Theorem
    • 1.6.2. Comparison Linear Nonlinear Equations
    • 1.6.3. Direction Fields
    • 1.6.4. Exercises
  • Chapter 2. Second Order Linear Equations
    • 2.1. Variable Coefficients
    • 2.1.1. The Initial Value Problem
    • 2.1.2. Homogeneous Equations
    • 2.1.3. The Wronskian Function
    • 2.1.4. Abel’s Theorem
    • 2.1.5. Exercises
    • 2.2. Reduction of Order Methods
    • 2.2.1. Special Second Order Equations
    • 2.2.2. Reduction of Order Method
    • 2.2.3. Exercises
    • 2.3. Homogeneous Constant Coefficients Equations
    • 2.3.1. The Roots of the Characteristic Polynomial
    • 2.3.2. Real Solutions for Complex Roots
  • II G. NAGY – ODE january 13,
    • 2.3.3. Constructive proof of Theorem 2.3.2
    • 2.3.4. Exercises
    • 2.4. Nonhomogeneous Equations
    • 2.4.1. The General Solution Formula
    • 2.4.2. The Undetermined Coefficients Method
    • 2.4.3. The Variation of Parameters Method
    • 2.4.4. Exercises
    • 2.5. Applications
    • 2.5.1. Review of Constant Coefficient Equations
    • 2.5.2. Undamped Mechanical Oscillations
    • 2.5.3. Damped Mechanical Oscillations
    • 2.5.4. Electrical Oscillations
    • 2.5.5. Exercises
  • Chapter 3. Power Series Solutions
    • 3.1. Solutions Near Regular Points
    • 3.1.1. Regular Points
    • 3.1.2. The Power Series Method
    • 3.1.3. The Legendre Equation
    • 3.1.4. Exercises
    • 3.2. The Euler Equidimensional Equation
    • 3.2.1. The Roots of the Indicial Polynomial
    • 3.2.2. Real Solutions for Complex Roots
    • 3.2.3. Transformation to Constant Coefficients
    • 3.2.4. Exercises
    • 3.3. Solutions Near Regular Singular Points
    • 3.3.1. Regular Singular Points
    • 3.3.2. The Frobenius Method
    • 3.3.3. The Bessel Equation
    • 3.3.4. Exercises
    • Notes on Chapter
  • Chapter 4. The Laplace Transform Method
    • 4.1. Definition of the Laplace Transform
    • 4.1.1. Review of Improper Integrals
    • 4.1.2. Definition and Table
    • 4.1.3. Main Properties
    • 4.1.4. Exercises
    • 4.2. The Initial Value Problem
    • 4.2.1. Solving Differential Equations
    • 4.2.2. One-to-One Property
    • 4.2.3. Partial Fractions
    • 4.2.4. Exercises
    • 4.3. Discontinuous Sources
    • 4.3.1. Step Functions
    • 4.3.2. Translation Identities
    • 4.3.3. Solving Differential Equations
    • 4.3.4. Exercises
    • 4.4. Generalized Sources
    • 4.4.1. Sequence of Functions and the Dirac Delta
    • 4.4.2. Computations with the Dirac Delta G. NAGY – ODE January 13, 2015 III
    • 4.4.3. Applications of the Dirac Delta
    • 4.4.4. The Impulse Response Function
    • 4.4.5. Comments on Generalized Sources
    • 4.4.6. Exercises
    • 4.5. Convolutions and Solutions
    • 4.5.1. Definition and Properties
    • 4.5.2. The Laplace Transform
    • 4.5.3. Solution Decomposition
    • 4.5.4. Exercises
  • Chapter 5. Systems of Differential Equations
    • 5.1. Linear Differential Systems
    • 5.1.1. First Order Linear Systems
    • 5.1.2. Order Transformations
    • 5.1.3. The Initial Value Problem
    • 5.1.4. Homogeneous Systems
    • 5.1.5. The Wronskian and Abel’s Theorem
    • 5.1.6. Exercises
    • 5.2. Constant Coefficients Diagonalizable Systems
    • 5.2.1. Decoupling the systems
    • 5.2.2. Eigenvector solution formulas
    • 5.2.3. Alternative solution formulas
    • 5.2.4. Non-homogeneous systems
    • 5.2.5. Exercises
    • 5.3. Two-by-Two Constant Coefficients Systems
    • 5.3.1. The diagonalizable case
    • 5.3.2. Non-diagonalizable systems
    • 5.3.3. Exercises
    • 5.4. Two-by-Two Phase Portraits
    • 5.4.1. Real distinct eigenvalues
    • 5.4.2. Complex eigenvalues
    • 5.4.3. Repeated eigenvalues
    • 5.4.4. Exercises
    • 5.5. Non-Diagonalizable Systems
  • Chapter 6. Autonomous Systems and Stability
    • 6.1. Flows on the Line
    • 6.1.1. Autonomous Equations
    • 6.1.2. A Geometric Analysis
    • 6.1.3. Population Growth Models
    • 6.1.4. Linear Stability Analysis
    • 6.1.5. Exercises
    • 6.2. Flows on the Plane
    • 6.3. Linear Stability
  • Chapter 7. Boundary Value Problems
    • 7.1. Eigenvalue-Eigenfunction Problems
    • 7.1.1. Comparison: IVP and BVP
    • 7.1.2. Eigenvalue-eigenfunction problems
  • IV G. NAGY – ODE january 13,
    • 7.1.3. Exercises
    • 7.2. Overview of Fourier Series
    • 7.2.1. Origins of Fourier series
    • 7.2.2. Fourier series
    • 7.2.3. Even and odd functions
    • 7.2.4. Exercises
    • 7.3. The Heat Equation
    • 7.3.1. The Initial-Boundary Value Problem
    • 7.3.2. The Separation of Variables
    • 7.3.3. Exercises
  • Chapter 8. Review of Linear Algebra
    • 8.1. Systems of Algebraic Equations
    • 8.1.1. Linear algebraic systems
    • 8.1.2. Gauss elimination operations
    • 8.1.3. Linearly dependence
    • 8.1.4. Exercises
    • 8.2. Matrix Algebra
    • 8.2.1. A matrix is a function
    • 8.2.2. Matrix operations
    • 8.2.3. The inverse matrix
    • 8.2.4. Determinants
    • 8.2.5. Exercises
    • 8.3. Diagonalizable Matrices
    • 8.3.1. Eigenvalues and eigenvectors
    • 8.3.2. Diagonalizable matrices
    • 8.3.3. The exponential of a matrix
    • 8.3.4. Exercises
  • Chapter 9. Appendices
    • Appendix A. Review Complex Numbers
    • Appendix B. Review of Power Series
    • Appendix C. Review Exercises
    • Appendix D. Practice Exams
    • Appendix E. Answers to Exercises
    • References

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^ −

  • 3 = 2e^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^ −

C

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^ −

. C

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^ +

. C

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

  • t^2. C

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

  • 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 −

t^2

⇒ y(t) =

t^2

  • t^2. C

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

C