Why is it that a continuous surjection from $X\to X$ has a fixed point when $X=[1,2]\cup[3,\infty)$ and $X=[3,\infty)$ but not when $X=[1,2]\cup[3,7]$?
When $X=[3,\infty)$ , since the set is closed and connected, therefore the image should also be connected, whence it seems intuitive to expect a fixed point. But, how does $[1,2]\cup[3,\infty)$ have a fixed point but $[1,2]\cup[3,7]$ does not? Any rigorous reasoning? Thanks beforehand.
Closed and connected just isn't enough on its own to produce a fixed point. The space $X = (-\infty,+\infty)$ is closed and connected, but the continuous surjection $f(x)=x+1$ has no fixed point.
Instead, the topological space $X = [1,2] \cup [3,\infty)$ has some explicit features which force it to have the fixed point property:
From this you can deduce the following for any continuous self-surjection $f : X \to X$:
Try tracing through this argument for $X = [1,2] \cup [3,7]$ to see how it breaks down.
The case of $X=[3,\infty)$ is a different story altogether. It does indeed have the fixed point property, but by a different argument.
Regarding another example $X = [1,2] \cup [3,7)$: that $X$ is homeomorphic to $[1,2] \cup [3,\infty)$, and therefore that $X$ does have the fixed point property (or, if one doesn't like the homeomorphism argument, you can just trace through the exact same argument that I gave for $[1,2] \cup [3,\infty)$).
If there's a moral to this story, it's that the fixed point property can be true for many different reasons.