Does there exist a continuous onto map from (-1,1] to (-1,1)? My thoughts. I think there doesn't exist any continous onto map satisfying this.
Proof: Suppose there exist such $f:(-1,1]$ to $(-1,1)$. Since if we take [a,1] where a is between 1<a<1, [a,1] is compact in (-1,1] Because [a,1] is compact in $R$, so $f[a,1]$ will be compact too, say it's image will be compact too. But atleast (-1,b) and (c,1) will never be in image of [a,1] for that some b,c. But now by my intuition, I think that there exist g such that -1<g<a and image of f(-1,g) will be connected so we will left with image of f(-1,g)=(-1,h)U(j,1). That will be the contradiction. But not able to think in regrous way I am trying to prove using this kind of argument. Any help will be appreciated