Find $\alpha \in \mathbb{R}$ s.t. the second derivative ($x=0$) of the following function exists.
$f(x) = \begin{cases} e^{-\frac{1}{x}}, & \text{if $x$}\gt 0 \\[2ex] \sin(x)+\alpha x^2-\log(1+x), & \text{if $x$ } \leq0 \end{cases}$
How to deal with this kind of exercise? Is it enough to use Taylor at second order and then looking for the differentiability of the function?
Taylor at second order means that you have already calculated the second derivative. Just calculate the second derivative on the left and on the right, and make them equal. $$\left(e^{-\frac 1x}\right)''=-\frac{2x-1}{x^4}e^{-\frac 1x}$$ This term goes to $0$ as $x\to 0$. For the other side the second derivative is $$-\sin x+2\alpha+\frac{1}{(x+1)^2}$$ The limit at $0$ is $2\alpha+1$. So $2\alpha+1=0$ should give you the answer.