Prove by definition that: $$\begin{equation*} \lim_{x \rightarrow 1} f(x)=1 \end{equation*},$$
Where,$$\begin{equation*} f(x) = \left\{ \begin{array}{rl} 4x - 3 & \text{if } x > 1,\\ 2-x^2 & \text{if } x < 1. \end{array} \right. \end{equation*}$$
I do not know how to find $\delta$, when we have piece-wise function, could anyone explain this for me please?
When you have a piecewise function, compute the $\delta$ "for each side" and take the minimum.
In our case, note that $|(4x - 3)- 1| < \epsilon$ if $|x - 1| < \frac{\epsilon}{4}$, so here $\delta_1 = \frac{\epsilon}{4}$ would work.
Similarly, note that $|x +1| \leq |x-1| + 2$, and therefore $|(2-x^2)-1| = |x-1||x+1| \leq (|x-1|)(|x-1|+2)$. Now, pick $\delta$ such that $\delta_2(\delta_2 + 2) < \epsilon$, and that would work.
Finally, taking the minimum of these $\delta_i$ will give the result, for then both inequalities desired for the limit to exist, would be true.