First, I decided to solve for the coefficient in front of the cosine simple harmonic function for velocity. I know there is max velocity of 30cm/s at time = 0 , so I plug it into velocity function.
xmax * w = A
v(t) = Acos(wt)
0.3 = Acos(w*0)
A = 0.3
Then I have my velocity function...