1). Find the function $h(x) = \int_{-1}^{x} f(t)~dt $
$$ f(x)= \begin{cases} \frac{x}{1-2x-x^2}, & x \leq 0 \\ \frac{\sin^3x}{\cos^2x+2\cos x+5}, & x>0 \end{cases} $$
2).Is $h(x)$ Antiderivative / primitive integral of $f(x)$ in domain of $h(x)$?
I found $h(x)$:
$$h(x) = \begin{cases} -\sqrt[]{1-2x-x^2}+\sqrt[]{2}-\arcsin\frac{x+1}{\sqrt2}, & x \in [-1,0] \\ \cos x -2 -\ln|\cos^2x+2\cos x +5| + \ln 8 - 2 \arctan\frac{\cos x+1}{2} +\frac{\pi}{4} +\sqrt[]{2}, & x>0 \end{cases} $$
I have no idea what should I do with the second part of the question. Should I use definition of derivative of $f(x)$ or $h(x)$ in point $x=0$? Or how to prove it without this definition?