ACT · Math · Function Basics

Function Notation, Domain and Composition

15 min readUpdated December 1, 2026FreeACT Math, Functions

Function notation names an output: f(3)f(3) is what the function ff gives back when the input is 33, so you replace every xx in the rule with 33. This note covers, for the ACT® Math section, how to evaluate a function from a rule, a table or a graph, find which inputs are allowed, chain two functions as f(g(x))f(g(x)), undo a function with its inverse and read piecewise rules.

Quick check

  1. Solve 2x+7=12x + 7 = 1.Show answerHide answer

    x=−3x = -3. Subtract 77 to get 2x=−62x = -6, then divide by 22.

  2. If f(x)=3x−5f(x) = 3x - 5, what is f(4)f(4)?Show answerHide answer

    77. Replace xx with 44: 3(4)−5=12−5=73(4) - 5 = 12 - 5 = 7.

  3. If g(x)=x2g(x) = x^2, what is g(−3)g(-3)?Show answerHide answer

    99. Put the input in parentheses: (−3)2=9(-3)^2 = 9, not −9-9.

Know these already? Jump to the practice questions

What you'll be able to do

  • Evaluate a function at a number or an expression, from a rule, a table, a graph or a piecewise definition.
  • Find the domain of a function by excluding inputs that make a denominator zero or a square root negative, and state its range.
  • Calculate a composite f(g(x))f(g(x)) and explain why it usually differs from g(f(x))g(f(x)).
  • Find an inverse function algebraically and use it to undo the original.

Key terms

Domain

The set of inputs a function accepts.

In plain English
The xx-values you are allowed to put in.
Don't write
"all real numbers" before checking for a denominator or a square root.

Range

The set of outputs a function can produce.

In plain English
The yy-values that can come out.
Don't write
The domain when a question asks for the range.

Composite function

One function applied to the output of another: f(g(x))f(g(x)) applies gg first, then ff.

In plain English
Feed one function's answer into the next.
Don't write
f(x)⋅g(x)f(x) \cdot g(x) for f(g(x))f(g(x)); composition is not multiplication.

Inverse function

The function f−1f^{-1} that undoes ff: if f(a)=bf(a) = b, then f−1(b)=af^{-1}(b) = a.

In plain English
Run the function backwards.
Don't write
1f(x)\dfrac{1}{f(x)} for f−1(x)f^{-1}(x); the −1-1 is not a power here.

Piecewise function

A function defined by different rules on different intervals of its domain.

In plain English
The input decides which rule you use.
Don't write
An output from a piece whose condition the input does not meet.

How do you evaluate a function from a rule, a table or a graph?

From a rule, replace every xx with the input, in parentheses. If f(x)=x2−4xf(x) = x^2 - 4x, then f(−1)=(−1)2−4(−1)=5f(-1) = (-1)^2 - 4(-1) = 5. An expression input works the same way: f(2k)=(2k)2−4(2k)=4k2−8kf(2k) = (2k)^2 - 4(2k) = 4k^2 - 8k.

From a table, find the input in the xx row and read the output beside it. From a graph, f(2)f(2) is the yy-coordinate of the point on the graph where x=2x = 2.

Read the question's direction. "What is f(5)f(5)?" gives you an input. "For what value of xx is f(x)=5f(x) = 5?" gives you an output, so set the rule equal to 55 and solve.

A piecewise function lists a condition beside each rule:

h(x)={3xif x<2x2if x≥2h(x) = \begin{cases} 3x & \text{if } x < 2 \\ x^2 & \text{if } x \ge 2 \end{cases}

Check which condition the input meets before you substitute. At a boundary, the piece with ≤\le or ≥\ge owns that point. For linear rules in context, see Function Notation and Writing Linear Functions.

Check yourself

For this function hh, what are h(2)h(2) and h(−1)h(-1)?
Show answerHide answer

h(2)=4h(2) = 4 and h(−1)=−3h(-1) = -3. The input 22 meets x≥2x \ge 2, so use x2x^2; the input −1-1 meets x<2x < 2, so use 3x3x.

Which inputs are allowed, and which outputs come out?

Start from all real numbers, then remove two kinds of input:

  • Zero denominators. For 5x−4\dfrac{5}{x - 4}, the input 44 makes the denominator 00, so x≠4x \ne 4.
  • Negative square roots. What is under a square root must be at least 00. For 6−x\sqrt{6 - x}, 6−x≥06 - x \ge 0, so x≤6x \le 6.

When a function has both, both conditions apply. A cube root accepts every real number.

The range is about outputs. A square root is never negative, so x\sqrt{x} has range y≥0y \ge 0, and x+3\sqrt{x} + 3 has range y≥3y \ge 3. A square is never negative either, so x2−5x^2 - 5 has range y≥−5y \ge -5.

Key idea

For the domain, remove inputs that make a denominator zero or a square root negative; for the range, find the least or greatest output.

Check yourself

What is the domain of k(x)=2x−8k(x) = \sqrt{2x - 8}?
Show answerHide answer

x≥4x \ge 4. What is under the root must satisfy 2x−8≥02x - 8 \ge 0, so 2x≥82x \ge 8 and x≥4x \ge 4.

How do you work out a composite function, and why does order matter?

Work from the inside out. In f(g(x))f(g(x)), gg acts first, and its output becomes the input of ff. The notation (f∘g)(x)(f \circ g)(x) means the same thing.

Take f(x)=2x+1f(x) = 2x + 1 and g(x)=x2g(x) = x^2:

  • f(g(3))f(g(3)): first g(3)=9g(3) = 9, then f(9)=19f(9) = 19.
  • g(f(3))g(f(3)): first f(3)=7f(3) = 7, then g(7)=49g(7) = 49.

The same two functions in the other order give a different answer, so check which function is on the inside. For a composite expression, substitute the whole inner rule in parentheses: f(g(x))=2x2+1f(g(x)) = 2x^2 + 1, but g(f(x))=(2x+1)2g(f(x)) = (2x + 1)^2.

For more on composition, see Function Notation, Composition, and Transformations.

Check yourself

With f(x)=x−4f(x) = x - 4 and g(x)=3xg(x) = 3x, what are f(g(2))f(g(2)) and g(f(2))g(f(2))?
Show answerHide answer

f(g(2))=f(6)=2f(g(2)) = f(6) = 2 and g(f(2))=g(−2)=−6g(f(2)) = g(-2) = -6.

How do you find an inverse function?

An inverse undoes the original: if f(4)=11f(4) = 11, then f−1(11)=4f^{-1}(11) = 4. To find f−1(x)f^{-1}(x) from a rule:

  1. Write y=f(x)y = f(x).
  2. Swap xx and yy.
  3. Solve for yy. That yy is f−1(x)f^{-1}(x).

For f(x)=2x+3f(x) = 2x + 3: swapping gives x=2y+3x = 2y + 3, so y=x−32y = \dfrac{x - 3}{2} and f−1(x)=x−32f^{-1}(x) = \dfrac{x - 3}{2}.

Learn this: f(f−1(x))=xf(f^{-1}(x)) = x and f−1(f(x))=xf^{-1}(f(x)) = x. Use it to check: 2⋅x−32+3=x2 \cdot \dfrac{x - 3}{2} + 3 = x. Inputs and outputs trade places, so the domain of f−1f^{-1} is the range of ff, and the graph of f−1f^{-1} is the graph of ff reflected in the line y=xy = x.

Check yourself

If f(x)=5x−2f(x) = 5x - 2, what is f−1(13)f^{-1}(13)?
Show answerHide answer

33. Solve 5x−2=135x - 2 = 13: 5x=155x = 15, so x=3x = 3. You don't need the full inverse rule to find one value.

Worked example 1: Substituting an expression

Question: If f(x)=x2−4xf(x) = x^2 - 4x, which expression is equal to f(a+2)f(a + 2)?

  • A) a2−4a−4a^2 - 4a - 4
  • B) a2−4a+2a^2 - 4a + 2
  • C) a2−4a^2 - 4
  • D) a2+12a^2 + 12

What tells you the method

The input is an expression, so replace every xx with (a+2)(a + 2) in parentheses.

  1. Step 1: Substitute.

    f(a+2)=(a+2)2−4(a+2)f(a + 2) = (a + 2)^2 - 4(a + 2).

    Why

    Every xx in the rule becomes the whole input.

  2. Step 2: Expand each part.

    (a+2)2=a2+4a+4(a + 2)^2 = a^2 + 4a + 4 and −4(a+2)=−4a−8-4(a + 2) = -4a - 8.

    Why

    The square has a middle term, 2⋅a⋅2=4a2 \cdot a \cdot 2 = 4a, and the −4-4 multiplies both terms.

  3. Step 3: Collect like terms.

    a2+4a+4−4a−8=a2−4a^2 + 4a + 4 - 4a - 8 = a^2 - 4.

    Why

    The 4a4a and −4a-4a cancel.

Check it

Try a=1a = 1. Then f(3)=9−12=−3f(3) = 9 - 12 = -3 and 12−4=−31^2 - 4 = -3, so they agree. A) squares (a+2)(a + 2) as a2+4a^2 + 4, B) is f(a)+2f(a) + 2, and D) writes −4(a+2)-4(a + 2) as −4a+8-4a + 8.

Answer

C) a2−4a^2 - 4.

Worked example 2: A domain with a root and a fraction

Question: What is the domain of f(x)=x+3x−2f(x) = \dfrac{\sqrt{x + 3}}{x - 2}?

  • A) All real numbers except 22
  • B) x≥−3x \ge -3 and x≠2x \ne 2
  • C) x>−3x > -3 and x≠2x \ne 2
  • D) x≥−3x \ge -3

What tells you the method

A square root and a denominator, so there are two conditions.

  1. Step 1: Keep the root defined.

    x+3≥0x + 3 \ge 0, so x≥−3x \ge -3.

    Why

    A real square root needs a value that is at least 00.

  2. Step 2: Keep the denominator nonzero.

    x−2≠0x - 2 \ne 0, so x≠2x \ne 2.

    Why

    Division by zero is undefined.

  3. Step 3: Combine.

    x≥−3x \ge -3 and x≠2x \ne 2.

    Why

    An input must pass both tests.

Check it

f(−3)=0−5=0f(-3) = \dfrac{0}{-5} = 0, so −3-3 is allowed, which rules out C). A) ignores the root and D) ignores the denominator.

Calculator check: graph the function. It starts at (−3,0)(-3, 0) and splits into two pieces at x=2x = 2.

Answer

B) x≥−3x \ge -3 and x≠2x \ne 2.

Worked example 3: An inverse inside a composite

Question: Let f(x)=x+43f(x) = \dfrac{x + 4}{3} and g(x)=2x−1g(x) = 2x - 1. What is the value of f−1(g(3))f^{-1}(g(3))?

  • A) 13\dfrac{1}{3}
  • B) 33
  • C) 99
  • D) 1111

What tells you the method

An inverse outside a composite, so work from the inside out and find f−1f^{-1}.

  1. Step 1: Evaluate the inside.

    g(3)=2(3)−1=5g(3) = 2(3) - 1 = 5.

    Why

    gg acts first.

  2. Step 2: Find the inverse.

    Swap to get x=y+43x = \dfrac{y + 4}{3}, so 3x=y+43x = y + 4 and f−1(x)=3x−4f^{-1}(x) = 3x - 4.

    Why

    Swapping xx and yy and solving reverses each step of ff.

  3. Step 3: Apply the inverse.

    f−1(5)=3(5)−4=11f^{-1}(5) = 3(5) - 4 = 11.

    Why

    The output of gg is the input of f−1f^{-1}.

Check it

f(11)=153=5f(11) = \dfrac{15}{3} = 5, so f−1(5)=11f^{-1}(5) = 11. A) takes f−1(5)f^{-1}(5) as 1f(5)\dfrac{1}{f(5)}, B) is f(g(3))f(g(3)) with no inverse, and C) is g(f−1(3))g(f^{-1}(3)), the wrong order.

Answer

D) 1111.

Your turn

Question: Let f(x)=x2+1f(x) = x^2 + 1 and g(x)=3−xg(x) = 3 - x. Find g(f(x))g(f(x)) as a simplified expression.

  1. Step 1:

    ff is on the inside, so g(f(x))=g(x2+1)g(f(x)) = g(x^2 + 1).

  2. Step 2: Your go: replace xx in the rule for gg with (x2+1)(x^2 + 1) and simplify.

    Finish before you open the solution.

Show the full solutionHide the solution

g(x2+1)=3−(x2+1)=3−x2−1=2−x2g(x^2 + 1) = 3 - (x^2 + 1) = 3 - x^2 - 1 = 2 - x^2. The parentheses matter: without them you get 3−x2+1=4−x23 - x^2 + 1 = 4 - x^2. Check with x=1x = 1: f(1)=2f(1) = 2 and g(2)=1g(2) = 1, and 2−12=12 - 1^2 = 1.

Answer: g(f(x))=2−x2g(f(x)) = 2 - x^2.

Traps

Trap

Treating f(x+2)f(x + 2) as f(x)+2f(x) + 2.

It seems right because both put a +2+2 next to ff. But f(x+2)f(x + 2) changes the input before the rule acts, while f(x)+2f(x) + 2 changes the output afterwards, so substitute (x+2)(x + 2) for every xx.

Check yourself

If f(x)=x2f(x) = x^2, are f(3+2)f(3 + 2) and f(3)+2f(3) + 2 equal?
Show answerHide answer

No. f(5)=25f(5) = 25, but f(3)+2=11f(3) + 2 = 11.

Trap

Reading f−1(x)f^{-1}(x) as 1f(x)\dfrac{1}{f(x)}.

It seems right because x−1x^{-1} means 1x\dfrac{1}{x}. But on a function name, −1^{-1} means the inverse, the function that undoes ff, not the reciprocal of its output.

Check yourself

If f(x)=2xf(x) = 2x, what are f−1(6)f^{-1}(6) and 1f(6)\dfrac{1}{f(6)}?
Show answerHide answer

f−1(6)=3f^{-1}(6) = 3, because f(3)=6f(3) = 6. But 1f(6)=112\dfrac{1}{f(6)} = \dfrac{1}{12}.

Trap

Applying the outer function first in f(g(x))f(g(x)).

It seems right because you read ff first, from left to right. But the inner function acts first: evaluate g(x)g(x), then put that output into ff.

Check yourself

If f(x)=x+1f(x) = x + 1 and g(x)=2xg(x) = 2x, what is f(g(5))f(g(5))?
Show answerHide answer

1111. g(5)=10g(5) = 10 and f(10)=11f(10) = 11. Applying ff first gives g(6)=12g(6) = 12, which is g(f(5))g(f(5)).

What's examined

These skills are tested in the ACT Math section, whose content includes functions: 45 questions in 50 minutes, each with four options, and no formula sheet. The examples here give a function as a rule, a table or a graph. A graphing calculator can confirm a domain or an output, but you still choose the conditions and the order of composition yourself.

Practice questions

  1. Recall If f(x)=4−3xf(x) = 4 - 3x, what is f(−2)f(-2)?
Show answer

Answer: 1010.

Marking points:

  • Substitute in parentheses: 4−3(−2)=4+6=104 - 3(-2) = 4 + 6 = 10.
  1. Apply The function gg has g(−1)=5g(-1) = 5, g(0)=3g(0) = 3, g(1)=0g(1) = 0, g(2)=−2g(2) = -2 and g(3)=1g(3) = 1. What is g(g(3))g(g(3))?
Show answer

Answer: 00.

Marking points:

  • The inside first: g(3)=1g(3) = 1.
  • Then g(1)=0g(1) = 0.
  1. Apply A function is defined by f(x)=x2f(x) = x^2 for x<1x < 1 and f(x)=2x+3f(x) = 2x + 3 for x≥1x \ge 1. What is f(1)+f(−2)f(1) + f(-2)?
    • A) 00
    • B) 44
    • C) 55
    • D) 99
Show answer

Answer: D) 99.

Marking points:

  • 11 meets x≥1x \ge 1, so f(1)=2(1)+3=5f(1) = 2(1) + 3 = 5; −2-2 meets x<1x < 1, so f(−2)=(−2)2=4f(-2) = (-2)^2 = 4.
  • 5+4=95 + 4 = 9.
  • A) uses the wrong piece for both inputs, B) uses 2x+32x + 3 for −2-2, and C) uses x2x^2 at the boundary x=1x = 1.
  1. Apply What is the domain of g(x)=1x2−9g(x) = \dfrac{1}{x^2 - 9}?
    • A) All real numbers except 33
    • B) All real numbers except 99
    • C) All real numbers except −3-3 and 33
    • D) x>3x > 3
Show answer

Answer: C) All real numbers except −3-3 and 33.

Marking points:

  • The denominator is 00 when x2=9x^2 = 9, so when x=3x = 3 or x=−3x = -3.
  • A) misses the negative root, B) solves x=9x = 9 instead of x2=9x^2 = 9, and D) treats the fraction as if it had a square root.
  1. Exam-style If f(x)=x2−1f(x) = x^2 - 1 and g(x)=x+3g(x) = x + 3, which expression is equal to f(g(x))f(g(x))?
    • A) x2+2x^2 + 2
    • B) x2+6x+8x^2 + 6x + 8
    • C) x2+8x^2 + 8
    • D) x3+3x2−x−3x^3 + 3x^2 - x - 3
Show answer

Answer: B) x2+6x+8x^2 + 6x + 8.

Marking points:

  • f(g(x))=(x+3)2−1=x2+6x+9−1=x2+6x+8f(g(x)) = (x + 3)^2 - 1 = x^2 + 6x + 9 - 1 = x^2 + 6x + 8.
  • A) is g(f(x))g(f(x)), C) squares (x+3)(x + 3) as x2+9x^2 + 9, and D) multiplies f(x)f(x) by g(x)g(x).
  1. Exam-style If f(x)=3x−24f(x) = \dfrac{3x - 2}{4}, which expression is f−1(x)f^{-1}(x)?
    • A) 4x+23\dfrac{4x + 2}{3}
    • B) 4x−23\dfrac{4x - 2}{3}
    • C) 3x+24\dfrac{3x + 2}{4}
    • D) 43x−2\dfrac{4}{3x - 2}
Show answer

Answer: A) 4x+23\dfrac{4x + 2}{3}.

Marking points:

  • Swap: x=3y−24x = \dfrac{3y - 2}{4}, so 4x=3y−24x = 3y - 2, 3y=4x+23y = 4x + 2 and y=4x+23y = \dfrac{4x + 2}{3}.
  • B) keeps the −2-2 instead of adding 22, C) changes only the sign, and D) is the reciprocal 1f(x)\dfrac{1}{f(x)}.
  1. Exam-style What is the range of h(x)=x−1+2h(x) = \sqrt{x - 1} + 2?
    • A) y≥0y \ge 0
    • B) y≥1y \ge 1
    • C) y≥2y \ge 2
    • D) All real numbers
Show answer

Answer: C) y≥2y \ge 2.

Marking points:

  • x−1≥0\sqrt{x - 1} \ge 0, with 00 reached at x=1x = 1, so h(x)≥0+2=2h(x) \ge 0 + 2 = 2.
  • A) is the range of the square root alone, B) gives where the domain starts, and D) forgets that a square root is never negative.
  1. Exam-style A print shop's cost, in dollars, to print nn shirts is C(n)=12n+30C(n) = 12n + 30. Its machine prints n(t)=8tn(t) = 8t shirts in tt hours. Which expression gives the cost of printing for tt hours?
    • A) 96t+3096t + 30
    • B) 96t+24096t + 240
    • C) 20t+3020t + 30
    • D) 12t+3812t + 38
Show answer

Answer: A) 96t+3096t + 30.

Marking points:

  • The cost needs the number of shirts, so C(n(t))=12(8t)+30=96t+30C(n(t)) = 12(8t) + 30 = 96t + 30.
  • B) is n(C(t))n(C(t)), the wrong order, C) adds the rates 1212 and 88, and D) adds 88 to C(t)C(t) instead of substituting.

Key points

Recall, then reveal

Say the main points from memory first, then check them.

Show key pointsHide key points
  • Substitute the whole input, in parentheses, for every xx; f(x+k)f(x + k) changes the input and f(x)+kf(x) + k the output.
  • For a domain, exclude zero denominators and negative values under a square root; for a range, look for the least or greatest output.
  • In f(g(x))f(g(x)) the inner function gg acts first, and swapping the order usually changes the result.
  • To invert, swap xx and yy and solve for yy; confirm that f(f−1(x))=xf(f^{-1}(x)) = x.
  • f−1(x)f^{-1}(x) is the inverse, not 1f(x)\dfrac{1}{f(x)}.
  • For a piecewise function, match the input to its condition first, including at a boundary.

Keep learning

Explore ACT Math tutoring →

View the full Math syllabus →

More in this unit

Functions

All Function Basics notes

Part of Novark's ACT Math notes