DefinitionThe method of lines is a technique for solving partial differential equations by discretizing the PDE and converting it to a system of ordinary differential equations. These ODEs are solved by conventional methods. The heat equation (in the simplest 1-D case) is ∂tu=k∂2xuxx, and discretizing x allows one to solve this system of ODEs over time.