Here's the setup for the analysis. First, define the size of a node x to be the number of nodes in the subtree rooted at x.
We need to show that the operation of splaying a node x to the root satisfies the potential function inequality. We'll do this one case at a time.