CHAPTER 18

FOUR SAMPLE MIDTERM EXAMINATIONS

These midterm examinations are actual exams held during the academic term, and each lasted 50 minutes.

18.1 MIDTERM EXAM 1

Exercise 18.1.

images

Find the values of λ2 for which the boundary value problem

images

has nontrivial solutions.

Solution.

Case (i): λ = 0. In this case, the general solution to d2u/dx2 = 0 is given by u(x) = Ax + B, and u(0) = 0 implies that B = 0, so that u(x) = Ax. The condition images implies that

images

which implies that A = 0, and the boundary value problem has only the trivial solution in this case.

Case (ii): λ ≠ 0. In this case, the general solution to d2u/dx2 + λ2u = 0 is given by

images

and u(0) = 0 implies that A = 0 so that u(x) = B sin λx. Now images, implies that

images

so either B = 0 or cos(λπ/2) = 1. Therefore, a nontrivial solution exists if and only if we have cos(λπ/2) = 1; that is, λπ/2 = 2πn, where n ≠ 0 is an integer. The values of λ2 for which the boundary value problem has nontrivial solutions are

images

for n = 1, 2, 3, ….

Exercise 18.2.

images

Let f(x) = cos2 x, 0 ≤ xπ, and f(x + 2π) = f(x) otherwise.

(a) Find the Fourier sine series for f on the interval [0, π].
Hint: For n ≥ 1,

images

(b) Find the Fourier cosine series for f on the interval [0, π].
(c) For which values of x in [0, π] do the series in (a) and (b) converge to f(x)?

Solution.

(a) Writing f(x) = cos2 x ~ images bn sin nx, the coefficients bn in the Fourier sine series are computed as follows:

images

if n ≠ 2 is even, while if n = 2, since sin 2x = 2 sin x cos x, we have

images

Therefore, bn = 0 for all even n ≥ 2. If n is odd,

images

The Fourier sine series for f is therefore

images

for 0 < x < π
(b) Using the double-angle formula, we have

images

which is the Fourier cosine series for f. If you integrate cos2 x cos nx, you will find

images

(c) From Dirichlet’s theorem, the Fourier sine series in part (a) converges to cos2 x for all x ∈ (0, π) and converges to 0 for x = 0 and x = π. The Fourier cosine series in part (b) converges to cos2 x for all x ∈ [0, π] since the series is actually finite.

Exercise 18.3.

images

Let v(x) be the steady-state solution to the boundary value-initial value problem

images

where r is a constant. Find and solve the boundary value problem for the steady-state solution v(x).

Solution. The steady-state solution v(x) satisfies the boundary value problem

images

and the general solution to the differential equation is

images

and

images

Therefore,

images

while

images

so that

images

The steady-state solution is therefore

images

for 0 ≤ xa.

18.2 MIDTERM EXAM 2

Exercise 18.4.

images

The neutron flux u in a sphere of uranium obeys the differential equation

images

for 0 < r < a, where λ is the effective distance traveled by a neutron between collisions, A is called the absorption cross section, and k is the number of neutrons produced by a collision during fission. In addition, the neutron flux at the boundary of the sphere is 0.
(a) Make the substitution

images

and show that v(r) satisfies d2v/dr2 + μv = 0, 0 < r < a,
(b) Find the general solution to the differential equation in part (a) and then find u(r) that satisfies the boundary condition and boundedness condition:

images

(c) Find the critical radius, that is, the smallest radius a for which the solution is not identically 0.

Solution.

(a) Letting u = v/r, then

images

so that

images

and the differential equation for v(r) is

images

for 0 < r < a.
(b) The general solution to the differential equation in part (a) is

images

for 0 < r < a, and the solution to the neutron flux equation is

images

for 0 < r < a. Applying the boundedness condition, since

images

doesn’t exist, we need c1 = 0, and the solution is

images

for 0 < r < a.
(c) Applying the boundedness condition

images

clearly, there is a nontrivial solution if and only if μa = nπ for some positive integer n. The critical radius is a = π/μ.

Exercise 18.5.

images

Show that

images

for –∞ < x < ∞.
Hint: Using the identity images, find the Fourier cosine series of the function f(x) = sin x, for 0 ≤ xπ, and then use Dirichlet’s theorem.

Solution. For 0 ≤ xπ, the Fourier cosine series is

images

For n = 0,

images

for n = 1,

images

and for n > 1,

images

The Fourier cosine series for sin x on the interval 0 ≤ xn is therefore

images

Since cos nx is an even function, this is also the Fourier series for the even extension of sin x, that is, | sin x|, on the interval –π ≤ xπ, so that

images

and since this is a continuous piecewise smooth function on –πx ≤ π such that | sin(–π)| = |sin π| = 0, then by Dirichlet’s theorem the Fourier series converges to |sin x| for all x ∈[–π, π], and

images

for all x ∈ [–π, π]. However, |sin x| is a continuous periodic function on the interval –∞ < x < ∞, so the Fourier series converges to | sin x| for all x, – ∞ < x < ∞.

Exercise 18.6.

images

Solve Laplace’s equation in the square 0 < x, y < π with the boundary conditions

images

Solution. We use separation of variables and assume a solution to Laplace’s equation

images

of the form u(x, y) = X(x) · Y(y). Separating variables, we have

images

and we obtain the two ordinary differential equations

images

Solving the complete boundary value problem for X, the eigenvalues and eigenfunctions are given by

images

for n > 1. The corresponding problem for Y is

images

with solutions

images

for n ≥ 1.

From the superposition principle, we write

images

and setting y = π, we need

images

and from the orthogonality of the eigenfunctions,

images

so that

images

for 0 < x < π, 0 < y < π.

18.3 MIDTERM EXAM 3

Exercise 18.7.

images

Consider the following eigenvalue problem on the interval (0,1):

images

(a) Explain the meaning of eigenvalue problem.
(b) Show that this eigenvalue problem is not of Sturm-Liouville type.
(c) Multiply the equation above by e2x to obtain a Sturm-Liouville problem. Identify p(x), q(x), and σ(x).
(d) Use the Rayleigh quotient to show that the leading eigenvalue is positive; that is, λ1 > 0.
(e) Find an upper bound for the leading eigenvalue.

Solution.

(a) The eigenvalue problem consists of finding the values of λ (eigenvalues) for which there are nontrivial solutions (eigenfunctions) satisfying both the differential equation and the boundary conditions.
(b) If the eigenvalue problem

images

were of Sturm-Liouville form, we would have

images

that is, p(x) = 1 and p′(x) = 2, which is impossible.
(c) If we multiply the differential equation by e2x, we have

images

that is,

images

which is of Sturm-Liouville type with

images

for 0 < x < 1.
(d) The eigenvalue λ and corresponding eigenfunction u are related by the Rayleigh quotient:

images

and

images

since u′(0) = 0 and u′(1) = 0, so the Rayleigh quotient becomes

images

and all the eigenvalues of the boundary value problem are nonnegative.
To show that λ = 0 is not an eigenvalue, we can see immediately that since u and u′ are continuous on the interval [0,1], then

images

and this implies that u(x) = u′(x) = 0 for all 0 < x 1. Hence, there is no nontrivial eigenfunction corresponding to λ = 0. Alternatively, the equation u″ + 2u′ – u = 0, 0 < x < 1, has general solution

images

and from the boundary conditions u′(0) = 0 and u′(1) = 0, the solution is u(x) = 0 for 0 < x < 1. Therefore, the leading eigenvalue λ1 > 0.
(e) To get an upper bound on λ1, we try a quadratic test function v which satisfies the boundary conditions v′(0) = 0 and v(l) = 0, say

images

then the boundary conditions imply that a = b = 0, so that v(x) = c for 0 ≤ x ≤ 1. The Rayleigh quotient for this test function is

images

and since λ1 is the minimum of R(u) as u runs over all twice continuously differentiable functions that satisfy the boundary conditions,

images

Exercise 18.8.images

Consider Laplace’s equation for the steady-state temperature distribution in a square plate of side length 1.

images

Obviously, the solution is u(x, y) = 1 for 0 ≤ x ≤ 1, 0 ≤ y ≤ 1. Show that this is the case by using separation of variables.

Solution.

Using separation of variables, assume that u(x,y) = X(x) · Y(y), and obtain the two boundary value problems

images

Note that we cannot meet the boundary conditions u(0,y) = u(l,y) = 1 for all 0 < y < 1 by requiring that X(0) = 1 and X(l) = 1.

We solve the complete boundary value problem for Y first since it has homogeneous boundary conditions. The eigenvalues are λn = n2π2 and the corresponding eigenfunctions are

images

for n = 0,1,2, The corresponding solutions to the problem for X are

images

for n ≥ 1.

From the superposition principle, we have

images

for 0 < x < 1 and 0 < y < 1. Applying the boundary condition u(0,y) = 1, we get

images

and from the orthogonality of the eigenfunctions on the interval [0,1], this implies that

images

The solution is now

images

for 0 < x < 1 and 0 < y < 1. Applying the boundary condition u(l, y) = 1, we get

images

that is,

images

for 0 < y < 1. Again, from the orthogonality of the eigenfunctions on the interval [0,1], this implies that

images

Therefore, the solution is u(x, y) = 1 for 0 ≤ x ≤ 1, 0 ≤ y ≤ 1, as promised.

18.4 MIDTERM EXAM 4

Exercise 18.9.

images

Solve the normalized wave equation

images

Solution. Since the partial differential equation and the boundary conditions are linear and homogeneous, we can use separation of variables, and assuming a solution of the form u(x, t) = ϕ(x) · G(t), we get two ordinary differential equations:

images

where λ is the separation constant. We solve the spatial problem first since it has a complete set of boundary conditions. These are homogeneous Dirichlet conditions, so the eigenvalues and eigenfunctions are given by

images

for n ≥ 1, and the corresponding solutions to the temporal equation are

images

Using the superposition principle, we write the solution as an “infinite” linear combination of {ϕn · Gn}n≥1; that is,

images

where the constants an and bn are determined from the initial conditions

images

and

images

From the orthogonality of the eigenfunctions, we find

images

and the solution is

images

for 0 < x < π, and t > 0.

Exercise 18.10.

images

Consider the regular Sturm-Liouville problem

images

where h > 0. Show that there is a single negative eigenvalue λ0 if and only if h < 1. Find λ0 and the corresponding eigenfunction φ0(x).
Hint: Assume that λ = –μ2 for some real number μ≠ 0.

Solution. Following the hint, the differential equation becomes

images

with general solution

images

for 0 < x < 1. Applying the first boundary condition, we have

images

so that

images

Applying the second boundary condition, we have

images

so that

images

and we have a nontrivial solution if and only if

images

for some μ ≠ 0. However, the graphs of y = tanhμ and y = intersect only at μ = 0 if h ≥ 1, and they intersect at exactly one positive value μ0 if 0 < h < 1. Therefore, there is exactly one negative eigenvalue for this Sturm-Liouville problem if and only if 0 < h < 1, and the eigenvalue is

images

where μ0 is the positive root of the equation tanhμ = . The corresponding eigenfunction is

images

for 0 ≤ x ≤ 1.

Exercise 18.11.

images

Consider Laplace’s equation

images

in a semicircular disk of radius a centered at the origin with boundary conditions

images

Solve this problem using separation of variables.

Solution. Assuming a solution of the form u(r,0) = R(r) · φ(0), and separating variables, we have the following problems for R and φ:

images

We solve the θ-problem first. The eigenvalues and corresponding eigenfunctions are

images

for n ≥ 1. The corresponding r-equation is the Cauchy-Euler equation

images

with general solution

images

for n ≥ 1. The boundedness condition |R(0)| < ∞ requires that Bn = 0, so that

images

for n ≥ 1. Using the superposition principle, we write

images

for 0 r a, 0 < θ < λ, and from the boundary condition we want

images

From the orthogonality of the eigenfunctions on the interval [0,π], we have

images

so the solution is

images

for 0 < r < a, 0 < θ < π λ.