A new proof of the Perron-Frobeniuos theorem, a variational approach | Synapse