Find the basic function at for

Also, find the solution which satisfies

What I don't understand is why the book multiplied through by x instead of of z = x + yi, because looking at the first solution, the imaginary constant is being used in relations to sqrt{4-\lambda}.

How was acquired and is the coefficient 2 associated with sine in the first solutions due to solving for the conditions?

The solution to the problem is: