A)
We started as:
In a similar manner like above (#47), we have: a) Assume f is invertible. Then
f
-1[f(f(x))] = f
-1(x),
which easily yields: f(x) = f
-1(x)
That's the
involution* condition, as pointed out in
https://en.wikipedia.org/wiki/Involution_(mathematics)
The large class of real functions satisfying that condition can at least be depicted or represented graphically as "all the invertible functions whose x-y graph is symmetric to the diagonal straight line "y=x" ...".
So it's a huge class of functions ... (as we can consrtuct easily a whole banch of those [e.g. pick a continuous shape, make it symmetric to y=x ... and you name it ...] ...).
* a function that is its own inverse
b) Assume f is not invertible. E.g. the constant function obviously is not a solution, but I did not try any further.
B) Now about your original log problem
Try applying the same technique and differentiate both sides to get a differential equation (then perhaps look for an appropriate change of variable) ... but I doubt it can be solved explicitly. I think perhaps the best way to go is your numerical methods ...
[+/or cf.
https://www.physicsforums.com/threads/find-f-x-such-that-f-f-x-log_ax.903097/#post-5697290 ]