I have that a oscillating mass undergoes shm. It is accelerated (forced oscillation) by 1ms^-2, for time pi/2 as it goes through the origin and then accelerated by -1ms^-2 for another time pi/2, then it is at the origin after the second acceleration.
I need to determine an expression for the acceleration for all time.
The Attempt at a Solution
i can only think of something along the lines: f(t)= 1 0<t<pi/2
= -1 pi/2<t<pi
= 0 t>pi
but this is wrong as it only considers the acceleration for time 0 to pi. I need it for all time, since the mass will start accelerating (forced) when it travels past the origin to the other direction and continues to oscillate back and forth.