Docsity

Ordinary Differential Equations: Basic Concepts and Solutions, Study notes of Differential Equations

Toggle sidebar
bg1
ORDINARY DIFFERENTIAL EQUATIONS: BASIC CONCEPTS
TSOGTGEREL GANTUMUR
Abstract. Some of the most basic concepts of ordinary differential equations are introduced
and illustrated by examples.
Contents
1. What is an ordinary differential equation? 1
2. An example application: Falling bodies 2
3. The simplest ordinary differential equation 3
4. Functions 6
5. Ordinary differential equations and initial value problems 7
6. Linearity and the superposition principle 9
1. What is an ordinary differential equation?
Roughly speaking, an ordinary differential equation (ODE) is an equation involving a func-
tion (of one variable) and its derivatives.
Examples of ODE’s are
y0+y= 0,dx
dt+x2t= sin t, and y00 =xcos y. (1)
Asolution of an ODE is a function that satisfies the equation. This is in contrast to
algebraic equations, such as x2= 3 and x6+ 7x= 5, whose solutions are numbers.
Example 1. Let y(x) = e−x. Then we have
y0(x) = −e−x,and so y0(x) + y(x) = 0.(2)
So the function y(x) = e−xis a solution of the ODE y0+y= 0. Typically, ODE’s have many
solutions: y(x) = 2e−xis also a solution of the ODE y0+y= 0.
Example 2. The function x(t) = t2is a solution to the ODE xx00 +tx0= 4t2.
When faced with an ODE, one may try to solve it explicitly, as was done in Example 1.
However, only very special types of ODE’s can be solved by formulas, so one needs to resort
to approximation methods, that can be used to solve ODE’s inexactly, and to qualitative
methods, that can be used to extract valuable information about the solution of an ODE
without actually solving it. In this course, we will focus mainly on techniques to explicitly
solve ODE’s, and only get a glimpse of approximation and qualitative methods. A large class
of approximation methods are studied in a numerical analysis course, and qualitative methods
are basically the content of a dynamical systems course.
Date: January 31, 2014.
1
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Ordinary Differential Equations: Basic Concepts and Solutions and more Study notes Differential Equations in PDF only on Docsity!

ORDINARY DIFFERENTIAL EQUATIONS: BASIC CONCEPTS

TSOGTGEREL GANTUMUR

Abstract. Some of the most basic concepts of ordinary differential equations are introduced and illustrated by examples.

Contents

  1. What is an ordinary differential equation? 1
  2. An example application: Falling bodies 2
  3. The simplest ordinary differential equation 3
  4. Functions 6
  5. Ordinary differential equations and initial value problems 7
  6. Linearity and the superposition principle 9
    1. What is an ordinary differential equation? Roughly speaking, an ordinary differential equation (ODE) is an equation involving a func- tion (of one variable) and its derivatives. Examples of ODE’s are

y′^ + y = 0,

dx dt

  • x^2 t = sin t, and y′′^ = x cos y. (1)

A solution of an ODE is a function that satisfies the equation. This is in contrast to algebraic equations, such as x^2 = 3 and x^6 + 7x = 5, whose solutions are numbers.

Example 1. Let y(x) = e−x. Then we have

y′(x) = −e−x, and so y′(x) + y(x) = 0. (2)

So the function y(x) = e−x^ is a solution of the ODE y′^ + y = 0. Typically, ODE’s have many solutions: y(x) = 2e−x^ is also a solution of the ODE y′^ + y = 0.

Example 2. The function x(t) = t^2 is a solution to the ODE xx′′^ + tx′^ = 4t^2.

When faced with an ODE, one may try to solve it explicitly, as was done in Example 1. However, only very special types of ODE’s can be solved by formulas, so one needs to resort to approximation methods, that can be used to solve ODE’s inexactly, and to qualitative methods, that can be used to extract valuable information about the solution of an ODE without actually solving it. In this course, we will focus mainly on techniques to explicitly solve ODE’s, and only get a glimpse of approximation and qualitative methods. A large class of approximation methods are studied in a numerical analysis course, and qualitative methods are basically the content of a dynamical systems course.

Date: January 31, 2014. 1

2 TSOGTGEREL GANTUMUR

  1. An example application: Falling bodies ODE’s have a wide range of applications in sciences and in mathematics. In this section, we will look at a simple application, and illustrate some important concepts along the way. This example concerns the motion of a small body near Earth’s surface. We assume that the body moves only in the vertical direction, and fix a coordinate system so that the y-axis is pointing upward. If we denote by y(t) the y-coordinate of the particle at time moment t, and assume that there is no air resistance, then Newton’s second law gives my′′(t) = −mg, where m is the mass of the particle, and g ≈ 9 .81m/s^2 is the free fall acceleration near Earth’s surface. Assuming m 6 = 0, we get

y′′^ = −g. (3)

We note in passing that the air resistance can be modelled by

my′′^ = −mg − ky′, or my′′^ = −mg − k(y′)^2 , (4)

depending on how fast the particle moves. Now, it is easy to see that for any pair of numbers A and B, the function

y(t) = A + Bt −

gt^2 , (5)

is a solution of (3). Conversely, if y(t) is a solution of (3), then y(t) must be equal to (5) for some value of the pair A and B. Expressions such as (5) are called general solutions, and they usually involve free parameters such as A and B. By varying the values of the parameters, one generates all possible solutions of the ODE. In contrast, a particular solution of an ODE is simply a solution of the ODE. For example, y(t) = 1 − 12 gt^2 is a particular solution of (3).

Remark 3. Arbitrary constants A and B arise because the equation (3) is insensitive to changing y(t) by y(t)+A+Bt for any pair of numbers A and B. In some sense, differentiating twice in (3) “kills” two pieces of information. Without additional input, there is no way to recover this information.

In practice, there are many ways to supply additional information about the solution y(t) so that we can pin down only one solution from the large family of solutions given by (5). One approach is to specify y(0) and y′(0), or more generally, to specify y(x 0 ) and y′(x 0 ) for some x 0. Such conditions are called initial conditions, and an ODE together with appropriate initial conditions is called an initial value problem.

Example 4. Suppose that

y(0) = 10, and y′(0) = 0, (6)

and we want to find solutions of (3) satisfying these initial conditions. From (5) we have

y′(t) = B − gt, (7)

and hence y(0) = A and y′(0) = B. This immediately gives A = 10 and B = 0, so the only solution of (3) satisfying (6) is

y(t) = 10 −

gt^2. (8)

Example 5. Consider the initial value problem  



y′′^ = − 10 , y(1) = 10 y′(1) = 0.

4 TSOGTGEREL GANTUMUR

where C is an arbitrary constant. Another way to write this is

y(x) =

f (x) dx + C. (15)

ii) The fundamental theorem of calculus tells us

y(x) − y(x 0 ) =

ˆ (^) x

x 0

y′(t) dt, (16)

for any values x and x 0. If y satisfies (12), then

y(x) − y(x 0 ) =

ˆ (^) x

x 0

y′(t) dt =

ˆ (^) x

x 0

f (t) dt, (17)

or in other words, y(x) = y(x 0 ) +

ˆ (^) x

x 0

f (t) dt. (18)

This formula gives a way to recover the solution y, provided that we know the value y(x 0 ) for some x 0. By choosing different values of y(x 0 ), we can generate all possible solutions of (12), hence (18) is the general solution of (12), with y(x 0 ) playing the role of an arbitrary constant. The relation between the formulas (18) and (14) is

y(x) = y(x 0 ) +

ˆ (^) x

x 0

f (t) dt = y(x 0 ) + F (x) − F (x 0 ), (19)

where we have used the fundamental theorem of calculus, i.e., the fact that ˆ (^) x

x 0

f (t) dt = F (x) − F (x 0 ). (20)

So the constant C in (14) is equal to y(x 0 ) − F (x 0 ). Note that the meaning of the constant C in (14) is a priori not clear, whereas the meaning of the constant y(x 0 ) in (18) is obviously the value of the unknown solution at the chosen point x 0. Thus, the formula (18) may be handy if we want to impose the initial condition y(x 0 ) = a.

Example 6. Let us reconsider the example

y′^ = x^2. (21)

Pick F (x) = 13 x^3 as an antiderivative of x^2. Then the first approach gives

y(x) =

x^3 + C, (22)

as the general solution. The second approach gives

y(x) = y(x 0 ) +

ˆ (^) x

x 0

x^2 dx = y(x 0 ) +

(x^3 − x^30 ), (23)

where x 0 is understood to be a fixed number.

Example 7. Consider the initial value problem { y′^ = x^2 , y(1) = 0.

We know that the general solution of y′^ = x^2 is given by (22), or alternatively, by (23). The formula (22) implies y(1) = 13 + C, and so C = − 13 by the initial condition y(1) = 0. Hence the (one and only one) solution to the initial value problem (24) is

y(x) =

(x^3 − 1). (25)

Alternatively, we could have derived this solution by putting x 0 = 1 and y(1) = 0 into (23).

ORDINARY DIFFERENTIAL EQUATIONS: BASIC CONCEPTS 5

  • 2 - 1 1 2
    • 4
    • 2

2

4

Figure 2. The graphs of y(x) = 13 x^3 + C for different values of C. Any one of these curves represents a solution of y′^ = x^2. Among those solutions, y(x) = 13 (x^3 − 1) is the only one that satisfies the initial condition y(1) = 0, which is represented by the thick curve.

Example 8. The general solution to

y′^ = e−x

2 , (26)

is given by

y(x) =

e−x

2 dx + C =

π 2

erf(x) + C. (27)

Here erf(x) is called the error function, and it is defined by

erf(x) =

π

ˆ (^) x

0

e−t

2 dt. (28)

This function is simply defined by the integral we are trying to compute, because the anti- derivative of e−x

2 cannot be written in terms of a finite combination of elementary functions.

  • 4 - 2 2 4
  • 20 - 10 10 20

Figure 3. The graphs of the error function erf(x) and the sine integral Si(x).

Example 9. Similarly, the general solution to

y′^ =

sin x x

can be written as

y(x) = y(0) +

ˆ (^) x

0

sin t t

dt = y(0) + Si(x), (30)

ORDINARY DIFFERENTIAL EQUATIONS: BASIC CONCEPTS 7

iii) We can give a function implicitly, by its properties. Examples and non-examples:

  • f (x) = y where x^2 + y^2 = 0 and y > 0. Here U = (− 1 , 1) is implicit.
  • f (x) = y where x^2 + y^2 = 0. This is a non-example, because for a given x, say from the interval (− 1 , 1), there are two different y that satisfy x^2 + y^2 = 0.
  • f satisfies f ′(x) = sin x and f (0) = 0.
  • f satisfies f ′(x) = sin x. This is a non-example, because for a given x, the condition f ′(x) = sin x does not determine a unique value f (x).

Remark 12. When we give a function implicitly, we must ensure that the conditions define a unique value f (x) for each x from the intended domain.

  • 3 - 2 - 1 1 2 3
  • 3 - 2 - 1 1 2 3

2

4

6

8

Figure 4. The graphs of the Heaviside theta function θ(x) given by (33), and the function f (x) given by (34).

  1. Ordinary differential equations and initial value problems

In this section, we make precise some notions related to ordinary differential equations, initial value problems, and their solutions.

Definition 13. An ordinary differential equation (ODE) is an equation of the form

F (x, y, y′,... , y(n)) = 0, (36)

where F is a given function of n+2 variables. Here x and y are called the independent variable and the dependent variable, respectively. If the derivative y(n)^ genuinely appears in (36), then (36) is called an n-th order ODE.

To clarify what we mean by the order of an ODE, the equation y′^ + y = 0 is a first order ODE, even though one may write it as 0 · y′′^ + y′^ + y = 0. The order of an ODE is obviously an important characteristic of that ODE.

Definition 14. Given an interval I, a solution (or a particular solution) of (36) on the interval I is a function g : I → R satisfying

F (x, g(x), g′(x),... , g(n)(x)) = 0, for all x ∈ I. (37) This definition makes it clear that when one talks about a solution of an ODE, one must keep in mind that there is also an interval is involved. It is best if one states the interval explicitly every time a solution is considered.

Example 15. Consider the ODE

y′^ =

x

The function g : (0, ∞) → R defined by g(x) = log x is a solution of (38) on the interval (0, ∞). Also, the function g : (−∞, 0) → R defined by g(x) = log(−x) is a solution of (38) on the interval (−∞, 0).

8 TSOGTGEREL GANTUMUR

Remark 16. One can say that log |x| is a solution to (38) on (−∞, 0) ∪ (0, ∞), but we will almost exclusively consider solutions defined over an interval.

More generally, one can define systems of ODE’s and their solutions. For instance, the general form of systems of two first order equations is

F 1 (x, y 1 , y 2 , y 1 ′, y 2 ′) = 0, F 2 (x, y 1 , y 2 , y′ 1 , y′ 2 ) = 0, (39)

where F 1 and F 2 are given functions of 5 variables. A solution of such a system would be a pair of functions y 1 and y 2 (or equivalently, a function with R^2 as its range).

Example 17. The following is a system of first order ODE’s: { y 1 ′ = −y 2 , y 2 ′ = y 1.

To write down a solution to this system, observe that the vector (−y 2 , y 1 ) is exactly the vector (y 1 , y 2 ) rotated by 90 degrees counterclockwise. Now, thinking of (y 1 (t), y 2 (t)) as a vector in the plane R^2 , with its tip at (y 1 (t), y 2 (t)) and the base at the origin (0, 0), the system (40) tells us that the velocity of the tip of the vector is directed perpendicularly to the vector itself. It is thus intuitively clear that if we start with some vector, and evolve it according to (40), then the tip of the vector would be tracing a circle centred at the origin. This leads us to the following guess (^) {

y 1 (t) = A cos(kt + c), y 2 (t) = A sin(kt + c),

where we assume that A, k and c are constants. Such a guess, that fixes a general form of the solution but leaves some parameters free, is called an ansatz. Note that there is no a priori guarantee that our guess would work. To check if it works, we differentiate (41), and get

y′ 1 (t) = −Ak sin(kt + c), and y′ 2 (t) = Ak cos(kt + c). (42)

This shows that (41) is in fact a solution of (40), provided that we choose k = 1.

  • 2 - 1 0 1 2
  • 2
  • 1

0

1

2

Figure 5. The velocity field and a solution trajectory for the system (40).

10 TSOGTGEREL GANTUMUR

If an equation is not linear, then we say it is nonlinear. For example, y′^ + y^2 = 0 and (y′)^2 + x cos y = 1 are nonlinear ODE’s.

Definition 22. Suppose that all solutions of (48) on an interval I can be written as

y(x) = g 0 (x) + A 1 g 1 (x) +... + Angn(x), (50)

where g 0 , g 1 ,... , gn are (fixed) functions defined on I, and A 1 ,... , An are arbitrary constants. Then the expression (50) is called the general solution of the ODE (48) on I. More precisely, if all solutions of (48) on I form the set {g 0 + A 1 g 1 +... + Angn : A 1 ,... , An ∈ R}, (51)

for some functions g 0 , g 1 ,... , gn : I → R, then (50) is called the general solution of (48) on I.

Remark 23. A general solution is a collection of functions, and it is not a single function (unless in some trivial cases). Even though the set notation (51) is more appropriate in this case, it is traditional to write the general solution in the form (50) and declare that the constants A 1 ,... , An are “arbitrary”. What this means is the following.

  • When we fix a certain value for each of A 1 ,... , An, the expression (50) produces a function. Since A 1 ,... , An do not depend on x, they are constants.
  • Each of A 1 ,... , An can have any real number as its value, and as they take all possible combinations of their values, the expression (50) produces all possible solutions of the ODE (48). In this sense, the constants A 1 ,... , An are arbitrary.

Remark 24. General solutions can be defined for nonlinear equations, but we will talk about general solutions mostly in the context of linear equations.

When presented with Definition 22 and especially the formula (50), a natural question that might come to one’s mind is: Why do we expect that the general solution depends on the constants A 1 etc. in this way? Why not in some other way, for instance, as in y(x) = eA^1 x? The answer lies in what is called the superposition principle, that is unquestionably the most important property of linear equations. Let us make a preliminary observation. If g(x) is a solution of the homogeneous equation (49), then it obvious that for any constant C, the function y(x) = Cg(x) is also a solution. The superposition principle for the homogeneous equation (49) says that the sum of any two solutions is again a solution. In light of the observation we have just made, this means that a linear combination of any two solutions is again a solution.

Theorem 25 (Superposition principle for homogeneous equations). Suppose that y 1 and y 2 are solutions of the homogeneous equation (49) on some interval I. Then for any real numbers C 1 and C 2 , the function y(x) = C 1 y 1 (x) + C 2 y 2 (x), (52)

is also a solution of (49) on I.

Proof. We will prove it only for the special case n = 1, since the general case involves exactly the same arguments and only requires more writing. Let us start by writing out what it means for y 1 and y 2 to be solutions of (49) on I:

a 1 (x)y 1 ′(x) + a 0 (x)y 1 (x) = 0, a 1 (x)y 2 ′(x) + a 0 (x)y 2 (x) = 0, x ∈ I. (53)

Let us multiply the first equation by C 1 and the second equation by C 2 , and sum the resulting two equations. After some rearranging, this gives

a 1 (x)[C 1 y′ 1 (x) + C 2 y 2 ′(x)] + a 0 (x)[C 1 y 1 (x) + C 2 y 2 (x)] = 0, x ∈ I. (54)

Finally, taking into account the definition (52), and the related fact that y′(x) = C 1 y 1 ′(x) + C 2 y′ 2 (x), we conclude a 1 (x)y′(x) + a 0 (x)y(x) = 0, x ∈ I, (55)

ORDINARY DIFFERENTIAL EQUATIONS: BASIC CONCEPTS 11

which is what we wanted to prove. 

Example 26. Consider the second order homogeneous linear differential equation

y′′^ + y = 0. (56)

It is easy to check that both y 1 (x) = sin x and y 2 (x) = cos x are solutions of this equation on R. Then by the superposition principle for homogeneous equations (Theorem 25), for any constants A and B, the function

y(x) = A sin x + B cos x, (57)

is a solution of y′′^ + y = 0 on R.

The superposition principle in the general case (48) says that one can add a solution of the homogeneous equation (49) to a solution of the general equation (48), and obtain another solution of the general equation (48).

Theorem 27 (Superposition principle). Suppose that y∗ is a solution of (48) on some interval I, and that y 0 is a solution of the homogeneous equation (49) on the same interval I. Then for any real number C, the function

y(x) = y∗(x) + Cy 0 (x), (58)

is a solution of (48) on I.

Proof. Again, we will only prove the special case n = 1. The hypotheses of the theorem give

a 1 (x)y′∗(x) + a 0 (x)y∗(x) = f (x), a 1 (x)y 0 ′(x) + a 0 (x)y 0 (x) = 0, x ∈ I. (59)

If we multiply the second equation by C and add the result to the first equation, we get

a 1 (x)[y′∗(x) + Cy 0 ′(x)] + a 0 (x)[y∗(x) + Cy 0 (x)] = 0, x ∈ I. (60)

Taking into account the definition (58), and the fact that y′(x) = y∗′(x) + Cy 0 ′(x), we infer

a 1 (x)y′(x) + a 0 (x)y(x) = f (x), x ∈ I, (61)

which completes the proof. 

Example 28. Consider the second order inhomogeneous linear differential equation

y′′^ + y = 2ex. (62)

It is easy to guess a particular solution: y∗(x) = ex. The corresponding homogeneous equation is y′′^ + y = 0, which has y 0 (x) = sin x as one of its solutions on R. Then the superposition principle (Theorem 27) says that for any constant A, the function

y(x) = ex^ + A sin x, (63)

is a solution to (62) on R.

We have the following converse to the superposition principle.

Theorem 29. Suppose that y 1 and y 2 are solutions of (48) on some interval I. Then their difference y(x) = y 1 (x) − y 2 (x) is a solution of the homogeneous equation (49) on I. Consequently, if y∗ is a particular solution of (48) on I, and if y 0 is the general solution of the homogeneous equation (49) on I, then the general solution of (48) on I is given by

y(x) = y∗(x) + y 0 (x), x ∈ I. (64)