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.


Top Related