Hello, I am trying to solve the following question using conservation of energy. Part (a) is fine, I have compared it with suvat questions and I have got:
$z_{max} = v_0^2sin^2a/2g$
I am struggling with (b).
I have set
$1/2mv_0^2(cos^2a(j)+sin^2a(k)=1/2mv^2+mgz(k)$ by conservation of energy.
Rearranging and integrating I got
$s = (v_0cosa)t(j)+(v_0sina-\sqrt(2gz))t(k)$
Can anyone point me in the right direction?
Thank you.

For the second equation, from conservation you can write $\frac 12 v_0^2=\frac 12 v(t)^2+gz$-you shouldn't have the angles on the left of the second equation. Now use the fact that $v_y$ is constant to get $v_z(t)$ and integrate.