So

and

So, we got the following system of equations

Now, we multiply the second equation of the system to imaginary unit and subtract the second equation from the first equation.

We got three pairs of real roots of the system.

Now you need to calculate the three values of the function , i.e.