Form composite function $f(f(x))$ (#349)

Form composite function $f(f(x))$ (#349)

Substitute f(x)f(x) into f(x)f(x) and simplify.