Let's say that you want to prove that $f(x)=\begin{cases} \displaystyle \frac{x+1}{e^{2x}+1} &\text{if}\, x \ne 0\\ 1/2 &\text{if}\, x = 0\end{cases}$ is differentiable and continuous for $f:\mathbb R \to \mathbb R$. Is it enough to state that, since we know that linear and exponential functions are continuous then if you divide one by the other the result would still be a continuous function?
Then to show that $f(x)$ is differentiable, you'd have to use the formula $$\lim\limits_{h \to 0} \frac{f(x+h)-f(x)}{h}$$ $$=\lim\limits_{h \to 0} \frac{(\frac{x+1}{e^{2x}+1}+h)-(\frac{x+1}{e^{2x}+1})}{h}$$ $$=\lim\limits_{h \to 0} \frac{\frac{x+1}{e^{2x}+1}+h-\frac{x+1}{e^{2x}+1}}{h}$$ $$=\lim\limits_{h \to 0} \frac{h}{h}=1$$
Is that enough to show that $f(x)$ is differentiable and continuous? Also how would the fact that $f(x)$ is a piece-wise function affect the result?