Dynamic analysis of a beam with an intermediate elastic support