The inverted pendulum shown consists of a

uniform rod of length L and mass M hinged at its base. A spring is
attached a distance h from the pendulum’s pivot and has a spring
constant k. At equilibrium the pendulum is perfectly vertical. For
small amplitude oscillations from equilibrium, find the frequency of this
pendulum.