Assignment2 Sol 2023 24
Assignment2 Sol 2023 24
Solutions to Assignment 2
y ux + 2x uy = 0
2
satisfying the additional condition u(0, y) = e−y .
(b) In which region of the (x, y) plane is the solution uniquely determined by the addi-
tional condition? [Hint: sketch the characteristic curves.]
Solution. The characteristic curves are solutions of the equation
dx dy
= or, equivalently, 2x dx = y dy.
y 2x
Integrating, we obtain
y2
x2 − = const or 2x2 − y 2 = C
2
where C is a constant. Hence,
u = f (2x2 − y 2).
2
Substituting this into the condition u(0, y) = e−y , we find that
2 2 −y 2
u(0, y) = f (−y 2 ) = e−y ⇒ f (s) = es ⇒ u(x, y) = e2x .
Characteristic curves are hyperbolas shown in Fig. 1. Evidently, the characteristic curves
√
located in the regions where |y| < 2 |x| do not intersect the line x = 0 (where function u
2
must be equal to e−y ). These are shown as red dashed curves in Fig. 1. So, the solution is
√
determined uniquely only in the regions where |y| > 2 |x|.
0
y
−1
−2
−3
−3 −2 −1 0 1 2 3
x
Figure 1
1
2. Find the regions in the (x, y) plane where the equation
2 hyperbolic
hyperbolic
1
elliptic
0
y
elliptic
−1 hyperbolic
hyperbolic
−2
−3
−3 −2 −1 0 1 2 3
x
Figure 2
Solution. We have:
It follows that
(b) D > 0 and the equation is hyperbolic, if one of the following is true:
(c) D < 0 and the equation is elliptic, if one of the following is true:
2
The corresponding domains on the (x, y) plane are shown in Fig. 1.
Solution. Let
−3u(x, t) + 4u(x + h, t) − u(x + 2h, t)
X = ux (x, t) −
2h
We need to show that X = O(h2 ).
First we expand u(x + h, t) and u(x + 2h, t) in Taylor’s series at (x, t):
h2
u(x + h, t) = u(x, t) + hux (x, t) + uxx (x, t) + O(h3 ),
2
4h2
u(x + 2h, t) = u(x, t) + 2hux (x, t) + uxx (x, t) + O(h3 )
2
Substituting the above Taylor expansions into the formula for X, we obtain
h2
1
X = ux (x, t) − −3u(x, t) + 4 u(x, t) + hux (x, t) + uxx (x, t)
2h 2
4h2
3
− u(x, t) + 2hux (x, t) + uxx (x, t) + O(h )
2
1
2h ux (x, t) + O(h3 )
= ux (x, t) −
2h
2
= O(h ).