Docsity

Solving Differential Equations: A Comprehensive Guide with Examples, Lecture notes of Differential Equations

Partial preview of the text

Download Solving Differential Equations: A Comprehensive Guide with Examples and more Lecture notes Differential Equations in PDF only on Docsity!

Chapter 4

Chapter 4 Differential Equations of Higher

Order

一階可解為主),其次是分別介紹高階Homogeneous Equation的求解(y (^) c)及Particular Solution(yp )的找法,最後的General Solution為 y = yc + yp,也就是將前面的一階線性 微分方程的求解方法擴大應用,過程如下表。值得注意的是,integration factor的求解 方法對高階方程式變得過於複雜而不適用。

nth-order Linear Equation

Homogeneous Equ's y = c y + ... + c yc 1 1 k k

Nonhomogeneous Equ's y = y + yc p

Fundamental set of solutions

Linear Dependence and Independence of Functions or Solutions

y , ... , y 1 n

How to find y and y ?c p

How to find y (^) c? How to find y (^) p? (1) Equ's with constant coeff's (1) Undetermined Coeff's (2) Euler-Cauchy Equ's (a) Superposition Approach (3) Reduction of Order (b) Annihilator Approach (2) Variation of Parameters

4.1 Preliminary Theory: Linear Equations

4.1.1 Initial-Value and Boundary-Value Problem

Initial-Value Problem

Solve: a x d y dx

a x d^ y dx

a x dy dx n a^ x y^ g x

n n n

n ( ) + (^) −( ) (^) n +... + ( ) + ( ) = ( )

− (^1) −

1 1 1 0 Subject to: y(x 0 ) = y 0 , y'(x 0 ) = y 1 , ... , yn-1(x0) = yn-1. The values at x = x 0 are called initial conditions.

[Exitence of a Unique Solution] Let an(x), a (^) n-1 (x), ... , a 1 (x), a 0 (x), and g(x) be continuous on an interval I and let an(x) ≠ 0 for every x in this interval. If x = x 0 is any point in this interval, then a solution y(x) of the initial-value problem exists on the interval and is unique. 此定理的證明在課本中是省略的,事實上由微分方程式相對應的家族曲線,即所謂 的通解,就可以看出微分方程的參數唯一解區及其相對應的solution interval。此interval 即為此處所指的interval。在後續中將利用代數幾何的聯立方程組的相關概念證明 a (^) n(x) ≠ 0 的 interval 就是solution interval。

Example: x^2 y" - 2xy' + 2y = 6, the general solution (family curves) is y = c 1 x + c 2 x^2 + 3.

[Nonhomogeneous Equation]

a x d y dx

a x d y dx

a x dy dx n a^ x y^ g x

n n n

n ( ) + (^) −( ) (^) n + ... + ( ) + ( ) = ( )

− (^1) −

1 1 1 0

where g(x) is not identically zero.

Note: To avoid needless repetition, the following points are assumed in the remainder

**1. the coefficients ai (x), i = 0, 1, ...... , n, are continuuous

  1. the right-hand member g(x) is continuous
  2. a** (^) n(x) ≠ 0 for every x in the interval

Differential Operator : dy/dx = Dy [nth-order Differential Operator] : L = a (^) n(x)Dn^ + a (^) n-1(x)Dn-1^ + .....+ a 1 (x)D + a 0 (x) [Linear Operator] : if L{αf(x) + βg(x)} = αL(f(x)) + βL(g(x)) or L{αf(x)} = αL(f(x)) and L{f(x) + g(x)} = L(f(x)) + L(g(x)) Differential Equation : L(y) = 0 or L(y) = g(x)

[Superposition Principle -- Homogeneous Equation] Let y 1 , y 2 , ... , yk be solutions of the homogeneous linear nth-order differential equation on an interval I. Then the linear combination y =c 1 y 1 (x)+c 2 y 2 (x)+...+ckyk(x) where the ci , i = 1, 2, ... , k, are arbitrary constants, is also a solution on the interval.

[Superposition Principle for the input – Nonhomogeneous case] Let y (^) p 1 , y (^) p 2 , ... , y (^) p (^) k be k particular solutions of the nonhomogeneous linear

nth-order differential equation on an interval I corresponding in turn to k distinct functions g 1 , g 2 , ... , gk. Then y (^) p = y (^) p 1 + y (^) p 2 + ...+yp (^) k

is a particular solution of

a x d y dx

a x d y dx

a x dy dx

a x y

g x g x g x

n

n n n

n n k

−

− (^1) −

1 1 1 0 1 2

[Corollaries] (A) A constant multiple y = c 1 y 1 (x) of a solution y 1 (x) of a homogeneous linear differential equation is also a solution. (B) A homogeneous linear differential equation always possesses the trivial solution y = 0.(線性空間的零向量)

[functions and solutions] ㄧ個函數 f(x) 的定義域 function interval 是依照函數本身的型式決定的。 但 f(x) 若視為 solution ,則其相對的 solution interval 是決定於那一個 DE 。不同 DE 會有不同的 solution interval 。一般而言,對同一個 f(x) 之 function interval 是 包含 solution interval 。

Example: f(x) = x Function interval: - ∞ < x < ∞

Solution interval for y = c 1 x + c 2 ex^ : either - ∞ < x < 1 or 1 < x < ∞

Function interval 是可包含 Solution interval 。我們必須先定義相容性,亦即在各 自定義的 interval 內,一函數 ( 解 ) 可由其它函數 ( 解 ) 來代表。然後由相容性的否定 來看獨立性的意義。

※相容性及獨立性 [Definition--Linear Dependence for functions and solutions] A set of functions, f 1 (x), f 2 (x), ... , f (^) n(x), is said to be linear dependent on an interval I ( which may not be the same for functions and solutions ) if and only if there exist constants, c 1 , c 2 , ... , cn, not all zero , such that c f1 1 ( )x + c f2 2 ( ) ...x + + c fn n ( )x = 0 for every x in the interval. 有不全為零的 ci 值通解。

[ 相容性的另類解釋 ]

  1. 換言之,在整個interval內,存在一個函數可用其它函數來代表:

⎟⎟ ⎠

=≠

n i 1 ,k

i k

i k (^) c f(x)

c f (x) ,其中的c (^) k ≠ 0

=

n i 1

y ci fi(x),則 fi (x) 的相容性代表參數並非全是 effective。

[Linear Independence for functions] 將原來相容性的定義取否定,其中有兩個地方可分別取否定。

1. Condition A, ~ not all zero 將原相容性的非全為零取否定,即沒有不全為零的 ci 值通解。 A set of functions, f 1 (x), f 2 (x), ... , fn(x), is said to be linear independent on an interval I(which may not be the same for functions and solutions) if it is not linear dependent on the interval. In other words, if there exists one set of the constants which such that c f1 1 ( )x + c f2 2 ( ) ...x + + c fn n ( )x = 0 for every x in the interval are c 1 = c 2 = c 3 = ... = cn = 0. 2. Condition B, ~ every 將原來相容性的每一個取否定,此情形即說明 x interval 可至 少被分割成兩個以上的區段,相鄰區段間有 Singular Point 分割。至少有一個區段或 Singular Point 有一組不全為零的 c 值,但沒有整個 interval 均適用的不全為零的通 解。 If there exists one set of constants, c 1 , c 2 , ... , c (^) n, not all zero, which such that c f1 1 ( )x + c f2 2 ( ) ...x + + c fn n ( )x = 0 for only some x but not every x in the interval, then the n functions are linearly independ

[Linear Independence for Solutions] Solution interval 是不可包括任何 Singular Point,故上述兩條件只有Condition A適用於 Solution 的情形。

[Singular Point 的定義 ]

  1. 由於 W = 0 的 Singular Point 已意味著在該點已有不全為零的 c 值解,故在其 分割的區段上,可以是全為零或不全為零的 c 值,即符合 Condition B 的要求。
  2. 相對地,在 W Uncertainty 的 Singular Point 的情形,在分割區段上則需至少有 一不全為零的 C 值出現,才能符合 Condition B 的要求。
  3. 不同區段或點若有不全為零的 c 值,它們個別是不同的組合。
[ 其它注意事項 ]

1. Since the solution interval is a subset of the function interval for the same form of the solution and function, the above statement indicates that dependent functions must be the dependent solutions. 函數的相容性條件比解函數的嚴格,相對地,獨 立性條件將變得較寬大,這在底下會說明。 2. The dependence is much related with the (function or solution) interval I.

  1. Another equivalent linear independence if and only if condition The only constants for which c f1 1 ( )x + c f2 2 ( ) ...x + + c fn n ( )x = 0 for every x in the interval are c 1 = c 2 = c 3 = ... = c (^) n = 0 (只有全為零的 ci 值通解 ) 。 used in the textbook)
  2. The independent solutions must be the independent functions and some dependent solutions may be independent functions. 此 independent function 就是

singular solution。Not true for that the independent functions must be the independent solutions(Condition B).

  1. 獨立函數有多種定義條件但相容函數僅有一種;相對地,獨立及相容解函數皆僅 有一種定義條件。

[Example] Linear dependence functions: sin2x and sinx cosx cos 2 x, sin^2 x, sec^2 x, tan^2 x (since cos^2 x + sin^2 x - sec^2 x + tan^2 x = 0)

Linear independence functions: Example 1 :y = x and y = |x| 的相容性及獨立性並找出在 ( −∞, ∞) 的線性微分方程 及其通解。 Sokution (1) 相容性: dependent solutions on (-∞, 0) or ( , 0 ∞). (2) 獨立性:若考慮c 1 x + c 2 |x| = 0的c解而言,在(-∞, 0)內的解為(c 1 , c 2 ) = (0, 0)或(c, c);但在(0, ∞)內的解則為(c 1 , c 2 ) = (0, 0)或(c, -c);在原點時則為隨意。因此,就 ( −∞ ∞, )而言,我們有三組不全為零的c解;分別在(-∞, 0)、(0, ∞)及原點符合 Condition B,或者是通解只有 (0, 0),因此x and |x|互為獨立。 (3) 線微分方程式的通解為 y = cx on (-∞, 0) or ( , 0 ∞ )亦即 xy’ – y = 0;而且 y = |x| 也是這個微分方程式的一 singular solution。

(4) DE 的通解:考慮xy’ – y = 0的逯解在( −∞, ∞) ,若符合y(0)是連續的,則其通解 為

α ≤

α >

x,x 0

x,x 0 y (x) 2

1 c 其中αi為常數。若符合y(0)及y’(0)均是連續的,則其通解

為

Independent Solutions (A) W≠ 0

Independent Functions (B) W≠0 for ≥ 1 or W=

~B

~A W=

This becomes a set of linear equations with variables of ci. Because the solution is not unique (not all zeros, and all zeros), we have

W(f 1 (x), f 2 (x), ... ,fn(x)) =

f f f f f f

f f f

n n

n n (^) n n

1 2 1 2

1 1 2 1 1

for every x on the interval I.

[Corollary II] 因為 A⇒B is equivalent to ~B⇒~A,故由 Corollary I 得到 Condition A If W(f 1 (x), f 2 (x), ... ,f (^) n(x)) ≠ 0 for every x in the interval, Or Condition B If W(f 1 (x), f 2 (x), ... ,f (^) n(x)) = 0 for some x instead of every x in the interval, then the functions are linear independent on the interval. 此結果與前面 Independent function 定義一致。課本所描述的定理雖沒有錯誤,但 其否定的範圍不夠完整。

Example 1(Corollary I): f 1 (x) = sin^2 x and f 2 (x) = 1 - cos2x are linearly dependent on ( −∞ ∞, ). proof: We find

W(f 1 (x), f 2 (x)) = sin cos sin cos sin

x x x x x

= 0 for every x

Example 2(Corollary IIA): f 1 (x) = e m x^1 and f 2 (x) = e m x^2 , m 1 ≠ m 2. Proof: We find

W(f 1 (x), f 2 (x)) = e e m e m e

m m e

m x m x m x m x

(^1 2) m m x 1 2

1 2 1 2

( ) (^ + )

for every real value of x. Hence they are independent.

Example 3(Corollary IIB): f 1 (x) = xe −x^ and f 2 (x) = x e^2 −x^. Proof: We find

W(f 1 (x), f 2 (x)) = xe x e e xe xe x e

x e

x x x x x x

x − − − − − −

− − −

2 2

2 2 2

if x ≠ 0. They are independent for all real numbers even though W = 0 for x = 0.

Example 4: It is not true that if W(f 1 (x), f 2 (x), ... ,fn(x)) = 0 for every x in the interval, then f 1 (x), f 2 (x), ... , f (^) n(x) are linearly dependent on I. The example is f 1 (x) = x^3 and f 2 (x) = | x^3 |. We do have W( f 1 (x), f 2 (x)) = 0 for every x on (- ∞ , ∞ ) but they are independent functions.

Note: It should also be noted especially that they cannot be solutions of a second-order linear differential equation although they are independent functions.

The reason is that they are composed of dependent solutions and a singular point x = 0.( 請參考前面的圖 , 在 independent function 是可能有 W=0 情形 )

[Independence and Dependence For solutions] [Corollary III] Linearly Independent Solutions Let y 1 , y 2 , ... , yn be n solutions of the homogeneous linear nth-order differential equation on an interval I. Then the set of solutions is linearly independent on I if and only if ( ⇔ ) W(y 1 , y 2 , ... , yn) ≠ 0 for every x in the interval. 仔細的證明提供參考 Proof: The necessity ( ⇐ ) i.e., to find the homogeneous differential equation Consider y(x) and their derivatives y(x) = c 1 y 1 (x) + c 2 y 2 (x) + ... + cnyn(x) y’(x) = c 1 y 1 '(x) + c 2 y 2 '(x) + ... + c (^) nyn'(x) ........ y(n-1)(x) = c 1 y 1 (n-1)(x) + c 2 y 2 (n-1)(x) + ... + cnyn(n-1)(x) Since W(y 1 , y 2 , ... , yn) ≠ 0 for every x in the interval, we can find the unique solution ci and substitute them into the nth derivative of y(x). Finally we can derive the homogeneous equation.

a x d y dx

a x d y dx

a x dy dx n a^ x y

n n n

n ( ) + (^) −( ) (^) n + ... + ( ) + ( ) =

− (^1) −

1 1 1 0 0

The sufficiency( ⇒ ) is proved as followings. "If y 1 , y 2 , ... , yn are linearly independent, W(y 1 , y 2 , ... , yn) ≠ 0 for every x in I." That is we are going to prove that if W(y 1 , y 2 , ... , yn) = 0 for some x 0 , then the solutions are linearly dependent. If W(y 1 , y 2 , ... , yn) = 0 for some x 0 , then we consider the system of the equations for ci c 1 y 1 (x 0 ) + c 2 y 2 (x 0 ) + ... + cnyn(x 0 ) = 0 c 1 y 1 '(x 0 ) + c 2 y 2 '(x 0 ) + ... + cnyn'(x 0 ) = 0 ........ c 1 y 1 (n-1)(x 0 ) + c 2 y 2 (n-1)(x 0 ) + ... + cnyn(n-1)(x 0 ) = 0 Since W = 0, there exist solutions ci , i = 1, ... , n which are not all zero. If we define a function y(x) = c 1 y 1 (x) + c 2 y 2 (x) + ... + cnyn(x), then the above conditions indicate that

initial conditions are y(x 0 ) = 0, y'(x 0 ) = 0, ... , y(n-1)(x 0 ) = 0. In addition, due to superposition principle, y(x) is also a solution of the homogeneous nth-order linear differential equation. We know that y(x) = 0 is the unique solution which satisfies the initial conditions. This indicates that y(x) = c 1 y 1 (x) + c 2 y 2 (x) + ... + cnyn(x) = 0 for every x in I where. ci , i = 1, ... , n are not all zero. This implies that yi , i = 1, ... , n, are not independent..

[Choice from n functions]

其中的ci,j (i = 1, 2, …, n)是 I (^) j 範園內的參數且ci,j與ci,j+1必須符合在x = xj的邊 界條件。

Example: Consider three functions, f 0 (x) = 1, f 1 (x) = x, and f 2 (x) = x^2. They are linearly independent since

W f f f

x x ( 0 , 1 , 2 ) x

= = 2 for every real x

and their associated differential equation is y"' = 0. If we choose two functions, say f 1 (x) = x, and f 2 (x) = x^2 , the Wronskian

W f f x^ x x

( 1 , 2 ) x

2 2 1 2

under the condition x ≠ 0. They are also the two independent solutions of the following differential equation x^2 y" -2xy' + 2y = 0. Since the equation is 2nd-order and we have x ≠ 0. Therefore, their Wronskian is absolutely nonzero in (-∞, 0) or (0, ∞). Why not include zero? If we consider the solution interval would be (-∞, ∞), the IVP may have infinite solutions or no solution. For example, if the initial condition is y(0) = 0 and y’(0) = 0. Since y(x) = c 1 x + c 2 x^2 , the initial condition gives c 1 = 0 and c 2 is arbitrary. Therefore, the solution number is infinite. On another hand, if the initial condition is y(1) = 1 and y’(1) = 2, then c 1 = 0 and c 2 = 1 for the unique solution in the range (0, ∞). But the solution also has y(0) = 0 and y’(0) = 0. We can not expect the solution have to follow y(x) = x 2 in the range (-∞, 0 ). The solution should be

c x , ( , 0 )

x , ( 0 , ) y( x) 2 2

2 .

Hence the solution number is also infinite. If the equation becomes x^2 y" -2xy' + 2y = x, then the general solution is y(x) = c 1 x + c 2 x^2 - xln x. That is, we can not find any

solution which is true in the range (-∞, ∞). Therefore, x = 0 is a singular point. If it is included in the solution range, then the solution will not become unique.

[nth-order Linear Equation ⇒ n-parameter family curves] & [Solution method for linear differential equations] 由於任何線性空間可分割成多次區段的獨立解函數。故線性微分方程式的求解即是 在 solution interval 內求出 IVP 的唯一解問題。

對於 nonhomogeneous case ,即如下所述

Solve: a x d y dx

a x d y dx

a x dy dx n a^ x y^ g x

n n n

n ( ) + (^) −( ) (^) n +... + ( ) + ( ) = ( )

− (^1) −

1 1 1 0 Subject to: y(x 0 ) = y 0 , y'(x 0 ) = y 1 , ... , yn-1(x 0 ) = yn-1.

Logic Procedure to find the solutions of the nonhomogeneous linear differential equations

1. Existence and Uniqueness of the solutions for the nonhomogeneous **/homogeneous linear differential equations

  1. Existence of a fundamental set for homogeneous linear differential equation
  2. A general solution of the homogeneous linear differential equation can be** **expressed by a linear combination of the fundamental set.
  3. A general solution of the nonhomogeneous linear differential equation can be** expressed by a linear combination of the fundamental set plus a particular solution.

[ 整體簡昜說明 ] 由 an (x) 或 W 0 (x) 找出唯一解區。由於 W0 並不含有與 y 及其 derivative 相關的變數,意味初始條件有關 y 及其導函數是可以任意給定的。因此可指定如下 的 n 組 initial condition y(t) = 0, y'(t) = 0, ... , y(k-1)(t) = 0, y(k)(t) = 1, y(k+1)(t) = 0, ... , y(n-1)(t) = 0 此虛的 k = 0, 1, ... ,(n-1),而 t 為唯一解區的一點。如此相對應可得到 n 個解。這 n 個解是獨立的,可形成一組fundamental set,此乃因為 W(t) = 1,即可推演到 W(x) ≠ 0 for any x in the solution interval。而 Homogenous Equation 的通解為 yc = c 1 y 1 (x) + c 2 y 2 (x) + ... + cnyn(x)

因為只要給定任意的 initial condition,由於W(x) ≠ 0 所以 c 值可唯一決定。同理 nonhomogeneous equation 的通解為 y = c 1 y 1 (x) + c 2 y 2 (x) + ... + cnyn(x) + yp(x) 此處的 yp(x) 是個任意的 particular solution,這是因為 y(x) - yp(x) 是 Homogenous Equation 的 Solution。

[ 進一步說明 ] &Logic Procedure 1 is supposed to have been proved. ( 由家族曲線的微分方程參數 唯一解區得到,即由 an (x) 或 W 0 (x) 找出 Singular Point 及唯一解區。在唯一解區 每一點均不為零 ) 另外,由於 W0 並不含有與 y 及其 derivative 相關的變數,意味 初始條件有關 y 及其導函數是可以任意給定的。

&Logic Procedure 2( 獨立解集合 ) Fundamental set of solutions Any set y 1 , y 2 , ... , yn of n linearly independent solutions of the homogeneous linear nth-order differential equation on an interval I is said to be a fundamental set of solutions on the interval.

Existence of a fundamental set There exists a fundamental set of the solutions for the homogeneous linear nth-order differential equation on an interval I. Proof: We can define n solutions among which the kth one yk(x) is defined as

y(t) = 0, y'(t) = 0, ... , y(k-1)(t) = 0, y(k)(t) = 1, y(k+1)(t) = 0, ... , y(n-1)(t) = 0 where k = 0, 1, ... ,(n-1). From the existence and uniqueness of the linear differential equation, we know that we get exactly n solutions. Now we are going to confirm the independence of the n solutions. Suppose they are linearly dependent. We can find n constants, Ci, i= 0, ... , (n-1), of not all zero such that

Let y 1 , y 2 , ... , yk be solutions of the homogeneous linear nth-order differential equation on an interval I and let yp be any particular solution of the corresponding nonhomogeneous equation on the same interval. Then y = c 1 y 1 (x) + c 2 y 2 (x) + ... + c (^) kyk(x) + yp(x) is also a solution of the nonhomogeneous equation on the interval for any constant c (^) i.

Let yp be a given solution of the nonhomogeneous linear nth-order differential equation on an interval I and let y 1 , y 2 , ... , yn be a fundamental set of solutions of the associated homogeneous equation on the interval. Then for any solution Y(x) of the nonhomogeneous equation on I, constants C 1 , C 2 , C 3 , ... , Cn can be found so that Y = C 1 y 1 (x) + C 2 y 2 (x) + ... + Cnyn(x) + yp(x) Proof: If we define a function u(x) = Y(x) -yp(x), then u(x) follows the homogeneous differential equation. For any solution u(x), C 1 , C 2 , C 3 , ... , Cn can be found so that u = C 1 y 1 (x) + C 2 y 2 (x) + ... + Cnyn(x) Therefore, Y = C 1 y 1 (x) + C 2 y 2 (x) + ... + Cnyn(x) + yp(x).

General solution -- Nonhomogeneous Equation Let yp be a given solution of the nonhomogeneous linear nth-order differential equation on an interval I and let y (^) c = c y 1 1 ( x ) + c y 2 2 ( x ) + ... +c yn n(x ) denote the general solution of the associated homogeneous equation on the interval. The general solution of the nonhomogeneous equation on the interval is defined to be y = c y 1 1 ( x ) + c y 2 2 ( x ) + ... + c yn n ( x ) +y (^) p( x) = yc (x) + yp(x) where yc (x) is called the complementary function for the nonhomogeneous equation.

Example: y (^) p ( x ) = − 11 − x 12

is a particular solution of

d y dx

d y dx

dy dx

y x

3 3

2 − 6 2 + 11 − 6 = 3.

The complementary function of the equation is yc = c 1 e x^ + c 2 e 2x^ + c 3 e 3x Hence, the general solution is

y = c e 1 x^ + c e 2 2x + c e 3 3x^ − 1112 − 21 x

[Superposition Principle -- Nonhomogeneous Equation] Let y (^) p 1 , y (^) p 2 , ... , y (^) p (^) k be k particular solutions of the nonhomogeneous linear

nth-order differential equation on an interval I corresponding in turn to k distinct functions g 1 , g 2 , ... , gk. Then y (^) p = y (^) p 1 + y (^) p 2 + ...+yp (^) k

is a particular solution of

a x d y dx

a x d y dx

a x dy dx

a x y

g x g x g x

n

n n n

n n k

−

− (^1) −

1 1 1 0 1 2

Note: If y (^) p = c y 1 p 1 + c y 2 p 2 + ... +c yk p (^) k, then yp is a solution of

a x d y dx

a x d^ y dx

a x dy dx

a x y

c g x c g x c g x

n

n n n

n n k k

−

− (^1) −

1 1 1 0 1 1 2 2

Remark: a t d y dt

a t d y dt

a t dy dt n a^ t y^ g t

n n n

n ( ) + (^) −( ) (^) n +... + ( ) + ( ) = ( )

− (^1) −

1 1 1 0 is said to be nth-order

linear system. The function g(t) is called the input function , forcing function , or excitation function. A solution y(t) is called the output or response of the system. The n functions, y(t), y'(t), .... , yn-1(t) are called the state variables of the system.

4.2 Reduction of Order

Take a second-order linear equation as example y"(x) + P(x) y'(x) + Q(x) y(x) = 0 Let us suppose that y 1 (x) is a known solution of the above equation. We define y(x) = u(x)y 1 (x) and substitute it into the equation to get a differential equation of u: y"(x) + Py' + Qy = u[y 1 " + Py 1 ' + Qy 1 ] + y 1 u" + (2y 1 ' + Py 1 )u' = 0 That is, y 1 u" + (2y 1 ' + Py 1 )u' = 0 If we let w = u', then y 1 w' + (2y 1 ' + Py 1 )w = 0 is a first-order differential equation. This method is called reduction of order. The variables are separable and we find dw w

y y

  • 2 1 dx + Pdx= 0 1

2 1

Pdx 1 y

w u c e^ ∫

− = =

dx c y (x ) y (x)

y cy (x) e 2 2 1 1

pdx

−∫ .

Choose c 1 = 1 and c 2 = 0, and the second solution of y is

−∫ = dx y (x)

y (x) y(x) e 2 1

pdx 2 1.

Now, y 1 (x) and y 2 (x) are linearly independent since

Example: 分別求解兩個一階方程式 y’ – y = 0 及 xy’ – y = 0,然後求出相對於此 兩獧立解線性組合的二階方程式。接著考慮該二階方程式與 xy’ – y = 0 所形成的 聯立方程組,請求出相對應的解。 Solution 利用變數分離的方式可求出 y’ – y = 0 及 xy’ – y = 0 的解分別為 y = cex 及 y = cx。 利用昇階公式於 y’ – y = 0 可得 (y '−y)'( 1 −x)−(y'−y)(− 1 )= 0 整理後為 0 x 1

xy' y y" = −

x

y' y

x 1

y" xy' y

x

y x

y' y"

x 1

xy' y y"

2 第一式減去第二式得到

y 0 x (x 1 )

x x 1 y' x(x 1 )

x x 1 2

2 2

−

即 xy’ – y = 0 故解為 y = cx。

4.3 Homogeneous Linear Equations with Constant

Coefficients

a d y dx

a d y dx

a dy dx n a y

n n n

n

  • (^) − n + + + =

− (^1) −

1 1 ...^1 0

where ai , i = 0, ... , n, are constants. Take the second-order one as example: ay" + by' + cy = 0 Use y = emx^ as a trial solution, we can find that m is given by am^2 + bm + c = 0 This equation is called the auxiliary equation or characteristic equation of the differential equation.

Case I Distinct Real Roots The auxiliary equation has unequal roots, m 1 and m 2. We find two solutions, y 1 = e m^1 x^ and y 2 = e m^2 x and they are linearly independent. Hence, the general solution is

y = c e 1 m x^1 +c e 2 m x^2

Case II Repeated Real Roots The auxiliary equation has the same roots, i.e., m 1 = m 2 = - b/2a. Since y 1 = exp(- bx/2a), the second solution can be given by

− −

− − 2 bax mx

2 a

2 bx

a

bx 2 bax 2 dx xe xe^1 e

y e e

Note: 將 y = xexp(-bx/(2a)) 代入 ay” + by’ + cy = 0 可得到 b^2 – 4ac = 0。 The general solution is y = c e 1 m x^1 +c xe 2 m x^1

Case III Conjugate Complex Roots Two complex solutions: α + jβ and α - jβ. The two linearly independent solutions can be given by e (^ α^ +^ j^ β)x and e (^ α^ −j^ β)x or e αx^ cos βx and e αx^ sinβx

Note: x^ (e ( j)x e( j)x) 2

e α^ cosβx=^1 α+β + α−β

x (^) (e ( j)x e( j)x) 2 j

e α^ sinβx=^1 α+β − α−β

Higher-Order Equations

a d y dx

a d y dx

a dy dx n a y

n n n

n

  • (^) − n + + + =

− (^1) −

1 1 ...^1 0

with the auxiliary or characteristic equation of a (^) nmn^ + a (^) n-1 mn-1^ + ... + a 1 m + a 0 = 0 If all the roots are distinct, then the general solution is y = c e 1 m x^1 + c e 2 m x^2 + ...+c en m xn When m 1 is a root of multiplicity k of an nth-degree auxiliary equation (that is, k roots are equal to m 1 ), the it can be shown that the general solution must contain the linear combination c e 1 m x^1 + c xe 2 m x^1 + c x e 3 2 m x^1 + ... +c x (^) k k^ −^1 em x^1.

Example 1: Solve 3y''' + 5y" +10y' - 4y = 0 Solution: The auxiliary equation is 3m^3 + 5m^2 + 10m - 4 = 0 3m^3 - m^2 + 6m^2 - 2m + 12m - 4 = 0 (3m - 1)(m^2 + 2m + 4) = 0 m = 1 3

, or m = − 1 ±j 3

Hence, the general solution is

y ce^3 e x (c 2 cos 3 x c 3 sin 3 x)

x = 1 + + −