• Practice
  • About 16 min
  • 5 practice questions

Parameter problems: one-one, onto, domain and self-inverse

Find the values of a parameter for which a function is one-one on an interval, has domain R or is onto a given set, and count onto functions between small sets.

If something looks wrong, please tell us.

In many exam questions a letter such as k sits inside the formula, and the question asks for which values of k a property holds. These problems look new each time but come down to three checks: where is the vertex of a quadratic, what does the discriminant say, and what must the equation f(f(x)) = x force. This lesson works through typical cases.

One-one on an interval

A quadratic ax² + bx + c is not one-one on all of R, because it turns round at its vertex x = −b/(2a). On an interval it is one-one if the vertex is not strictly inside the interval, so that the function is increasing throughout or decreasing throughout.

Worked example 1: a vertex condition

For which k is f(x) = x² − 2kx + 3 one-one on [2, ∞)? The vertex is at x = k. The function is increasing for x > k, so it is one-one on [2, ∞) exactly when the vertex is at or to the left of 2, that is k ≤ 2. If k = 3, for example, then f(2) = 4 − 12 + 3 = −5 and f(4) = 16 − 24 + 3 = −5, which shows two inputs with the same output, so it fails.

Domain equal to R

For f(x) = √(x² − kx + 9) to be defined for every real x, we need x² − kx + 9 ≥ 0 for all x. This holds when the discriminant is not positive: k² − 36 ≤ 0, so −6 ≤ k ≤ 6. At the ends k = ±6 the expression is a perfect square, (x ∓ 3)², and still non-negative. For 1/√(x² − kx + 9) the condition would become strictly positive, so the ends would be excluded.

Quadratic on an interval: compare the vertex x = −b/(2a) with the interval. Quadratic ≥ 0 for all x: discriminant ≤ 0 (and positive leading coefficient). Self-inverse linear: a² = 1 and b(a + 1) = 0.

Self-inverse linear functions

If f(x) = ax + b and f(f(x)) = x for all x, then a²x + ab + b = x, so a² = 1 and b(a + 1) = 0. Either a = 1 and then b = 0 (the identity function), or a = −1 and b is any real number, giving f(x) = b − x. For example, f(x) = 5 − x gives f(f(x)) = 5 − (5 − x) = x.

Counting onto functions

The number of onto functions from a set of 4 elements to a set of 3 is 3⁴ − 3 × 2⁴ + 3 × 1⁴ = 81 − 48 + 3 = 36. A check by listing: every onto function sends exactly two inputs to one output and one input to each of the others, so choose the output that receives two (3 ways), choose which two inputs (C(4, 2) = 6 ways), and arrange the other two inputs onto the remaining two outputs (2 ways): 3 × 6 × 2 = 36.

Worked example 2: range on an interval

Find the range of f(x) = x² − 2x on [−1, 3]. Complete the square: f(x) = (x − 1)² − 1, with vertex (1, −1) inside the interval. So the minimum is −1. At the ends f(−1) = 1 + 2 = 3 and f(3) = 9 − 6 = 3. So the largest value is 3 and the range is [−1, 3]. This is also the set B for which f: [−1, 3] → B is onto.

Key takeaways: for a quadratic on an interval, compare the vertex with the interval; for 'defined for all x' use the discriminant; a linear self-inverse function has a = −1 with any b; count onto functions by subtracting the failures; and on a closed interval always check the vertex and both end points.

Check your understanding

  1. 1. For which values of k is f(x) = x² − 2kx + 3 one-one on [2, ∞)?

    1. k ≤ 2
    2. k ≥ 2
    3. k ≤ −2
    4. k ≥ −2
    Show answer

    Answer: A. The vertex is at x = k. On [2, ∞) the function is one-one only if the vertex is at or to the left of 2, so k ≤ 2.

  2. 2. For which k is √(x² − kx + 9) defined for every real x?

    1. k ≥ 6
    2. −3 ≤ k ≤ 3
    3. −6 ≤ k ≤ 6
    4. k ≤ −6 or k ≥ 6
    Show answer

    Answer: C. We need x² − kx + 9 ≥ 0 for all x, so the discriminant k² − 36 must be at most 0. That gives −6 ≤ k ≤ 6.

  3. 3. How many onto functions are there from {1, 2, 3, 4} to {1, 2, 3}?

    1. 81
    2. 36
    3. 24
    4. 18
    Show answer

    Answer: B. 3⁴ − 3 × 2⁴ + 3 = 81 − 48 + 3 = 36.

  4. 4. f(x) = ax + b satisfies f(f(x)) = x for all x, and f is not the identity function. What must hold?

    1. a = 1 and b = 0, and nothing else
    2. a = −1 and b = 0, and nothing else
    3. a = 1 and b can be any real number
    4. a = −1 and b can be any real number
    Show answer

    Answer: D. f(f(x)) = a²x + ab + b = x requires a² = 1 and b(a + 1) = 0. If a = 1 then b = 0 and f is the identity. So a = −1, and b is unrestricted.

  5. 5. What is the range of f(x) = x² − 2x on the interval [−1, 3]?

    1. [−1, 0]
    2. [−1, 3]
    3. [0, 3]
    4. [−1, 1]
    Show answer

    Answer: B. f(x) = (x − 1)² − 1 has its minimum −1 at x = 1. At the ends, f(−1) = 3 and f(3) = 3. So the range is [−1, 3].

Privacy · Terms · Refunds · Delivery