Dynamical analysis of fractional oscillator system with cosine excitation utilizing the average method