In the book titled: Discrete Mathematical Structures, by Tremblay; it is stated as Q.#1 in Ex. 2-4.3:
Let $f:\mathbb{R}\to \mathbb{R}$ and $g:\mathbb{R}\to \mathbb{R}$, where $\mathbb{R}$ is the set of real numbers. Find $f\circ g$ and $g\circ f$, where $f(x)= x^2 -2$ and $g(x) = x+4$. State whether these functions are injective, surjective, or bijective.
$f\circ g = x^2 +8x +14$,
$g\circ f=x^2 +2$
By my earlier post, have gathered that as an even order function will not be having a unique x-value for each y-value so none is injective.
But, am still not sure about disproving surjectivity. My approach is not based on calculus (that am still unable to understand, as stated on mse here); but is based on disproof by taking cases where failure occurs.
The minimum value taken up by $f\circ g = x^2 +8x +14$ is $14$.
Similarly, the minimum value taken up by $g\circ f = x^2 +2$ is $2$.
Hence, the entire range is not mapped.
Have a further request to make me understand by the calculus approach.
Update In face of comment by @Arthur, the correct minimum value for $f\circ g = x^2 +8x +14$ is given for $x=-4$, i.e. $-2$.
This is found by simply differentiating wrt $x$ & equating to $0$ to find the minima point.