Am I feeding the function machine the right snack?

I’m practicing composite functions and I think my brain has put on roller skates. If I have f(x) = 2x – 3 and g(x) = x^2 + 1, I’m trying to understand the difference between f(g(x)) and g(f(x)).

My attempt is that for f(g(x)), I replace the x in f with the whole g(x), so I get f(g(x)) = 2(x^2 + 1) – 3, which simplifies to 2x^2 – 1. That feels right-ish, like the algebra goblin is nodding politely.

But then for g(f(x)), I think I should put 2x – 3 into g, giving g(f(x)) = (2x – 3)^2 + 1. This is where I start doubting myself because the order seems to change everything, and I’m not sure if I’m understanding the “inside function first” idea properly.

Am I thinking about composite functions the right way, or am I secretly mixing up the function sandwiches?

Leave a Reply

Your email address will not be published. Required fields are marked *

Solve Puzzles. Win £200!

Complete our free Puzzle Packs to earn entries into our quarterly £200 cash prize draw. Every different pack you complete gives you another chance to win!

Choose a Pack

Explore our collection of free Puzzle Packs and find your next maths challenge.

Solve the Puzzles

Complete every puzzle in your chosen pack to earn one competition entry.

Be in With a Chance!

Every completed pack gives you another entry into our quarterly £200 prize draw.

Join Our Community

Ready to make maths more enjoyable, accessible, and fun? Join a friendly community where you can explore puzzles, ask questions, track your progress, and learn at your own pace.

By becoming a member, you unlock:

  • Access to all community puzzles
  • The Forum for asking and answering questions
  • Your personal dashboard with points & achievements
  • A supportive space built for every level of learner
  • New features and updates as the Hub grows