Let

We know that , so we have

So

We have the equation

It can be re-write as

Also we have

Then the equation is

Let

Then we know

Substitute them into the function

We can get the 3 roots

Back to , we have

For any , . So only and match the condition
Condition 1: , we have

So, for , we get

and

Condition 2: , we have

Let
So, for , we get

and

So we get the final answer