Domain, range and one-one functions
A function turns each input into exactly one output. You choose which inputs it may take: that set is the domain. The outputs it reaches are the range. One function runs through this unit: for x ≥ 2.
1Read the range from the graph
Find the range of f(x) = (x − 2)² + 1 for x ≥ 2.
- Start at the end of the domainf(2)=1
- Follow the allowed piece to the rightf(4)=5, f(5) = 10
- Answerrange f(x) ≥ 1, written [1, ∞)
2Same rule, new domain
Find the range of f for 2 < x ≤ 4.
- The end x = 2 is openf(2)=1 is left out; f(4) = 5
- Answer1 < f(x) ≤ 5Open below, closed above.
Find the range of the same rule for 1 ≤ x ≤ 4.
- The two endsf(1)=2 and f(4) = 5
- The turning point is lower than both endsx=2 is inside: f(2) = 1
- Answer1 ≤ f(x) ≤ 5Lowest value from the vertex.
3One-one or many-one?
- 1The full parabola is many-one: the line y = 5 meets it at x = 0 and x = 4.
- 2With x ≥ 2 only the blue piece is left, and every horizontal line meets it once. f is one-one.
- 3Only a one-one function can be run backwards, so this domain is what lets f have an inverse.
4Try it
1 Find the range of g(x) = 3x − 4 for 0 ≤ x ≤ 5.
2 Find the range of k(x) = (x − 1)² + 3 for −1 ≤ x ≤ 2.
3 k(x) = (x − 1)² + 3 is defined for x ≥ a. Find the smallest a that makes k one-one.
- 1g(0) = −4 and g(5) = 11, and g rises steadily: −4 ≤ g(x) ≤ 11
- 2the vertex x = 1 is inside, k(1) = 3; the ends give k(−1) = 7 and k(2) = 4: 3 ≤ k(x) ≤ 7
- 3a = 1: from the vertex on, k only rises (for a < 1, k(0) = k(2) = 4 shows two inputs sharing an output)
Composite functions
Two functions can work as a chain, the output of one feeding the next: a composite function. gf(x) means g(f(x)), so f acts first. Order matters, and every output of the first must be allowed into the second.
1The inner function acts first
Find gf(x) and its range.
- f acts first: put f(x) into ggf(x)=3((x − 2)² + 1) − 4
- Simplifygf(x)=3(x − 2)² − 1
- Answergf(x) = 3(x − 2)² − 1 for x ≥ 2, range gf(x) ≥ −1
Take g₂(x) = 3x − 4 for x ≥ 2. Find fg₂(x).
- g₂ acts first: put 3x − 4 into ffg₂(x)=(3x − 4 − 2)² + 1
- Simplifyfg₂(x)=(3x − 6)² + 1
- Answerfg₂(x) = (3x − 6)² + 1 for x ≥ 2, range fg₂(x) ≥ 1
2Solve an equation with composites
Find the values of k for which gf(x) = fg₂(x) + k has no real solution for x ≥ 2.
- Write out both sides; (3x − 6)² = 9(x − 2)²3(x − 2)² − 1=9(x − 2)² + 1 + k
- Make k the subjectk=−6(x − 2)² − 2
- A square is never negative(x − 2)² ≥ 0, so k ≤ −2 whenever there is a solution
- Answerno real solution when k > −2
3Will the chain run?
| Chain | Does it run? |
|---|---|
| gf | yes: f gives outputs ≥ 1, and g takes any number |
| fg | no: g(0) = −4, and f cannot take −4 |
| fg₂ | yes: g₂ gives outputs ≥ 2, exactly what f allows |
gₐ(x) = 3x − 4 for x ≥ a. Find the values of a for which fgₐ exists.
- gₐ rises, so its lowest output is at x = arange gₐ(x) ≥ 3a − 4
- That lowest output must be allowed in f3a − 4 ≥ 2
- Answera ≥ 2
4A fraction inside a fraction
h(x) = (2x + 5)/(x − 1) for x ≠ 1. Find hh(x) and the inputs it must exclude.
- Put h(x) in place of x
- Multiply top and bottom by x − 1
- Collect
- Exclude what broke either stepx ≠ 1 (the first h)h(x)=1 ⇒ 2x + 5 = x − 1 ⇒ x = −6
- Answerhh(x) = (9x + 5)/(x + 6), for x ≠ 1 and x ≠ −6
5Try it
1 f(x) = x² + 1 and g(x) = 2x − 3. Find fg(x) and gf(x).
2 p(x) = 2x + 1 for x ≥ a and q(x) = √(x − 5) for x ≥ 5. Find the least a for which qp exists.
3 r(x) = 1/(x − 2) for x ≠ 2. Find rr(x) and the two inputs it excludes.
- 1fg(x) = (2x − 3)² + 1 = 4x² − 12x + 10; gf(x) = 2(x² + 1) − 3 = 2x² − 1
- 2lowest output of p is 2a + 1, which must be ≥ 5: a = 2
- 3rr(x) = (x − 2)/(5 − 2x); exclude x = 2 and x = 5/2 (where r(x) = 2)
Inverse functions and their graphs
An inverse function runs a function backwards, taking each output back to its input. That needs a one-one function, where no two inputs share an output. Its graph is the reflection in the line y = x.
1Swap x and y, then solve for y
Find f⁻¹(x) for f(x) = (x − 2)² + 1, x ≥ 2.
- Write y = f(x), then swap x and yx=(y − 2)² + 1
- Get the square on its own(y − 2)²=x − 1
- Keep the root that fitsy − 2=√(x − 1)
- Answerf⁻¹(x) = 2 + √(x − 1)
2When the unknown is in a fraction
h(x) = (2x + 5)/(x − 1) for x ≠ 1. Find h⁻¹(x) and state its domain.
- Write y = h(x), then swap x and yx=(2y + 5)/(y − 1)
- Clear the denominatorx(y − 1)=2y + 5xy − x=2y + 5
- Collect the y terms and factorisexy − 2y=x + 5y(x − 2)=x + 5
- Divide by the brackety=(x + 5)/(x − 2)
- Answerh⁻¹(x) = (x + 5)/(x − 2), domain x ≠ 2
3Swap the domain and the range
| Domain | Range | |
|---|---|---|
| f | x ≥ 2 | f(x) ≥ 1 |
| f⁻¹ | x ≥ 1 | f⁻¹(x) ≥ 2 |
4Reflect the graph in y = x
| On f | On f⁻¹ |
|---|---|
| (2, 1), the end point | (1, 2), the end point |
| (4, 5) | (5, 4) |
| (5, 10) | (10, 5) |
- 1Draw both on the same scale, so the mirror line really is at 45°.
- 2As f gets steeper, f⁻¹ gets flatter.
5Try it
1 Find the inverse of p(x) = (x + 1)² − 4 for x ≥ −1, and state its domain.
2 Find the inverse of r(x) = (3x − 1)/(x + 2) for x ≠ −2.
3 The point (3, 8) lies on the graph of a one-one function. Which point must lie on the graph of its inverse?
- 1x = (y + 1)² − 4 gives y = −1 + √(x + 4); the range of p is p(x) ≥ −4, so the domain of p⁻¹ is x ≥ −4
- 2xy + 2x = 3y − 1, so y(x − 3) = −2x − 1: r⁻¹(x) = (2x + 1)/(3 − x), x ≠ 3
- 3(8, 3)
Translations and reflections
Change an equation and its whole graph moves: a number outside the function moves it up or down; one inside moves it sideways. Follow the corners of y = P(x): A(−2, −1), B(0, 3), C(3, 0) and D(5, 0), with D left out.
1Translate: outside moves up, inside moves the other way
Describe y = P(x + 1) − 2. Find the image of B and the new domain and range.
- Inside + 1every point moves 1 left
- Outside − 2every point moves 2 down
- Follow BB(0, 3) → B′(−1, 1)
- Answera translation 1 left and 2 down; domain [−3, 4), range [−3, 1]
| Point of P | Image |
|---|---|
| A(−2, −1) | A′(−3, −3), closed |
| C(3, 0) | C′(2, −2) |
| D(5, 0), open | D′(4, −2), open |
2From a movement to an equation
Translate y = P(x) by .
- Right means minus inside4 right: x − 4 inside
- Outside works as it looks3 up: + 3 outside
- Answery = P(x − 4) + 3New domain [2, 9), range [2, 6].
Translate y = P(x) by .
- Left means plus inside2 left: x + 2 inside
- Answery = P(x + 2) + 5B(0, 3) goes to (−2, 8).
3Reflect in an axis
Give the images of A and B under y = −P(x), and the new range.
- Flip each y(a, b) → (a, −b)
- C and D are on the mirrorA(−2, −1) → (−2, 1); B(0, 3) → (0, −3)
- Answerdomain [−2, 5), range [−3, 1]The x-values do not change.
Give the images of A and C under y = P(−x), and the new domain.
- Flip each x(a, b) → (−a, b)
- B is on the mirrorA(−2, −1) → (2, −1); C(3, 0) → (−3, 0)
- Answerdomain (−5, 2], range [−1, 3]The open end D goes to (−5, 0).
4Try it
1 Describe the transformation y = P(x − 3) + 1, and give the image of B(0, 3).
2 y = P(x) is translated 2 left and 4 down. Write the new equation.
3 The point (4, −3) lies on y = s(x). Give its image on y = −s(x) and on y = s(−x).
- 1a translation 3 right and 1 up; B goes to (3, 4)
- 2y = P(x + 2) − 4
- 3(4, 3) on y = −s(x); (−4, −3) on y = s(−x)
Stretches and combined transformations
Multiplying stretches a graph. A number multiplying outside stretches it up and down; a number multiplying inside squeezes it sideways. Several changes at once can be untangled too: follow two corners of P and the numbers give themselves away.
1Stretch: outside multiplies y, inside divides x
y = 2P(x): find the image of B and the new range.
- Heights double; the x-axis stays fixed(a, b) → (a, 2b)
- C and D are on the x-axis and stayB(0, 3) → (0, 6)
- Answerdomain [−2, 5), range [−2, 6]
y = P(2x): find the image of C and the new domain.
- Every x halves; the y-axis stays fixed(a, b) → (a/2, b)
- B is on the y-axis and staysC(3, 0) → (3/2, 0)
- Answerdomain [−1, 5/2), range [−1, 3]
2Recover a combination from two corners
The dashed graph is the image of y = P(x), with B(0, 3) → B′(1, −2) and C(3, 0) → C′(7, 4). Find its equation.
- Across: use the x-values0r + s=1, so s = 13r + 1=7, so r = 2
- Up: use the y-values0t + u=4, so u = 43t + 4=−2, so t = −2
- Undo the change acrossX=2x + 1 ⇒ x = (X − 1)/2
- Put x into Y = −2y + 4Y=−2P((X − 1)/2) + 4
- Answery = −2P((x − 1)/2) + 4
3Do the steps in the right order
4Find the new domain and range
Find the domain of y = −2P((x − 1)/2) + 4.
- P’s domain is [−2, 5)−2 ≤ (x − 1)/2 < 5
- Multiply by 2, then add 1−4 ≤ x − 1 < 10
- Answer−3 ≤ x < 11
Find its range.
- P’s range is [−1, 3]−1 ≤ P ≤ 3
- Multiply by −2: the signs reverse2 ≥ −2P ≥ −6
- Add 46 ≥ −2P + 4 ≥ −2
- Answer−2 ≤ y ≤ 6
5Try it
1 Describe y = 3P(x) and y = P(x/2).
2 y = P(x) is reflected in the x-axis, then translated 5 up. Write the new equation.
3 y = s(x) has domain 0 ≤ x ≤ 6 and range −2 ≤ y ≤ 4. Find the domain and range of y = 2s(x − 1) + 3.
- 1a vertical stretch with factor 3; a horizontal stretch with factor 2
- 2y = −P(x) + 5
- 3domain 1 ≤ x ≤ 7; range 2(−2) + 3 = −1 to 2(4) + 3 = 11, so −1 ≤ y ≤ 11
Rebuild a function from its graph
Sometimes you see only the result: a curve’s turning point and one more point on it. Each change leaves its mark on those points, so you can work backwards to the rule, then run the rule backwards with an inverse.
1Read the shift from the vertex
F has vertex (5, −2). What does that give?
- Match the x-values2 + b=5, so b = 3
- Match the y-valuesa + c=−2
- Answerb = 3 and a + c = −2
2Use a second point to find the stretch
F also passes through (7, 6). Find a and c, then F(x).
- Put in x = 76=a f(4) + c = 5a + c
- Subtract the vertex equation4a=8, so a = 2c=−2 − 2 = −4
- AnswerF(x) = 2f(x − 3) − 4 = 2(x − 5)² − 2, x ≥ 5
3Find its inverse
Find F⁻¹(x) and its domain.
- Swap x and yx=2(y − 5)² − 2
- Get the square on its own(y − 5)²=(x + 2)/2
- y ≥ 5: take the + rooty=5 + √((x + 2)/2)
- AnswerF⁻¹(x) = 5 + √((x + 2)/2), domain x ≥ −2
4Try it
1 G(x) = f(x − 1) + 3, with f as above. Find the vertex of G.
2 A curve y = a(x − 1)² + c, x ≥ 1, has vertex (1, −3) and passes through (3, 5). Find a and c.
3 Find the inverse of y = 2(x − 1)² − 3 for x ≥ 1, and its domain.
- 1(2 + 1, 1 + 3) = (3, 4)
- 2c = −3, and 4a − 3 = 5, so a = 2
- 31 + √((x + 3)/2), domain x ≥ −3