A curve in the complex plane is defined as a continuous function from a closed interval of the real line to the complex plane:$ z(t) : [a, b] → \mathbb{C}$, $a\leq t\leq b$.
Doubt: Why we choose closed interval to define curve in the complex plane? Can't we take an open interval to define curve?
Thanks for help
Edit: A continuous function $(a,b)\to X$ is equivalent to a continuous function $\mathbb R\to X$, because $\mathbb R$ is homeomorphic (and diffeomorphic and probably more) to an open interval. With a curve $[a,b]\to X$, we actually get something different.
Basically because we want a curve to have endpoints. Of course you could consider at open-ended curve $(a,b)\to X$, but that's not as useful.
Probably the most important reason is that it forces the (image of the) curve to be a closed and bounded set. Otherwise $z(t)=\frac 1t$ for $t\in(0,1)$ would be a curve that goes off to infinity. Even worse, you could have very complicated curves such as infinite spirals and whatnot.
As a bonus, it makes it easy to talk about the endpoints by just writing $z(a)$ and $z(b)$.