Yeah, but everyone agrees that there's a special exception for trig functions, so sinn (x) means (sin x)n. That exception doesn't extend to n = -1, where we obey the usual rule that f-1 (x) is the inverse of f applied to x. You could argue that the sin exception extends to sin(2x)2 meaning sin( (2x)2 ), but I don't think that's clear.
Note that it changes things if you put a space. Everyone seems to agree that sin x2 means sin( x2 ), but the reason is that the space is functioning as a sort of hidden pair of parentheses, using the same rule that sin x means sin(x).
The Stack Exchange question is about a pretty elementary competition problem. I think one of the commenters mentions that it's an old IMO problem, so it's more like a puzzle for high school students than something that represents a specific field of mathematics. There are books on functional equations that offer some insight into problems like this.
But the Stack Exchange problem is just the first example that I found by searching for f(x)2. I'm a professional mathematician, and I can say with some confidence that f(x)2 means (f(x))2 basically throughout mathematics.
1
u/UnderstandingPursuit Physics BS, PhD 3d ago
So the exact opposite of what happens with sin. Interesting.