# Maths on a Mug #13

Posted on```
```#mathsonamug #maths pic.twitter.com/zzl8CjKZ3o

— Dr. Sean (@seanelvidge) January 26, 2016

A classic! This is my favourite result from Graph Theory. The branch of mathematics invented by Euler, this theorem is known as Euler’s Formula. It is a remarkable fact that for any planar graph (edges only intersect at their endpoints) the number of faces (regions bound by an edge) plus the number of vertices (corner points) minus the number of edges is equal to 2!

Take for example a cube, which has 6 faces, 8 vertices (corners) and 12 edges:

\(\begin{align*}

F + V -E &= 2,\\

6 + 8 -12 & = 2.

\end{align*}\)

I think it is a remarkable fact. The proof is quite straight forward, using induction on the number of edges:

For \(E=0\) (i.e. there are no edges) then it is fairly trivial, since there can be only one vertex (\(V=1\)) and one face (\(F=1\)). So clearly \(F+V-E=2\). Now assume it holds for all planar graphs with less than \(E\) edges (where \(E>=1\)). Let \(G\) be a graph with \(E\) edges. If \(G\) is a tree, then \(V=E+1\) and \(F=1\), so \(F+V-E=2\). The only remaining case is if \(G\) is not a tree. In which case let \(m\) be a cycle edge of \(G\) and let us investigate \(G-m\). The connected planar graph \(G-m\) has \(V\) vertices, \(E-1\) edges and \(F-1\) faces so using our inductive hypothesis \((F-1)+V-(E-1)=2\), which implies that \(F+V-E=2\) as required.