The particle P moves uniformly round the circle, so the radius vector OP turns through an angle θ=ωt in time t, with ω=2π/T. The x-projection of P is the foot of the perpendicular from P to the x-axis. In the answer figure, P0 is the position at t=0 and P the position at time t.

(a) Here r=3 cm and T=2 s, so ω=2π/2=π rad s−1.
At t=0, P is at the bottom of the circle, on the negative y-axis. Moving clockwise, OP turns from the downward vertical towards the negative x-axis. After time t it makes an angle θ=ωt with the downward vertical, and its foot M lies on the negative x-axis at a distance rsinθ from O. So
x=−3sinωt=−3sinπt cm
Check: measured anticlockwise from the +x-axis, OP is at angle −π/2−πt, so x=3cos(−π/2−πt)=−3sinπt. At t=0.5 s this gives x=−3 cm: a quarter-period after starting at the bottom, a clockwise particle is at the left end of the circle, as it should be.
(b) Here r=2 m and T=4 s, so ω=2π/4=π/2 rad s−1.
At t=0, P is on the negative x-axis. Moving anticlockwise, OP turns from the negative x-axis downwards. After time t it makes an angle θ=ωt with the negative x-axis, and its foot N lies on the negative x-axis at a distance rcosθ from O. So
x=−2cosωt=−2cos(2πt) m
Check: measured from the +x-axis, OP is at angle π+πt/2, so x=2cos(πt/2+π)=−2cos(πt/2).
Both projections are simple harmonic motions: (a) amplitude 3 cm and period 2 s, (b) amplitude 2 m and period 4 s.