A column stochastic 2×2-matrix has the form
wit
The characteristic polynomial is
Eigenvalues are 1 and p1−p2. A stationary distribution is (exclude the cases p1=1 and p2=0 for the following computation) given by (p2p2−p1+11−p1p2−p1+1), because of