This produces 2 equations

and

This can become

To solve both,

let

let

Therefore the first equation becomes

Hence,

Of course the co-efficient is just a constant to represent the general solution. Which can be re-written in the form that they gave you.

The same follows for the Y equation!