Given: f(x)=x2 and g(x)=2x
We need to find f(f(g(x))+g(f(x))) at x=1
CRITICAL: Notice the parentheses! We need f(something) where "something" =f(g(x))+g(f(x))
Find g(1):
g(1)=21=2
Find f(g(1))=f(2):
f(2)=22=4
Find f(1):
f(1)=12=1
Find g(f(1))=g(1):
Since f(1)=1, we need g(1)=21=2
Calculate f(g(1))+g(f(1)):
f(g(1))+g(f(1))=4+2=6
Apply function f to this result:
f(f(g(1))+g(f(1)))=f(6)=62=36
Memory Trick: First find what's inside the outer f(here), then apply f to that result
Answer: 36