A Lyapunov functional for the evolution of solutions to the porous medium equation to self-similarity. I | Synapse