• Practice
  • About 15 min
  • 5 practice questions

Finding f(x) from clues: substitution and linear functions

Recover f from f(x + 1/x), f(ax + b) or f(f(x)) by substitution, find a linear f from a composition rule, and spot self-inverse fractional functions.

If something looks wrong, please tell us.

Many problems do not give f directly. They give a clue, such as the value of f at a changed input, or a rule about f(f(x)), and ask you to find f or to evaluate it somewhere. There are three standard tools: put the changed input equal to a new letter, assume a form for f and compare coefficients, and use symmetry of a special function. Practise each until it is automatic.

Tool 1: name the changed input

If f(g(x)) = h(x), set t = g(x), express x in terms of t when you can, and rewrite h as a function of t. When you cannot solve for x, rewrite h so that it is a function of g(x) directly, for example by using an algebraic identity.

Worked example 1: f(2x − 1) = 6x + 2

Let t = 2x − 1, so x = (t + 1)/2. Then f(t) = 6 × (t + 1)/2 + 2 = 3(t + 1) + 2 = 3t + 5. So f(x) = 3x + 5, and f(3) = 14. Check: f(2x − 1) = 3(2x − 1) + 5 = 6x + 2, which matches.

Worked example 2: f(x + 1/x) = x² + 1/x²

You cannot easily solve t = x + 1/x for x, but you do not need to. Since (x + 1/x)² = x² + 2 + 1/x², we have x² + 1/x² = (x + 1/x)² − 2. So f(t) = t² − 2 and f(3) = 7. The domain needs care: the values of x + 1/x are t ≥ 2 (for x > 0) or t ≤ −2 (for x < 0), so f is only determined for |t| ≥ 2. The formula t² − 2 is just the natural way to extend it.

Call the inner expression t. Solve for x if you can; otherwise rewrite the right side using an identity such as (x + 1/x)² = x² + 2 + 1/x² or (x − 1/x)² = x² − 2 + 1/x². Check the domain of t.

Tool 2: assume a form and compare

If f is known to be linear, write f(x) = ax + b. Then f(f(x)) = a(ax + b) + b = a²x + ab + b. Matching this with a given rule yields equations for a and b.

Worked example 3: f(f(x)) = 4x + 3

Matching coefficients: a² = 4 and ab + b = 3. If a = 2, then 3b = 3 and b = 1, giving f(x) = 2x + 1. If a = −2, then −b = 3 and b = −3, giving f(x) = −2x − 3. Both work: f(f(x)) = 2(2x + 1) + 1 = 4x + 3 and (−2)(−2x − 3) − 3 = 4x + 3. If the question adds that f is increasing, only the first is allowed, and then f(2) = 5.

Tool 3: self-inverse fractional functions

For f(x) = (x + 1)/(x − 1), with x ≠ 1: f(f(x)) = [(x + 1)/(x − 1) + 1]/[(x + 1)/(x − 1) − 1] = [2x/(x − 1)]/[2/(x − 1)] = x. So f is its own inverse, and applying f twice returns the input. Then f(f(5)) = 5, and f applied three times equals f once: f(f(f(2))) = f(2) = 3. In general, (ax + b)/(cx − a) is self-inverse (provided a² + bc ≠ 0) because the numbers on the main diagonal are opposites.

Worked example 4: f(x − 1/x)

If f(x − 1/x) = x² + 1/x², then (x − 1/x)² = x² − 2 + 1/x², so x² + 1/x² = (x − 1/x)² + 2. So f(t) = t² + 2, and f(0) = 2. This is consistent with putting x = 1: x − 1/x = 0, and x² + 1/x² = 2.

Key takeaways: set the inner expression equal to t. If you cannot solve for x, use an identity on the right side. For a linear f, compare coefficients, and remember that a² = 4 gives two solutions. Self-inverse functions undo themselves, so f(f(x)) = x. Always check the answer by substituting back.

Check your understanding

  1. 1. If f(x + 1/x) = x² + 1/x² for x ≠ 0, what is f(3)?

    1. 9
    2. 7
    3. 11
    4. 3
    Show answer

    Answer: B. Since x² + 1/x² = (x + 1/x)² − 2, we have f(t) = t² − 2. Then f(3) = 9 − 2 = 7.

  2. 2. A linear function f(x) = ax + b with a > 0 satisfies f(f(x)) = 4x + 3. What is f(2)?

    1. 7
    2. 4
    3. 9
    4. 5
    Show answer

    Answer: D. a² = 4 with a > 0 gives a = 2, and ab + b = 3b = 3 gives b = 1. So f(x) = 2x + 1 and f(2) = 5.

  3. 3. If f(x) = (x + 1)/(x − 1) for x ≠ 1, what is f(f(5))?

    1. 5
    2. 3/2
    3. 1
    4. 3
    Show answer

    Answer: A. f(f(x)) = x for this function, so f(f(5)) = 5. Directly: f(5) = 6/4 = 3/2 and f(3/2) = (5/2)/(1/2) = 5.

  4. 4. If f(2x − 1) = 6x + 2, what is f(3)?

    1. 20
    2. 8
    3. 14
    4. 12
    Show answer

    Answer: C. Put 2x − 1 = 3, so x = 2. Then f(3) = 6(2) + 2 = 14.

  5. 5. If f(x − 1/x) = x² + 1/x² for x ≠ 0, what is f(0)?

    1. −2
    2. 0
    3. 4
    4. 2
    Show answer

    Answer: D. x² + 1/x² = (x − 1/x)² + 2, so f(t) = t² + 2 and f(0) = 2. Check: x = 1 gives x − 1/x = 0 and x² + 1/x² = 2.

Privacy · Terms · Refunds · Delivery