Consider the function f(x)=⎧⎨⎩x+5x−2if x≠21if x=2. Then f(f(x)) is discontinuous.
f(x)=⎧⎨⎩x+5x−2ifx≠21ifx=2
f(f(x))=x+5x−2+5x+5x−2−2=6x−5−x+9
f(f(x))=6x−59−x
At x=9 it is dicontinous and also given discontinous at x=2