p(x)=2x-2

q(x)=x^2+1

find
(qop)(5)=
(poq)(5)=

2 answers

q of p = p^2 + 1 = (2x-2)^2 +1 = 4(x^2-2x+1) +1 = 4x^2 -8x + 5
if x = 5
100 - 40 + 5 = 65
You can do the reverse one now.
I interpret (qop)(5)
as (q follows p)(5)
p(5) = 2(5)-2 = 8
q(8) = 8^2 + 1 = 65
so (qop)(5) = 65

Do the 2nd one in the same way