Confused about f(x + 2)

I’m stuck on function notation: if f(x) = 3x – 5, I tried doing f(x + 2) as 3x + 2 – 5, but my homework seems to treat the whole x + 2 like it goes into the x-slot. Why isn’t my way working, or did I drop the algebra sandwich somewhere?

4 Responses

  1. Think of f(x) as a machine that takes whatever is in the parentheses and plugs it everywhere x appears in the rule. So with f(x) = 3x − 5, the input “x + 2” means replace x by (x + 2): f(x + 2) = 3(x + 2) − 5 = 3x + 6 − 5 = 3x + 1. Your attempt, 3x + 2 − 5, is actually f(x) + 2, which is different: f(x) + 2 = (3x − 5) + 2 = 3x − 3. Quick check with a number: if x = 4, then f(x + 2) = f(6) = 3·6 − 5 = 13, while f(x) + 2 = f(4) + 2 = (3·4 − 5) + 2 = 9, so they don’t match. The key is that the whole “x + 2” goes into the x-slot before simplifying. For more examples, see Khan Academy’s article on evaluating functions: https://www.khanacademy.org/math/algebra/x2f8bb11595b61c86:functions/xf6c56a76a6c5c5ce:evaluating-functions/a/evaluating-functions.

  2. Think of f as a little machine: whatever you put in gets tripled and then you subtract 5, so plugging in x+2 means f(x+2)=3(x+2)−5=3x+6−5 (your 3x+2−5 forgot to multiply the +2), though I sometimes mix this up and think the +2 just bumps the output up by 2. Here’s a quick refresher: https://www.khanacademy.org/math/algebra/x2f8bb11595b61c86:functions/x2f8bb11595b61c86:evaluating-functions/a/evaluating-functions – want to try f(x−4) next and compare?

  3. I think I see where the sandwich slipped-when I first learned this, I kept forgetting that the whole x+2 has to be treated as a single input, and my teacher made me rewrite the rule as f(□) = 3□ − 5 so I’d drop the entire expression into the box. If f(x) = 3x − 5, then f(x + 2) means “take the input x + 2, multiply it by 3, then subtract 5,” so it becomes 3(x + 2) − 5 = 3x + 6 − 5 = 3x + 1. The step that trips people (me included!) is forgetting the parentheses and writing 3x + 2 − 5, which only adds the 2 after multiplying x by 3, not before-so it changes the process. A quick check helps: if x = 4, then f(6) should be 3·6 − 5 = 13, but 3·4 + 2 − 5 gives 9, so it doesn’t match. Thinking of the function as a little machine that applies its rule to the entire input kept me from losing pieces of the “algebra sandwich.”

  4. f(x+2) means “take the input x+2 and put it everywhere x appears,” so f(x+2) = 3(x+2) − 5 = 3x + 1; your 3x + 2 − 5 treats the +2 as outside the function instead of inside. I learned to fix this after losing a point on f(2x) years ago-now I always bracket the input before substituting.

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