Analytical solutions for static an dynamic stability parameters (Pcr and ωn) of an axially loaded nonuniform beam resting on a two parameter foundation are obtained using the recursive differentiation method (RDM) along with automatic differentiation. The analysis includes all cases of beam end conditions and indicates that the foundation stiffness influence is noticeable on both the critical load Per and natural frequency ωn in the case of slender beams. Also, it is found that the effect of the end conditions decreases as the slenderness parameter of the beam increases. In addition, the analysis concludes that neither the critical load nor the natural frequency corresponding to the first mode is always the smallest one in the case of beams of elastic foundations. The obtained solutions are verified and used to investigate the significance of different parameters on the critical loads and natural frequencies., Obsahuje seznam literatury a názvosloví, and V názvu článku je překlep ve slově differentation - správně differentiation (= chybí druhé i)