The functions are and
.
Find .
(Composition of functions formula)
(Substitute
)
(Substitute again)
(Simplify)
.
Find .
(Composition of functions formula)
(Substitute
)
(Substitute again)
Sum of squares: .
(Multiply)
(Simplify)
.
and
.