Continuity

Consider the function f(x)=cos2x1x2f(x)=\dfrac{\cos^2{x}-1}{x^2}. Define a function g(x)g(x) which is equal to ff everywhere where ff is defined and that is continuous on all R\mathbb{R}.
More Continuity Questions: