I am working on an exploration which starts with the following affirmation:
In this section you studied the Binomial theorem. Recall function composition from earlier in the course. In this context (in working with a function under the operation of a composition) when we raise a function to a power like $f^2$, this means $(f \circ f)(x)$. In other words, we apply the composition twice.
After this affirmation, the exploration asks a few questions relating compositions with binomial expansions.
My question is: isn't it wrong to state that raising a function to a given power is the same as applying a composition that number of times? A simple counter example would be $f(x) = 2x$.
This invalidates the whole analysis.
Also, does this make the following question not relevant/meaningful? How could I go about approaching this problem? (assumning the question really means composition)
"Will binomial expansion work for function composition? Why or why not? Use your results to make a conjecture about the binomial theorem."
(given that we are actually not raising the function to a given power, the question seem off, but of course I could be wrong)
Mathematical notation alone does not mean anything until one defines what it means. One can define whatever one wants for any notation. Though it is wise to follow certain conventions for effective communication.
Under different contexts, the same written expression may have completely different meanings. For instance, the notation $f^2(x)$ is commonly used in two different ways:
Yes. But when one writes $f^2(x)=(f(x))^2$, one does not mean to say that $f\circ f(x)=(f(x))^2$ (unless one explicitly claims so), but rather, one means that the right-hand side is the definition of the left.
In general, no. Think about the example of matrices in linear algebra. Specifically consider two $2\times 2$ matrices $A$ and $B$. Note that they can be regarded as functions from $\mathbf{R}^2$ to $\mathbf{R}^2$. But $$ (A+B)^2=A^2+AB+BA+B^2\;. $$ You would have $(A+B)^2=A^2+2AB+B^2$ only when $AB=BA$. But matrices multiplications are not necessarily commutative.
More generally, given two functions $f$ and $g$ from $X$ to itself, it is not necessarily true that $f\circ g=g\circ f$.