I need a function f(x) such that when f(x) is applied to any function's sub-functions, the result is the same as if f(x) is applied over the entire function. For example: f((a^2)b + ln(c)/d - 2^e) = f( f( f( a^2 )b ) + f( f( f( ln(c) )/d ) - f( 2^e ) ) ). Another requirement is that f(x) cannot be linear. Does such a function exist?
EDIT: I've come up with another acceptable scenario: f((a^2)b + ln(c)/d - 2^e) = g( h( i(a^2)b ) + j( k( l( ln(c) )/d ) - m( 2^e ) ) ), where g(x) is always applied to addition operations, h(x) to multiplication, i(x) to powers, j(x) to subtraction, k(x) to division, and l(x) to logarithms, and m(x) to exponentiation, etc.. With this scenario, f(x) can be linear, but the g(x), h(x), etc. cannot be linear.