The problem:
Prove or refute the following:
If $f,g,h: \mathbb{R} \to \mathbb{R}$ and $f \circ g \circ h$ is surjective then $f$ is surjective.
My solution: (The definition of surjective: iff $∀y ∈ T ,∃x ∈ S \implies f(x) = y$)
Let $f\colon A \to B$, $g\colon B \to C$ and $h: C \to D$.
Lets say $b ∈ A$, $a ∈ B$. We know by definition that $f(g(h(a)) = b$
Therefore $f(a) = b$, $g(a) = b$, $h(a)=b$, so $f$ is surjective.
I am kind of confused (as you can see from my solution) Please help, am I at least on the right track or completely wrong.
$\mathbb{R}=(f\circ g\circ h) (\mathbb{R})\subseteq{f(\mathbb{R}})\subseteq \mathbb{R}$, so $f(\mathbb{R})=\mathbb{R}$.
even $f\colon E \to F$, $g\colon D \to E$ and $h: C \to D$, then since $\mathbb{F}=(f\circ g\circ h) (\mathbb{C})\subseteq{f(E})\subseteq \mathbb{F}$, so $f(\mathbb{E})=F$.