If f(x)=3x+2, does f(2x) mean plug in 2x (giving 6x+2) or is it the same as 2f(x) (which is 6x+4)? I keep mixing input and output-my scratch said f(2x)=6x+2 and then I claimed it equals 2f(x), so what’s the quick rule to spot this on a test?
Welcome to Maths For Fun – where mathematical curiosity meets pure enjoyment for learners of all ages! Founded by a team of lifelong maths enthusiasts, we believe that numbers aren’t just for tests – they’re for exploration, discovery, and delight. Whether you’re eight or eighty, a beginner or a seasoned problem solver, you’ll find a growing collection of logic based games and puzzles that cover every corner of mathematics.
















3 Responses
Great question! Think of f as a machine or a recipe: f(2x) means you feed the machine “2x” as the input, while 2f(x) means you take the output of the machine and then double it. For f(x)=3x+2, plugging in 2x gives f(2x)=3(2x)+2=6x+2. On the other hand, 2f(x)=2(3x+2)=6x+4. They’re not the same here because doubling the input only doubles the 3x part, while doubling the output also doubles the constant +2. Quick rule for tests: changes inside the parentheses affect the input (horizontal change), changes outside f( ) affect the output (vertical change). If there were no constant term (say f(x)=3x), then f(2x)=6x and 2f(x)=6x would match. Want to try one more? What happens with f(x)=x^2+1-do f(2x) and 2f(x) match there?
f(2x) means “replace x by 2x inside the function.” 2f(x) means “compute f(x) first, then multiply that result by 2.” Those are different operations: one changes the input, the other scales the output.
With f(x) = 3x + 2, you get f(2x) = 3(2x) + 2 = 6x + 2, while 2f(x) = 2(3x + 2) = 6x + 4, so they are not equal in general. They only coincide for functions with no constant term, like f(x) = kx, where f(2x) = 2kx and 2f(x) = 2kx.
A quick test trick: plug in a simple number. For x = 1, f(2) = 8 but 2f(1) = 10, so they differ. I used to mix this up until a teacher had me write a small flow: “x → f(x) → then multiply,” which made it clear whether the 2 was acting on the input (inside) or on the output (outside).
f(2x) means “evaluate f at the input 2x,” while 2f(x) means “double the output of f at x.” They’re different operations. For your function f(x)=3x+2, we get f(2x)=3(2x)+2=6x+2, and 2f(x)=2(3x+2)=6x+4. Those aren’t equal (2≠4). Quick rule to spot it: a number inside the parentheses changes the input (horizontal change), a number in front of f(x) scales the output (vertical change).
A fast test during an exam: plug in an easy x, like x=0. Here, f(2·0)=f(0)=2 but 2f(0)=2·2=4, so they differ immediately. Another simple example: if f(x)=x^2, then f(2x)=4x^2, while 2f(x)=2x^2, again not equal. The only time f(2x)=2f(x) holds for all x is when f is proportional to x with no constant term, e.g., f(x)=kx; then f(2x)=2kx=2f(x).