Analytic expressions for topologically protected edge states in Su-Schrieffer-Heeger model