It has been well-documented why certain functions applied to equations do not add extraneous solutions. In this post, the accepted response shows that if the applied function is injective, then it is guaranteed that the solution set is preserved.
However, the response does not explore my issue (at least not explicitly). Namely, if the applied function is not injective, is the solution set always expanded? If it is preserved sometimes, when and why?
I can answer my first question by providing the example below:
First, consider the following simple equation:
$$ x = 4 $$
$$ x^2 = 16 $$
$$ x = \pm4 $$
As we can see, only one of the resulting solutions satisfies the original equation; we have gained an extraneous solution.
Now, consider another equation:
$$ \sqrt5 = \sqrt{1 + x^2} $$
$$ 5 = 1 + x^2 $$
$$ 4 = x^2 $$
$$ x = \pm 2 $$
The resulting solutions satisfy the original equation, meaning that squaring both sides (applying a non-injective function) did not add another solution. Then, it is not the case that using a non-injective function will necessarily expand the solution set.
However, one question remains: When will applying a non-injective function expand the solution set, and when will it not? I may be misinterpreting the linked post, but this discussion is not highlighted.