Beruflich Dokumente
Kultur Dokumente
Homework 6 Solutions
1. Problem 1(a)
d2 y
dy
+ 2 + y = 0,
2
dx
dx
y(0) = 0, y(1) = 1.
d y
dy
Solution: Since the coefficients of dx
2 and dx are both positive, we expect the BL
to sit at x = 0. Set = 0 to get an outer-approximation yout valid for x = O(1),
dyout
+ yout = 0,
dx
d2 y
dy
+
2
+ y = 0.
dz 2
dz
d2 y
dz 2
and
dy
,
dz
we obtain
1 2 = = = 1,
after which the rescaled equation becomes
1
d2 y
1 dy
+
2
+ y = 0.
dz 2
dz
Page 1 of 14
Hw 6 Solutions Contd.
We now set = 0 and solve for the leading order approximation to yin which satisfies
d2 yin
dy
+ 2 in = 0,
2
dz
dz
Substitute v =
yin (0) = 0.
dy
dz
dv
+ 2v = 0 = v(z) = A exp(2z).
dz
Hence
dyin
= v(z) = A exp(2z),
dz
A
= yin (z) = exp(2z) + B,
2
and the inner BC yin (0) = 0 implies
A
A
yin (0) = + B = 0 = B = .
2
2
Thus
2z
yin = B 1 e
=B 1e
2x/
z = x/.
x0
But
lim yout (x) = e1/2 ,
x0+
and
lim yin (z) = B,
so
B = e1/2 .
Hence
yin (x) = e
1/2
1e
2x/
+ O().
Page 2 of 14
Hw 6 Solutions Contd.
4 4
1h
=
1 1 .
2
(em+
1
.
em )
(em+
h
i
1
m+ x
m x
e
e
.
em )
1
1 = 1 + O(2 ).
2
This gives
1
1
1
1 + 1 + O(2 ) = + O(),
2
2
1
1
2 1
m =
1 1 + O(2 ) = + + O(),
2
2
m+ =
and
em+ em = e1/2 + O().
The exact solution can be approximated as
1
y(x) = 1/2 ex/2 e(2/+1/2)x + O(),
e
= e1/2 ex/2 e2x/ + O().
2. Problem 1(b)
d2 y dy
+
+ y 2 = 0,
dx2 dx
1
1
y(0) = , y(1) = .
4
2
Page 3 of 14
Hw 6 Solutions Contd.
dy
d y
Solution: Since the coefficients of dx
2 and dx are both positive, we expect the BL
to sit at x = 0. Set = 0 to get an outer-approximation yout valid for x = O(1),
dyout
2
= 0,
+ yout
dx
with the BC for the outer layer being
1
yout (1) = .
2
Using separation of variables (or integrating factor) we get the general solution
yout =
1
.
xA
1
1
= = A = 1.
1A
2
1
+ O().
x+1
To find the inner approximation yin , which describes the solution for x in the BL
near x = 0, we rescale x as
z = x,
> 0.
The ODE becomes
12
dy
d2 y
+ + y 2 = 0.
2
dz
dz
d2 y
dz 2
and
dy
,
dz
we obtain
1 2 = = = 1,
after which the rescaled equation becomes
1
d2 y
dy
+ 1 + y 2 = 0.
2
dz
dz
Page 4 of 14
Hw 6 Solutions Contd.
We now set = 0 and solve for the leading order approximation to yin which satisfies
d2 yin dyin
= 0,
+
dz 2
dz
Substitute v =
1
yin (0) = .
4
dy
dz
dv
+ v = 0 = v(z) = A exp(z).
dz
Hence
dyin
= v(z) = A exp(z),
dz
= yin (z) = A exp(z) + B,
yin = 1/4 B ez + B = 1/4 B ex/ + B,
z = x/.
x0
But
lim yout (x) = 1,
x0+
and
lim yin (z) = B,
so
B = 1.
Hence
3
yin (x) = 1 ex/ + O().
4
Finally the uniform approximation yunif to the full solution is given by
yunif (x) = yin (x) + yout
=
1
+ 1
x+1
1
=
x+1
i
lim+ yout (x) ,
x0
3 x/
e
1 + O(),
4
3 x/
e
+ O().
4
Page 5 of 14
Hw 6 Solutions Contd.
3. Problem 1(d)
d2 y
dy
+ (x + 1) + y = 0,
2
dx
dx
y(0) = 0, y(1) = 1.
d y
dy
Solution: Since the coefficients of dx
2 and dx are both positive, we expect the BL
to sit at x = 0. Set = 0 to get an outer-approximation yout valid for x = O(1),
(x + 1)
dyout
+ yout = 0,
dx
A
.
1+x
2
+ O().
1+x
To find the inner approximation yin , which describes the solution for x in the BL
near x = 0, we rescale x as
z = x,
> 0.
The ODE becomes
12
dy
d2 y
+ ( z + 1) + y = 0,
2
dz
dz
= 12
d2 y
dy
+ ( + z) + y = 0.
2
dz
dz
d2 y
dz 2
and
dy
,
dz
we obtain
1 2 = = = 1,
after which the rescaled equation becomes
1 d
y
dy
1
+
(
+
z)
+ y = 0.
dz 2
dz
Page 6 of 14
Hw 6 Solutions Contd.
yin (0) = 0.
dy
dz
dv
+ v = 0 = v(z) = A exp(z).
dz
Hence
dyin
= v(z) = A exp(z),
dz
= yin (z) = A exp(z) + B,
yin = A 1 ez = A 1 ex/ ,
z = x/.
x0
But
lim yout (x) = 2,
x0+
and
lim yin (z) = A,
so
A = 2.
Hence
x/
yin (x) = 2 1 e
+ O().
Page 7 of 14
Hw 6 Solutions Contd.
4. Problem 1(f)
d2 y
dy
+ x xy = 0,
2
dx
dx
y(0) = 0, y(1) = e.
Solution: For x in the interval [0,1], the coefficient of dy/dx is strictly positive only
away from x = 0. But x = 0 would coincide with the BL, so we will put the BL at
x = 0. Set = 0 to get an outer-approximation yout valid for x = O(1),
x
dyout
xyout = 0,
dx
dy
d2 y
+ ( z) zy = 0,
2
dz
dz
= 12
dy
d2 y
+ z zy = 0.
2
dz
dz
d2 y
dz 2
and
dy
,
dz
we obtain
1 2 = 0 = = 1/2,
after which the rescaled equation becomes
d2 y
dy
+
z
1/2 zy = 0.
2
dz
dz
Page 8 of 14
Hw 6 Solutions Contd.
Since 1 = 0 dominates 1/2 for small , we obtain a valid balance for = 1/2.
We now set = 0 and solve for the leading order approximation to yin which satisfies
dyin
d2 yin
= 0,
+
z
dz 2
dz
Substitute v =
dy
yin (0) = 0.
dz
dv
+ zv = 0 = v(z) = A exp(z 2 /2).
dz
Hence
dyin
= v(z) = A exp(z 2 /2),
dz
Z z
exp(t2 /2)dt + B,
= yin (z) = A
0
Z
yin = A
exp(t /2)dt =
0
x/1/2
A exp(t2 /2)dt,
z = x/.
x0
But
lim yout (x) = 1,
x0+
and
so
Hence
.
lim yin (z) = A
exp(t /2)dt = A
z
2
0
r
2
A=
.
r Z x/1/2
2
yin (x) =
exp(t2 /2)dt + O(1/2 ).
0
Page 9 of 14
Hw 6 Solutions Contd.
r Z x/1/2
2
=e +
exp(t2 /2)dt 1 + O(1/2 ).
0
x
5. Problem 1(g)
d2 y
dy
+
2
+ ey = 0,
2
dx
dx
y(0) = 0, y(1) = 0.
d y
dy
Solution: Since the coefficients of dx
2 and dx are both positive, we expect the BL
to sit at x = 0. Set = 0 to get an outer-approximation yout valid for x = O(1),
dyout
+ eyout = 0,
dx
Page 10 of 14
Hw 6 Solutions Contd.
x + 1
2
+ O().
To find the inner approximation yin , which describes the solution for x in the BL
near x = 0, we rescale x as
z = x,
> 0.
The ODE becomes
12
d2 y
dy
+ 2 + ey = 0,
2
dz
dz
d2 y
dz 2
and
dy
,
dz
we obtain
1 2 = = = 1,
after which the rescaled equation becomes
1
d2 y
dy
+ 21 + ey = 0.
2
dz
dz
yin (0) = 0.
dy
dz
dv
+ v = 0 = v(z) = A exp(2z).
dz
Hence
dyin
= v(z) = A exp(2z),
dz
= yin (z) = A exp(2z) + B,
2z
2x/
yin = A 1 e
=A 1e
,
Page 11 of 14
z = x/.
Hw 6 Solutions Contd.
x0
But
lim yout (x) = ln(1/2) = ln(2),
x0+
and
lim yin (z) = A,
so
A = ln(2).
Hence
yin (x) = ln(2) 1 e2x/ + O().
x + 1
2
= ln
6. Problem 4:
+ ln(2) 1 e2x/ ln(2) + O(),
x + 1
2
ln(2)e2x/ + O().
d2 u
du
2 (2x + 1) + 2u = 0,
dx
dx
u(0) = 1, u(1) = 0.
duout
+ 2uout = 0,
dx
Page 12 of 14
Hw 6 Solutions Contd.
A
= 1 = A = 2.
2
> 0.
d2 u
du
2[(1
z)
+
1](
) + 2u = 0,
dz 2
dz
= 12
d2 u
du
+ (3 2z) + 2u = 0,
2
dz
dz
d2 u
dz 2
and
du
,
dz
we obtain
1 2 = = = 1,
after which the rescaled equation becomes
1
d2 u
du
+ (31 2z) + 2u = 0.
2
dz
dz
2
+ 2u = 0.
dz 2
dz
dz
We now set = 0 and solve for the leading order approximation to uin which satisfies
d2 uin
du
+ 3 in = 0,
2
dz
dz
Substitute v =
du
uin (z = 0) = 0.
dz
dv
+ v = 0 = v(z) = A exp(3z).
dz
Hence
duin
= v(z) = A exp(3z),
dz
Page 13 of 14
Hw 6 Solutions Contd.
3z
3(1x)/
uin = A 1 e
=A 1e
,
x1
But
lim uout (x) = 3,
x1
and
lim uin (z) = A,
so
A = 3.
Hence
uin (x) = 3 1 e3(1x)/ + O().