That certainly should work! What, exactly did you try?
You are told that the acceleration vector is (which, by the way, because cosine is an "even" function and sine an "odd" function, is the same as ). What did you get when you integrated? How did you use the fact that V(0)= i+ k?