\(\newcommand{\bx}{\textbf{x}} \newcommand{\bo}{\textbf{0}} \newcommand{\bv}{\textbf{v}} \newcommand{\bu}{\textbf{u}} \newcommand{\bq}{\textbf{q}} \newcommand{\by}{\textbf{y}} \newcommand{\bb}{\textbf{b}} \newcommand{\ba}{\textbf{a}} \newcommand{\grad}{\boldsymbol{\nabla}} \newcommand{\pd}[2]{\frac{\partial #1}{\partial #2}} \newcommand{\pdd}[2]{\frac{\partial^2 #1}{\partial #2^2}} \newcommand{\pddm}[3]{\frac{\partial^2 #1}{\partial #2 \partial #3}} \newcommand{\deriv}[2]{\frac{d #1}{d #2}} \newcommand{\lt}{ < } \newcommand{\gt}{ > } \newcommand{\amp}{ & } \)

Section6.2Introduction to Partial Differential Equations (PDEs)

Let's start with some basic review of multivariable calculus. With your partner answer each of the following questions without the aid of the internet.

  • What is a partial derivative (explain geometrically)
  • What is the gradient of a function? What does it tell us physically or geometrically? If \(u(x,y) = x^2 + \sin(xy) \) then what is \(\nabla u\)?
  • What is the divergence of a vector-valued function? What does it tell us physically or geometrically? If \(\boldsymbol{F}(x,y) = \left< sin(xy) \, , \, x^2 + y^2 \right>\) then what is \( \nabla \cdot \boldsymbol{F}\)?
  • If \(u\) is a function of \(x, y\), and \(z\) then what is \(\nabla \cdot \nabla u\)?
  • What is the divergence theorem? (ok ... go ahead and use the internet for this one) Be able to explain what you find. This is meant to be an introduction to most of the primary differential equations of interest in basic mathematical physics.

This section of the notes is meant to give a brief derivation of a general conservation law. The result being a partial differential equation that can be used for conservation of mass, momentum, or energy.

Let \(u\) be the quantity you are trying to conserve, \(\bq\) be the flux of that quantity, and \(f\) be any source of that quantity. For example, if we are to derive a conservation of energy equation, \(u\) might be energy, \(\bq\) might be temperature flux, and \(f\) might be a temperature source (or sink).

Subsection6.2.1Derivation of General Balance Law

Let \(\Omega\) be a fixed volume and denote the boundary of this volume by \(\partial \Omega\). The rate at which \(u\) is changing in time throughout \(\Omega\) needs to be balanced by the rate at which \(u\) leaves the volume plus any sources of \(u\). Mathematically, this means that \begin{gather*} \pd{ }{t} \iiint_{\Omega} u dV = -\iint_{\partial \Omega} \bq \cdot n dA + \iiint_\Omega f dV. \end{gather*}

This is a global balance law in the sense that it holds for all volumes \(\Omega\). The troubles here are two fold: (1) there are many integrals, and (2) there are really two variables (\(u\) and \(q\) since \(f=f(u,x,t)\)) so the equation is not closed. In order to mitigate that fact we apply the divergence theorem to get \begin{gather*} \pd{ }{t} \iiint_{\Omega} u dV = -\iiint_{\Omega} \nabla \cdot \bq dV + \iiint_\Omega f dV. \end{gather*}

Gathering all of the terms on the right of <<Unresolved xref, reference "eqn_global_balance2"; check spelling or use "provisional" attribute>>, interchanging the integral and the derivative on the left (since the volume is not changing in time), and rewriting gives \begin{gather*} \iiint_\Omega \left( \pd{u}{t} + \nabla \cdot \bq \right) dV = \iiint_\Omega f dV \end{gather*}

If we presume that this equation holds for all volumes \(\Omega\) then the integrands must be equal and we get the local balance law \begin{gather*} \pd{u}{t} + \nabla \cdot \bq = f. \end{gather*}

If equation <<Unresolved xref, reference "eqn_local_balance"; check spelling or use "provisional" attribute>> it is often assumed that the system is free of external sources. In this case we set \(f\) to zero and obtain the source-free balance law \begin{gather*} \pd{u}{t} + \nabla \cdot \bq = 0. \end{gather*}

It is this form of balance law where many of the most interesting and important partial differential equations come from. In particular consider the following two cases: mass balance and energy balance.

Subsection6.2.2Mass Balance

In mass balance we take \(u\) to either be the density of a substance (e.g. in the case of liquids) or the concentration of a substance in a mixture (e.g. in the case of gasses). If \(C\) is the mass concentration of a substance in a gas then the flux of that substance is given via Fick's Law as \begin{gather*} \bq = -k \nabla C. \end{gather*}

Combining <<Unresolved xref, reference "eqn_fick"; check spelling or use "provisional" attribute>> with <<Unresolved xref, reference "eqn_local_source_free"; check spelling or use "provisional" attribute>> (and assuming that \(k\) is independent of space, time, and concentration) gives \begin{gather*} \pd{C}{t} = k \nabla \cdot \nabla C. \end{gather*}

In the presenence of external sources of mass, <<Unresolved xref, reference "eqn_fick2_simp"; check spelling or use "provisional" attribute>> is \begin{gather*} \pd{C}{t} = k \nabla \cdot \nabla C + f(x). \end{gather*}

What does <<Unresolved xref, reference "eqn_fick3"; check spelling or use "provisional" attribute>> equation look like in terms of spatial derivatives on the right-hand side? \begin{align*} \pd{C}{t} \amp = \underline{\hspace{2in}} \text{ (1 Spatial Dimension) }\\ \pd{C}{t} \amp = \underline{\hspace{2in}} \text{ (2 Spatial Dimensions) }\\ \pd{C}{t} \amp = \underline{\hspace{2in}} \text{ (3 Spatial Dimensions) } \end{align*}

Subsection6.2.3Energy Balance

The energy balance equation is essentially the same as the mass balance equation. If \(u\) is temperature then the flux of temperature is given by Fourier's Law for heat conduction \begin{gather*} q = -k\nabla T. \end{gather*}

Making the same simplifications as in the mass balance equation we arrive at \begin{gather*} \pd{T}{t} = k \nabla \cdot \nabla T. \end{gather*}

In the presence of external sources of heat, <<Unresolved xref, reference "eqn_fourier2"; check spelling or use "provisional" attribute>> becomes \begin{gather*} \pd{T}{t} = k \nabla \cdot \nabla T + f(x). \end{gather*}

What does <<Unresolved xref, reference "eqn_fourier3"; check spelling or use "provisional" attribute>> equation look like in terms of spatial derivatives on the right-hand side? \begin{align*} \pd{T}{t} \amp = \underline{\hspace{2in}} \text{ (1 Spatial Dimension) }\\ \pd{T}{t} \amp = \underline{\hspace{2in}} \text{ (2 Spatial Dimensions) }\\ \pd{T}{t} \amp = \underline{\hspace{2in}} \text{ (3 Spatial Dimensions) } \end{align*}

Subsection6.2.4Laplace's Equation and Poisson's Equation

Equations <<Unresolved xref, reference "eqn_fick3"; check spelling or use "provisional" attribute>> and <<Unresolved xref, reference "eqn_fourier3"; check spelling or use "provisional" attribute>> are the same partial differential equation for two very important physical phenomenon; mass and heat transfer. In the case where time is allowed to run to infinity and no external sources of mass or energy are included these equations reach a steady state solution (no longer changing in time) and we arrive at Laplace's Equation \begin{gather*} \nabla \cdot \nabla u = 0. \end{gather*}

Laplace's equation is actually a statement of minimal energy as well as steady state heat or temperature. We can see this since entropy always drives systems from high energy to low energy, and if we have reached a steady state then we must have also reached a surface of minimal energy.

Equation <<Unresolved xref, reference "eqn_laplace"; check spelling or use "provisional" attribute>> is sometimes denoted as \(\nabla \cdot \nabla u = \nabla^2 u = \Delta u\), and in terms of the partial derivatives it is written as \begin{align*} 0 \amp = \underline{\hspace{2in}} \text{ (1 Spatial Dimension) }\\ 0 \amp = \underline{\hspace{2in}} \text{ (2 Spatial Dimensions) }\\ 0 \amp = \underline{\hspace{2in}} \text{ (3 Spatial Dimensions) } \end{align*}

If there is a time-independent external source the the right-hand side of <<Unresolved xref, reference "eqn_laplace"; check spelling or use "provisional" attribute>> will be non-zero and we arrive at Poisson's equation: \begin{gather*} \nabla \cdot \nabla u = -f(x). \end{gather*}

Note that the negative on the right-hand side comes from the fact that \(\pd{u}{t} = k \nabla \cdot \nabla u + f(x)\) and \(\pd{u}{t} \to 0\). Technically we are taking absorbing the constant \(k\) into \(f\) (that is “\(f\)” is really “\(f/k\)”). Also note that in many instances the value of \(k\) is not contant and cannot therefore be pulled out of the derivative without a use of the product rule.

We will start our exploration of numerical PDEs with Laplace's and Poisson's equations. We will then layer on the temporal derivatives to explore mass and heat transport. Finally, we will explore wave phenomena as well as advection-diffusion transport models.