234k views
2 votes
Does f(g(x)) result in the same equation as g(f(x))? why do you think this happens? explain

User Garzanti
by
5.1k points

1 Answer

6 votes

f(g(x)) does NOT result in the same equation as g(f(x))

It can happen in some cases, but in general it is not true.

For example:

f(x) = x^2

g(x) = x + 1

Then f(g(x)) = (x + 1)^2

and g(f(x)) = x^2 + 1

(x + 1)^2 is different to x^2 + 1

User Tomwanzek
by
4.8k points