I'm studying Calculus. My teacher gave us a couple of exercises: first, prove $$\lim_{x \rightarrow a}\,[|x|]$$ (floor function) exists for values of $a$, and second, prove $$\lim_{x \rightarrow a}\,(x-[|x|])$$ (fractional part) exists for values of $a$. I know the definition for limits, I mean, the right and left sides must be equal. But, how do you find the interval for each one? How do you prove each limit for values of $a$? I think that it doesn't exist at all.
I assume that by $[|x|]$ you mean the floor function, more commonly denoted by $\lfloor x\rfloor$.
Both floor and ceiling functions are continuous on any interval of the form $(n,n+1)$ for $n\in\mathbb{Z}$. In fact they are constant there. And so your $f$ is continuous on them as well. Meaning the limit exists for any $a\not\in\mathbb{Z}$.
Now for $a\in\mathbb{Z}$ note that if $\epsilon>0$ is sufficiently small (i.e. $\epsilon<1$) then $f(a-\epsilon)=1-\epsilon$ while $f(a+\epsilon)=\epsilon$. And so $\lim_{x\to a^-}f(x)=1$ while $\lim_{x\to a^+}f(x)=0$. Is it correct?, how do you prove the other case?
Let $f(x) =[|x|] $. If $a\ne 0$ is an integer then, $\lim_{x\to a^{-}}f(x)=a-1$ and $\lim_{x\to a^{+}}=a. $ Hence, $\lim_{x\to a^{-}}f(x)\ne \lim_{x\to a^{+}} f(x) $.
Notice that for all $x\ne0$, $0\le f(x) \le |x|$ By squeeze theorem, $f$ has limit 0 at x=0.
Now show using epsilon delta definition of limit that if $r$ is a non integer point then $\lim_{x\to r}f(x) =[r] $ Can you take it from here?