trick

taking the derivative of dx/ds=ay again. now i get, d^2x/ds^2=a dy/ds=-a^2x
since i already know dy/ds=-ax(as u have noted) .....now that is an shm equation and obviously the solution will be in sin and cos.
same thing for dy/ds=-ax, take derivative wrt s again on both sides and substitute.
and z will be constant because derivative zero.
hope that helps.