Math 201 Lecture 12: Cauchy-Euler Equations

Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

Math 201 Lecture 12: Cauchy-Euler Equations

Feb. 3, 2012

• Many examples here are taken from the textbook. The first number in () refers to the problem number
in the UA Custom edition, the second number in () refers to the problem number in the 8th edition.

0. Review
• To solve general 2nd order linear equations,
a(t) y ′′ + b(t) y ′ + c(t) y = f (t). (1)

1. Guess one solution y1. (Popular guesses: constants; exponentials; simple polynomials; sin ,cos)
2. Write the equation into standard form
y ′′ + p(t) y ′ + q(t) y = 0 (2)
and apply the “reduction of order” formula:
Z −R p(t)dt
e
y2(t) = y1(t) dt (3)
y1(t)2
3. Apply variation of parameters formula
y p = v1 y1 + v2 y2 (4)
with Z Z
−f (t) y2(t) f (t) y1(t)
v1 = , v2 = . (5)
a(t) [y1 y2′ − y1′ y2] a(t) [y1 y2′ − y1′ y2]
to obtain yp. Note that a(t) is not a constant anymore.
4. The general solution is then given by
y = C1 y1 + C2 y2 + y p. (6)
Simplify if possible.
5. Check your solution if time allows.
• Quiz: Solve
t y ′′ − y ′ = 1. (7)
(As t = 0 is a singular point, let’s just consider t > 0).
Solution.
1. Guess one solution for
t y ′′ − y ′ = 0. (8)
It is clear that any constant is a solution. So let’s take y1 = 1.
2. Use reduction of order to get y2.
a. Write the equation in standard form:

y ′′ −
1 ′ 1
t
y =
t
 1
p(t) = − .
t
(9)
b. Compute R
e− p t2
Z Z R 1
Z Z
y2 = y1 = e t = eln t = t= . (10)
y12 2

3. Use variation of parameters to get y p.

1
2 Math 201 Lecture 12: Cauchy-Euler Equations

Compute   2 ′
t2

t
a(t) [y1 y2′ − y1′
y2] = t 1 − (1) = t2.

(11)
2 2

1 · t2
Z Z
−f (t) y2(t) t
v1 = =− =− ; (12)
′ ′
a(t) [y1 y2 − y1 y2] 2 t2 2
Z Z
f (t) y1(t) 1·1 1
v2 = = =− (13)
a(t) [y1 y2′ − y1′ y2] t2 t
So
1 t2
 
t
 
yp = − 1 + − = −t. (14)
2 t 2
4. The general solution is
t2
y = C1 + C2 − t (15)
2
which can be simplifiied to
y = C1 + C2 t2 − t. (16)

1. Basic Information
• The Equation:
a t2 y ′′ + b t y ′ + c y = 0. (17)
Such equations are called “Cauchy-Euler equations” and they are as easy as equations of constant
coefficients (In fact, Cauchy-Euler equations is just constant-coefficient equations in disguise, see Notes
and Comments).
• How to get general solution
◦ Idea: From general theory of 2nd order linear equations, we know that as soon as we figure out
two linearly independent solutions y1, y2, the general solution is simply
C1 y1 + C2 y2. (18)
Recall that in studying constant-coefficient equations a y ′′ + b y ′ + c y = 0 we obtain y1, y2
through guess y = ert. Here the idea is similar but the guess is different: y = tr.
◦ Procedure:
1. Write down the characteristic equation
a r 2 + (b − a) r + c = 0. (19)
Solve it to get r1, r2.
2. Three cases:
− r1  r2, both real:
y1 = tr1, y2 = tr2; (20)
− r1 = r2 = r, real.
y1 = tr , y2 = tr ln t. (21)
− r1,2 = α ± i β.
y1 = tα cos (β ln t), y2 = tα sin (β ln t). (22)
3. Write down general solution.
◦ Examples:

Example 1. Solve
t2 y ′′ + 7 t y ′ − 7 y = 0. (23)
Feb. 3, 2012 3

Solution. Guided by the theory, we only need to find two linearly independent solutions. The
key now is to realize the following property of tr: (tr)(k) tk = C tr. Substitute y = tr into the

 
equation, we have
0 = t2 y ′′ + 7 t y ′ − 7 y = [r (r − 1) + 7 r − 7] tr = 0 r2 + 6 r − 7 = 0 r1 = −7, r2 = 1. (24)
Thus the general solution is
y = c1 t−7 + c2 t. (25)

Example 2. solve
t2 y ′′ − 3 t y ′ + 4 y = 0. (26)

 
Solution. Substituting y = tr we have
r (r − 1) − 3 r + 4 = 0 r2 − 4 r + 4 = 0 r1 = r2 = 2. (27)
This is double root so the general solution is given by
y = c1 t2 + c2 t2 ln t. (28)

Example 3. Solve
1 ′ 5
y ′′ − y + 2 y = 0. (29)
t t
Solution. Multiply both sides by t2:
t2 y ′′ − t y ′ + 5 y = 0. (30)

 
Substituting y = tr gives
r (r − 1) − r + 5 = 0 r2 − 2 r + 5 = 0 r1 = 1 + 2 i, r2 = 1 − 2 i. (31)
The general solution is then given by
y = c1 t cos (2 ln t) + c2 t sin (2 ln t). (32)

• Relations to constant-coefficient equations. The formulas


◦ r1  r2, both real:
y1 = tr1, y2 = tr2; (33)
◦ r1 = r2 = r, real.
y1 = tr , y2 = tr ln t. (34)
◦ r1,2 = α ± i β.
y1 = tα cos (β ln t), y2 = tα sin (β ln t). (35)

above looks similar to our theory for linear constant-coeffcient equations. This similarity becomes


more striking if we introduce a new variable x = ln t: The three cases become


◦ Two distinct roots er1 x , er2 x;


◦ One double root erx , x erx;
◦ Complex roots eαx cos β x, eαx sin β x.
This is no coincidence! In fact, setting x = ln t gives
d2 y d2 y
 
dy dy dx dy d −1 dy dx dy
y′ = = = t−1 , y′ = 2 = t = t−2 2 − t−2 . (36)
dt dx dt dx dt dx dx dt dx dx
Substituting into the equation
d2 y dy
0 = a t2 y ′′ + b t y ′ + c y = a 2
+ (b − a) + c y. (37)
dx dx
4 Math 201 Lecture 12: Cauchy-Euler Equations

Thus we have transformed the Euler-Cauchy equation into a constant-coefficient equaiton. Further-
more, the auxiliary equation for this equation is
a r 2 + (b − a) r + c = a r (r − 1) + b r + c (38)
which is exactly the characteristic equation of the Cauchy-Euler equation!
• How to check solutions
◦ Note: Check solutions, especially in the 3rd case, may involve so much calculation that it
becomes not worthwhile. Instead, make sure you write down the correct characteristic equation
and solve it correctly.

2. Things to be Careful/Tricky Issues


See “Common Mistakes” for examples.
• Fail to see that the equation is Cauchy-Euler. (This is the hottest mistake in 201!!)
• After finding r1,2, write er1 t , er2 t instead of tr1, tr2. (This mistake is also very popular.)

3. More Examples
• Initial value problem.

Example 4. Solve the following initial value problem for the Cauchy-Euler equation
t2 y ′′ − 4 t y ′ + 4 y = 0; y(1) = −2, y ′(1) = −11. (39)

 
Solution. Substituting y = tr gives
r (r − 1) − 4 r + 4 = 0 r2 − 5 r + 4 = 0 r1 = 4, r2 = 1. (40)
Thus the general solution is given by
y(t) = c1 t4 + c2 t. (41)
Using the initial values, we have
−2 = y(1) = c1 + c2; − 11 = y ′(1) = 4 c1 + c2. (42)
Solving this we reach
c1 = −3, c2 = 1. (43)
Thus the solution to the initial value problem is given by
y(t) = −3 t4 + t. (44)

• What happens if t < 0?

Example 5. (NA; 4.7 15) Solve for t < 0


1 ′ 5
y ′′ − y + 2 = 0. (45)
t t
Solution. Let x = −t. Then x > 0. We have
d2 y d dy dx d2 y
     
dy dy dx dy d dy d dy
= =− ; 2
= = − = − · = . (46)
dt dx dt dx dt dt dt dt dx dx dx dt dx2
So if we use x instead of t as the variable, the equation (with unknown y and variable x) reads
d2 y 1 dy 5
− + = 0. (47)
dx2 x dx x2


It is still Cauchy-Euler, with a = 1, b = −1, c = 5. We write down characteristic equation
r2 − 2 r + 5 = 0 r1,2 = 1 ± 2 i. (48)
Feb. 3, 2012 5

So the solution reads


y(x) = C1 x cos (2 ln (x)) + C2 x sin (2 ln x). (49)
Back to t:
y(t) = C1 (−t) cos (2 ln (−t)) + C2 (−t) sin (2 ln (−t)). (50)
Which can be written as
y(t) = C1 |t| cos (2 ln |t|) + C2 |t| sin (2 ln |t|). (51)

Remark 6. In fact, we can solve Cauchy-Euler for t  0 as


◦ r1  r2, both real:
y1 = |t|r1, y2 = |t|r2; (52)
◦ r1 = r2 = r, real.
y1 = |t|r , y2 = |t|r ln |t|. (53)
◦ r1,2 = α ± i β.
y1 = |t|α cos (β ln |t|), y2 = |t|α sin (β ln |t|). (54)

• What if it’s not t?

Example 7. (4.7 21; 4.7 21) Solve


(t − 2)2 y ′′ − 7 (t − 2) y ′ + 7 y = 0, t > 2. (55)
Solution. It is clear that we should introduce x = t − 2. Now chain rule gives
dy dy d2 y d2 y
= ; = . (56)
dt dx dt2 dx2
The equation becomes
d2 y dy
x2 −7x + 7 y = 0, x > 0. (57)
dx2 dx
This can be easily solved:
y(x) = C1 x + C2 x7. (58)
Back to t:
y(t) = C1 (t − 2) + C2 (t − 2)7. (59)
• Nonhomogeneous problem.
◦ There are two ways to attack nonhomogeneous problem for Cauchy-Euler equations.
1. Introduce x = ln t, transform it to constant-coefficient case, then apply undetermined
coefficients, or variation of parameters;
2. Apply variation of parameters directly.
◦ Examples.

Example 8. Solve
t2 y ′′ − 4 t y ′ + 4 y = t2. (60)
Solution 1 (x = ln t).
We know that setting x = ln t transforms
d2 y dy
a t2 y ′′ + b t y ′ + c y to a + (b − a) + c y. (61)


dx 2 dx
So the equation for x is (x = ln t t = ex):
d2 y dy
2
−5 + 4 y = e2x. (62)
dx dx
6 Math 201 Lecture 12: Cauchy-Euler Equations

We see that this equation is eligible for undetermined coefficients (keep in mind that whenever
undetermined coefficients applys, it is more efficient than variation of parameters).
To solve it we first get y1, y2 by solving
d2 y dy
−5 +4y=0 (63)
dx2 dx
which gives
r1 = 4, r2 = 1; y1 = e4x , y2 = ex. (64)
Now guess
yp = A xs e2x. (65)
We have s = 0 because 2 does not appear in the root list r1 = 4, r2 = 1.
Substitute yp = A e2x into the equation we get

d2 y
dx2
= 4 A e2x ,
dy
dx
= 2 A e2x  4 A − 10 A + 4 A = 1  1
A=− .
2
(66)

e2x
So y p = − 2
. The general solution (in x) is then
1 2x
y = C1 e4x + C2 ex − e . (67)
2
Back to t: (Replace every x by ln t):
1 2
y(t) = C1 t4 + C2 t − t. (68)
2
Solution 2 (Direct application of variation of parameters).
The equation is Cauchy Euler so we can solve the homogeneous equation
t2 y ′′ − 4 t y ′ + 4 y = 0 (69)

 
as follows:
r (r − 1) − 4 r + 4 = 0 r2 − 5 r + 4 = 0 r1 = 4, r2 = 1. (70)
So
y1 = t4, y2 = t. (71)
Now calculate:
a(t) [y1 y2′ − y1′ y2] = t2 [t4 − 4 t3 t] = −3 t6. (72)
Thus
−t2 t
Z Z Z
−f (t) y2(t) 1 1
v1 = = = = − t−2. (73)
a(t) [y1 y2′ − y1′ y2] −3 t6 3 t3 6

t2 t4
Z Z
f (t) y1(t) t
v2 = = =− . (74)
′ ′
a(t) [y1 y2 − y1 y2] −3 t6 3
Therefore
t2
 
1 −2 4 t
 
yp = v1 y1 + v2 y2 = − t t + − t=− . (75)
6 3 2
The general solution is then given by
1 2
y(t) = C1 t4 + C2 t − t. (76)
2

Example 9. (4.7 41; 4.7 41) Solve

t2 z ′′ + t z ′ + 9 z = −tan (3 ln t). (77)


Solution. First solve the homogeneous equation
t2 z ′′ + t z ′ + 9 z = 0. (78)
Feb. 3, 2012 7


It is Cauchy-Euler. So first solve the characteristic equation:
r (r − 1) + r + 9 = 0 r1,2 = ±3. (79)
So we have
y1 = cos (3 ln t), y2 = sin (3 ln t). (80)
Next we use variation of parameters to obtain yp. First calculate:
     
′ ′ 2 3 3
a [y1 y2 − y1 y2] = t cos (3 ln t) sin (3 ln t) − − cos (3 ln t) sin (3 ln t)
t t
3
= t2 = 3 t. (81)
t
Now we have
Z
−tan (3 ln t) sin (3 ln t)
v1 = − dt
3t
sin2 (3 ln t)
Z
1
= dln t. (82)
3 cos (3 ln t)
Letting x = ln t, we compute
sin2 (3 x)
Z Z Z
dx
dx = − cos (3 x) dx
cos (3 x) Z cos (3 x)
1 1
= 2 (3 x)
cos (3 x) dx − sin (3 x)
Z cos 3
1 1 1
= dsin (3 x) − sin (3 x)
3  1 − sin2 (3 x) 3 
Z Z
1 dsin (3 x) dsin (3 x) 1
= + − sin (3 x)
6 1 − sin (3 x) 1 + sin (3 x) 3
1 1
= [ln |1 + sin (3 x)| − ln |1 − sin (3 x)|] − sin (3 x). (83)
6 3
Back to t:  
1 1 1
v1 = [ln |1 + sin (3 ln t)| − ln |1 − sin (3 ln t)|] − sin (3 ln t) . (84)
3 6 3
On the other hand
Z
(−tan (3 ln t)) cos (3 ln t)
v2 = dt
Z 3t
sin (3 ln t)
= − dt
Z 3t
1
= − sin (3 ln t) dln t
3
1
= cos (3 ln t); (85)
9
Putting things together we have
1
yp = [ln |1 + sin (3 ln t)| − ln |1 − sin (3 ln t)|] cos (3 ln t)
18
1
− sin (3 ln t) cos (3 ln t)
9
1
+ cos (3 ln t) sin (3 ln t)
9
1
= [ln |1 + sin (3 ln t)| − ln |1 − sin (3 ln t)|] cos (3 ln t) (86)
18
Thus the solution is
1
y = C1 cos (3 ln t) + C2 sin (3 ln t) + [ln |1 + sin (3 ln t)| − ln |1 − sin (3 ln t)|] cos (3 ln t). (87)
18
8 Math 201 Lecture 12: Cauchy-Euler Equations

Remark 10. For such problems sometimes it is more efficient to let x = ln t and transform the equation
(See Notes and Comments). For example for the above problem, if we let x = ln t, then the equation
becomes
d2 y
+ 9 y = −tan (3 x). (88)
dx2
This can be solved by variation of parameters, to obtain
1
y = C1 cos (3 x) + C2 sin (3 x) + [ln |1 + sin (3 x)| − ln |1 − sin (3 x)|] cos (3 x). (89)
18
Replace x by ln t we get our solution.

4. Notes and Comments


• Why b − a?
To remember it, just remember that our guess is y = tr. Substituting this into the equation we reach
a r (r − 1) + b r + c = 0 (90)
which is exactly
a r 2 + (b − a) r + c = 0. (91)
• Why do we need t > 0?
Note that, unlike ert, tr is singular (meaning: either it’s infinity, or its certain order of derivative
is infinity) at t = 0.
More accurately, when writing the Cauchy-Euler equation in standard form
b/a ′ c/a
y ′′ + y + 2 y = 0. (92)
t t
b/a c/a
We see that p(t) = t and q(t) = t2 are singular at 0. This is an indication that good theories
(solution exists, solution is unique, solution is smooth...) break down when the interval for t contains
0. Therefore to make things simple we either work in t > 0 or in t < 0, to avoid containing t = 0.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy