Bifurcation and stability analysis of a rotating beam