Let f(x)=tanx
f(x)=sinxcosx is defined for all real number except cosx=0
⇒x=(2n+1)π2
Let p(x)=sinx and q(x)=cosx
We know that sinx and cosx is continuous for all real numbers
⇒p(x) and q(x) is continuous.
By Algebra of continuous function
If p(x) and q(x) both continuous for all real numbers.
then f(x)=p(x)q(x) is continuous for all real numbers such that q(x)≠0
⇒f(x)=sinxcosx is continuous for all real numbers such that cosx≠0 or x≠(2n+1)π2
Hence, tanx is continuous at all real numbers except x=(2n+1)π2