Equation of motion of spring pendulum

ω^2 = k/m
Find   It is known that:
      =