How do you find (fog)(n) given f(n)=2n and g(n)=n4?

1 Answer
Oct 4, 2016

(fog)(n)=2n8

Explanation:

It is sometimes easier to thing of (fog)(n) as f(g(n))

It might also help to replace n in the definition of f(n) with some other variable; since n is just a variable placeholder there is no problem doing this.

So f(n)=2n could equally validly written as
XXXf(k)=2k

Now, if we want to evaluate f(g(n))
we simply replace k with g(n)

XXXf(g(n))=2g(n)

and since g(n)=n4
XXXf(g(n))=2(n4)=2n8