Topic
Heat and Diffusion Equation Schemes
Courses
Courses whose questions include this topic tag.
Questions
This topic is tagged for 12 questions
-
Fall 2023 • Question 4
( Heat Equation and Stability of the Scheme). Consider the implicit in time, Backward Euler method for the solution of the heat equation: \[ \frac {u_m^{n+1}-u_m^n}{\Delta t} -10\frac {u_{m+1}^{n+1}-2u_m^{n+1}+u_{m-1}^{n+1}}{h^2} = f_m^{n+1}, \] \[ u_m^0 = g_m,\qquad m = 0,\pm 1,\pm 2,\ldots ,\qquad n = 0,1,\ldots ,[T/\Delta t]-1, \]
and investigate the stability of the scheme using the von Neumann analysis.
-
Fall 2018 • Question 6
Heat Equation Stability
Consider the variable coefficient diffusion equation \[ v_t=(\beta (x)v_x)_x,\qquad 0<x<1,\quad t>0 \] with Dirichlet boundary conditions \[ v(0,t)=0,\qquad v(1,t)=0 \] and initial data \(v(x,0)=f(x)\). Assume that \(\beta (x)\ge \beta _0>0\), and that \(\beta (x)\) is smooth. Let \(\beta _{j+1/2}=\beta (x_{j+1/2})\). A scheme for this problem is: \[ \frac {u_j^{n+1}-u_j^n}{k} = \frac {1}{h^2} \left \{ \beta _{j-1/2}u_{j-1}^{n+1} -(\beta _{j-1/2}+\beta _{j+1/2})u_j^{n+1} +\beta _{j+1/2}u_{j+1}^{n+1} \right \}. \] Analyze the 2-norm stability of this scheme for solving this initial boundary value problem.
DO NOT NEGLECT THE FACT THAT THE PROBLEM HAS VARIABLE COEFFICIENTS AND THAT THERE ARE BOUNDARY CONDITIONS AT 0 AND 1!
-
Spring 2017 • Question 8
Heat Equation Stability:
Consider the variable coefficient diffusion equation \[ v_t=(\beta (x)v_x)_x,\qquad 0<x<1,\quad t>0 \] with Dirichlet boundary conditions \[ v(0,t)=0,\qquad v(1,t)=0 \] and initial data \(v(x,0)=f(x)\). Assume that \(\beta (x)\ge \beta _0>0\), and that \(\beta (x)\) is smooth. Let \(\beta _{j+1/2}=\beta (x_{j+1/2})\). A scheme for this problem is: \[ \frac {u_j^{n+1}-u_j^n}{k} = \frac {1}{h^2} \left \{ \beta _{j-1/2}u_{j-1}^{n+1} -(\beta _{j-1/2}+\beta _{j+1/2})u_j^{n+1} +\beta _{j+1/2}u_{j+1}^{n+1} \right \}. \] Analyze the 2-norm stability of this scheme for solving this initial boundary value problem.
DO NOT NEGLECT THE FACT THAT THE PROBLEM HAS VARIABLE COEFFICIENTS AND THAT THERE ARE BOUNDARY CONDITIONS AT 0 AND 1!
Fact 1: A real symmetric \(n\times n\) matrix \(A\) can be diagonalized by an orthogonal similarity transformation, and \(A\)’s eigenvalues are real.
Fact 2: The \((N-1)\times (N-1)\) matrix \(M\) defined by \[ M= \begin {pmatrix} -2 & 1 & 0 & \cdots & 0\\ 1 & -2 & 1 & \ddots & \vdots \\ 0 & 1 & -2 & \ddots & 0\\ \vdots & \ddots & \ddots & \ddots & 1\\ 0 & \cdots & 0 & 1 & -2 \end {pmatrix} \] has eigenvalues \[ \mu _l=-4\sin ^2\left (\frac {\pi l}{2N}\right ), \qquad l=1,2,\ldots ,N-1. \]
Fact 3: The \((N+1)\times (N+1)\) matrix: \[ \begin {pmatrix} -1 & 1 & 0 & \cdots & 0\\ 1 & -2 & 1 & \ddots & \vdots \\ 0 & 1 & -2 & \ddots & 0\\ \vdots & \ddots & \ddots & \ddots & 1\\ 0 & \cdots & 0 & 1 & -1 \end {pmatrix} \] has eigenvalues \[ \mu _l=-4\sin ^2\left (\frac {\pi l}{2(N+1)}\right ), \qquad l=0,1,\ldots ,N. \]
Fact 4: For a real \(n\times n\) matrix \(A\), the Rayleigh quotient of a vector \(x\in \mathbb {R}^n\) is the scalar \[ r(x)=\frac {x^T Ax}{x^T x}. \] The gradient of \(r(x)\) is \[ \nabla r(x)=\frac {2}{x^T x}(Ax-r(x)x). \] If \(x\) is an eigenvector of \(A\) then \(r(x)\) is the corresponding eigenvalue and \(\nabla r(x)=0\).
-
Fall 2016 • Question 7
**Heat Equation Stability:** **a)** Consider the initial value problem for the constant-coefficient diffusion equation (with \(\beta>0\)) \[ v_t=\beta v_{xx},\qquad t>0 \] with initial data \(v(x,0)=f(x)\). A scheme for this problem is: \[ \frac{u_j^{n+1}-u_j^n}{k} = \frac{\beta}{h^2} \left\{u_{j-1}^{n+1}-2u_j^{n+1}+u_{j+1}^{n+1}\right\}. \] Analyze the 2-norm stability of this scheme. For which values of \(k>0\) and \(h>0\) is the scheme stable? (Note that there are no boundary conditions here.) **b)** Consider the variable coefficient diffusion equation \[ v_t=(\beta(x)v_x)_x,\qquad 0
0 \] with Dirichlet boundary conditions \[ v(0,t)=0,\qquad v(1,t)=0 \] and initial data \(v(x,0)=f(x)\). Assume that \(\beta(x)\ge\beta_0>0\), and that \(\beta(x)\) is smooth. Let \(\beta_{j+1/2}=\beta(x_{j+1/2})\). A scheme for this problem is: \[ \frac{u_j^{n+1}-u_j^n}{k} = \frac{1}{h^2} \left\{ \beta_{j-1/2}u_{j-1}^{n+1} -(\beta_{j-1/2}+\beta_{j+1/2})u_j^{n+1} +\beta_{j+1/2}u_{j+1}^{n+1} \right\}. \] Analyze the 2-norm stability of this scheme for solving this initial boundary value problem. DO NOT NEGLECT THE FACT THAT THERE ARE BOUNDARY CONDITIONS! **Fact 1:** A real symmetric \(n\times n\) matrix \(A\) can be diagonalized by an orthogonal similarity transformation, and \(A\)'s eigenvalues are real. **Fact 2:** The \((N-1)\times(N-1)\) matrix \(M\) defined by \[ M= \begin{pmatrix} -2 & 1 & 0 & \cdots & 0\\ 1 & -2 & 1 & \ddots & \vdots\\ 0 & 1 & -2 & \ddots & 0\\ \vdots & \ddots & \ddots & \ddots & 1\\ 0 & \cdots & 0 & 1 & -2 \end{pmatrix} \] has eigenvalues \[ \mu_l=-4\sin^2\left(\frac{\pi l}{2N}\right), \qquad l=1,2,\ldots,N-1. \] **Fact 3:** The \((N+1)\times(N+1)\) matrix: \[ \begin{pmatrix} -1 & 1 & 0 & \cdots & 0\\ 1 & -2 & 1 & \ddots & \vdots\\ 0 & 1 & -2 & \ddots & 0\\ \vdots & \ddots & \ddots & \ddots & 1\\ 0 & \cdots & 0 & 1 & -1 \end{pmatrix} \] has eigenvalues \[ \mu_l=-4\sin^2\left(\frac{\pi l}{2(N+1)}\right), \qquad l=0,1,\ldots,N. \] **Fact 4:** For a real \(n\times n\) matrix \(A\), the Rayleigh quotient of a vector \(x\in\mathbb{R}^n\) is the scalar \[ r(x)=\frac{x^T Ax}{x^T x}. \] The gradient of \(r(x)\) is \[ \nabla r(x)=\frac{2}{x^T x}(Ax-r(x)x). \] If \(x\) is an eigenvector of \(A\) then \(r(x)\) is the corresponding eigenvalue and \(\nabla r(x)=0\). -
Fall 2013 • Question 6
Heat Equation Stability:
Consider the variable coefficient diffusion equation \[ v_t=(\beta v_x)_x,\qquad 0<x<1,\quad t>0 \] with Dirichlet boundary conditions \[ v(0,t)=0,\qquad v(1,t)=0 \] and initial data \(v(x,0)=f(x)\). Assume that \(\beta (x)\geq \beta _0>0\), and that \(\beta (x)\) is smooth. Let \(\beta _{j+1/2}=\beta (x_{j+1/2})\). A scheme for this problem is: \[ \frac {u_j^{n+1}-u_j^n}{k} = \frac {1}{h^2} \left \{ \beta _{j-1/2}u_{j-1}^{n+1} -(\beta _{j-1/2}+\beta _{j+1/2})u_j^{n+1} +\beta _{j+1/2}u_{j+1}^{n+1} \right \}. \] Analyze the 2-norm stability of this scheme for solving this initial boundary value problem.
NOTE: Because of the boundary conditions and the variable coefficients, von Neumann (Fourier) analysis does not apply.
7) Numerical Methods for ODEs: Consider the initial value problem for a system of ODEs \[ y'=Ay \] where \(A\) has eigenvalues with real parts ranging from \(-10^6\) to \(-1\). Which of the following schemes would be the best choice for solving this problem? Justify your answer in terms of stability, accuracy, and efficiency. Does your answer change depending on the size of the system and the condition number of \(A\)? Explain your answer. \[ y^{n+1}=y^n+kAy^n, \tag {1} \] \[ y^{n+1}=y^n+kAy^{n+1}, \tag {2} \] \[ y^{n+1}=y^n+\frac {k}{2}\left (Ay^n+Ay^{n+1}\right ). \tag {3} \]
-
Spring 2010 • Question 7
**Heat Equation Stability:** **a)** Consider the initial value problem for the constant-coefficient diffusion equation \[ v_t=\beta v_{xx},\qquad t>0 \] with initial data \(v(x,0)=f(x)\). A scheme for this problem is: \[ \frac{u_j^{n+1}-u_j^n}{k} = \frac{\beta}{h^2} \left\{u_{j-1}^{n+1}-2u_j^{n+1}+u_{j+1}^{n+1}\right\}. \] Analyze the 2-norm stability of this scheme. For which values of \(k>0\) and \(h>0\) is the scheme stable? (Note that this there are no boundary conditions here.) **b)** Consider the variable coefficient diffusion equation \[ v_t=(\beta v_x)_x,\qquad 0
0 \] with Dirichlet boundary conditions \[ v(0,t)=0,\qquad v(1,t)=0 \] and initial data \(v(x,0)=f(x)\). Assume that \(\beta(x)\geq\beta_0>0\), and that \(\beta(x)\) is smooth. Let \(\beta_{j+1/2}=\beta(x_{j+1/2})\). A scheme for this problem is: \[ \frac{u_j^{n+1}-u_j^n}{k} = \frac{1}{h^2} \left\{ \beta_{j-1/2}u_{j-1}^{n+1} -(\beta_{j-1/2}+\beta_{j+1/2})u_j^{n+1} +\beta_{j+1/2}u_{j+1}^{n+1} \right\}. \] Analyze the 2-norm stability of this scheme for solving this initial boundary value problem. DO NOT NEGLECT THE FACT THAT THERE ARE BOUNDARY CONDITIONS! -
Fall 2009 • Question 7
**Heat Equation Stability:** **a)** Consider the initial value problem for the constant-coefficient diffusion equation \[ v_t=\beta v_{xx},\qquad t>0 \] with initial data \(v(x,0)=f(x)\). A scheme for this problem is: \[ \frac{u_j^{n+1}-u_j^n}{k} = \frac{\beta}{h^2} \left\{u_{j-1}^{n+1}-2u_j^{n+1}+u_{j+1}^{n+1}\right\}. \] Analyze the 2-norm stability of this scheme. For which values of \(k>0\) and \(h>0\) is the scheme stable? (Note that this there are no boundary conditions here.) **b)** Consider the variable coefficient diffusion equation \[ v_t=(\beta v_x)_x,\qquad 0
0 \] with Dirichlet boundary conditions \[ v(0,t)=0,\qquad v(1,t)=0 \] and initial data \(v(x,0)=f(x)\). Assume that \(\beta(x)\geq\beta_0>0\), and that \(\beta(x)\) is smooth. Let \(\beta_{j+1/2}=\beta(x_{j+1/2})\). A scheme for this problem is: \[ \frac{u_j^{n+1}-u_j^n}{k} = \frac{1}{h^2} \left\{ \beta_{j-1/2}u_{j-1}^{n+1} -(\beta_{j-1/2}+\beta_{j+1/2})u_j^{n+1} +\beta_{j+1/2}u_{j+1}^{n+1} \right\}. \] Analyze the 2-norm stability of this scheme for solving this initial boundary value problem. DO NOT NEGLECT THE FACT THAT THERE ARE BOUNDARY CONDITIONS! **8) Numerical Methods for ODEs:** Consider the Linear Multistep Method \[ y_{n+2}-\frac{4}{3}y_{n+1}+\frac{1}{3}y_n=\frac{2}{3}k f_{n+2} \] for solving an initial value problem \(y'=f(y,x)\), \(y(0)=\eta\). You may assume that \(f\) is Lipschitz continuous with respect to \(y\) uniformly for all \(x\). **a)** Analyze the consistency, stability, accuracy, and convergence properties of this method. **b)** Sketch a graph of the solution to the following initial value problem. \[ y'=-10^8[y-\cos(x)]-\sin(x),\qquad y(0)=2. \] Would it be more reasonable to use this method or Euler's method for this problem? What would you consider in choosing a timestep \(k\) for each of the methods? Justify your answer. **Fact 1:** A real symmetric \(n\times n\) matrix \(A\) can be diagonalized by an orthogonal similarity transformation, and \(A\)'s eigenvalues are real. **Fact 2:** The \((N-1)\times(N-1)\) matrix \(M\) defined by \[ M= \begin{bmatrix} -2 & 1 & 0 & \cdots & 0 & 0\\ 1 & -2 & 1 & \ddots & \vdots & \vdots\\ 0 & 1 & -2 & \ddots & 0 & 0\\ \vdots & \ddots & \ddots & \ddots & 1 & 0\\ 0 & \cdots & 0 & 1 & -2 & 1\\ 0 & \cdots & 0 & 0 & 1 & -2 \end{bmatrix} \] has eigenvalues \[ \mu_l=-4\sin^2\left(\frac{\pi l}{2N}\right), \qquad l=1,2,\ldots,N-1. \] **Fact 3:** The \((N+1)\times(N+1)\) matrix: \[ \begin{bmatrix} -1 & 1 & 0 & \cdots & 0 & 0\\ 1 & -2 & 1 & \ddots & \vdots & \vdots\\ 0 & 1 & -2 & \ddots & 0 & 0\\ \vdots & \ddots & \ddots & \ddots & 1 & 0\\ 0 & \cdots & 0 & 1 & -2 & 1\\ 0 & \cdots & 0 & 0 & 1 & -1 \end{bmatrix} \] has eigenvalues \[ \mu_l=-4\sin^2\left(\frac{\pi l}{2(N+1)}\right), \qquad l=0,1,\ldots,N. \] **Fact 4:** For a real \(n\times n\) matrix \(A\), the Rayleigh quotient of a vector \(x\in\mathbb{R}^n\) is the scalar \[ r(x)=\frac{x^T Ax}{x^T x}. \] The gradient of \(r(x)\) is \[ \nabla r(x)=\frac{2}{x^T x}(Ax-r(x)x). \] If \(x\) is an eigenvector of \(A\) then \(r(x)\) is the corresponding eigenvalue and \(\nabla r(x)=0\). -
Spring 2008 • Question 7
**Heat Equation Stability:** **a)** Consider the initial value problem for the constant-coefficient diffusion equation \[ v_t=\beta v_{xx},\qquad t>0 \] with initial data \(v(x,0)=f(x)\). The Crank-Nicolson scheme for this problem is: \[ \frac{u_j^{n+1}-u_j^n}{k} = \frac{\beta}{2h^2} \left\{ u_{j-1}^{n+1}-2u_j^{n+1}+u_{j+1}^{n+1} +u_{j-1}^{n}-2u_j^{n}+u_{j+1}^{n} \right\}. \] Analyze the 2-norm stability of this scheme and show that the scheme is stable for any choice of \(k>0\) and \(h>0\). **b)** Consider the variable coefficient diffusion equation \[ v_t=(\beta v_x)_x,\qquad 0
0 \] with Dirichlet boundary conditions \[ v(0,t)=0,\qquad v(1,t)=0 \] and initial data \(v(x,0)=f(x)\). Assume that \(\beta(x)\geq\beta_0>0\), and that \(\beta(x)\) is smooth. Let \(\beta_{j+1/2}=\beta(x_{j+1/2})\). The Crank-Nicolson scheme for this problem is: \[ \begin{aligned} \frac{u_j^{n+1}-u_j^n}{k} &= \frac{1}{2h^2} \bigl\{ \beta_{j-1/2}u_{j-1}^{n+1} -(\beta_{j-1/2}+\beta_{j+1/2})u_j^{n+1} +\beta_{j+1/2}u_{j+1}^{n+1} \\ &\qquad +\beta_{j-1/2}u_{j-1}^{n} -(\beta_{j-1/2}+\beta_{j+1/2})u_j^{n} +\beta_{j+1/2}u_{j+1}^{n} \bigr\}. \end{aligned} \] Analyze the 2-norm stability of this scheme for solving this initial boundary value problem. Do not neglect the fact that there are boundary conditions! **8) Numerical Methods for ODEs:** Consider the Linear Multistep Method \[ y_{n+2}-\frac{4}{3}y_{n+1}+\frac{1}{3}y_n=\frac{2}{3}h f_{n+2} \] for solving an initial value problem \(y'=f(y,x)\), \(y(0)=\eta\). You may assume that \(f\) is Lipschitz continuous with respect to \(y\) uniformly for all \(x\). **a)** Analyze the consistency, stability, accuracy, and convergence properties of this method. **b)** Would it be more reasonable to use this method or Euler's method for the initial value problem: \[ y'=-10^8[y-\cos(x)]-\sin(x),\qquad y(0)=1? \] Justify your answer. -
Fall 2007 • Question 7
**Heat Equation Stability** **a)** Consider the initial value problem for the constant-coefficient diffusion equation \[ v_t=\beta v_{xx},\qquad t>0 \] with initial data \(v(x,0)=f(x)\). The Crank-Nicolson scheme for this problem is: \[ \frac{u_j^{n+1}-u_j^n}{k} = \frac{\beta}{2h^2} \left\{ u_{j-1}^{n+1}-2u_j^{n+1}+u_{j+1}^{n+1} +u_{j-1}^n-2u_j^n+u_{j+1}^n \right\}. \] Analyze the 2-norm stability of this scheme and show that the scheme is stable for any choice of \(k>0\) and \(h>0\). **b)** Consider the variable coefficient diffusion equation \[ v_t=(\beta v_x)_x,\qquad 0
0 \] with Dirichlet boundary conditions \[ v(0,t)=0,\qquad v(1,t)=0 \] and initial data \(v(x,0)=f(x)\). Assume that \(\beta(x)\geq\beta_0>0\), and that \(\beta(x)\) is smooth. Let \(\beta_{j+1/2}=\beta(x_{j+1/2})\). The Crank-Nicolson scheme for this problem is: \[ \begin{aligned} \frac{u_j^{n+1}-u_j^n}{k} = \frac{1}{2h^2}\{& \beta_{j-1/2}u_{j-1}^{n+1} -(\beta_{j-1/2}+\beta_{j+1/2})u_j^{n+1} +\beta_{j+1/2}u_{j+1}^{n+1}\\ &+\beta_{j-1/2}u_{j-1}^n -(\beta_{j-1/2}+\beta_{j+1/2})u_j^n +\beta_{j+1/2}u_{j+1}^n \}. \end{aligned} \] Analyze the 2-norm stability of this scheme for solving this initial boundary value problem. Do not neglect the fact that there are boundary conditions! -
Fall 2005 • Question 3
Heat Equation Consider the variable coefficient diffusion equation \[ v_t=(\beta v_x)_x,\qquad 0<x<1,\quad t>0 \] with Dirichlet boundary conditions \[ v(0,t)=0.0,\qquad v(1,t)=0.0 \] and initial data \(v(x,0)=f(x)\). Assume that \(\beta (x)\ge \beta _0>0\), and that \(\beta (x)\) is smooth. For any fixed value of \(\theta \in [0,1]\), consider the \(\theta \)-scheme for this problem: \[ \begin {aligned} \frac {u_j^{n+1}-u_j^n}{k} =\frac {1}{h^2}\{& (1-\theta )(\beta _{j-1/2}u_{j-1}^{n+1} -(\beta _{j-1/2}+\beta _{j+1/2})u_j^{n+1} +\beta _{j+1/2}u_{j+1}^{n+1})\\ &+\theta (\beta _{j-1/2}u_{j-1}^n -(\beta _{j-1/2}+\beta _{j+1/2})u_j^n +\beta _{j+1/2}u_{j+1}^n)\}. \end {aligned} \] with appropriate treatment of the boundary conditions in the relevant equations. Here, \(h\) is the spacestep, \((J+1)h=1\), \(k\) is the timestep, and \(\beta _{j+1/2}=\beta (x_{j+1/2})\), where \(x_{j+1/2}=(j+1/2)h\). Let \(M\) be the symmetric \(J\times J\) matrix defined by \[ \setlength {\arraycolsep }{3pt} M= \begin {pmatrix} -(\beta _{1/2}+\beta _{3/2}) & \beta _{3/2} & \cdots & \cdots & \cdots & \cdots \\ \beta _{3/2} & -(\beta _{3/2}+\beta _{5/2}) & \beta _{5/2} & \cdots & \cdots & \cdots \\ \cdots & \cdots & \cdots & \cdots & \cdots & \cdots \\ \cdots & \cdots & \cdots & \cdots & \cdots & \cdots \\ \cdots & \cdots & \cdots & \beta _{J-3/2} & -(\beta _{J-3/2}+\beta _{J-1/2}) & \beta _{J-1/2}\\ \cdots & \cdots & \cdots & \cdots & \beta _{J-1/2} & -(\beta _{J-1/2}+\beta _{J+1/2}) \end {pmatrix}. \] Analyze the stability of this scheme in terms of \(\theta \), \(\frac {k}{h^2}\), and the eigenvalues of \(M\). Are there values of \(\theta \) for which the scheme is stable for all choices of \(\frac {k}{h^2}>0\)? (Note that answering this question should not require lots of writing.)
-
Fall 2001 • Question 8
- Derive the “diffusion” or “heat” equation in several spatial dimensions.
- In the derivation of this equation, it is routinely assumed that \[ \frac {d}{dt}\int _\Omega u(x,t)\,dx=\int _\Omega \frac {\partial u}{\partial t}\,dx. \] Under what conditions is this interchange of order valid? Prove your result. Hint: Examine the function \[ w(t)=\int _0^t\left (\int _\Omega \frac {\partial u(x,t)}{\partial t}\,dx\right )\,dt. \]
-
Fall 1994 • Question C3
Describe quantitatively the diffusion of 3 units of a diffusing material which is placed at the initial moment \(t=0\) at the origin of an infinite two-dimensional plane. Assume that the plane has unit conductivity.