Hint: It should be a periodic function comparable to the standard equation of motion.
Step 1: Find the equation of a single SHM.
We have to convert the given combination of two harmonic functions to a single harmonic (sine or cosine) function.
Given, displacement function, y= sinωt - cosωt
=√2(1√2⋅sinωt−1√2⋅cosωt)
=√2[cos(π4)⋅sinωt−sin(π4)⋅cosωt]
=√2[sin(ωt−π4)]
Step 2: Find the time period of the oscillation.
Comparing it with the standard equation, y=asin(ωt+ϕ),
we get, ω=2πT⇒T=2πω
Clearly, the function represents SHM with a period T=2πω.