I need help numerically solving $$\frac{\partial \nabla^2 p} {\partial t} = \frac{\partial p} {\partial x}$$
I know that to solve
\begin{equation} \frac{\partial p} {\partial t} = \frac{\partial p} {\partial x} \end{equation}
the finite difference formula is \begin{equation} \frac{p_{i,j}^{n+1} - p_{i,j}^n} {\Delta t} = \frac{p_{i+1,j}^n - p_{i-1,j}^n} {2 \Delta x} \end{equation} This simplifies to \begin{equation} p_{i,j}^{n+1} = r \left( p_{i+1,j}^n - p_{i-1,j}^n \right) + p_{i,j}^n \end{equation} where $r = \frac{\Delta t} {2 \Delta x}$, which allows me to explicitly calculate $p$ at the next time step from $p$ at the current time step.
Following the same procedure for $\frac{\partial \nabla^2 p} {\partial t} = \frac{\partial p} {\partial x}$, I get
\begin{multline} p_{i-1,j}^{n+1} + p_{i+1,j}^{n+1} + p_{i,j-1}^{n+1} + p_{i,j+1}^{n+1} - 4p_{i,j}^{n+1} = \\ (1-r) p_{i-1,j}^n + (1+r) p_{i+1,j}^n + p_{i,j-1}^n + p_{i,j+1}^n - 4p_{i,j}^n \end{multline} where $r = \frac{\Delta \Delta t} {2}$ and $\Delta x = \Delta y = \Delta$. But now I must solve $p$ at five points simultaneously. I cannot simply march through the grid, updating each point as I go. How can I solve this equation cheaply and avoid inverting a matrix?