Skills › Algebra

Functions

On the test: GED MathHiSET MathACCUPLACER Math

Answer by: typing · multiple choice

g(x) = x2 + 6x + 9. What is g(−2)?

Enter a number.

Show the solution

Answer: 1

  1. Replace every x with (−2).
  2. (−2)2 = 4, so 1 × 4 = 4.
  3. 6 × (−2) = −12.
  4. Add: 4 + (−12) + 9 = 1.
Next problem →
Report a problem with this question

How it works

A function is a rule that turns each input into exactly one output. f(x) = 2x + 3 is read "f of x equals 2x plus 3".

f(4) means "put 4 in for x": f(4) = 2(4) + 3 = 11. It does not mean f times 4.

Working backwards: if f(x) = 2x + 3 and f(k) = 19, solve 2k + 3 = 19 to get k = 8.

A function of a function: f(g(2)) means work out g(2) first, then put that answer into f.

With negative inputs, use parentheses: if x = −3, then x2 = (−3)2 = 9.

Worked example

g(x) = 2x2 + x − 3. What is g(−2)?

  1. Replace every x with (−2).
  2. (−2)2 = 4, so 2 × 4 = 8.
  3. 1 × (−2) = −2.
  4. Add: 8 + (−2) + (−3) = 3.

Answer: 3

Common mistakes

  • Adding the input instead of multiplying. For f(x) = 2x + 5, f(−3) = 2(−3) + 5 = −6 + 5 = −1, not 2 + (−3) + 5 = 4.
  • Losing the sign when squaring a negative input. For g(x) = x² + 3x, g(−2) = (−2)² + 3(−2) = 4 − 6 = −2, not −4 − 6 = −10.
  • Working a composition from the outside. f(g(5)) means find g(5) first. With f(x) = 2x + 1 and g(x) = x − 3: g(5) = 2, then f(2) = 5. It is not f(5) × g(5).
  • Plugging in the output instead of solving. If f(x) = 3x − 4 and f(k) = 11, solve 3k − 4 = 11, so k = 5. Putting 11 in for x gives 29, which answers a different question.

Functions practice problems with answers

One problem at each level. Try it, then open the solution. For unlimited new problems, use the practice box above.

Basic

f(x) = 8x − 6. What is f(−7)?
  1. A 50
  2. B −62
  3. C −5
  4. D −50
Show the answer and solution

Answer: B, −62

  1. Replace x with −7: f(−7) = 8(−7) − 6.
  2. 8 × (−7) = −56, and −56 − 6 = −62.

Standard

g(x) = 3x2 − x + 3. What is g(−5)?
  1. A −22
  2. B −67
  3. C 83
  4. D 73
Show the answer and solution

Answer: C, 83

  1. Replace every x with (−5).
  2. (−5)2 = 25, so 3 × 25 = 75.
  3. −1 × (−5) = 5.
  4. Add: 75 + 5 + 3 = 83.

Challenge

f(x) = −4x + 9. If f(k) = 5, what is k?
  1. A −1
  2. B 1
  3. C −3
  4. D −11
Show the answer and solution

Answer: B, 1

  1. Set the rule equal to the output: −4k + 9 = 5.
  2. Subtract 9: −4k = −4.
  3. Divide by −4: k = 1.