Professional Documents
Culture Documents
MITRES 18 008 partII Sol05
MITRES 18 008 partII Sol05
MITRES 18 008 partII Sol05
U n i t 7: V a r i a t i o n of Parameters
2.7.1(L)
There a r e two d i f f i c u l t a s p e c t s t o u s i n g t h e method of v a r i a t i o n
of p a r a m e t e r s . The f i r s t i s t o understand why t h e method works
(and h o p e f u l l y t h i s was made s u f f i c i e n t l y c l e a r i n t h e l e c t u r e ) .
The second i s t o have t h e c o m p u t a t i o n a l t o o l s n e c e s s a r y t o g r i n d
o u t t h e s p e c i f i c answer. I n many c a s e s , t h e r e q u i r e d f u n c t i o n s
g l ( x ) and g 2 ( x ) must b e l e f t i n i n t e g r a l form.
then
Yp = g1 ( x ) u l ( x ) + g 2 ( x ) u 2 (XI
i s a p a r t i c u l a r s o l u t i o n of
provided t h a t
* N o t i c e i n ( 1 ) t h a t t h e r e i s n o r e s t r i c t i o n t h a t we m u s t h a v e
constant coefficients.
**We s h a l l t a l k a b o u t h i g h e r o r d e r e q u a t i o n s i n E x e r c i s e 2 . 7 . 7 .
The g e n e r a l t h e o r y i s t h e same, b u t t h e c o m p u t a t i o n s become more
d i f f i c u l t when t h e o r d e r i s g r e a t e r t h a n 2 . F o r t h i s r e a s o n , we
p r e f e r t o e m p h a s i z e t h e s e c o n d o r d e r e q u a t i o n , l e s t t h e method be-
come l o s t i n t h e v a s t a m o u n t o f c o m p u t a t i o n a l d e t a i l .
Solutions
Block 2: Ordinary Differential Equations
Unit 7: Variation of Parameters
From (6), we have that ex and e-X are a pair of linearly indepen-
dent solutions of the reduced equation y" - y = 0. Letting
.
ex = ul (x) e-X = u2 (x) , and
1 + ex
= £(X), we may invoke (2) and
( 4 ) to conclude that
glv(x)ex - g2'(x)e -x =-
1
1
+ ex* J
Solving (8) is a matter of manipulative skill (and/or a bit of
luck). By adding the two equations in ( 8 ) , we see that
-x
*I.e., t h i s i s e q u a t i o n (4) w i t h ul(x) = e
X
, u2(x) = e , and
f (x) =
1
. N o t i c e t h a t we c a n n o t u s e u n d e t e r m i n e d c o e f f i -
1 + ex
cients here since
1 + eA
- i s n o t of t h e " r i g h t form." That i s , i t
i s n o t a l i n e a r c o m b i n a t i o n o f t e r m s o f t h e f o r m x k e a X s i n Bx a n d /
o r x k e a x c o s fix.
Solutions
Block 2: Ordinary Differential Equations
Unit 7: Variation of Parameters
hence,
hence,
and
-x
w e may u s e t a b l e s o r we may make t h e s u b s t i t u t i o n u = e ,
whereupon
-X
du = -e dx.
Moreover,
Hence,
*Since u = e
-X
, u > 0 for a l l x. I n p a r t i c u l a r , w e do n o t h a v e t o
worry a b o u t u b e i n g e q u a l t o 0 .
Solutions
Block 2: Ordinary Differential Equations
Unit 7: Variation of Parameters
X X
Similarly, letting u = 1 + e , du = e dx. Hence.
Y~
= ex[-$ e-x + 1 1" (eX + 1) - $XI + e-x[-i in (1 + ex)]
= - 5 (i+xeX) in ( l + e X )
2.7.2
Since
we have that
X
Yh = Cle + c2xe
X
.
Letting ul = e
X
and u2 = xeX , it follows that
ult (x) = eX
and
Hence,
X X
+ g2 (x) xe
Y~ = g1 (XIe
2.7.2 continued
gll (XI ex + g 2 ( x ) x e X = o
and
S u b t r a c t i n g t h e t o p e q u a t i o n i n ( 4 ) from t h e bottom y i e l d s
Replacing g 2 ' ( x ) by I n x i n t h e t o p e q u a t i o n of ( 4 ) y i e l d s
X
gl'(x)ex + xe ln x = 0
g2 ( x ) = x l n x - x
and
2.7.2 continued
i s t h e g e n e r a l s o l u t i o n of (1).
2.7.3(L)
Our main aim h e r e i s t o show how one can f i n d t h e g e n e r a l s o l u t i o n
of y n + p ( x ) y ' + q ( x ) y = 0** once one non-zero p a r t i c u l a r s o l u t i o n
of t h e e q u a t i o n i s known. W e s h a l l h a n d l e t h e g e n e r a l c a s e a s a
n o t e a t t h e c o n c l u s i o n of t h i s e x e r c i s e , b u t f o r now w e would l i k e
t o i l l u s t r a t e t h e method more c o n c r e t e l y .
W e a r e given t h e equation
*Had t h e d o m a i n o f
2 x 1
x e (2 i n 1x1
from t h e domain of
- t). T h e important point is t h a t x
(1) s i n c e then e X l n x i s undefined.
-
( 1 ) b e e n x < 0 , ( 9 ) would h a v e b e e n r e p l a c e d by
0 is excluded
* * R e c a l l from o u r e a r l i e r l e c t u r e s t h a t t h e e x i s t e n c e of t h e
g e n e r a l s o l u t i o n i n t h i s c a s e i s g u a r a n t e e d a s s o o n a s p ( x ) and
q(x) a r e continuous.
***Since p(x) = -
1
and q(x) = --I3 here, the condition that x $ 0
X X
guarantees t h a t t h e general s o l u t i o n e x i s t s , s i n c e only a t x
1
- 0
a r e 2 a n d -- discontinuous.
X X
Solutions
Block 2: Ordinary D i f f e r e n t i a l Equations
U n i t 7 : V a r i a t i o n of Parameters
2.7.3 (L) c o n t i n u e d
i s t h e g e n e r a l s o l u t i o n of (1) .
The major problem i s t h a t of f i n d i n g a t e c h n i q u e which y i e l d s
u ( x ) , and i t t u r n s o u t t h a t t h e method of v a r i a t i o n of parameters
i s again t h e solution.
A s b e f o r e , w e r e p l a c e c by g ( x ) i n y = c x t o o b t a i n
and
= xg" ( X I + 29' ( x ) .
Using ( 2 1 , (31, and ( 4 ) i n (1) y i e l d s
Solutions
Black 2 % Ordinary D i f f e r e n t i a l Equations
Unit 7 : V a r i a t i o n of Parameters
2 . 7 . 3 (L) continued
1 1
[xg" (x) + 29' (x) 1 + +xg' (XI + g (x) 1 - +xg (x) ] = 0
X X
Letting p = g l ( x ) i n ( 5 ) , we see t h a t
(kl an a r b i t r a r y c o n s t a n t ) , o r
2 . 7 . 3 (L) c o n t i n u e d
kl
Hence. s i n c e e i s a n a r b i t r a r y p o s i t i v e c o n s t a n t and 1x1-2 =
=I - I2 , ( 7 ) becomes
lx12 x
-
lpl ex where
=k2 7 k2 = e 1 > 0.
X
Hence
-
X
P = k 3 2 where k g = t k 2 . *
X
case e
/(;T
+ X i)dx
= e
+)
2 ~n 1x1 - -
1
= x2 e
--1
is a n integrating
factor i n which case (6') becomes
--1
-(pX2
dx )
'
L = 0, or px2 e
X
= lc; whence
Solutions
Block 2: Ordinary Differential Equations
Unit 7: Variation of Parameters
2.7.3(L) continued
-X
I
.
is the general solution of (1) In this regard, notice that (11)
was more "complete" than was necessary. Namely, all we needed was
-
one specific solution of (1) which was not a constant multiple of
x, or, equivalently, any one function g(x) which was not a
Solutions
Block 2: Ordinary D i f f e r e n t i a l Equations
U n i t 7: V a r i a t i o n of Parameters
2.7.3(L) continued
* A g a i n , t e c h n i c a l l y s p e a k i n g , a l l we h a v e shown i s t h a t if t h e r e
e x i s t s a s o l u t i o n of t h e f o r m x g ( x ) w h e r e g i s n o t c o n s t a n t , t h e n
any such s o l u t i o n i s e s s e n t i a l l y g i v e n by ( 1 3 ) .
Solutions
Block 2: Ordinary Differential Equations
Unit 7: Variation of Parameters
2.7.3(L) continued
Hence
Note
The technique used in this exercise may be generalized as follows.
Suppose we are given the homogeneous linear differential equation
(where the coefficients need not be constants)
U2
(x) = g (x)ul' (XI + 9' (x)ul(XI
and
2.7.3(L) continued
1
[g(x)ul" (x) + 2g' (x)ul' (XI + g" (XI u1 (x)I
While the left side of (5) may seem a bit cumbersome, let us ob-
serve that ul(x) was not just "any old function" but rather was a
solution of (1). This means that
Herein lies the key as to why every term involving g(x) vanishes
from the left side of (5). Namely, the portion of the left side
of (5) which involves g (x) is
If we now let v = g' (x) [in the exercise, we let p = g' (x) but
this would be confusing in the present context because p or p(x),
is being used to denote the coefficient of y' in (1)1, (7) becomes
Hence
so that
Given
~ ( e =~erX(r2
~ ) - 2r + 1) rx (r
= e - 1)2 .
rx
Hence, r = 1 is a root of L(e ) = 0, and we may conclude that
X
y = e (1
is a solution of
From (3),
and
2.7.4 continued
From ( 6 1 ,
whereupon ( 3 ) becomes
X
y = x e ,
2.7.5
a. Once we w r i t e
i n t h e e q u i v a l e n t form
it i s n o t hard t o n o t i c e t h a t
Thus, l e t t i n g
Solutions
Block 2: Ordinary Differential Equations
Unit 7: Variation of Parameters
2.7.5 continued
in (2) yields
From (6)
and
4x 4x
y" = [16g(x)e4x + 49' (x)e 1 + [4g1(x)e4x + g" (x)e 1
2.7.5 continued
89' (x)e
4x
+ g" (x)e4X]
+ (-4x2) [g ( x ~ e.~ ~ ]
or
so that
2.7.5 continued
* H e r e we h a v e a n e x a m p l e i n w h i c h g ( x ) ( u p t o a n a d d i t i v e c o n -
s t a n t ) i s w e l l - d e f i n e d b e c a u s e o u r i n t e g r a n d i s c o n t i n u o u s , b u t we
c a n n o t e x p r e s s g ( x ) i n a more e x p l i c i t c l o s e d form. We c o u l d e x -
pand t h e i n t e g r a n d as a power s e r i e s and i n t e g r a t e term-by-term
e t c . , b u t o u r m a i n p o i n t i s t h a t g ( x ) may n o t b e c o n v e n i e n t f r o m
a n e x p l i c i t p o i n t of view.
Solutions
Block 2 : Ordinary D i f f e r e n t i a l Equations
U n i t 7: V a r i a t i o n o f Parameters
2.7.6 (L) c o n t i n u e d
S i n c e y = x i s one s o l u t i o n of
t h e method of v a r i a t i o n of p a r a m e t e r s t e l l s us t h a t a n o t h e r l i n -
e a r l y independent s o l u t i o n of ( 2 ) e x i s t s i n t h e form
From ( 3 1 ,
and
= xg"(x) + 2g' ( x ) .
P u t t i n g ( 3 1 , ( 4 1 , and ( 5 ) i n t o (2) y i e l d s
and s i n c e x # 0 ,
Solutions
Block 2: Ordinary Differential Equations
Unit 7: Variation of Parameters
Since
Hence
2.7.6 (L) c o n t i n u e d
The i n t e g r a l i n ( 8 ) l e n d s i t s e l f n i c e l y t o t r i g o n o m e t r i c s u b s t i t u -
t i o n . Namely.
/I.] ~~~~~=
=
dx
COS 8
m
so that
2
s i n 8 cos 8
2.7.6 (L) c o n t i n u e d
i s o u r second l i n e a r l y independent s o l u t i o n of ( 2 ) .
Thus, t h e g e n e r a l s o l u t i o n of (2) i s
Observe t h a t i n d e r i v i n g ( 1 2 ) , w e w e r e d o i n g t h e same t h i n g a s we
d i d i n E x e r c i s e s 2.7.3, 2.7.4, and 2.7.5; namely, f i n d i n g t h e
g e n e r a l s o l u t i o n of L ( y ) = 0 knowing one non-zero s o l u t i o n .
Now w e u s e v a r i a t i o n of p a r a m e t e r s , s t a r t i n g w i t h ( 1 2 ) , a s we d i d
i n E x e r c i s e s 2.7.1 and 2.7.2; namely, t o f i n d a p a r t i c u l a r s o l u -
t i o n of L ( y ) = f ( x ) once w e know t h e g e n e r a l s o l u t i o n of L ( y ) = 0 .
u1 I ( x ) = 1 and u2 (x) =
-x
.
Hence, t h e r e e x i s t s a p a r t i c u l a r
/1-x2
s o l u t i o n of (1) i n t h e form
= xhl ( x ) + /1 - x L h2 ( x ) *
Y~
where
xhll ( x ) + h2 (XI = 0
and
* I n o u r l e c t u r e and p r e v i o u s e x e r c i s e s , we u s e d g l and g g r a t h e r
than h l and h 2 . S i n c e t h e names o f o u r f u n c t i o n s i s n o t impor-
t a n t , we e l e c t e d t o u s e h r a t h e r t h a n g s i m p l y s o a s n o t t o become
confused w i t h g a s used i n equation ( 3 ) .
Solutions
Block 2: Ordinary Differential Equations
Unit 7: Variation of Parameters
so from (15),
Hence,
2.7.6 (L) c o n t i n u e d
Check of (18)
Theref o r e ,
i s t h e g e n e r a l s o l u t i o n of (1).
Solutions
Block 2: Ordinary Differential Equations
Unit 7: Variation of Parameters
2.7.7 (Optional)
a. Up to now we have been stressing variation of parameters in the
case of second order linear equations. Even in this relatively
simple case, the arithmetic often becomes cumbersome. Obviously,
then, one can expect some real "messes" to occur when we apply
variation of parameters to higher order linear equations.
Nevertheless, we feel it is worthwhile to practice on at least one
higher order equation in order to make sure that you understand
the general theory.
The overview is as follows.
Suppose
Y~
= g1 (x)ul (XI + ... + gn (x)un (x)*
where
2.7.7 continued
System ( 4 ) i s e s s e n t i a l l y n l i n e a r e q u a t i o n s i s t h e n unknowns
g l l (x) , ...
, gn' (x) .
[That i s , t h e u ' s a r e known f u n c t i o n s of X;
N o t i c e t h a t i n ( 4 ) t h a t each o f t h e l e f t s i d e s of t h e f i r s t (n-1)
e q u a t i o n s i s equated t o 0. The l a s t e q u a t i o n h a s t h e l e f t s i d e
equated t o f ( x ) .
I f w e view t h e u ' s a s c o e f f i c i e n t s , w e see t h a t t h e d e t e r m i n a n t of
coefficients is
u1 ( x ) . ..., un ( x )
ul' ( x ) - - - - , Un' (x)
2.7.7 continued
2.7.7 continued
y" = g1 (x)ul" (x) + gl' (x)ul' (XI + g* (XIu2" (XI + g2' (XIu2' (XI +
2.7.7 continued
Hence,
Solutions
Block 2: Ordinary Differential Equations
Unit 7: Variation of Parameters
2.7.7 continued
Knowing that
y h =1 ~ ~ 2 + ~ ~ l 3n (lnx)
x + c2 x
Solutions
Block 2: Ordinary D i f f e r e n t i a l Equations
Unit 7: V a r i a t i o n of Parameters
2.7.7 continued
i s t h e g e n e r a l s o l u t i o n of t h e reduced e q u a t i o n , we may l e t
i s a p a r t i c u l a r s o l u t i o n of (1) provided
Using t h e s e r e s u l t s i n ( 5 ) , we o b t a i n t h e system
Solutions
Block 2: Ordinary D i f f e r e n t i a l Equations
U n i t 7: V a r i a t i o n of Parameters
2.7.7 continued
We complete t h e d i a g o n a l i z a t i o n of t h e system by r e p l a c i n g t h e
t h i r d e q u a t i o n i n ( 8 ) by t h e t h i r d minus t h e second t o o b t a i n
In x
g3 ' (XI = -2x '
P u t t i n g t h i s r e s u l t i n t o t h e second e q u a t i o n i n ( 9 ) y i e l d s
In x
g 2 ' ( x ) + 2 I n x (2x) = 0
orI
S.2.7.35
Solutions
Block 2: Ordinary Differential Equations
Unit 7: Variation of Parameters
2.7.7 continued
1 (In x)4
g1(x) = g
Resource: Calculus Revisited: Complex Variables, Differential Equations, and Linear Algebra
Prof. Herbert Gross
The following may not correspond to a particular course on MIT OpenCourseWare, but has been
provided by the author as an individual learning resource.
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.