MTH646 – Partial Differential Equations: Midterm Important Subjective (20 Solved Q&As)
Mathematics • Read every solved subjective question with its model answer directly on this page. Free, no login required.
All 664 Midterm Packs · MTH646 Course Page · MTH646 MCQ Pack (51 MCQs)
-
How are second-order linear partial differential equations classified? Give one example of each type.
Topic: Classification and Basic Concepts
For a second-order linear PDE written as A u_xx + 2B u_xy + C u_yy + (lower-order terms) = 0, compute the discriminant D = B² − AC. (i) If D < 0, the equation is elliptic. Example: Laplace's equation u_xx + u_yy = 0 (A = 1, B = 0, C = 1, D = −1 < 0). Elliptic equations usually describe steady-state (equilibrium) problems. (ii) If D = 0, the equation is parabolic. Example: the heat equation u_t = α² u_xx, which describes diffusion processes varying with time. (iii) If D > 0, the equation is hyperbolic. Example: the wave equation u_tt = c² u_xx (D = c² > 0), which describes wave propagation. Some equations, such as the Tricomi equation y u_xx + u_yy = 0, change their type from one region to another and are called equations of mixed type.
-
Distinguish between Dirichlet, Neumann and Robin boundary conditions.
Topic: Classification and Basic Concepts
A boundary condition that prescribes the value of the unknown function on the boundary, u = g on the boundary, is called a Dirichlet condition. Example: the temperature at the ends of a rod is kept fixed. A condition that prescribes the normal derivative of u on the boundary, ∂u/∂n = g, is called a Neumann condition. Example: an insulated boundary of a rod, where the heat flux (proportional to the derivative) is zero. A condition that prescribes a linear combination of u and its normal derivative, ∂u/∂n + a u = g, is called a Robin (mixed) condition. Example: heat loss from a surface into a surrounding medium.
-
Derive the five-point finite-difference formula for Laplace's equation u_xx + u_yy = 0.
Topic: Elliptic Equations
Let x_i = x_0 + ih and y_j = y_0 + jk, and write w_{i,j} for the approximation to u(x_i, y_j). Taylor's expansions about (x_i, y_j) give (u_{i+1,j} − 2u_{i,j} + u_{i−1,j}) / h² = u_xx + (h²/12) u_xxxx + ... and the corresponding formula in y with step k. Adding the two and using Laplace's equation u_xx + u_yy = 0, with h = k we obtain, after neglecting the O(h²) truncation terms, w_{i−1,j} + w_{i+1,j} + w_{i,j−1} + w_{i,j+1} − 4w_{i,j} = 0, or w_{i,j} = (1/4) [w_{i−1,j} + w_{i+1,j} + w_{i,j−1} + w_{i,j+1}]. Thus the value at an interior mesh point is the average of its four nearest neighbours. This is the standard five-point formula for Laplace's equation.
-
Write down the finite-difference formula for Poisson's equation when the grid spacings in the two directions are different (h in x, k in y).
Topic: Elliptic Equations
Let the step in the x-direction be h and in the y-direction be k. Replacing u_xx by (w_{i−1,j} − 2w_{i,j} + w_{i+1,j}) / h² and u_yy by (w_{i,j−1} − 2w_{i,j} + w_{i,j+1}) / k² in ∇²u = f(x, y), and multiplying by h², gives 2(h²/k² + 1) w_{i,j} = [(w_{i−1,j} + w_{i+1,j}) + (h²/k²)(w_{i,j−1} + w_{i,j+1})] − h² f_{i,j}. For Laplace's equation (f = 0) this reduces to 2(h²/k² + 1) w_{i,j} = [(w_{i−1,j} + w_{i+1,j}) + (h²/k²)(w_{i,j−1} + w_{i,j+1})]. When h = k, the Poisson formula further reduces to 4w_{i,j} − (w_{i−1,j} + w_{i+1,j} + w_{i,j−1} + w_{i,j+1}) = −h² f_{i,j}.
-
Solve Laplace's equation on the unit square with h = 1/3 by the Liebmann method, if the top boundary is held at 100 and the other three boundaries at 0.
Topic: Elliptic Equations
With h = 1/3 there are four interior points. Let a = w(1/3, 2/3), b = w(2/3, 2/3), c = w(1/3, 1/3), d = w(2/3, 1/3). The five-point (Liebmann) equations, using the boundary values (top edge 100, other edges 0), are: a = (100 + b + c + 0)/4, b = (100 + 0 + d + a)/4, c = (a + d + 0 + 0)/4, d = (b + 0 + 0 + c)/4. Starting with all values 0, the Gauss-Seidel (Liebmann) sweeps give: Iteration 1: a = 25.00, b = 31.25, c = 6.25, d = 9.38 Iteration 2: a = 34.38, b = 35.94, c = 10.94, d = 11.72 Iteration 3: a = 36.72, b = 37.11, c = 12.11, d = 12.30 The iterations converge to the exact solution of the difference equations: a = b = 37.5 and c = d = 12.5.
-
Solve the Poisson equation ∇²u = −4 on the unit square with h = 1/3 and u = 0 on the whole boundary.
Topic: Elliptic Equations
For the four interior points a, b, c, d of the h = 1/3 grid, the Poisson formula with uniform step h is 4w_{i,j} − (sum of the four neighbours) = −h² f_{i,j}. Here f = −4 and h² = 1/9, so the right-hand side is −(1/9)(−4) = 4/9 for every interior point. With zero boundary values the equations become 4a − b − c = 4/9, 4b − a − d = 4/9, 4c − a − d = 4/9, 4d − b − c = 4/9. By symmetry a = b = c = d = w, so 4w − 2w = 4/9, giving w = 2/9 ≈ 0.2222 at all four interior points.
-
Compare Jacobi's iteration method with the Gauss-Seidel (successive displacement) method for solving the finite-difference equations of an elliptic problem.
Topic: Elliptic Equations
In Jacobi's method, every new value in an iteration is computed from the values of the previous iteration only; no updated value is used until the next complete sweep. The method is therefore simple (and easy to parallelise) but converges slowly. In the Gauss-Seidel method (for grid equations also called the method of successive displacements, or Liebmann's method), each new value is used immediately in the same sweep as soon as it has been computed. Because the freshest information is used at every step, Gauss-Seidel converges in roughly half the number of iterations required by Jacobi's method for the same accuracy.
-
Explain the successive over-relaxation (SOR) method. What is the role of the relaxation parameter ω?
Topic: Elliptic Equations
In SOR, the Gauss-Seidel update w* at a mesh point is combined with the old value w_old through a relaxation parameter ω: w_new = (1 − ω) w_old + ω w*. For convergence it is necessary that 0 < ω < 2. When ω = 1, SOR is exactly the Gauss-Seidel method. For 1 < ω < 2 (over-relaxation) the convergence of problems such as Laplace's and Poisson's equations on a rectangle is greatly accelerated; a well-chosen (near-optimal) ω can reduce the number of iterations by a large factor. For 0 < ω < 1 (under-relaxation) convergence is slower but the device is useful for some non-linear or ill-behaved systems.
-
How is a Neumann (derivative) boundary condition treated in a finite-difference calculation? Explain the use of fictitious (ghost) points.
Topic: Elliptic Equations
Let the boundary be the line i = 0 and suppose ∂u/∂x = g is prescribed there. Introduce a fictitious (ghost) mesh point at i = −1, outside the domain. The central-difference form of the boundary condition gives (w_{1,j} − w_{−1,j}) / (2h) = g, so w_{−1,j} = w_{1,j} − 2h g. Now write the five-point Laplace equation at the boundary point (0, j) itself, using the ghost value: w_{0,j} = (1/4) [w_{−1,j} + w_{1,j} + w_{0,j−1} + w_{0,j+1}] = (1/4) [2w_{1,j} − 2h g + w_{0,j−1} + w_{0,j+1}]. The ghost value is eliminated and the boundary point is treated like an interior point of an extended grid. The same device is used for derivative conditions in parabolic problems.
-
Derive the explicit finite-difference scheme for the heat equation u_t = α² u_xx.
Topic: Parabolic Equations
Put x_i = ih, t_j = jk, λ = α² k / h², and replace u_t by the forward difference (w_{i,j+1} − w_{i,j}) / k and u_xx by the central difference (w_{i−1,j} − 2w_{i,j} + w_{i+1,j}) / h². The heat equation u_t = α² u_xx becomes (w_{i,j+1} − w_{i,j}) / k = α² (w_{i−1,j} − 2w_{i,j} + w_{i+1,j}) / h², from which w_{i,j+1} = λ w_{i+1,j} + (1 − 2λ) w_{i,j} + λ w_{i−1,j}. This is an explicit scheme: each value at the new time level is obtained directly from three values at the current level. Its truncation error is O(k + h²).
-
Carry out the von Neumann stability analysis of the explicit scheme for the heat equation and obtain its stability condition.
Topic: Parabolic Equations
In the von Neumann analysis the error (or a solution mode) is assumed to have the form u_{i,j} = G^j e^{Iκx_i}, where G is the amplification factor. Substituting this in the explicit scheme w_{i,j+1} = λ w_{i+1,j} + (1 − 2λ) w_{i,j} + λ w_{i−1,j} and cancelling the common factor gives G = 1 − 2λ + λ (e^{Iκh} + e^{−Iκh}) = 1 − 4λ sin²(κh / 2). Stability requires |G| ≤ 1 for every κ. Since G is real and G ≤ 1 always, the binding condition is G ≥ −1, i.e. 4λ sin²(κh/2) ≤ 2 for all κ, which holds for all modes if and only if λ ≤ 1/2. Hence the explicit scheme for the heat equation is conditionally stable, stable exactly when α² k / h² ≤ 1/2.
-
What is the Bender-Schmidt method? Illustrate it with one example.
Topic: Parabolic Equations
The Bender-Schmidt method is the explicit scheme for u_t = α² u_xx with the special mesh ratio λ = 1/2. The scheme then simplifies to w_{i,j+1} = (1/2) (w_{i−1,j} + w_{i+1,j}), the average of the two neighbouring values at the current level. Example: u_t = u_xx, u(0, t) = u(1, t) = 0, u(x, 0) = sin(πx), h = 0.25 (so k = h²/2 = 0.03125). Level 0 at x = 0.25, 0.5, 0.75: 0.7071, 1, 0.7071. Level 1: (1/2)(0 + 1) = 0.5; (1/2)(0.7071 + 0.7071) = 0.7071; (1/2)(1 + 0) = 0.5 → 0.5, 0.7071, 0.5. Level 2: 0.3536, 0.5, 0.3536. Level 3: 0.25, 0.3536, 0.25.
-
Describe the Crank-Nicolson scheme for the heat equation. State its accuracy and stability.
Topic: Parabolic Equations
The Crank-Nicolson scheme averages the spatial central difference at the old and new time levels. With λ = α² k / h² it gives, at each interior point, −λ w_{i−1,j+1} + 2(1 + λ) w_{i,j+1} − λ w_{i+1,j+1} = λ w_{i−1,j} + 2(1 − λ) w_{i,j} + λ w_{i+1,j}. It is an implicit scheme: at every time step a tridiagonal system of equations must be solved. Its advantages are that it is second-order accurate in both time and space, with truncation error O(k² + h²), and it is unconditionally stable for the heat equation, so the time step is restricted by accuracy rather than by stability.
-
Write down the fully implicit (backward-difference) scheme for the heat equation and comment on its stability.
Topic: Parabolic Equations
If the spatial derivative in u_t = α² u_xx is approximated at the new time level j + 1 instead of the old level, we obtain the fully implicit (backward-difference, or Laasonen) scheme: −λ w_{i−1,j+1} + (1 + 2λ) w_{i,j+1} − λ w_{i+1,j+1} = w_{i,j}. Like the Crank-Nicolson scheme it is implicit, so a tridiagonal system has to be solved at each time step. Von Neumann analysis gives an amplification factor whose modulus is at most 1 for every λ > 0, so the scheme is unconditionally stable, although it is only first-order accurate in time, O(k + h²).
-
Derive the finite-difference scheme for the wave equation u_tt = c² u_xx and state its stability condition.
Topic: Hyperbolic Equations
Replace u_tt by (w_{i,j−1} − 2w_{i,j} + w_{i,j+1}) / k² and u_xx by (w_{i−1,j} − 2w_{i,j} + w_{i+1,j}) / h² in u_tt = c² u_xx. With λ = ck/h this gives w_{i,j+1} = 2(1 − λ²) w_{i,j} + λ² (w_{i+1,j} + w_{i−1,j}) − w_{i,j−1}. The scheme is explicit but uses two previous time levels. Von Neumann analysis shows that it is stable if and only if λ ≤ 1, which is the CFL condition: the numerical domain of dependence must contain the physical domain of dependence of the wave equation.
-
How is the first time level computed in the finite-difference solution of the wave equation? Illustrate with an example.
Topic: Hyperbolic Equations
The wave-equation scheme needs values at two time levels, j = 0 and j = 1, to start. The level j = 0 comes from the initial displacement u(x, 0) = f(x). For the level j = 1 the initial velocity u_t(x, 0) = g(x) is used: a Taylor expansion gives w_{i,1} = w_{i,0} + k g(x_i) + (λ²/2)(w_{i−1,0} − 2w_{i,0} + w_{i+1,0}); for zero initial velocity and λ = 1 this reduces to w_{i,1} = (1/2)(w_{i−1,0} + w_{i+1,0}). Example: u_tt = u_xx, u(x, 0) = sin(πx), u_t(x, 0) = 0, h = k = 0.25 (λ = 1). Level 0 (x = 0.25, 0.5, 0.75): 0.7071, 1, 0.7071. Level 1: 0.5, 0.7071, 0.5. Level 2: using w_{i,2} = (w_{i−1,1} + w_{i+1,1}) − w_{i,0}: all three values are 0, in agreement with the exact solution cos(πt) sin(πx), which vanishes at t = 0.5.
-
Explain upwind differencing for the advection equation f_t + c f_x = 0. Which difference is used for c > 0 and for c < 0, and why?
Topic: Stability and Convergence
For the advection equation f_t + c f_x = 0 the physically correct differencing of f_x is one-sided, taken from the direction from which the information travels (the upwind direction). If c > 0 the wave travels to the right, the information comes from the left, and the backward difference (f_i − f_{i−1}) / h is used. If c < 0 the wave travels to the left and the forward difference (f_{i+1} − f_i) / h is used. A central difference ignores the direction of propagation; combined with forward differencing in time it leads to an unstable scheme, while upwind differencing gives a stable scheme under the CFL condition |c| k / h ≤ 1.
-
Define consistency, stability and convergence of a finite-difference scheme, and state the Lax equivalence theorem.
Topic: Stability and Convergence
A finite-difference scheme is consistent with a PDE if its truncation error (the amount by which an exact solution fails to satisfy the difference equations) tends to zero as h, k → 0. A scheme is stable if the amplification factor of every Fourier mode of the error satisfies |G| ≤ 1 (equivalently, if errors are not amplified from one time level to the next). A scheme is convergent if its numerical solution tends to the exact solution of the PDE as h, k → 0. The Lax equivalence theorem ties these together: for a consistent finite-difference approximation of a well-posed linear initial-value problem, stability is a necessary and sufficient condition for convergence.
-
What is the alternating-direction implicit (ADI) method? Why is it used for two-dimensional problems?
Topic: Stability and Convergence
The alternating-direction implicit (ADI) method is used for parabolic (and elliptic) problems in two space dimensions, where a fully implicit scheme would require solving a large banded system at each step. In ADI each time step is split into two half-steps. In the first half-step the scheme is implicit in the x-direction and explicit in the y-direction; in the second half-step the roles are reversed. Each half-step then requires only the solution of tridiagonal systems, which is cheap. For the heat equation the ADI (Peaceman-Rachford) scheme is second-order accurate, O(k² + h²), and unconditionally stable.
-
Describe the structure of the linear system obtained by discretising Laplace's equation on a rectangular grid. How are the unknowns labelled and how many are there?
Topic: Stability and Convergence
For Laplace's equation on a rectangle the interior values w_{i,j} form a linear system in which every equation involves a point and its four neighbours. The coefficient matrix is sparse, banded and block-tridiagonal, with 4's on the main diagonal and −1's at the neighbour positions; known boundary values are moved to the right-hand side. To apply matrix or iterative methods the unknowns are given a single label l (for example l = i + (m − 1 − j)(n − 1) for the internal points, counted row by row). The total number of unknowns is (m − 1)(n − 1). Because the matrix is diagonally dominant, iterative methods such as Jacobi, Gauss-Seidel and SOR converge for these systems.