Learn how to substitute a value into a linear function. For f(x) = 3x + 2, plugging in x = 4 yields 14. This guide clarifies the substitution step, highlights common slip-ups like missing the constant term, and reinforces the idea that input dictates output in simple algebra.

Multiple Choice

If f(x) = 3x + 2, what is f(4)?

Evaluating a function at a specific input means substituting that input into the formula. For f(x) = 3x + 2, to find f(4) you replace x with 4: f(4) = 3×4 + 2 = 12 + 2 = 14. So the value is 14. The other numbers would come from missing the +2 or misapplying the operation, but correct substitution gives 14.

Stepping into the world of functions: a friendly first look

If you’ve ever felt a little puzzled by how math hides its real power behind simple rules, you’re not alone. Functions are the star players in a lot of SLUG Aptitude conversations, and they show up in everyday thinking in ways that aren’t always obvious. A function is just a recipe: you feed it something, it follows a rule, and out comes a new thing. The fun part is watching how the same rule can be used again and again, in countless situations, with different inputs.

Let’s start with a concrete example. Suppose you have a function f defined by f(x) = 3x + 2. What happens when you feed in x = 4? This isn’t about memorizing a single answer; it’s about seeing the pattern in action and learning how to apply it anywhere you meet a function that looks like this.

The heart of substitution: what it means to “plug in” a number

Evaluating a function at a specific input is all about substitution. You take the input value, replace every instance of the variable in the function with that number, and then simplify. It’s like solving a small puzzle where the rules are explicit and the pieces are just numbers.

For f(x) = 3x + 2, plugging in x = 4 goes like this:

  • Start with the rule: f(x) = 3x + 2.

  • Replace x with 4: f(4) = 3(4) + 2.

  • Do the arithmetic: 3 × 4 = 12, then 12 + 2 = 14.

  • So, f(4) equals 14.

This might feel almost too straightforward, but there’s elegance in the simplicity. Once you see substitution as the backbone of how functions operate, you can apply it to all sorts of rules—whether they’re linear like this one or come with a twist.

Common missteps worth keeping an eye on

The example above cleanly lands at 14, but it’s easy to trip over a couple of familiar landmines. Here are a few that tend to pop up and how to sidestep them:

  • Forgetting the constant term: In 3x + 2, the +2 matters. It’s not a bonus; it’s part of the rule. Some folks slip and think it’s just 3x, which would give 12 for f(4). The extra 2 is the tie that holds the whole function together.

  • Dropping signs or mixing up operations: It’s tempting to treat 3x + 2 as 3x2 when you’re speeding through, but that changes the whole game. Always keep the operation sequence clear: multiply first, then add.

  • Mixing inputs and outputs: Remember that f(4) means you’re applying the function to the input 4, not summing a list of values or mixing it with other numbers. It’s a precise operation on a single input.

A mental model that sticks

Think of a function as a little factory: you feed it a number, it runs through a fixed set of steps (the rule), and it spits out a number. With a linear rule like f(x) = 3x + 2, the steps are predictable and smooth. If you feed 4 into the factory, you’ll always go through the same steps: multiply by 3, add 2, and you’ll end up with 14. The predictability is the whole point, and that’s what makes functions so powerful in math and beyond.

A quick aside on real-world flavor

Functions aren’t just abstract. They appear everywhere you look—budget calculations, converting units, computing scores in games, even in how your phone calculates tips in a chatty calculator app. The concept of plugging in a number and seeing what comes out is, in spirit, the same as asking, “What happens if I change this input?” That curiosity is what makes math feel alive rather than just a set of rules to memorize.

How different rules give you different answers

Let’s play a tiny what-if. If the rule were f(x) = 3x − 5 instead of 3x + 2, what would f(4) be? You’d still substitute: f(4) = 3 × 4 − 5 = 12 − 5 = 7. The core idea remains substitution, but the output shifts with the rule. That’s the beauty of functions: change the recipe, and the whole dish changes.

Why this matters for problem-solving in general

Even if you’re not hunting for a single numeric answer, understanding how to evaluate a function sheds light on how to model problems. Suppose you’re planning a tiny experiment or a project with a simple cost model. If your cost function is C(x) = 3x + 2, where x is the number of items you produce, you can quickly predict the cost for different production levels by plugging in values for x. It’s not magic; it’s a disciplined way of thinking about cause and effect in a compact formula.

A broader take: patterns, not just numbers

As you become comfortable with substitution, you’ll start spotting patterns. Linear functions like f(x) = 3x + 2 are especially friendly because their graphs are straight lines with a predictable slope and intercept. The slope (the 3) tells you how steep the line is—how much y changes when x nudges a bit. The intercept (the 2) reveals where the line crosses the y-axis. These aren’t just boring labels; they’re the fingerprints of the function’s behavior.

If you ever wonder how to “see” this visually, imagine drawing the line fast. Pick a few x-values, compute the corresponding f(x), and plot the points. They’ll align in a neat straight path. That alignment is a tangible sign that you’re dealing with a linear relationship. And as your eyes adjust to patterns, you’ll recognize similar shapes in more complicated scenarios, even if the formulas get longer or involve fractions or squares.

Making sense of mild complexity without losing pace

You’ll encounter functions with more complexity—quadratics, exponentials, or even piecewise rules. The core habit stays the same: substitute, simplify, and interpret. When a function gets gnarly, break it down. Step by step substitution is like untying a knot: small, steady actions reveal the overall structure. It’s not about sprinting through a problem; it’s about building a reliable muscle for thinking clearly.

A few practical tips that stay useful

  • Write out the substitution: explicitly replace the variable with the number you’re testing. It keeps you honest and reduces the chance of skipping a term.

  • Check units or dimensions if you’re modeling real situations. Sometimes a mismatch here is the first clue something’s off.

  • Compare outputs for different inputs to sense the function’s behavior. A tiny table of values can illuminate how the rule plays out.

  • Don’t rush the arithmetic. A quick mistake in a multiply-then-add step changes the result. Slow and steady wins the race here.

Let’s weave a few small stories into the idea

  • Suppose you’re tweaking a recipe for a science-project snack bar. The amount of chocolate you melt could be modeled as f(x) = 3x + 2, where x is the number of cups of cocoa powder. If you double x, you don’t just double the sweetness—you shift the whole balance, and the +2 still nudges the final flavor. Seeing how the output shifts helps you tune taste in a way that feels almost intuitive.

  • Or picture a video game mechanic where your score improves with each successful run. If the scoring rule is linear, you can predict your score after a given number of runs and plan your strategy accordingly. It’s not magic; it’s a straightforward forecast built on a simple formula.

A gentle invitation to explore

If you’re reading this and feeling a spark of curiosity, you’re not alone. There’s a quiet thrill in recognizing how a tiny line in a math notebook can connect to a broader world of ideas. You don’t need to feel overwhelmed by the symbols. They’re just tools—a little pocketful of logic you can carry into many corners of life. The moment you realize you can substitute any number into the rule and see what happens, you gain a flexible way of thinking that travels well beyond the classroom.

A final thought to carry forward

So, f(x) = 3x + 2 and f(4) = 14 isn’t just a solved problem. It’s a doorway into a way of thinking that makes numbers behave in surprisingly friendly ways. Substitution is the hinge. The function is the door. And the room on the other side is a more confident approach to all sorts of challenges, from coding to budgeting to everyday decision-making. If you keep that door ajar and peek inside now and then, you’ll find the math world becomes less of a maze and more of a map—one that points you toward clarity, with a touch of elegance in its lines.