Top Banner
1 Chapter2. Second-order differential Equations 1. Linear Differential Equations If we can express a second order differential equation in the form β€²β€² + β€² + () = () it is called linear. Otherwise, it is nonlinear. Consider a linear differential equation. If r(x) = 0 it is called homogeneous, otherwise it is called nonhomogeneous. Some examples are: Linear Combination: A linear combination of y 1 ; y 2 is y = a y 1 + b y 2 . For a homogeneous linear differential equation any linear combination of solutions is again a solution. The above result does NOT hold for nonhomogeneous equations. For example, both = and = are solutions ’’ + = 0, so is = 2 + 5 . Both = + and = + are solutions to ’’ + = , but = + + 2 is not. This is a very important property of linear homogeneous equations, called superposition. It means we can multiply a solution by any number, or add two solutions, and obtain a new solution. Linear Independence: Two functions y 1 ; y 2 are linearly independent if a y 1 + b y 2 = 0 a = 0; b = 0. Otherwise they are linearly dependent. (One is a multiple of the other). For example, e x and e 2x are linearly independent. e x and 2e x are linearly dependent. General Solution and Basis: Given a second order, linear, homogeneous differential equation, the general solution is: = 1 + 2 where y 1 ; y 2 are linearly independent. The set y 1 ; y 2 is called a basis, or a fundamental set of the differential equation. As an illustration, consider the equation 2 ’’ βˆ’ 5’ + 8 = 0. You can easily check that = 2 is a solution. Therefore 2 2 ; 7 2 or βˆ’ 2 are also solutions. But all these are linearly dependent. We expect a second, linearly independent solution, and this is y = x 4 . A combination of solutions is also a solution, so = 2 + 4 or = 10 2 βˆ’ 5 4 are also solutions. Therefore the general solution is = 2 + 4 and the basis of solutions is 2 , 4 . 2. Reduction of Order If we know one solution of a second order homogeneous differential equation, we can find the second solution by the method of reduction of order. Consider the differential equation β€²β€² + β€² + () = 0 Suppose one solution y 1 is known, then set 2 = 1 and insert in the equation. The result will be
18

Chapter2. Second-order differential Equationsolgar/L2.sod.pdfΒ Β· 1 Chapter2. Second-order differential Equations 1. Linear Differential Equations If we can express a second order

Sep 01, 2018

Download

Documents

dinhdiep
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Chapter2. Second-order differential Equationsolgar/L2.sod.pdfΒ Β· 1 Chapter2. Second-order differential Equations 1. Linear Differential Equations If we can express a second order

1

Chapter2. Second-order differential Equations

1. Linear Differential Equations

If we can express a second order differential equation in the form

𝑦 β€²β€² + 𝑝 π‘₯ 𝑦 β€² + π‘ž(π‘₯)𝑦 = π‘Ÿ(π‘₯)

it is called linear. Otherwise, it is nonlinear. Consider a linear differential equation. If r(x) = 0 it is called

homogeneous, otherwise it is called nonhomogeneous. Some examples are:

Linear Combination: A linear combination of y1; y2 is y = a y1 + b y2.

For a homogeneous linear differential equation any linear combination of solutions is again a solution. The

above result does NOT hold for nonhomogeneous equations.

For example, both 𝑦 = 𝑠𝑖𝑛 π‘₯ and 𝑦 = π‘π‘œπ‘  π‘₯ are solutions π‘‘π‘œ 𝑦’’ + 𝑦 = 0, so is 𝑦 = 2 𝑠𝑖𝑛 π‘₯ + 5 π‘π‘œπ‘  π‘₯.

Both 𝑦 = 𝑠𝑖𝑛 π‘₯ + π‘₯ and 𝑦 = π‘π‘œπ‘  π‘₯ + π‘₯ are solutions to 𝑦’’+ 𝑦 = π‘₯, but 𝑦 = 𝑠𝑖𝑛 π‘₯ + π‘π‘œπ‘  π‘₯ + 2π‘₯ is

not.

This is a very important property of linear homogeneous equations, called superposition. It means we can

multiply a solution by any number, or add two solutions, and obtain a new solution.

Linear Independence: Two functions y1; y2 are linearly independent if a y1 + b y2 = 0 a = 0; b = 0.

Otherwise they are linearly dependent. (One is a multiple of the other).

For example, ex and e

2x are linearly independent. e

x and 2e

x are linearly dependent.

General Solution and Basis: Given a second order, linear, homogeneous differential equation, the general

solution is:

𝑦 = π‘Ž 𝑦1 + 𝑏 𝑦2

where y1; y2 are linearly independent. The set y1; y2 is called a basis, or a fundamental set of the

differential equation.

As an illustration, consider the equation π‘₯2π‘¦β€™β€™βˆ’ 5π‘₯𝑦’ + 8𝑦 = 0. You can easily check that 𝑦 = π‘₯2 is a

solution. Therefore 2π‘₯2; 7π‘₯2 or βˆ’π‘₯2 are also solutions. But all these are linearly dependent.

We expect a second, linearly independent solution, and this is y = x4. A combination of solutions is also a

solution, so 𝑦 = π‘₯2 + π‘₯4 or 𝑦 = 10π‘₯2 βˆ’ 5 π‘₯4 are also solutions.

Therefore the general solution is 𝑦 = π‘Ž π‘₯2 + 𝑏 π‘₯4 and the basis of solutions is π‘₯2 , π‘₯4 .

2. Reduction of Order

If we know one solution of a second order homogeneous differential equation, we can find the second

solution by the method of reduction of order. Consider the differential equation

𝑦 β€²β€² + 𝑝 π‘₯ 𝑦 β€² + π‘ž(π‘₯)𝑦 = 0

Suppose one solution y1 is known, then set 𝑦2 = 𝑒𝑦1 and insert in the equation. The result will be

Page 2: Chapter2. Second-order differential Equationsolgar/L2.sod.pdfΒ Β· 1 Chapter2. Second-order differential Equations 1. Linear Differential Equations If we can express a second order

2

𝑦1𝑒′′ + 2𝑦 β€²1

+ 𝑝𝑦 β€²1

𝑒′ + (𝑦 β€²β€²1

+ 𝑝𝑦 β€²1

+ π‘žπ‘¦1) = 0

But y1 is a solution, so the last term is canceled. So we have

𝑦1𝑒′′ + 2𝑦′

1+ 𝑝𝑦′

1 𝑒′ = 0

This is still second order, but if we set w = u’, we will obtain first order equation:

𝑦1𝑀′ + 2𝑦′

1+ 𝑝𝑦1 = 0

Solving this, we can find w, then u and then 𝑦2.

Example: Legendre's equation. The equation

is known as Legendre's equation, after the French mathematician Adrien Marie Legendre

(1752-1833.

Example:

Page 3: Chapter2. Second-order differential Equationsolgar/L2.sod.pdfΒ Β· 1 Chapter2. Second-order differential Equations 1. Linear Differential Equations If we can express a second order

3

3. Homogeneous Equations with Constant Coefficients

Up to now we have studied the theoretical aspects of the solution of linear homogeneous differential

equations. Now we will see how to solve the constant coefficient equation 𝑦’’+ π‘Žπ‘¦β€™ + 𝑏𝑦 = 0 in

practice.

We have the sum of a function and its derivatives equal to zero, so the derivatives must have the same form

as the function. Therefore we expect the function to be ex. If we insert this in the equation, we obtain:

2 + π‘Ž + 𝑏 = 0

This is called the characteristic equation of the homogeneous differential equation 𝑦’’ + π‘Žπ‘¦β€™ + 𝑏𝑦 = 0. If we solve the characteristic equation, we will see three different possibilities: Two real roots, double real

root and complex conjugate roots.

Two Real Roots: The general solution is

𝑦 = 𝑐1 𝑒1π‘₯ + 𝑐2 𝑒2π‘₯

Example:

Example:

Example:

Page 4: Chapter2. Second-order differential Equationsolgar/L2.sod.pdfΒ Β· 1 Chapter2. Second-order differential Equations 1. Linear Differential Equations If we can express a second order

4

Double Real Root: One solution is ex but we know that a second order equation must have two independent

solutions. Let's use the method of reduction of order to find the second solution.

Let's insert y2 = u e

ax in the equation.

Obviously, u’’ = 0 therefore u = c1 + c2 x. The general solution is

Example:

Example:

Page 5: Chapter2. Second-order differential Equationsolgar/L2.sod.pdfΒ Β· 1 Chapter2. Second-order differential Equations 1. Linear Differential Equations If we can express a second order

5

𝑦 = 𝑐1 𝑒π‘₯ + 𝑐2 π‘₯ 𝑒π‘₯

Example: Solve 𝑦’’ + 2𝑦’ + 𝑦 = 0.

𝑦 = 𝑒π‘₯ . The characteristic equation is 2 + 2+ 1 = 0. Its solution is the double root = +,-1, therefore the

general solution is

𝑦 = 𝑐1 π‘’βˆ’π‘₯ + 𝑐2 𝑒π‘₯

Complex Conjugate Roots: We need the complex exponentials for this case. Euler's formula is

𝑒𝑖π‘₯ = cos π‘₯ + 𝑖 sin(π‘₯) This can be proved using Taylor series expansions. If the solution of the characteristic equation is

1 = a + i b, and 2 = a - i b

then the general solution of the differential equation will be

𝑦 = 𝑐1 π‘’π‘Žπ‘₯ (cos 𝑏π‘₯ + 𝑖 sin 𝑏π‘₯ ) + 𝑐2 π‘’π‘Žπ‘₯ (cos 𝑏π‘₯ βˆ’ 𝑖 sin 𝑏π‘₯ )

By choosing new constants A;B, we can express this as

𝑦 = π‘’π‘Žπ‘₯ (A cos 𝑏π‘₯ + 𝐡 sin 𝑏π‘₯ )

4. Cauchy-Euler Equation

The equation π‘₯2𝑦’’ + π‘Žπ‘₯𝑦′ + 𝑏𝑦 = 0 is called the Cauchy-Euler equation. By inspection, we can easily

see that the solution must be a power of x. Let's substitute 𝑦 = π‘₯π‘Ÿ in the equation and try to determine r.

We will obtain

π‘Ÿ π‘Ÿ βˆ’ 1 π‘₯π‘Ÿ + π‘Žπ‘Ÿπ‘₯π‘Ÿ + 𝑏π‘₯π‘Ÿ = 0

π‘Ÿ2 + π‘Ž βˆ’ 1 π‘Ÿ + 𝑏 = 0

This is called the auxiliary equation. Once again, we have three different cases according to the types of

roots. The general solution is given as follows:

Two real roots: 𝑦 = 𝑐1π‘₯π‘Ÿ1 + 𝑐2π‘₯

π‘Ÿ2

Double real root: 𝑦 = 𝑐1π‘₯π‘Ÿ + 𝑐2π‘₯

π‘Ÿ 𝑙𝑛π‘₯

Complex conjugate roots where π‘Ÿ1, π‘Ÿ2 = π‘Ÿ Β± 𝑠𝑖. 𝑦 = π‘₯π‘Ÿ(𝑐1 cos 𝑠 𝑙𝑛π‘₯ + 𝑐2 sin(𝑠 𝑙𝑛π‘₯))

Example:

Example:

Page 6: Chapter2. Second-order differential Equationsolgar/L2.sod.pdfΒ Β· 1 Chapter2. Second-order differential Equations 1. Linear Differential Equations If we can express a second order

6

Example:

Example:

Example:

Example:

Page 7: Chapter2. Second-order differential Equationsolgar/L2.sod.pdfΒ Β· 1 Chapter2. Second-order differential Equations 1. Linear Differential Equations If we can express a second order

7

Example:

Example:

Page 8: Chapter2. Second-order differential Equationsolgar/L2.sod.pdfΒ Β· 1 Chapter2. Second-order differential Equations 1. Linear Differential Equations If we can express a second order

8

Example:

5.

Page 9: Chapter2. Second-order differential Equationsolgar/L2.sod.pdfΒ Β· 1 Chapter2. Second-order differential Equations 1. Linear Differential Equations If we can express a second order

9

Page 10: Chapter2. Second-order differential Equationsolgar/L2.sod.pdfΒ Β· 1 Chapter2. Second-order differential Equations 1. Linear Differential Equations If we can express a second order

10

Page 11: Chapter2. Second-order differential Equationsolgar/L2.sod.pdfΒ Β· 1 Chapter2. Second-order differential Equations 1. Linear Differential Equations If we can express a second order

11

Page 12: Chapter2. Second-order differential Equationsolgar/L2.sod.pdfΒ Β· 1 Chapter2. Second-order differential Equations 1. Linear Differential Equations If we can express a second order

12

Page 13: Chapter2. Second-order differential Equationsolgar/L2.sod.pdfΒ Β· 1 Chapter2. Second-order differential Equations 1. Linear Differential Equations If we can express a second order

13

6. Solution of Nonhomogeneous Equation

Thus far, for differential equations of second-order and higher, we have studied only the homogeneous

equation r[y] = 0. In this section we turn to the nonhomogeneous case

r[y] = f(x)

That is, this time we include a nonzero forcing function f(x). Before proceeding with solution techniques,

let us reiterate that the function f(x) (that is, what's left on the right-hand side when the terms involving y

and its derivatives are put on the left-side side) is, essentially, a forcing function, and we will call it that, in

this text, as a reminder of its physical significance.

For instance, we have already met the equation

governing the displacement x(t) of a mechanical oscillator. Here, the forcing function is the applied force

F(t). For the analogous electrical oscillator governed by the equations

on the current i(t), and

on the charge Q(t) on the capacitor, the forcing functions are the time derivative of the applied voltage E(t),

and the applied voltage E(t), respectively.

7. General and Particular Solutions

Consider the nonhomogeneous equation

𝑦 β€²β€² + 𝑝 π‘₯ 𝑦 β€² + π‘ž(π‘₯)𝑦 = π‘Ÿ(π‘₯)

Let 𝑦𝑝 be a solution of this equation. Now consider the corresponding homogeneous equation

𝑦 β€²β€² + 𝑝 π‘₯ 𝑦 β€² + π‘ž(π‘₯)𝑦 = 0

Let π‘¦β„Ž be the general solution of this one. If we add π‘¦β„Ž and 𝑦𝑝 , the result will still be a solution for the

nonhomogeneous equation, and it must be the general solution because π‘¦β„Ž contains two arbitrary constants.

This interesting property means that we need the homogeneous equation when we are solving the

nonhomogeneous one. The general solution is of the form

𝑦 = π‘¦β„Ž + 𝑦𝑝

Example 1.

Page 14: Chapter2. Second-order differential Equationsolgar/L2.sod.pdfΒ Β· 1 Chapter2. Second-order differential Equations 1. Linear Differential Equations If we can express a second order

14

Example 2.

Example 3.

Example 4.

Page 15: Chapter2. Second-order differential Equationsolgar/L2.sod.pdfΒ Β· 1 Chapter2. Second-order differential Equations 1. Linear Differential Equations If we can express a second order

15

Page 16: Chapter2. Second-order differential Equationsolgar/L2.sod.pdfΒ Β· 1 Chapter2. Second-order differential Equations 1. Linear Differential Equations If we can express a second order

16

8. Method of Undetermined Coefficients

To solve the constant coefficient equation

𝑑2𝑦

𝑑π‘₯2+ π‘Ž

𝑑𝑦

𝑑π‘₯+ 𝑏𝑦 = π‘Ÿ(π‘₯)

Solve the corresponding homogeneous equation, 𝑦𝑝 and π‘¦β„Ž .

Find a candidate for 𝑦𝑝 using the following table:

(You don't have to memorize the table. Just note that the choice consists of r(x) and all its derivatives)

If your choice for 𝑦𝑝 occurs in π‘¦β„Ž , you have to change it. Multiply it by x if the solution corresponds

to a single root, by x2 if it is a double root.

Find the constants in 𝑦𝑝 by inserting it in the equation.

The general solution is 𝑦 = π‘¦β„Ž + 𝑦𝑝

Note that this method works only for constant coefficient equations, and only when r(x) is relatively simple.

Example 5.

Page 17: Chapter2. Second-order differential Equationsolgar/L2.sod.pdfΒ Β· 1 Chapter2. Second-order differential Equations 1. Linear Differential Equations If we can express a second order

17

9. Method of Variation of Parameters

Consider the linear second order nonhomogeneous differential equation

𝑦 β€²β€² + 𝑝 π‘₯ 𝑦 β€² + π‘ž(π‘₯)𝑦 = π‘Ÿ(π‘₯)

If a(x); b(x) and c(x) are not constants, or if r(x) is not among the functions given in the table, we can not

use the method of undetermined coefficients. In this case, the variation of parameters can be used if we

know the homogeneous solution.

Let π‘¦β„Ž = 𝑐1𝑦1 + 𝑐2𝑦2 be the solution of the associated homogeneous equation

π‘Ž(π‘₯)𝑦 β€²β€² + 𝑏 π‘₯ 𝑦 β€² + 𝑐(π‘₯)𝑦 = 0

Let us express the particular solution as:

𝑦𝑝 = 𝑣1(π‘₯)𝑦1 + 𝑣2(π‘₯)𝑦2

There are two unknowns, so we may impose an extra condition. Let's choose 𝑣1β€² 𝑦1

β€² + 𝑣2β€² 𝑦2

β€² = 0 for

simplicity. Inserting 𝑦𝑝 in the equation, we obtain

𝑣1β€² 𝑦1

β€² + 𝑣2β€² 𝑦2

β€² =π‘Ÿ

π‘Ž

𝑣1β€² 𝑦1

β€² + 𝑣2β€² 𝑦2

β€² = 0

The solution to this linear system is

𝑣1β€² =

βˆ’π‘¦2π‘Ÿ

π‘Žπ‘Š, 𝑣2

β€² =𝑦1π‘Ÿ

π‘Žπ‘Š

where W is the Wronskian

Example 6.

Page 18: Chapter2. Second-order differential Equationsolgar/L2.sod.pdfΒ Β· 1 Chapter2. Second-order differential Equations 1. Linear Differential Equations If we can express a second order

18

Therefore the particular solution is

References:

1. Greenberg, M.D. Advanced Engineering Mathematics, 2nd edition. Prentice Hall, 1998.

2. O'Neil, P.V. Advanced Engineering Mathematics, 5th edition. Thomson, 2003.

3. Ross, S.L. Introduction to Ordinary Differential Equations, 4th edition. Wiley, 1989.

Example 7.

Example 8.