The function is differentiable at x=0 if the following limit:
x→0limx−0f(x)−f(0)=x→0limxf(x)−0=x→0limxf(x)
exists (note that we used the fact that f(0)=0 as per the definition of the first branch
which includes the point x=0). We compute left and right limits; so
x→0−limxf(x)=x→0−limxx3−7x2=x→0−limx2−7x=0
and
x→0+limxx3cos(x1)=x→0+limx2⋅cos(x1).
This last limit equals 0 by the Squeeze Theorem since
−1≤cos(x1)≤1
and so,
−x2≤x2⋅cos(x1)≤x2,
where in these inequalities we used the fact that x2≥0. Finally, since limx→0+−x2=limx→0+x2=0, the Squeeze Theorem
yields that also limx→0+x2cos(x1)=0, as claimed.
Since the left and right limits match (they're both equal to 0), we conclude that indeed
f(x) is differentiable at x=0 (and its derivative at x=0 is actually equal to 0).