Please, help:

Is it possible to simplify it?
I tried to simplify the numerator of fraction.
My result:
- is it true?

Also my result of denominator for equal functions, when is:

but I'm not sure ...
I want to solve this problem for case, when all these functions are different. Help ...
I'm considering the case when .

Thanks in advance.