An analytical approach to stability analysis of systems with two nonlinear elements