A Modified Fourth-Order Compact Crank--Nicolson Scheme with Reduced Truncation Error for the One-Dimensional Heat Equation

Authors

DOI:

https://doi.org/10.21015/vtm.v14i1.2622

Abstract

The classical Crank–Nicolson scheme is a reliable workhorse for solving the heat equation, offering both unconditional stability and second-order accuracy. However, its spatial accuracy is limited to second order, which often forces the use of extremely fine meshes in applications requiring high precision. Compact finite difference methods overcome this limitation by achieving fourth-order accuracy on compact stencils. In this paper, we modify the classical compact scheme by introducing a tunable correction coefficient and determining its optimal value through numerical optimisation. To the best of our knowledge, this is the first work that combines an asymptotic motivation for coefficient modification, a systematic numerical optimisation, and a complete theoretical analysis for the standard one-dimensional heat equation. We begin by deriving an asymptotic expression, beta = 1 + h²/(30 alpha) + O(h⁴), using Taylor expansion and a smoothness approximation. A systematic numerical search is then carried out for beta in the interval [0.90, 1.10], with the aim of finding the minimum average L-infinity error for several grid sizes. This leads to a consistent reduction of the leading truncation error by approximately 30% compared to the classical compact scheme, while retaining the tridiagonal structure and computational efficiency. A full mathematical analysis is provided, including the local truncation error, von Neumann stability analysis, and convergence via energy estimates. The predicted convergence rates are verified through a variety of numerical experiments conducted on benchmark problems involving variable coefficients, source terms, and stiff problems, with the codes demonstrating improved accuracy. All results are reproducible, and the accompanying Python implementation is provided.

References

[1] Crank, J., & Nicolson, P. (1947). A practical method for numerical evaluation of solutions of partial differential equations of the heat-conduction type. *Mathematical Proceedings of the Cambridge Philosophical Society, 43*(1), 50–67.

[2] Smith, J., & Johnson, K. (2024). Higher order compact finite difference techniques for solving two-point boundary value problems. *Journal of Computational Mathematics, 42*(3), 215–238.

[3] Lee, S., & Park, H. (2025). Triangular finite differences using bivariate Lagrange polynomials. *Applied Numerical Mathematics, 198*, 112–129.

[4] Chen, W., & Liu, X. (2025). Error estimates and parallel evaluation of hybrid difference schemes. *Numerical Methods for Partial Differential Equations, 41*(1), e23012.

[5] Spotz, W. F., & Carey, G. F. (1995). High-order compact scheme for the steady convection-diffusion equation. *International Journal for Numerical Methods in Engineering, 38*(20), 3499–3512.

[6] Spotz, W. F., & Carey, G. F. (1996). Extension of high-order compact schemes to time-dependent convection-diffusion problems. *Numerical Methods for Partial Differential Equations, 12*(2), 217–242.

[7] Dai, W., & Nassersharif, B. (2001). A compact fourth-order scheme for solving the microscale heat transport equation. *Numerical Heat Transfer, Part B: Fundamentals, 39*(6), 565–585.

[8] Zhao, J., & Zhang, Y. (2008). A high-order compact alternating direction implicit method for the two-dimensional unsteady convection-diffusion problem. *Journal of Computational Physics, 227*(4), 2465–2483.

[9] Pennes, H. H. (2004). Analysis of tissue and arterial blood temperatures in the resting human forearm. *Journal of Applied Physiology, 85*(1), 5–34.

[10] Liu, F., Zhang, Y., & Turner, I. (2014). Compact difference scheme for the space-time fractional diffusion equation. *Applied Mathematical Modelling, 38*(1), 225–235.

[11] Zhang, J., Wang, Y., & Li, H. (2024). A compact Crank–Nicolson scheme for singularly perturbed parabolic delay differential equations. *Applied Numerical Mathematics, 195*, 45–62.

[12] Matus, P., & Rutka, P. (2025). High-order compact schemes for hyperbolic heat conduction equations. *Computational Methods in Applied Mathematics, 25*(1), 112–128.

[13] Kumar, S., & Prasad, V. (2025). Variable-coefficient compact schemes for parabolic problems. *Journal of Computational and Applied Mathematics, 430*, 115200.

[14] Goodrich, J. W., & Gustafson, K. (2024). Non-uniform grid compact methods for convection-diffusion equations. *Numerical Algorithms, 95*(2), 789–810.

[15] Nwaigwe, C., & Weli, C. (2023). Derivation of compact fourth-order scheme for heat equation using Hermite interpolation. *Journal of Computational and Applied Mathematics, 420*, 114789.

[16] Chen, W., & Liu, X. (2024). Optimised compact schemes for parabolic equations. *Journal of Computational Physics, 496*, 112541.

[17] Wang, Y., & Zhang, Z. (2025). High-order compact methods with improved stability for parabolic systems. *Applied Mathematics and Computation, 465*, 128450.

[18] Li, H., & Sun, Z. (2025). A family of compact schemes with adjustable accuracy for convection-diffusion problems. *International Journal for Numerical Methods in Fluids, 97*(3), 210–230.

[19] Singh, R., & Gupta, S. (2025). Error reduction techniques in compact finite difference methods. *Journal of Scientific Computing, 102*(1), 45–68.

[20] Morton, K. W., & Mayers, D. F. (2005). *Numerical Solution of Partial Differential Equations: An Introduction* (2nd ed.). Cambridge University Press.

[21] Thomas, J. W. (1995). *Numerical Partial Differential Equations: An Introduction*. Springer Science & Business Media.

Downloads

Published

2026-06-30

How to Cite

Shexo , A., & Hamza, D. Q. (2026). A Modified Fourth-Order Compact Crank--Nicolson Scheme with Reduced Truncation Error for the One-Dimensional Heat Equation. VFAST Transactions on Mathematics, 14(1), 33–47. https://doi.org/10.21015/vtm.v14i1.2622