The given problem has an algebraic solution simple enough to solve, yet it serves as a clear example of why we learn numerical methods to solve differential equations. It shows how solving a simple differential equation of the form y′=f(x,y) leads to the solution of partial differential equations.
Solution
Unlike in algebraic solutions, the value of γ is not important, so let’s say it is γ=1 for convenience.
xj=δj
If we set the step size of the Line Space x to δ, then for j=0,1,⋯,m, it can be represented as shown above.
For the second order derivative approximation of xUxx≈δ2U(t,xj+1)−2U(t,xj)+U(t,xj−1)
then only for the equation regarding tut(t,xj)=δ2u(t,xj+1)−2u(t,xj)+u(t,xj−1)
we can obtain m−1 equations. Representing this as a matrix gives us
ut(t,x1)ut(t,x2)ut(t,x3)⋮ut(t,xm−2)ut(t,xm−1)=δ21−210⋮001−21⋮0001−2⋮00⋯⋯⋯⋱⋯⋯000⋮−21000⋮1−2u(t,x1)u(t,x2)u(t,x3)⋮u(t,xm−2)u(t,xm−1)
and to save space,
u′(t):=ut(t,x1)ut(t,x2)ut(t,x3)⋮ut(t,xm−2)ut(t,xm−1)
u(t):=u(t,x1)u(t,x2)u(t,x3)⋮u(t,xm−2)u(t,xm−1)
let’s say it is u’(t)=Λu(t). Now, setting the time step size t to h and calling it tk=hk, we can apply various methods to find the numerical solution.
■
Lesson: Stiff Differential Equations
However, all these are theoretical discussions, and actually finding a numerical solution poses significant challenges.
To know the eigenvalues of Λ, let’s calculate the determinant of matrix Λ−λIm−1.
Λ−λIm−1=δ21−2−δ2λ10⋮001−2−δ21⋮0001−2−δ2⋮00⋯⋯⋯⋱⋯⋯000⋮−2−δ21000⋮1−2−δ2
since it is a tridiagonal matrix (m−1)×(m−1), the determinant is calculated as
det(Λ−λIm−1)=δ21Um−1(2−2−δ2λ). Here, Um−1 means the second kind Chebyshev polynomials of order m−1.
Extracting −1 from the bracket gives us
δ2(−1)m−1Um−1(22+δ2λ)
and to find the eigenvalues, only
Um−1(22+δ2λ)
needs attention. The jth root of Um−1(22+δ2λ) for j=1,⋯,(m−1) is
22+δ2λj=cos(mjπ)
and multiplying both sides by 2 gives
2+δ2λj===2cos(mjπ)2cos(2⋅2mjπ)2[1−2sin2(2mjπ)]
Therefore, the eigenvalues are obtained as
λj=−δ24sin2(2mjπ)
However,
∣λm−1∣=≈=δ24sin2(2m(m−1)π)δ244m2
thus, as m=δ1 gets larger, the magnitudes of the eigenvalues also hugely increase. If you chose a small δ to split [0,1] into many parts to accurately know the numerical solution, it becomes exceedingly challenging to compute. Even if you set it to m=100, u’(t)=Λu(t) becomes a Stiff problem, making it quite difficult to solve numerically.