Rewrite the function as:
f(x)=(x2+5)−sinx
Let,
g(x)=x2+5,h(x)=sinx
- g(x) is a polynomial function and hence continuous for all real x
- h(x) is a sine function and hence continuous for all real x
Since the difference of two continuous functions is continuous,
f(x)=g(x)−h(x)
is continuous for all real x.
To check continuity at x=π,
x→πlimf(x)=x→πlim(x2−sinx+5)
Putting x=π,
=π2−sinπ+5
Since,
sinπ=0
x→πlimf(x)=π2+5
Also,
f(π)=π2−sinπ+5=π2+5
∴x→πlimf(x)=f(π)
The function is continuous at x=π