Problem :
How to find the function $f(x) = [x]^2-[x^2]$ is discontinuous at all integers except 1. where $[\hspace{2pt}\cdot\hspace{2pt}]$ represents the greatest integer function.
My approach : let $x = n \in Z$
Left hand limit : Let h is very approx. 0
$\lim_{h \to 0^+} [n+h]^2-[(n+h)^2]$
$\lim_{ h\to 0^+} n^2-n^2 = 0$
Now how to proceed further please suggest will be of great help , thanks.
Observe $$[3.1^2]-[3.1]^2=9-9=0.$$ $$[2.9^2]-[2.9]^2=8-4=4.$$
You can generalize from this example, replacing $3\pm0.1$ by $n\pm h$ with $n>0$ and $h$ small enough that $(n\pm h)^2$ doesn't differ from $n^2$ by more than one.
It is an easy matter to show that the RHS are always $0$ and $2n-2$.
For negative $n$, the situation is different because the floor of a negative is the negative of the ceiling.
$$[(-3.1)^2]-[-3.1]^2=9-16=-7.$$ $$[(-2.9)^2]-[-2.9]^2=8-9=-1.$$
The RHS are $2n-1$ and $-1$.
Finally, for $n=0$,
$$[0.1^2]-[0.1]^2=0-0=0.$$ $$[(-0.1)^2]-[-0.1]^2=0-1=-1.$$