Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Discuss the differentiability of $y=\sin(\pi(x-[x]))$ in $(-\frac{\pi}{2},\frac{\pi}{2})$, where $[x]$ is the largest integer in x which is $\leq x$.

$$ y = \left\{ \begin{array}{ll} \sin(\pi(x+2)), & \quad -\frac{\pi}{2}<x<-1 \\ \sin(\pi(x+1)), & \quad -1\leq x<0 \\ \sin(\pi x), &\;\;\; \quad 0\leq x<1 \\ \sin(\pi(x-1)), & \:\:\:\:\quad 1\leq x<\frac{\pi}{2} \end{array} \right. $$

share|cite|improve this question
up vote 2 down vote accepted

Hint: Because $\sin (x+2k\pi)=\sin x$ and $\sin(x+2k\pi+\pi)=-\sin x$ ($k\in \mathbb{Z}$), your function is in fact: $$f(x)=\begin{cases}\sin(\pi x)&\mbox{if, }[x]\text{ is even}\\ -\sin (\pi x)&\mbox{if, }[x]\text{ is odd} \end{cases}$$ or since we are working in $(-\frac{\pi}{2},\frac{\pi}{2})$, $$f(x)=\begin{cases}\sin(\pi x)&\mbox{if, }0\le x<\frac{\pi}{2}\\ -\sin (\pi x)&\mbox{if, }-\frac{\pi}{2}< x<0 \end{cases}$$ I think you can finish the rest if you remember that $$\lim_{h\to 0}\frac{\sin ah}{h}=a$$

EDIT: Here is the rest:

Obviously $f$ is differentiable in $(-\frac{\pi}{2},0)\cup(0,\frac{\pi}{2})$. We need to check differentiability at $0$ separately with the definition:

$$\lim_{h\to 0^+}\frac{f(h)-f(0)}{h}=\lim_{h\to 0^+}\frac{\sin(\pi h)}{h}=\pi$$ while $$\lim_{h\to 0^-}\frac{f(h)-f(0)}{h}=\lim_{h\to 0^-}\frac{-\sin(\pi h)}{h}=-\pi$$ and therefore $f$ is not differentiable at $0$ even though it is continuous there.

share|cite|improve this answer
So, here at $x=0$ , $f(x)$ is not differentiable. Am I right? – Argha Dec 21 '12 at 7:10
Right! I will add this to my answer. – Nameless Dec 21 '12 at 7:12
Thanks a lot. Now I got this. – Argha Dec 21 '12 at 7:17
Nice, Nice answer +1 – Babak S. Dec 21 '12 at 7:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.