Let c be a real number, put x=c+h
So if x⇒c then it means that h⇒0
f(c)=cos(c)
limx⇒c f(x) = limx⇒c cos(x)
Put x=h+c
And as mentioned above, when x⇒c then it means that h⇒0
Which gives us limh⇒0 cos(c+h)
Expanding cos(h+c) = cos(h)cos(c)−sin(h)sin(c)
Which gives us limh⇒0 cos(h)cos(c)−sin(h)sin(c)
=cos(c)cos(0)−sin(c)sin(0)
=cos(c)
And this proves that cos(x) is continuous all across its domain
Now let's see if x2 is continues in its domain
limx⇒h h(x) = limx⇒h x2=h2=h(c) and this proves that h(x) is continuos in its domain.