2.5 SUPPLEMENTARY RECIPES 85
(b) Show that an FDA to the Laplacian, ∇
2
f(x, y)≡∂
2
f/∂x
2
+∂
2
f/∂y
2
,is
∇
2
f(x, y)=(1/12 h
2
)[16 [f(x+h, y)+f (x, y+h)+f(x − h, y)+f (x, y − h)]
−[f(x+2h, y)+f (x, y+2 h)+f(x − 2 h, y)+f (x, y −2 h)+60f(x, y)]].
Suggest a physical problem for which this FDA might be useful. Consid-
ering f(x, y)=e
−x
2
y
2
and taking h =0.1 and 10 digits accuracy, produce
a 3-dimensional color-coded plot of the difference between the exact 2-
dimensional Laplacian and the FDA for the range x = −2..2, y = −2..2.
02-S04: Series Solution
Mimicking a hand calculation, obtain a general series solution, valid near x=0,
of the following LODE
xy
+2y
+ xy =0.
Show that the series solution may be expressed in a closed form. Confirm this
closed-form solution by directly solving the LODE with the dsolve command.
02-S05: Chebyshev Polynomials Revisited
Obtain a general series solution of Chebyshev’s equation,
(1 − x
2
) y
− xy
+ p
2
y =0
valid near x = 0, by (a) mimicking a hand calculation, (b) using the series
option in the dsolve command. If p is a positive integer, show that one or
the other of the series in the general solution reduces to a finite polynomial.
These polynomials are the Chebyshev polynomials. The zeroth order Chebyshev
polynomial T
0
(x) = 1. The higher order polynomials T
m
(x) are normalized so
that the coefficient of the largest power in the mth order polynomial is 2
(m−1)
.
Derive the Chebyshev polynomials T
1
, T
2
, ..., T
7
and plot T
1
to T
5
over the
range x = −1 to 1. Note that the non-finite-polynomial parts of the solution
diverge at the end points of the range and are rejected in physical problems.
02-S06: A Fourier Series
Expand f(θ)=θ
2
,0<θ<2 π, in a Fourier series F of period 2 π.Plotf and
F (for an upper value N =20 of the summation index) in the same figure.
02-S07: Fourier Sine Series
Taking L =1,expandeachofthefollowingf(x) in a Fourier sine series F of
period 2L, over the interval (0, L):
(a) f (x)=x (L − x);
(b) f (x)=x,0<x<L/2, and f (x)=L − x, L/2<x<L;
(c) f (x)= 1, 0<x<L/2, and f(x)=0, L/2<x<L.
In each case plot f(x)andF (for an upper value N = 10 of the summation
index) in the same figure and discuss the goodness of the fit.
02-S08: Fourier Cosine Series
Taking L=1,expandeachofthef(x) given in 02-S07 in a Fourier cosine series