Professional Documents
Culture Documents
Chapter 4 in Review
118
FARHAN ANTARI
2
3.1.1 INITIALVALUE
I AND BOUNDARYVALUE PROBLEMS
d ny d n21y dy
Solve: a n(x) n 1 an21 (x) n21
1 Á 1 a1(x) 1 a0(x)y 5 g(x)
dx dx dx (1)
(n21)
Subject to: y(x0) 5 y0, y9(x0) 5 y1 , . . . , y (x0) 5 yn21.
d 2y dy
Solve: a2(x) 2
a1(x) a0(x)y g(x)
dx dx
Subject to: y(a) y0, y(b) y1
d ny d n 2 1y dy
Note y 0 is always a an(x) n an21 (x) n21
. . . a1(x) a0(x) y 0 (6)
solution of a homogeneous dx dx dx
linear equation.
is said to be homogeneous, whereas an equation
d ny d n 2 1y dy
an(x) n an21 (x) n21
. . . a1(x) a0(x) y g(x) (7)
dx dx dx
with g(x) not identically zero is said to be nonhomogeneous. For example, 2y 3y 5y 0
is a homogeneous linear second-order differential equation, whereas x2y 6y 10y ex is a
nonhomogeneous linear third-order differential equation. The word homogeneous in this context
does not refer to coefficients that are homogeneous functions as in Section 2.5; rather, the word
has exactly the same meaning as in Section 2.3.
We shall see that in order to solve a nonhomogeneous linear equation (7), we must first be
able to solve the associated homogeneous equation (6).
To avoid needless repetition throughout the remainder of this section, we shall, as a matter of
course, make the following important assumptions when stating definitions and theorems about
the linear equations (6) and (7). On some common interval I,
Remember these assumptions • the coefficients ai(x), i 0, 1, 2, . . ., n, are continuous;
in the definitions and
theorems of this chapter. • the right-hand member g(x) is continuous; and
• an(x) 0 for every x in the interval.
d dy d 2y d ny
a b 2 D(Dy) D 2y and in general D ny,
dx dx dx dx n
FARHAN ANTARI
3
where the ci, i 1, 2, . . . , k are arbitrary constants, is also a solution on the interval.
EXAMPLE 4 Superposition—Homogeneous DE
The functions y1 x2 and y2 x2 ln x are both solutions of the homogeneous linear equation
x3y 2xy 4y 0 on the interval (0, q). By the superposition principle, the linear
combination
y c1x2 c2x2 ln x
for every x in the interval. If the set of functions is not linearly dependent on the interval, it is
said to be linearly independent.
In other words, a set of functions is linearly independent on an interval if the only constants
for which
If two functions are linearly dependent, then one is simply a constant multiple of the other.
Conversely, if f1(x) c2 f2(x) for some constant c2, then (1) f1(x) c2 f2(x) 0 for every x on
some interval. Hence the functions are linearly dependent, since at least one of the constants
(namely, c1 1) is not zero. We conclude that:
Two functions are linearly independent when neither is a constant multiple of the other
on an interval.
For example, the functions f1(x) sin 2x and f2(x) sin x cos x are linearly dependent on
(q, q) because f1(x) is a constant multiple of f2(x). Recall from the double angle formula for
the sine that sin 2x 2 sin x cos x.
FARHAN ANTARI
4
A set of n functions f1(x), f2(x), . . ., fn(x) is linearly dependent on an interval I if at least one
of the functions can be expressed as a linear combination of the remaining functions. For example,
three functions f1(x), f2(x), and f3(x) are linearly dependent on I if at least one of these functions
is a linear combination of the other two, say,
for all x in I. A set of n functions is linearly independent on I if no one function is a linear com-
bination of the other functions.
where the primes denote derivatives, is called the Wronskian of the functions.
FARHAN ANTARI
5
The linear combination yc(x) c1 y1(x) c2 y2(x) . . . cn yn(x), which is the general solution
of (6), is called the complementary function for equation (7). In other words, to solve a nonho-
mogeneous linear differential equation we first solve the associated homogeneous equation and
then find any particular solution of the nonhomogeneous equation. The general solution of the
nonhomogeneous equation is then
= yc + yp.
FARHAN ANTARI
6
3.1.1 Initial-Value and Boundary-Value Problems In Problems 23–30, verify that the given functions form a
In Problems 1– 4, the given family of functions is the general fundamental set of solutions of the differential equation on
solution of the differential equation on the indicated interval. the indicated interval. Form the general solution.
Find a member of the family that is a solution of the initial-value 23. y y 12y 0; e3x, e4x, (q, q)
problem. 24. y 4y 0; cosh 2x, sinh 2x, (q, q)
x
1. y c1e c2e , (q, q); y y 0, y(0) 0, y(0) 1
x
25. y 2y 5y 0; e x cos 2x, e x sin 2x, (q, q)
4x
2. y c1e c2e , (q, q); y 3y 4y 0, y(0) 1,
x
26. 4y 4y y 0; e x/2, xe x/2, (q, q)
y(0) 2
27. x2y 6xy 12y 0; x3, x4, (0, q)
3. y c1x c2x ln x, (0, q); x2y xy y 0, y(1) 3,
y(1) 1 28. x2y xy y 0; cos(ln x), sin(ln x), (0, q)
4. y c 1 c 2 cos x c 3 sin x, (q, q); y y 0, 29. x3y 6x2y 4xy 4y 0; x, x2, x2 ln x, (0, q)
y(p) 0, y(p) 2, y(p) 1 30. y(4) y 0; 1, x, cos x, sin x, (q, q)
was a linear combination y c1y1 c2 y2, where y1 and y2 are solutions that constitute a linearly
independent set on some interval I.
Reduction of Order Suppose y1(x) denotes a known solution of equation (1). We seek
a second solution y2(x) of (1) so that y1 and y2 are linearly independent on some interval I.
Recall that if y1 and y2 are linearly independent, then their ratio y2/y1 is nonconstant on I.
REDUCTION OF ORDER Suppose that y1 denotes a nontrivial solution of (1) and that y1
is defined on an interval I. We seek a second solution y2 so that the set consisting of y1 and y2
is linearly independent on I. Recall from Section 3.1 that if y1 and y2 are linearly independent,
then their quotient y2yy1 is nonconstant that is, y2(x)yy1(x) = u(x) or y2(x) = u(x)y1(x). The
—that
function u(x) can be found by substituting y2(x) = u(x)y1(x) into the given differential
equation. This method is called reduction of order because we must solve a linear first-
order differential equation to find u.
General Case Suppose we divide by a2(x) in order to put equation (1) in the standard form
y P(x)y Q(x)y 0, (3)
where P(x) and Q(x) are continuous on some interval I. Let us suppose further that y1(x)
is a known solution of (3) on I and that y1(x) 0 for every x in the interval. If we define
y u(x)y1(x), it follows that
y uy1 y1u, y uy1 2y1u y1u
y Py Qy u[ y1 Py1 Qy1] y1u (2y1 Py1)u 0.
zero
#
ln Zwy 21 Z P dx c or wy 21 c1e ePdx.
We solve the last equation for w, use w u, and integrate again:
e ePdx
u c1 # y 21
dx c2.
By choosing c1 ⫽ 1 and c2 ⫽ 0, we find from y ⫽ u(x)y1(x) that a second solution of equation (3) is
e ⫺eP(x) dx
y2 ⫽ y1(x) # y 21(x)
dx. (5)
FARHAN ANTARI
8
3 4
y0 2 y9 ⫹ 2 y ⫽ 0,
x x
e 3edx/x
we find from (5) y2 ⫽ x 2 # x4
dx
3
d e 3edx/x ⫽ e ln x ⫽ x 3
dx
⫽ x2 #x ⫽ x 2 ln x.
The general solution on the interval (0, q) is given by y ⫽ c1y1 ⫹ c2y2; that is,
y ⫽ c1x2 ⫹ c2x2 ln x.
𝑒𝑒 0
𝑦𝑦2 = 𝑐𝑐𝑐𝑐𝑐𝑐ℎ𝑥𝑥 � 𝑑𝑑𝑥𝑥 = 𝑐𝑐𝑐𝑐𝑐𝑐ℎ𝑥𝑥 � sech2 𝑥𝑥 𝑑𝑑𝑥𝑥
cosh2 𝑥𝑥
𝑦𝑦2 = 𝑐𝑐𝑠𝑠𝑡𝑡ℎ𝑥𝑥
The general solution is given by y ⫽ c1y1 ⫹ c2y2; that is, 𝑦𝑦 = 𝑐𝑐1 𝑐𝑐𝑐𝑐𝑐𝑐ℎ𝑥𝑥 + 𝑐𝑐2 𝑐𝑐𝑠𝑠𝑡𝑡ℎ𝑥𝑥
1 2
y0 2 y9 ⫹ 2 y ⫽ 0,
x x
𝑒𝑒 𝑙𝑙𝑙𝑙𝑙𝑙 1
𝑦𝑦2 = 𝑥𝑥𝑐𝑐𝑠𝑠𝑡𝑡(𝑙𝑙𝑡𝑡𝑥𝑥) � 2 2
𝑑𝑑𝑥𝑥 = 𝑥𝑥𝑐𝑐𝑠𝑠𝑡𝑡(𝑙𝑙𝑡𝑡𝑥𝑥) � 2
𝑑𝑑𝑥𝑥
𝑥𝑥 sin (𝑙𝑙𝑡𝑡𝑥𝑥) 𝑥𝑥 sin (𝑙𝑙𝑡𝑡𝑥𝑥)
𝑦𝑦2 = 𝑥𝑥𝑐𝑐𝑐𝑐𝑐𝑐(𝑙𝑙𝑡𝑡𝑥𝑥)
The general solution is given by y ⫽ c1y1 ⫹ c2y2; that is, 𝑦𝑦 = 𝑐𝑐1 𝑥𝑥𝑐𝑐𝑠𝑠𝑡𝑡(𝑙𝑙𝑡𝑡𝑥𝑥) + 𝑐𝑐2 𝑥𝑥𝑐𝑐𝑐𝑐𝑐𝑐(𝑙𝑙𝑡𝑡𝑥𝑥)
FARHAN ANTARI
9
3.2 ANSWERS
1. y2 xe2x 3. y2 sin 4x
5. y2 sinh x 7. y2 xe2x/3
9. y2 x4 ln | x | 11. y2 1
13. y2 x cos (ln x)
FARHAN ANTARI
10
NOTE : the roots at the auxiliary poly determine the solution at the differential equation.
General solution for second-order equations , the auxiliary equation can be factored into
(𝑚𝑚 − 𝑚𝑚1 )(𝑚𝑚 − 𝑚𝑚2 ) = 0
Case I : Distinct Real Roots
If m1 and m2 are distinct real roots then two linearly independent solutions are y1 em1x
and y2 em2x, and the general solution is
𝑒𝑒 − ∫ 𝑏𝑏𝑑𝑑𝑑𝑑 𝑒𝑒 −𝑏𝑏𝑑𝑑
Note :: 𝑦𝑦1 = 𝑒𝑒 𝑚𝑚1 𝑎𝑎 and 𝑦𝑦2 = 𝑒𝑒 𝑚𝑚1 𝑎𝑎 ∫ 𝑒𝑒 2(𝑚𝑚1 𝑑𝑑) 𝑑𝑑𝑥𝑥 = 𝑒𝑒 𝑚𝑚1 𝑎𝑎 ∫ 𝑒𝑒 2(𝑚𝑚1 𝑑𝑑) 𝑑𝑑𝑥𝑥 where 𝑏𝑏 = −2𝑚𝑚1
Case III : Conjugate Complex Roots If m1 and m2 are complex, then we can write
m1 a ib and m2 a ib, where a and b 0 are real and i2 1. the general
solution in complex is
y C1e(aib)x C2e(aib)x.
Tow linearly independent solutions are eax cos bx , eax sin bx
y c1eax cos bx c2eax sin bx eax (c1 cos bx c2 sin bx). (7)
Note
If the auxiliary equation m2 k2 0 for y k2y 0 has distinct real roots m1 k and m2 k
and the general solution of the DE is
FARHAN ANTARI
11
EXAMPLE 1
y c1ex/ 2 c2e3x.
y c1e5x c2xe5x.
EXAMPLE 3
Solve the following differential equations.
1) 𝑦𝑦 ՝՝ + 3𝑦𝑦 ՝ − 5𝑦𝑦 = 0
Auxiliary equation 𝑚𝑚2 + 3𝑚𝑚 − 5 = 0
−3+√29 −3−√29
𝑚𝑚1 = 2
, 𝑚𝑚2 = 2
−3+√29 −3−√29
∴ 𝑦𝑦 = 𝑐𝑐1 𝑒𝑒 𝑚𝑚1 𝑎𝑎 + 𝑐𝑐2 𝑒𝑒 𝑚𝑚2 𝑎𝑎 = 𝑐𝑐1 𝑒𝑒 ( 2
)
+ 𝑐𝑐2 𝑒𝑒 ( 2
)
2) 𝑦𝑦 ՝՝ − 4𝑦𝑦 ՝ + 5𝑦𝑦 = 0
Auxiliary equation 𝑚𝑚2 − 4𝑚𝑚 + 5 = 0
4 ∓√−4
𝑚𝑚 = → 𝑚𝑚1 = 2 + 𝑖𝑖 , 𝑚𝑚2 = 2 − 𝑖𝑖
2
∴ 𝑦𝑦 = 𝑐𝑐1 𝑒𝑒 2𝑎𝑎 𝑐𝑐𝑐𝑐𝑐𝑐𝑥𝑥 + 𝑐𝑐2 𝑒𝑒 2𝑎𝑎 𝑐𝑐𝑖𝑖𝑠𝑠𝑥𝑥
3) 𝑦𝑦 ՝՝ − 6𝑦𝑦 ՝ + 9𝑦𝑦 = 0
Auxiliary equation 𝑚𝑚2 − 6𝑚𝑚 + 9 = 0
→ 𝑚𝑚1 = 𝑚𝑚2 = 3
∴ 𝑦𝑦 = 𝑐𝑐1 𝑒𝑒 3𝑎𝑎 + 𝑐𝑐2 𝑥𝑥𝑒𝑒 3𝑎𝑎
FARHAN ANTARI
➤ Higher order equations : 12
(Ⅰ): if all the roots are real and distinct , then the general solution is
𝑦𝑦 = 𝑐𝑐1 𝑒𝑒 𝑚𝑚1 𝑎𝑎 + 𝑐𝑐2 𝑒𝑒 𝑚𝑚2 𝑎𝑎 +. . . +𝑐𝑐𝑛𝑛 𝑒𝑒 𝑚𝑚𝑛𝑛𝑎𝑎 ….. (⋆)
(Ⅱ): if all roots are distinct , but some are complex then the solution is again given by ⋆ , as in
the second-order equations those terms involving complex exponential can be
combined to yield terms involving sin and cos
(Ⅲ): if 𝑚𝑚1 is a root of multiplicity 𝑝𝑝 [(𝑚𝑚 − 𝑚𝑚1 )𝑝𝑝 is a factor of the characteristic equation] then
there will be 𝑝𝑝 linearly independent solutions associated with 𝑚𝑚1 given by
𝑒𝑒 𝑚𝑚1 𝑎𝑎 , 𝑥𝑥𝑒𝑒 𝑚𝑚1 𝑎𝑎 , 𝑥𝑥 2 𝑒𝑒 𝑚𝑚1 𝑎𝑎 . . . , 𝑥𝑥 𝑝𝑝−1 𝑒𝑒 𝑚𝑚1 𝑎𝑎
and the general solution must contain the linear combination
𝑐𝑐1 𝑒𝑒 𝑚𝑚1 𝑎𝑎 + 𝑐𝑐2 𝑥𝑥𝑒𝑒 𝑚𝑚1 𝑎𝑎 +. . . +𝑐𝑐𝑝𝑝 𝑥𝑥 𝑝𝑝−1 𝑒𝑒 𝑚𝑚1 𝑎𝑎
EXAMPLE 4
Solve the following differential equations.
2) 𝑦𝑦 (5) − 16𝑦𝑦՝ = 0
Auxiliary equation 𝑚𝑚5 − 16𝑚𝑚 = 0
→ 𝑚𝑚(𝑚𝑚1 − 2)(𝑚𝑚2 + 2)(𝑚𝑚3 2 + 4) = 0
→ 𝑚𝑚 = 0, 𝑚𝑚1 = 2, 𝑚𝑚2 = −2, 𝑚𝑚3 = 2𝑖𝑖, 𝑚𝑚4 = −2𝑖𝑖
The general solution is
𝑦𝑦 = 𝑐𝑐1 + 𝑐𝑐2 𝑒𝑒 2𝑎𝑎 + 𝑐𝑐3 𝑒𝑒 −2𝑎𝑎 + 𝑐𝑐4 𝑐𝑐𝑐𝑐𝑐𝑐2𝑥𝑥 + 𝑐𝑐5 𝑐𝑐𝑖𝑖𝑠𝑠2𝑥𝑥
FARHAN ANTARI
13
5) solve the given diff. Equation subject to the indicated boundary conditions
𝜋𝜋
𝑦𝑦՝՝ + 𝑦𝑦 = 0 , 𝑦𝑦՝(0) = 0, 𝑦𝑦՝( ) = 2
2
Auxiliary equation 𝑚𝑚2 + 1 = 0 → 𝑚𝑚 = ∓𝑖𝑖
The general equation 𝑦𝑦 = 𝑐𝑐1 𝑐𝑐𝑐𝑐𝑐𝑐𝑥𝑥 + 𝑐𝑐2 𝑐𝑐𝑖𝑖𝑠𝑠𝑐𝑐𝑥𝑥
𝑦𝑦՝ = −𝑐𝑐1 𝑐𝑐𝑖𝑖𝑠𝑠𝑥𝑥 + 𝑐𝑐2 𝑐𝑐𝑐𝑐𝑐𝑐𝑥𝑥
𝜋𝜋
𝑦𝑦՝(0) = 𝑐𝑐2 = 0, 𝑦𝑦՝( 2 ) = −𝑐𝑐1 = 2
∴ 𝑦𝑦 = −2𝑐𝑐𝑐𝑐𝑐𝑐𝑥𝑥
EXAMPLE 5 Third-Order DE
Solve y- + 3y0 − 4y = 0.
so the other roots are m 2 = m 3 = −2. Thus the general solution of the DE is
y = c1e x + c2 e−2x + c3 xe−2x. .
EXAMPLE 6 Fourth-Order DE
d 4y d 2y
Solve 4
1 2 2 1 y 5 0.
d
dx d
dx
c s
SOLUT ION The auxiliary equation m + 2m + 1 = (m2 + 1)2 = 0 has roots
2 4
FARHAN ANTARI
14
Generalization:
If 𝑔𝑔(𝑥𝑥) is product of terms considered in case 1 through case 3 take 𝑦𝑦𝑝𝑝 the product of the corresponding
assumed solution
yc c1e(216 ) x c2 e(216 ) x.
Step 2. Now, because the function g(x) is a quadratic polynomial, let us assume a
particular solution that is also in the form of a quadratic polynomial:
yp Ax2 Bx C.
FARHAN ANTARI
16
SOLUTION A natural first guess for a particular solution would be A sin 3x. But
because successive differentiations of sin 3x produce sin 3x and cos 3x, we are
prompted instead to assume a particular solution that includes both of these terms:
yp A cos 3x B sin 3x.
Differentiating yp and substituting the results into the differential equation gives,
after regrouping,
y p yp yp (8A 3B) cos 3x (3A 8B) sin 3x 2 sin 3x
6 16
yp cos 3x sin 3x.
73 73
FARHAN ANTARI
17
EXAMPLE 3 Forming yp by Superposition
SOLUTION
yp Ax B Cxe2x Ee2x
SOLUTION
Step 2. If we assume yc Aex. Observe that our assumption is already present in yc. This means that ex
is a solution of the associated homogeneous differential equation, and a constant multiple Aex when substituted
into the differential equation necessarily produces zero. yp Axe x. (Modified)
Substituting yp Axe x, yp Axe x Ae x and y p Axe x 2Ae x into the differential equation
and simplifying gives
y p 5yp 4yp 3Ae x 8e x.
From the last equality we see that the value of A is now determined as A 83.
Therefore a particular solution of the given equation is yp 83 xe x.
y c1ex c2e4x 8 xe x.
3
FARHAN ANTARI
18
1. 1 (any constant) A
2. 5x 7 Ax B
3. 3x 2 2 Ax 2 Bx C
4. x3 x 1 Ax 3 Bx 2 Cx E
5. sin 4x A cos 4x B sin 4x
6. cos 4x A cos 4x B sin 4x
7. e 5x Ae 5x
8. (9x 2)e 5x (Ax B) e 5x
9. x 2e 5x (Ax 2 Bx C) e 5x
10. e 3x sin 4x Ae 3x cos 4 x Be3x sin 4x
11. 5x 2 sin 4x (Ax 2 Bx C) cos 4x (Ex 2 Fx G ) sin 4x
12. xe 3x cos 4x (Ax B) e 3x cos 4x (Cx E) e 3x sin 4x
(b) The function g(x) x cos x is similar to entry 11 in Table 4.4.1 except, of course, that we use a linear
rather than a quadratic polynomial and cos x and sin x instead of cos 4x and sin 4x in the form of yp:
Again observe that there is no duplication of terms between yp and yc c1 cos 2x c2 sin 2x.
Form Rule for Case I : The form of y p is a linear combination of all linearly independent functions that
are generated by repeated differentiations of g (x).
SOLUTION
FARHAN ANTARI
19
EXAMPLE 7 Particular Solution —Case II
SOLUTION The complementary function is yc c1ex c2xe x. The assumption yp Ae x will fail, since it is
apparent from yc that ex is a solution of the associated homogeneous equation y 2y y 0. Moreover, we
will not be able to find a particular solution of the form yp Axe x, since the term xe x is also duplicated in yc.
We next try
yp Ax 2ex.
Substituting into the given differential equation yields 2Ae x ex, so A 12. Thus a particular solution is
yp 12 x2ex.
MultiplicationRule for Case II If any ypi contains terms that duplicate terms in yc, then that ypi must be
multiplied by xn, where n is the smallest positive integer that eliminates that duplication.
Solve y y 4x 10 sin x
SOLUTION The complementary function is yc c1e3x c2xe 3x. And assumption for a particular solution
would be
yp Ax2 Bx C Ee3x.
yp1 yp2
Inspection of these functions shows that the one term in yp2 is duplicated in yc. If we multiply yp2 by x
we note that the term xe 3x is still part of yc. But multiplying yp2 by x2 eliminates all duplications.
Thus the operative form of a particular solution is
yp Ax2 Bx C Ex2e3x.
Differentiating this last form, substituting into the differential equation, and collecting like terms gives
FARHAN ANTARI
20
It follows from this identity that A 32 , B 98 , C 23 , and E 6. Hence the general
solution y y c y p is y c1 e 3x c2 xe 3x 23x 2 98x 23 6x 2 e 3x.
Solve y y ex cos x.
SOLUTION From the characteristic equation m3 m2 0 we find m1 m2 0 and m3 1. Hence the
complementary solution is yc c1 c2x c3ex. With g(x) ex cos x, we should assume that
Because there are no functions in yp that duplicate functions in the complementary solution, we proceed in
the usual manner. From
we get 2A 4B 1 and 4A 2B 0. This system gives A 101 and B 15,so a particular solution
is yp 101 e x cos x 15 ex sin x .The general solution of the equation is
1 x 1
y yc yp c1 c2x c3ex e cos x ex sin x.
10 5
EXAMPLE 11 Fourth-Order DE —Case II
SOLUTION Comparing yc c1 c2x c3 x2 c4ex with our normal assumption for a particular solution
we see that the duplications between yc and yp are eliminated when yp1 is multiplied by x3 and yp2 is multiplied
by x. Thus the correct assumption for a particular solution is
yp Ax 3 Bx 3ex Cx2ex Exe x.
FARHAN ANTARI
21
29. 5y⬙ ⫹ y⬘ ⫽ ⫺6x, y(0) ⫽ 0, y⬘(0) ⫽ ⫺10 23. y c1ex c2xex c3x2 ex x 3 23 x3 ex
25. y c1 cos x c2 sin x c3x cos x c4x sin x
30. y⬙ ⫹ 4y⬘ ⫹ 4y ⫽ (3 ⫹ x)e⫺2x, y(0) ⫽ 2, y⬘(0) ⫽ 5 x2 2x 3
31. y⬙ ⫹ 4y⬘ ⫹ 5y ⫽ 35e⫺4x, y(0) ⫽ ⫺3, y⬘(0) ⫽ 1 27. y !2 sin 2x 2 1
2
32. y⬙ ⫺ y ⫽ cosh x, y(0) ⫽ 2, y⬘(0) ⫽ 12 29. y 200 200e 3x2 30x
x/5
FARHAN ANTARI
23
zero zero
yp P(x)yp Q(x)yp u1[y1 Py1 Qy1] u2[ y2 Py2 Qy2] y1u1 y2u2 f (x).
y1u1 y2u2 0.
(4)
y1u1 y2u2 f (x).
By Cramer’s rule, the solution of the system in (4) can be expressed in terms of determinants:
FARHAN ANTARI
24
W1 y2 f ( x) W2 y1 f ( x)
u19 and u29 (5)
W W W W
y1 y2 0 y2 y 0
where W2 2 , W1 2 2 , W2 2 1 2. (6)
y19 y29 f (x) y29 y19 f (x)
Since the given differential equation is already in form (2) (that is, the coefficient of y is 1),
we identify f (x) (x 1)e2x. From (6) we obtain
0 xe 2x 4x e 2x 0
W1 2 2x 2x 2x 2 (x 1)xe , W2 2 2x 2 (x 1)e 4x,
(x 1)e 2xe e 2e (x 1)e 2x
and so from (5)
(x 1)xe 4x 2
(x 1)e 4x
u19 x 2 x, u29 x 1.
e 4x e 4x
Integrating the foregoing derivatives gives
1 1 1
u1 x 3 2 x 2 and u2 x 2 x.
3 2 2
Hence from (3) we have
1 1 1 1 1
yp a x 3 2 x 2 b e 2x a x 2 xb xe 2x x 3 e 2x x 2e 2x
3 2 2 6 2
1 3 2x 1 2 2x
and the G.S is y yc yp c1e2x c2xe2x xe xe .
6 2
cos 3x sin 3x
W(cos 3x, sin 3x) 2 2 3,
3 sin 3x 3 cos 3x
0 sin 3x 1 cos 3x 0 1 cos 3x
W1 2 1 2 , W2 2 1 2 .
4 csc 3x 3 cos3x 4 3 sin 3x 4 csc 3x 4 sin 3x
Integrating
W1 1 W2 1 cos 3x
u19 and u29
W 12 W 12 sin 3x
FARHAN ANTARI
25
gives
1 1
u1 x and u2 ln |sin 3x|.
12 36
Thus from (3) a particular solution is
1 1
yp x cos 3x (sin 3x) ln | sin 3x |.
12 36
Wk
u⬘k ⫽ , k ⫽ 1, 2, . . ., n,
W
where W is the Wronskian of y1, y2, . . ., yn and Wk is the determinant obtained by replacing the
kth column of the Wronskian by the column consisting of the right-hand side of (9), that is, the
column (0, 0, . . ., f (x)). When n ⫽ 3, the particular solution is yp ⫽ u1y1 ⫹ u2y2 ⫹ u3y3, where y1,
y2, and y3 constitute a linearly independent set of solutions of the associated homogeneous DE,
and u1, u2, u3 are determined from
lowest possible or that does the job.
W1 W2 W3
u19 ⫽ , u29 ⫽ , u39 ⫽ , (10)
W W W
y1 y2 y3 0 y2 y3 y1 0 y3 y1 y2 0
W ⫽ 3 y19 y29 y39 3 , W1 ⫽ 3 0 y29 y39 3 , W2 ⫽ 3 y19 0 y39 3 , and W3 ⫽ 3 y19 y29 0 3 .
y10 y20 y30 f ( x) y20 y30 y10 f ( x) y30 y10 y20 f ( x)
FARHAN ANTARI
26
Solve y ⫹ y⬘ ⫽ tan x
SOLUTION
Let
1 𝑐𝑐𝑐𝑐𝑠𝑠𝑥𝑥 𝑠𝑠𝑠𝑠𝑠𝑠𝑥𝑥
𝑦𝑦𝑝𝑝 = 𝑢𝑢1 + 𝑢𝑢2 𝑐𝑐𝑐𝑐𝑠𝑠𝑥𝑥 + 𝑢𝑢3 𝑠𝑠𝑠𝑠𝑠𝑠𝑥𝑥 → 𝑊𝑊 = �0 −𝑠𝑠𝑠𝑠𝑠𝑠𝑥𝑥 𝑐𝑐𝑐𝑐𝑠𝑠𝑥𝑥 � = sin2 𝑥𝑥 + cos 2 𝑥𝑥 = 1
0 −𝑐𝑐𝑐𝑐𝑠𝑠𝑥𝑥 −𝑠𝑠𝑠𝑠𝑠𝑠𝑥𝑥
0 𝑐𝑐𝑐𝑐𝑠𝑠𝑥𝑥 𝑠𝑠𝑠𝑠𝑠𝑠𝑥𝑥 1 0 𝑠𝑠𝑠𝑠𝑠𝑠𝑥𝑥
𝑊𝑊1 = � 0 −𝑠𝑠𝑠𝑠𝑠𝑠𝑥𝑥 𝑐𝑐𝑐𝑐𝑠𝑠𝑥𝑥 � = 𝑡𝑡𝑎𝑎𝑠𝑠𝑥𝑥 , 𝑊𝑊2 = �0 0 𝑐𝑐𝑐𝑐𝑠𝑠𝑥𝑥 � = −𝑠𝑠𝑠𝑠𝑠𝑠𝑥𝑥
𝑡𝑡𝑎𝑎𝑠𝑠𝑥𝑥 −𝑐𝑐𝑐𝑐𝑠𝑠𝑥𝑥 −𝑠𝑠𝑠𝑠𝑠𝑠𝑥𝑥 0 𝑡𝑡𝑎𝑎𝑠𝑠𝑥𝑥 −𝑠𝑠𝑠𝑠𝑠𝑠𝑥𝑥
1 𝑐𝑐𝑐𝑐𝑠𝑠𝑥𝑥 0 sin2 𝑥𝑥
𝑊𝑊3 = �0 −𝑠𝑠𝑠𝑠𝑠𝑠𝑥𝑥 0 � = −𝑠𝑠𝑠𝑠𝑠𝑠𝑥𝑥𝑡𝑡𝑎𝑎𝑠𝑠𝑥𝑥 = −
𝑐𝑐𝑐𝑐𝑠𝑠𝑥𝑥
0 −𝑐𝑐𝑐𝑐𝑠𝑠𝑥𝑥 𝑡𝑡𝑎𝑎𝑠𝑠𝑥𝑥
𝑊𝑊1
𝑢𝑢́1 = = 𝑡𝑡𝑎𝑎𝑠𝑠𝑥𝑥 → 𝑢𝑢1 = � 𝑡𝑡𝑎𝑎𝑠𝑠𝑥𝑥 𝑎𝑎𝑥𝑥 = ln|𝑠𝑠𝑒𝑒𝑐𝑐𝑥𝑥|
𝑊𝑊
𝑊𝑊2
𝑢𝑢́2 = = −𝑠𝑠𝑠𝑠𝑠𝑠𝑥𝑥 → 𝑢𝑢2 = � −𝑠𝑠𝑠𝑠𝑠𝑠𝑥𝑥 𝑎𝑎𝑥𝑥 = cos 𝑥𝑥
𝑊𝑊
𝑊𝑊3
𝑢𝑢́3 = = 𝑐𝑐𝑐𝑐𝑠𝑠𝑥𝑥 − 𝑠𝑠𝑒𝑒𝑐𝑐𝑥𝑥 → 𝑢𝑢1 = �(𝑐𝑐𝑐𝑐𝑠𝑠𝑥𝑥 − 𝑠𝑠𝑒𝑒𝑐𝑐𝑥𝑥) 𝑎𝑎𝑥𝑥 = sin 𝑥𝑥 − 𝑙𝑙𝑠𝑠|𝑠𝑠𝑒𝑒𝑐𝑐𝑥𝑥 + 𝑡𝑡𝑎𝑎𝑠𝑠𝑥𝑥|
𝑊𝑊
𝑦𝑦𝑝𝑝 = 𝑙𝑙𝑠𝑠|𝑠𝑠𝑒𝑒𝑐𝑐𝑥𝑥| + cos2 𝑥𝑥 + sin2 𝑥𝑥 − 𝑠𝑠𝑠𝑠𝑠𝑠𝑥𝑥 ln |𝑠𝑠𝑒𝑒𝑐𝑐𝑥𝑥 + 𝑡𝑡𝑎𝑎𝑠𝑠𝑥𝑥|
FARHAN ANTARI
27
FARHAN ANTARI
28
d ny d n21y dy
d
anx n n 1 an21 xn21
n21
1 Á 1 a1 x 1 a0 y 5 g(x), (1)
d
dx d
dx d
dx
same same
d ny d n21y Á
an x n ––––n 1 an21x n21 –––––– 1 .
dx dx n21
CASE I: DISTINCT REAL ROOTS Let m1 and m2 denote the real roots of (3) such
that m1 Þ m2. Then y1 5 xm1 and y2 5 xm2 form a fundamental set of
solutions. Hence the general solution of (2) is
5 xm(m(m 2 1) 2 2m 2 4) 5 xm(m2 2 3m 2 4) 5 0
CASE II: REPEATED REAL ROOTS If the roots of (3) are repeated (that is, m1 = m2), then
we obtain only one solution y1 5 xm1. The second solution y25 xm1 ln x.
x
The general solution of (2) is then
y 5 c1 xm1 1 c2 xm1 ln x. (5)
FARHAN ANTARI
29
EXAMPLE 2 Repeated Roots
CASE III: CONJUGATE COMPLEX ROOTS If the roots of (3) are the conjugate pair
m1 = + i, m2 = − i. Then the general solution is
linearly independent
2 solutions. Correspondingly -
y 5 x [c1 cos( ln x) 1 c2 sin( ln x)]. (6)
EXAMPLE 3
x3y''' + 5x2y"+ 7xy' +8y 5 x3m(m 2 1)(m 2 2)xm23 1 5x2m(m 2 1)xm22 1 7xmxm21 1 8xm
5 xm (m(m 2 1)(m 2 2) 1 5m(m 2 1) 1 7m 18) = 0
5 xm (m3 1 2m2 1 4m 1 8) 5 0.
FARHAN ANTARI
30
SOLUTION Since the equation is nonhomogeneous, we first solve the associated homogeneous
equation. From the auxiliary equation (m − 1)(m − 3) = 0 we find yc = c1x + c2x3. Now before
x of parameters to find a particular solution yp = u1y1 + u2y2, recall that the
using variation
formulasp u91 5 W1yWy and u92 5 W2yW, 2
W5 * x x3
1 3x * 3
2 5 2x , W1 5
0
2x2ex * 3x*
x3 5 x
2 5 22x e , W2 5
x
1 * 0
*
2x2 ex
5 2x3 ex,
2x5 ex 2x3 ex
we find u91 5 2 5 2x2 ex and u92 5 5 ex.
2x3 2x3
The integral of the last function is immediate, but in the case of u91 we integrate
by parts twice. The results are u1 = −x 2 e x + 2xe x − 2e x and u2 = e x. Hence
yp = u1 y1 + u2 y2 is
d 2y dy
a(x 2 x0)2 b(x 2 x0) cy 0 (6)
dx 2 dx
is a generalization of equation (1). Note that (6) reduces to (1) when x0 0. We can solve
Cauchy–Euler equations of the form given in (6) exactly as we did in (1), namely, by seeking
solutions y (x x0)m and using
dy d 2y
m(x 2 x0)m2 1 and m(m 2 1)(x 2 x0)m2 2.
dx dx 2
FARHAN ANTARI
31
19. xy 4y x4 20. 2x2y 5xy y x2 x 7. y c1x (2 2 !6) c2x (2 !6)
2
21. x y xy y 2x 22. x2y 2xy 2y x4 ex 9. y c1 cos( 15 ln x) c2 sin( 15 ln x)
1 11. y c1x2 c2x2 ln x
23. x2y xy y ln x 24. x2y xy y
x1 13. y x 1>2 [c1 cos ( 16 !3 ln x) c2 sin ( 16 !3 ln x)]
In Problems 25–30, solve the given initial-value problem. 15. y c1x 3 c2 cos (!2 ln x) c3 sin (!2 ln x)
25. x2y 3xy 0, y(1) 0, y(1) 4 17. y c1 c2x c3x2 c4x3
26. x2y 5xy 8y 0, y(2) 32, y(2) 0 19. y c1 c2x5 15 x5 ln x
27. x2y xy y 0, y(1) 1, y(1) 2 21. y c1x c2x ln x x(ln x)2
2
28. x y 3xy 4y 0, y(1) 5, y(1) 3 23. y c1x1 c2x ln x
29. xy y x, y(1) 1, y(1) 1 25. y 2 2x2 27. y cos(ln x) 2 sin(ln x)
2
2
30. x y 5xy 8y 8x , 6
y1 122 0, y1 122 0 29. y 3
4 ln x 1 2
4x
In Problems 31 and 32, solve the given boundary-value problem. 31. y c1(x 2 2 x 6), c1 any real constant
31. xy 7xy 12y 0, y(0) 0, y(1) 0 33. x 2y0 2 xy9 2 8y 0 35. x 2y0 7xy9 9y 0
32. x2y 3xy 5y 0, y(1) 0, y(e) 1 37. x 2y0 xy9 y 0
39. y c1(x 3)2 c2(x 3)7
In Problems 33–38, find a homogeneous Cauchy–Euler 41. y c1(x 2) c2(x 2) ln (x 2)
differential equation whose general solution is given.
33. y c1 x4 c2 x2
34. y c1 c2 x5
35. y c1 x 3 c2 x 3 ln x
36. y c1 c2 x c3 x ln x
37. y c1 cos(ln x) c2 sin(ln x)
38. y c1 x 1/2cos(12 ln x) c2 x 1/2 sin(12 ln x)
FARHAN ANTARI