Nonlinear functions · Lesson 1

Function notation, graphs and transformations

f(x)f(x) is the output of the function ff when the input is xx. It does not mean ff times xx. To find f(−2)f(-2), replace every xx in the rule with (−2)(-2), in parentheses, and simplify. With f(x)=x2+1f(x) = x^2 + 1, f(−2)=(−2)2+1=5f(-2) = (-2)^2 + 1 = 5.

On a graph of y=f(x)y = f(x), the input is the xx-coordinate and the output is the yy-coordinate. The point (a,b)(a, b) is on the graph exactly when f(a)=bf(a) = b. So f(4)f(4) asks for the height of the graph at x=4x = 4, while f(x)=4f(x) = 4 asks for every xx where the graph has height 4. There can be more than one.

In context, read both units. If C(n)C(n) is the cost, in dollars, of printing nn posters, then C(40)=90C(40) = 90 means: printing 40 posters costs 90 dollars. The number in the parentheses is the input (posters) and the number after the equals sign is the output (dollars).

Transformations. If you know the graph of y=f(x)y = f(x), you can build related graphs. y=f(x)+ky = f(x) + k moves the graph up kk units (down if kk is negative). y=f(x−h)y = f(x - h) moves it right hh units, so y=f(x+3)y = f(x + 3) moves it left 3. y=−f(x)y = -f(x) flips it over the xx-axis. Every point moves the same way, so a vertex at (2,4)(2, 4) on y=f(x)y = f(x) becomes (2+h,4+k)(2 + h, 4 + k) on y=f(x−h)+ky = f(x - h) + k.

A quick way to remember the horizontal direction: in f(x−3)f(x - 3), the input that used to be 0 is now reached when x=3x = 3, so everything happens 3 units later, to the right.

The graphs of y = x^2 and y = (x - 3)^2 + 1−4−3−2−11234567−2−112345678910xy(3, 1)
The graphs of y=x2y = x^2 and y=(x−3)2+1y = (x - 3)^2 + 1 Two upward-opening parabolas with the same shape. The first has its lowest point at (0, 0). The second is the first moved 3 units right and 1 unit up, so its lowest point is at (3, 1). The first meets both axes at (0, 0); the second crosses the y-axis at (0, 10), the top edge of the window.

Worked example Easy

f(x)=3x2−5x+2f(x) = 3x^2 - 5x + 2

For the function ff defined above, what is the value of f(−2)f(-2)?

  1. 00
  2. 44
  3. 2424Answer
  4. 4848

How to solve it

  1. Replace every xx with (−2)(-2): f(−2)=3(−2)2−5(−2)+2f(-2) = 3(-2)^2 - 5(-2) + 2.
  2. Square first: (−2)2=4(-2)^2 = 4, so 3(−2)2=123(-2)^2 = 12.
  3. Multiply: −5(−2)=10-5(-2) = 10.
  4. Add: 12+10+2=2412 + 10 + 2 = 24.

Why each choice is right or wrong

  • A. Incorrect. This comes from treating (−2)2(-2)^2 as −4-4, which gives 3(−4)+10+2=03(-4) + 10 + 2 = 0. A negative number squared is positive: (−2)2=4(-2)^2 = 4.
  • B. Incorrect. This comes from writing −5(−2)-5(-2) as −10-10, which gives 12−10+2=412 - 10 + 2 = 4. A negative times a negative is positive, so the middle term is +10+10.
  • C. Correct. 3(4)−5(−2)+2=12+10+2=243(4) - 5(-2) + 2 = 12 + 10 + 2 = 24.
  • D. Incorrect. This comes from multiplying 3 by −2-2 before squaring, (3⋅(−2))2=36(3 \cdot (-2))^2 = 36, which gives 36+10+2=4836 + 10 + 2 = 48. The exponent applies only to xx, so square −2-2 first and then multiply by 3.

Worked example Medium

The graph of y = f(x)−2−1123456−5−4−3−2−11234560xy(2, 4)(0, 0)(4, 0)
The graph of y=f(x)y = f(x) A downward-opening parabola. Its highest point, the vertex, is at (2, 4). It crosses the x-axis at (0, 0), which is also where it crosses the y-axis, and at (4, 0).

The graph of y=f(x)y = f(x) is shown. The function gg is defined by g(x)=f(x+3)−1g(x) = f(x + 3) - 1. What are the coordinates of the vertex of the graph of y=g(x)y = g(x)?

  1. (−1,3)(-1, 3)Answer
  2. (5,3)(5, 3)
  3. (2,6)(2, 6)
  4. (−1,5)(-1, 5)

How to solve it

  1. Read the vertex of ff from the graph: (2,4)(2, 4).
  2. f(x+3)f(x + 3) moves the graph 3 units left, so the xx-coordinate becomes 2−3=−12 - 3 = -1.
  3. The −1-1 outside moves the graph 1 unit down, so the yy-coordinate becomes 4−1=34 - 1 = 3.
  4. The vertex of gg is (−1,3)(-1, 3). Check: g(−1)=f(2)−1=4−1=3g(-1) = f(2) - 1 = 4 - 1 = 3.

Why each choice is right or wrong

  • A. Correct. Adding 3 inside shifts the graph 3 units left and subtracting 1 outside shifts it 1 unit down: (2−3,4−1)=(−1,3)(2 - 3, 4 - 1) = (-1, 3).
  • B. Incorrect. This moves the vertex 3 units right. Adding 3 inside the parentheses moves the graph left: g(−1)=f(2)−1g(-1) = f(2) - 1, so the old vertex input 2 is now reached at x=−1x = -1.
  • C. Incorrect. This treats the +3+3 inside as a shift up, giving a height of 4+3−1=64 + 3 - 1 = 6, and leaves the xx-coordinate at 2. A number added inside the parentheses moves the graph sideways, not up.
  • D. Incorrect. This handles the horizontal shift correctly but also reverses the vertical one, giving 4+1=54 + 1 = 5. Only the shift inside the parentheses goes the opposite way from its sign. The −1-1 outside moves the graph down.

Trap Shifting the wrong way

f(x−3)f(x - 3) moves a graph 3 units right and f(x+3)f(x + 3) moves it 3 units left, the opposite of what the sign seems to say. Numbers outside the function behave as they look: f(x)−1f(x) - 1 moves the graph down 1. A choice with the horizontal shift reversed is often among the answers.

Trap Mixing up f(a) and f(x) = a

f(5)f(5) is an output: go to x=5x = 5 and read the height. f(x)=5f(x) = 5 asks for inputs: find every point at height 5 and read their xx-coordinates. When a question gives you an output and asks for the input, the output value itself is a likely wrong choice.

Desmos When Desmos is faster

When the function is given as a formula, define it in Desmos: type f(x) = 3x^2 - 5x + 2. On the next line type f(-2), and Desmos shows the value, 24. This avoids sign slips with negative inputs.

For transformations, define ff and then type g(x) = f(x + 3) - 1 on a new line. Desmos graphs both, and you can click the new graph to see points such as its vertex.

When the function is given only as a graph on the page, Desmos can't read it. Work from the points on the graph by hand, which is quick: a shift changes every point the same way.