Independent study guide

Functions: Transformations, Composition and Inverses

Connect inputs, tables and graphs; transform functions, check composition domains, reverse restricted rules and choose piecewise branches. Eight numbered worked examples, five diagrams and twenty explained practice questions.

Nablio · 20 questionsPublished

Start with inputs, then build the rule

A function assigns exactly one output to each allowed input. In f(x)f(x), xx is the input, ff names the function and f(x)f(x) is its output. The parentheses do not mean multiplication. An ordered pair (x,f(x))(x,f(x)) puts the input first.

You will need substitution, squares, square roots and simple equation solving. Review the algebra foundations if those steps are unfamiliar. This lesson extends introductory composition and inverse ideas by following actual points, checking permitted inputs and reversing a practical process. It contains eight numbered worked examples, five diagrams, eight foundation questions, two transfer questions, six transformation questions and four piecewise-function questions. All questions are original practice.

The domain is the set of allowed inputs. The range is the set of outputs actually reached. Here we work with real numbers. The notation [a,b][a,b], for numbers a≤ba\le b, includes both endpoints; [a,∞)[a,\infty) means every real number at least aa. A stated domain is part of the function, even when the formula could accept more numbers.

Want help understanding an input, a graph or an inverse? An algebra and precalculus tutor can explain the idea, work through an example with you and help you try a similar question. We can start with the basics. Sessions are currently offered in English.

1 Connect input, output, table, equation and graph

Worked example 1: one rule in four representations

Let f(x)=x2f(x)=x^2 with domain [−1,2][-1,2]. The process is “square the input.” For input −1-1, the output is (−1)2=1(-1)^2=1; for input 22, it is 22=42^2=4.

Selected inputs and outputs of the same function
Input xxOutput f(x)=x2f(x)=x^2Graph point
−11(−1, 1)
00(0, 0)
11(1, 1)
24(2, 4)

The table lists selected values, not the whole domain. For example, x=1/2x=1/2 is also allowed and gives f(1/2)=1/4f(1/2)=1/4. Plot the input horizontally and output vertically. Because every real input from −1 to 2 is allowed, the graph includes the curve between the table’s points.

Graph of y = x squared for −1 ≤ x ≤ 2, with filled endpoints (−1,1) and (2,4) and marked points (0,0) and (1,1).
The curve and table describe the same rule. Filled endpoints are included.

The smallest output is 0 at x=0x=0, and the largest is 4 at x=2x=2. Every value in between occurs, so the range is [0,4][0,4]. Reading only the two endpoints would miss the minimum inside the interval.

Inputs −1 and 1 share output 1. That is allowed for a function: one input must not have two outputs. It will matter later when we try to reverse the rule.

2 Move an output or change an input

Worked example 2: compare two translations

For this example, let f(x)=x2f(x)=x^2 on all real numbers. Define g(x)=f(x)+2=x2+2g(x)=f(x)+2=x^2+2 and h(x)=f(x+2)=(x+2)2h(x)=f(x+2)=(x+2)^2. In gg, square first, then add 2 to the output. In hh, add 2 to the input first, then square.

Follow the original point (1,1)(1,1). For gg, the input remains 1 and the output becomes 3: the point moves to (1,3)(1,3). For hh, ask which new input feeds the original input 1 into ff. Solve x+2=1x+2=1, giving x=−1x=-1. Thus the matching point is (−1,1)(-1,1).

Two panels: y = x squared shifted up 2 carries (1,1) to (1,3); shifted left 2 carries (1,1) to (−1,1). Dashed curves show the original.
Top: add to the output. Bottom: change the input supplied to the original rule. Each panel has its own axes.

Check a common trap at the same input: g(1)=3g(1)=3, but h(1)=9h(1)=9. These are different functions. The vertex of gg is (0,2)(0,2), with range [2,∞)[2,\infty); the vertex of hh is (−2,0)(-2,0), with range [0,∞)[0,\infty). Both have all real inputs.

Now state the pattern. Let aa be a real shift amount and (u,v)(u,v) any point on the original graph, so v=f(u)v=f(u). For f(x)+af(x)+a, that point becomes (u,v+a)(u,v+a). For f(x+a)f(x+a), solve x+a=ux+a=u: it becomes (u−a,v)(u-a,v). When a>0a\gt 0, the first shift is up and the second is left. A negative aa reverses those directions. The first keeps the original domain; the second shifts the domain along with the graph.

3 Compress or stretch horizontally

Worked example 3: squeeze or stretch the input positions

Use an asymmetric graph so that a change cannot hide behind symmetry. Let ff be the continuous broken line joining (−2,1)(-2,1), (0,3)(0,3) and (4,2)(4,2), with no graph outside these endpoints. Its domain is [−2,4][-2,4] and its range is [1,3][1,3]. Straight segments include every point between the three marked points.

First define g(x)=f(2x)g(x)=f(2x). To reach the original input 4, solve 2x=42x=4: the new input is 2. Thus (4,2)(4,2) becomes (2,2)(2,2). The output has not doubled. Every horizontal coordinate is divided by 2, so the graph is compressed horizontally by a factor of 1/21/2, toward the yy-axis. The three marked points become (−1,1)(-1,1), (0,3)(0,3) and (2,2)(2,2).

The permitted input to ff is still between −2 and 4, so −2≤2x≤4-2\le2x\le4, giving the new domain [−1,2][-1,2]. All original outputs still occur, so the range stays [1,3][1,3].

Now define s(x)=f(x/2)s(x)=f(x/2). To reach the original input 4, solve x/2=4x/2=4: now x=8x=8. The same three points become (−4,1)(-4,1), (0,3)(0,3) and (8,2)(8,2). This is a horizontal stretch by a factor of 2. From −2≤x/2≤4-2\le x/2\le4, the domain is [−4,8][-4,8]; the range is still [1,3][1,3].

Two panels of an asymmetric broken-line graph. Dashed original points are (−2,1), (0,3), (4,2). Blue compressed points are (−1,1), (0,3), (2,2); blue stretched points are (−4,1), (0,3), (8,2).
Both panels use the same axis scales. Track the right endpoint: (4,2) → (2,2) for f(2x), but (4,2) → (8,2) for f(x/2). Filled endpoints belong to each graph.

The reliable rule: for f(bx)f(bx) with b>0b\gt0, solve bx=ubx=u. A point (u,v)(u,v) becomes (u/b,v)(u/b,v). The horizontal scale factor is 1/b1/b: b>1b\gt1 compresses, while 0<b<10\lt b\lt1 stretches. It is the reciprocal of the number multiplying the input.

Compare an outside multiplier: 2f(x)2f(x) sends (u,v)(u,v) to (u,2v)(u,2v), stretching vertically by 2. It keeps this example’s domain [−2,4][-2,4] and changes its range to [2,6][2,6]. At the marked point (4,2)(4,2), f(2x)f(2x) gives the corresponding point (2,2)(2,2), whereas 2f(x)2f(x) gives (4,4)(4,4). Inside and outside multiplication affect different coordinates.

4 Reflect across the coordinate axes

Worked example 4: which coordinate changes sign?

Keep the same broken-line function from example 3. For r(x)=−f(x)r(x)=-f(x), evaluate ff first, then negate the output. The point (4,2)(4,2) becomes (4,−2)(4,-2). Every point (u,v)(u,v) becomes (u,−v)(u,-v): this is a reflection across the xx-axis. The domain stays [−2,4][-2,4], while the range changes from [1,3][1,3] to [−3,−1][-3,-1]. Write interval endpoints in increasing order.

For t(x)=f(−x)t(x)=f(-x), negate the input before applying ff. To reach original input 4, solve −x=4-x=4, so x=−4x=-4. The point (4,2)(4,2) becomes (−4,2)(-4,2). In general, (u,v)(u,v) becomes (−u,v)(-u,v): a reflection across the yy-axis. The range remains [1,3][1,3]. The input restriction is −2≤−x≤4-2\le-x\le4; multiplying by −1 reverses both inequality signs, giving 2≥x≥−42\ge x\ge-4, or domain [−4,2][-4,2].

Two panels with equal coordinate scales: the asymmetric original broken line is dashed. Top blue graph reflects it across the x-axis, carrying (4,2) to (4,−2). Bottom blue graph reflects it across the y-axis, carrying (4,2) to (−4,2).
The highlighted axis is the mirror. An outside minus changes heights; an inside minus changes horizontal positions. The original graph is asymmetric, so the two reflected graphs are visibly different.

A point on the mirror axis stays fixed. Reflecting across an axis does not swap the coordinates; the inverse-function reflection across y=xy=x, later in this lesson, does swap them. Also, for an even function such as f(x)=x2f(x)=x^2, the yy-axis reflection looks unchanged because the original graph is already symmetric. That special case does not mean f(−x)=−f(x)f(-x)=-f(x).

With both negatives, −f(−x)-f(-x), both coordinates change sign: (u,v)↦(−u,−v)(u,v)\mapsto(-u,-v). For a general nonzero multiplier, af(x)af(x) scales vertical distances by ∣a∣|a| and also reflects across the xx-axis if a<0a\lt0; f(bx)f(bx) scales horizontal distances by 1/∣b∣1/|b| and also reflects across the yy-axis if b<0b\lt0.

5 Combine transformations with a point map

You can stop at the simple transformations first and return to this section when you want to combine them. The same input equation does the work; you do not need a new direction rule for every formula.

Worked example 5: combine transformations one coordinate at a time

Using the same ff, let q(x)=−2f(−2(x−1))+1q(x)=-2f(-2(x-1))+1. Start with the original point (4,2)(4,2). For its horizontal position, require −2(x−1)=4-2(x-1)=4. Divide by −2, then add 1: x=−1x=-1. For its height, multiply the old output by −2, then add 1: −2(2)+1=−3-2(2)+1=-3. The corresponding point is (−1,−3)(-1,-3). Check directly: q(−1)=−2f(4)+1=−3q(-1)=-2f(4)+1=-3.

The horizontal coordinate is reflected and halved, then shifted right 1; the vertical coordinate is reflected and doubled, then shifted up 1. Apply those shifts after the coordinate scaling. All three marked points map as follows:

Track coordinates separately for q
Original pointNew input: 1−u/21-u/2New output: 1−2v1-2vNew point
(−2, 1)2−1(2, −1)
(0, 3)1−5(1, −5)
(4, 2)−1−3(−1, −3)

For the domain, keep −2≤−2(x−1)≤4-2\le-2(x-1)\le4. Dividing by −2 reverses the inequalities: 1≥x−1≥−21\ge x-1\ge-2, so 2≥x≥−12\ge x\ge-1. In increasing order, the domain is [−1,2][-1,2]. The original range [1,3][1,3] becomes [−5,−1][-5,-1]: the old maximum 3 gives the new minimum −5. Join the transformed points in increasing input order to sketch the new broken line.

A summary to return to: the general point map

For F(x)=af(b(x−h))+kF(x)=af(b(x-h))+k, with a≠0a\ne0 and b≠0b\ne0, the letters a,ba,b are multipliers and h,kh,k are shift amounts. If (u,v)(u,v) is on the original graph, solve b(x−h)=ub(x-h)=u and transform the output:

(u,v)⟼(h+ub,  av+k).(u,v)\longmapsto\left(h+\frac{u}{b},\;av+k\right).

For an original domain [L,U][L,U], where L≤UL\le U are its lower and upper endpoints, the new domain is [h+L/b,h+U/b][h+L/b,h+U/b] when b>0b\gt0, but [h+U/b,h+L/b][h+U/b,h+L/b] when b<0b\lt0. A negative multiplier reverses endpoint order; an excluded endpoint stays excluded at its new location. For range [m,M][m,M], where m≤Mm\le M are its minimum and maximum outputs, the new range is [am+k,aM+k][am+k,aM+k] when a>0a\gt0, and [aM+k,am+k][aM+k,am+k] when a<0a\lt0. For a non-interval domain, apply the point map to its permitted inputs rather than filling any gaps.

Keep the inside expression in the stated factored form. For example, f(2x−6)=f(2(x−3))f(2x-6)=f(2(x-3)) has h=3h=3, not 6, and maps uu to 3+u/23+u/2. When in doubt, solve the inside expression equal to the original input. This also checks the order of the transformations.

6 Compose rules and keep both domain checks

Worked example 6: a square root followed by a reciprocal

Let g(x)=x−1g(x)=\sqrt{x-1}, whose domain is [1,∞)[1,\infty), and let f(t)=1/(t−2)f(t)=1/(t-2), whose input tt may be any real number except 2. The letter tt is simply the input name for ff. The composition (f∘g)(x)(f\circ g)(x) means f(g(x))f(g(x)): apply gg first, then feed its output into ff.

(f∘g)(x)=1x−1−2.(f\circ g)(x)=\frac{1}{\sqrt{x-1}-2}.

First, the square root requires x−1≥0x-1\ge0, so x≥1x\ge1. Second, its output must not be 2, because that makes the outer denominator zero. Solve x−1=2\sqrt{x-1}=2: this gives x=5x=5. The composition therefore has domain [1,5)∪(5,∞)[1,5)\cup(5,\infty). The symbol ∪\cup joins the two intervals, and round endpoints exclude 5.

At x=10x=10, the chain is 10↦3↦110\mapsto3\mapsto1, so (f∘g)(10)=1(f\circ g)(10)=1. At x=5x=5, the first step works but the second fails. At x=0x=0, the first step already fails over the real numbers.

Reversing the order changes the process: (g∘f)(x)=1/(x−2)−1(g\circ f)(x)=\sqrt{1/(x-2)-1}. To find its domain, keep x≠2x\ne2 and require (3−x)/(x−2)≥0(3-x)/(x-2)\ge0. For x<2x\lt 2 the fraction is negative; for 2<x≤32\lt x\le3 it is nonnegative; for x>3x\gt 3 it is negative. Thus its domain is (2,3](2,3], very different from the first composition.

In general, an input is allowed in f∘gf\circ g only when it is in the domain of gg and its output g(x)g(x) is in the domain of ff. Simplifying an expression never restores an input excluded by the original process.

7 Restrict a quadratic before reversing it

Worked example 7: swap the input and output roles

Consider p(x)=x2+1p(x)=x^2+1. On all real inputs, both −2 and 2 produce 5. Reversing this would give two possible outputs for input 5, so there is no inverse function on that whole domain. A function is one-to-one when different inputs always produce different outputs.

Now restrict pp to [0,2][0,2]. It increases from 1 to 5 and is one-to-one. Its range is [1,5][1,5]. To reverse it, call the original output yy and solve for its nonnegative input xx:

y=x2+1⟹x2=y−1⟹x=y−1.y=x^2+1\quad\Longrightarrow\quad x^2=y-1\quad\Longrightarrow\quad x=\sqrt{y-1}.

We choose the nonnegative square root because the original domain requires x≥0x\ge0. Rename the inverse’s input xx to use standard notation:

p−1(x)=x−1,1≤x≤5.p^{-1}(x)=\sqrt{x-1},\qquad 1\le x\le5.

The inverse has domain [1,5][1,5] and range [0,2][0,2]: original outputs become allowed inputs, and original inputs become outputs. The original point (2,5)(2,5) becomes (5,2)(5,2). This coordinate swap reflects the graph across y=xy=x.

Graph of p(x) = x squared plus 1 on [0,2] and its inverse on [1,5], reflected across y = x. Filled endpoints are (0,1), (2,5), (1,0), (5,2).
The dashed diagonal is y = x. The two coloured curves have equal horizontal and vertical scales.

Check both directions on their own domains:

p−1(p(x))=x2=x(0≤x≤2),p^{-1}(p(x))=\sqrt{x^2}=x\quad(0\le x\le2),p(p−1(x))=(x−1)2+1=x(1≤x≤5).p(p^{-1}(x))=(\sqrt{x-1})^2+1=x\quad(1\le x\le5).

For an unrestricted real number, x2=∣x∣\sqrt{x^2}=|x|, not always xx. The restriction makes the first check work. A restriction to [−2,0][-2,0] instead would produce the different inverse −x−1-\sqrt{x-1}, also with domain [1,5][1,5].

An inverse is not a reciprocal

The notation p−1p^{-1} names the rule that reverses pp. The reciprocal 1/p(x)1/p(x) divides 1 by its output. For our restricted pp, p−1(2)=1p^{-1}(2)=1, whereas 1/p(2)=1/51/p(2)=1/5. The inverse and reciprocal even have different domains here: [1,5][1,5] and [0,2][0,2], respectively. Always read the notation in context.

8 Reverse a practical two-step process

Worked example 8: recover a rental time from its cost

In a simplified rental model, a machine costs a fixed $12 plus $8 per hour, with time billed continuously and no other charges. Let tt be the rental time in hours, where 0≤t≤60\le t\le6, and let C(t)C(t) be the cost in dollars. Then C(t)=8t+12C(t)=8t+12, with range [12,60][12,60].

The forward process multiplies time by 8 and then adds 12. To reverse it, subtract 12 from the cost first, then divide by 8. If cc is the cost in dollars,

C−1(c)=c−128,12≤c≤60.C^{-1}(c)=\frac{c-12}{8},\qquad 12\le c\le60.

A $44 bill corresponds to (44−12)/8=4(44-12)/8=4 hours. Check in the original model: 8(4)+12=448(4)+12=44. A $68 bill would give 7 algebraically, but 7 hours lies outside this model’s domain. Its inverse cannot be used to justify that rental.

The inverse output has units of hours, not dollars. Dividing first and then subtracting 12 would undo the operations in the wrong order. Real billing could involve rounding or additional fees, so this inverse applies only to the stated model.

Practise in eight steps

Use an optional hint when useful, or open the explained solution to study the method. For each answer, check the permitted inputs as well as the arithmetic.

  1. For r(x)=3x−2r(x)=3x-2 on all real numbers, find r(−2)r(-2), r(0)r(0) and r(3)r(3), and write the three graph points.

    Optional hint 1

    Substitute each input in parentheses. A point has the form (x,r(x))(x,r(x)).

    Explained solution 1

    r(−2)=3(−2)−2=−8r(-2)=3(-2)-2=-8, r(0)=−2r(0)=-2, and r(3)=7r(3)=7. The points are (−2,−8)(-2,-8), (0,−2)(0,-2), and (3,7)(3,7). The first coordinate remains the input.

  2. Let s(x)=x2s(x)=x^2 with domain [−3,1][-3,1]. Find its range. Is the domain just the four integers −3, −2, −1 and 0?

    Optional hint 2

    Check whether 0 is an allowed input. Compare its output with the endpoint outputs.

    Explained solution 2

    The minimum is s(0)=0s(0)=0; the maximum is s(−3)=9s(-3)=9, while s(1)=1s(1)=1. Every value between 0 and 9 is reached, so the range is [0,9][0,9]. The domain contains every real number between −3 and 1, including 1 and fractions such as 1/21/2; it is not a finite list.

  3. A graph of ff contains (4,−2)(4,-2). Find the corresponding point on y=f(x)+3y=f(x)+3, then on y=f(x+3)y=f(x+3).

    Optional hint 3

    For the horizontal translation, which new input satisfies x+3=4x+3=4?

    Explained solution 3

    The vertical translation changes the output to −2+3=1-2+3=1, giving (4,1)(4,1). The horizontal translation requires x=1x=1, giving (1,−2)(1,-2). Adding inside moves this point left, not right.

  4. Let f(x)=xf(x)=\sqrt{x}, with domain [0,∞)[0,\infty). Find the starting point, domain and range of h(x)=f(x−4)−1h(x)=f(x-4)-1.

    Optional hint 4

    Require x−4≥0x-4\ge0. The square-root output is nonnegative before subtracting 1.

    Explained solution 4

    The graph moves right 4 and down 1. Its starting point is (4,−1)(4,-1), its domain is [4,∞)[4,\infty), and its range is [−1,∞)[-1,\infty). Check: h(4)=0−1=−1h(4)=\sqrt0-1=-1.

  5. Let f(x)=2x+1f(x)=2x+1 and g(x)=x2g(x)=x^2, both on all real numbers. Find (f∘g)(−2)(f\circ g)(-2) and (g∘f)(−2)(g\circ f)(-2).

    Optional hint 5

    Work from the inside outward; write the intermediate output.

    Explained solution 5

    g(−2)=4g(-2)=4, so f(g(−2))=f(4)=9f(g(-2))=f(4)=9. In reverse order, f(−2)=−3f(-2)=-3, so g(f(−2))=g(−3)=9g(f(-2))=g(-3)=9. Equality at this one input does not make the compositions identical: at 1 their values are 3 and 9. The general rules are 2x2+12x^2+1 and (2x+1)2(2x+1)^2.

  6. Let f(t)=1/tf(t)=1/t, t≠0t\ne0, and g(x)=x+2g(x)=\sqrt{x+2}, x≥−2x\ge-2. Find (f∘g)(x)(f\circ g)(x) and its domain. Is x=−2x=-2 allowed?

    Optional hint 6

    The inner square root must exist, and its output must be nonzero.

    Explained solution 6

    (f∘g)(x)=1/x+2(f\circ g)(x)=1/\sqrt{x+2}. The square root requires x≥−2x\ge-2, but at −2 its output is 0, which ff cannot accept. Therefore the domain is (−2,∞)(-2,\infty). The endpoint is excluded even though g(−2)g(-2) exists.

  7. Let q(x)=(x−3)2q(x)=(x-3)^2 with domain [3,∞)[3,\infty). Find its inverse, with domain and range, and check q−1(16)q^{-1}(16).

    Optional hint 7

    In y=(x−3)2y=(x-3)^2, the restriction guarantees x−3≥0x-3\ge0.

    Explained solution 7

    The range of qq is [0,∞)[0,\infty). Taking the nonnegative root gives x−3=yx-3=\sqrt y, hence q−1(x)=3+xq^{-1}(x)=3+\sqrt x, with domain [0,∞)[0,\infty) and range [3,∞)[3,\infty). Then q−1(16)=7q^{-1}(16)=7, and q(7)=16q(7)=16 verifies the reversal.

  8. Let m(x)=4x−3m(x)=4x-3 on all real numbers. Find m−1(5)m^{-1}(5) and 1/m(5)1/m(5), and state the domains of the inverse and reciprocal functions.

    Optional hint 8

    To reverse mm, solve y=4x−3y=4x-3 for xx. For the reciprocal, first evaluate the original function.

    Explained solution 8

    m−1(x)=(x+3)/4m^{-1}(x)=(x+3)/4, so m−1(5)=2m^{-1}(5)=2. But m(5)=17m(5)=17, so 1/m(5)=1/171/m(5)=1/17. The inverse accepts all real numbers. The reciprocal 1/(4x−3)1/(4x-3) excludes x=3/4x=3/4, where its denominator is zero.

Transfer and retry

  1. A graph of a function ff has domain [−1,2][-1,2], range [0,4][0,4], and contains (1,3)(1,3). Define k(x)=f(x+2)−5k(x)=f(x+2)-5. Find the new domain, range and corresponding point. Do you need a formula for ff?

    Optional hint 9

    Keep −1≤x+2≤2-1\le x+2\le2; separately subtract 5 from every output.

    Explained solution 9

    Subtract 2 in the input inequality: the domain becomes [−3,0][-3,0]. The range becomes [−5,−1][-5,-1]. The point moves left 2 and down 5, from (1,3)(1,3) to (−1,−2)(-1,-2). No formula is needed: the given domain, range and point are sufficient.

  2. A simplified printing service charges P(n)=0.20n+4P(n)=0.20n+4 dollars for an integer number nn of pages, 0≤n≤1000\le n\le100. Find the inverse rule on the actual cost range. What page count corresponds to $9.40? Is $9.50 in the range?

    Optional hint 10

    Reverse the fixed fee and the per-page rate, then check that the result is an allowed integer.

    Explained solution 10

    For a cost cc in dollars, P−1(c)=(c−4)/0.20P^{-1}(c)=(c-4)/0.20. Its domain is the discrete set {4,4.20,4.40,…,24}\{4,4.20,4.40,\ldots,24\}, not every real cost between 4 and 24; its range is {0,1,…,100}\{0,1,\ldots,100\}. A $9.40 cost gives (9.40−4)/0.20=27(9.40-4)/0.20=27 pages. A $9.50 cost gives 27.5, not an integer, so it is not in this model’s range. A formula alone does not remove the context restriction.

Practise transformations in six steps

These six questions move from one changed coordinate to combined transformations and endpoint checks. Hints and explained solutions are available whenever they help.

  1. The graph of ff contains (6,−2)(6,-2). Find the corresponding point on y=f(3x)y=f(3x). Is this a horizontal stretch or compression?

    Optional hint 11

    Solve 3x=63x=6; leave the output unchanged.

    Explained solution 11

    The new input is x=2x=2, so the point is (2,−2)(2,-2). Horizontal coordinates are divided by 3: a compression by factor 1/31/3, not a stretch by 3.

  2. A function has domain [−3,6][-3,6] and range [−2,5][-2,5]. Find the domain and range of s(x)=f(x/3)s(x)=f(x/3), and map the point (6,5)(6,5).

    Optional hint 12

    Require −3≤x/3≤6-3\le x/3\le6. No operation is applied to the output.

    Explained solution 12

    Multiplying the inequality by 3 gives domain [−9,18][-9,18]. The range stays [−2,5][-2,5]; (6,5)(6,5) becomes (18,5)(18,5). The horizontal scale factor is 3.

  3. A function has domain [1,5][1,5], range [−2,4][-2,4], and point (3,−2)(3,-2). For each of −f(x)-f(x) and f(−x)f(-x), give the reflected point, mirror axis, domain and range.

    Optional hint 13

    An outside minus changes the second coordinate; an inside minus changes the first.

    Explained solution 13

    For −f(x)-f(x): (3,2)(3,2), reflection across the xx-axis, domain [1,5][1,5], range [−4,2][-4,2]. For f(−x)f(-x): (−3,−2)(-3,-2), reflection across the yy-axis, domain [−5,−1][-5,-1], range [−2,4][-2,4]. Reverse the order of negated interval endpoints.

  4. A learner says “f(x/3)f(x/3) and 3f(x)3f(x) both stretch the graph by 3, so they are the same.” Use an original point (3,2)(3,2) to explain the mistake. Can special functions ever make the two formulas equal?

    Optional hint 14

    Track the horizontal and vertical coordinates separately. For the final question, consider the zero function.

    Explained solution 14

    The first transformation maps (3,2)(3,2) to (9,2)(9,2); the second maps it to (3,6)(3,6). They perform different transformations: horizontal versus vertical stretching. They need not produce different functions in every special case: for a different function, f(x)=0f(x)=0 on all real numbers, both give the zero function. A special coincidence is not a general transformation rule.

  5. Let ff have domain [−6,3)[-6,3) and contain (−3,2)(-3,2). Find the domain of g(x)=f(−3(x+1))g(x)=f(-3(x+1)) and the corresponding point. Explain which endpoint is excluded.

    Optional hint 15

    Keep −6≤−3(x+1)<3-6\le-3(x+1)\lt3. Dividing by a negative reverses the inequality signs.

    Explained solution 15

    Division by −3 gives 2≥x+1>−12\ge x+1\gt-1, hence 1≥x>−21\ge x\gt-2. The domain is (−2,1](-2,1]. The excluded original endpoint 3 maps to the excluded new endpoint −2. Solving −3(x+1)=−3-3(x+1)=-3 gives x=0x=0, so the point becomes (0,2)(0,2). The horizontal scale factor is 1/31/3, with a reflection, then a shift left 1.

  6. A function has domain [−2,4][-2,4], range [−1,3][-1,3], and point (2,−1)(2,-1). Let G(x)=−f(2(x−3))+4G(x)=-f(2(x-3))+4. Find its domain, range and corresponding point. Check the point using the original input.

    Optional hint 16

    Solve 2(x−3)=u2(x-3)=u, then change vv into −v+4-v+4.

    Explained solution 16

    The point map is (u,v)↦(3+u/2,4−v)(u,v)\mapsto(3+u/2,4-v). The domain is [2,5][2,5]; the range is [1,5][1,5], with the old minimum −1 becoming the new maximum 5. The point is (4,5)(4,5). Check: 2(4−3)=22(4-3)=2 and G(4)=−f(2)+4=−(−1)+4=5G(4)=-f(2)+4=-(-1)+4=5. This combines horizontal compression, a right shift, reflection across the xx-axis and an upward shift.

When the input chooses the rule

A piecewise-defined function uses different formulas on different parts of its domain. It still assigns one output to each allowed input. Read the input condition first, then use the matching formula. Do not add the formulas together.

This optional bridge uses substitution and inequalities. Read the worked steps or open an answer whenever it helps; you do not need to attempt a question first.

Choose the branch before substituting

Let xx be a real input and p(x)p(x) its output, with no physical units. Define

p(x)={x+3,−2≤x<1,6−x,1≤x≤4.p(x)=\begin{cases}x+3,&-2\leq x<1,\\6-x,&1\leq x\leq4.\end{cases}

Each line is a branch. The condition on the right tells you when to use the formula on the left. The first includes −2 but excludes 1; the second includes 1 and 4. Together they give the domain [−2,4][-2,4].

  • For p(0)p(0), input 0 meets −2≤0<1-2\leq0<1, so p(0)=0+3=3p(0)=0+3=3.
  • For p(1)p(1), the condition x<1x<1 is false. Use the second branch: p(1)=6−1=5p(1)=6-1=5. Computing 1+3=41+3=4 uses a formula outside its assigned interval.
  • For p(4)p(4), the second branch gives p(4)=6−4=2p(4)=6-4=2.
  • There is no p(5)p(5) in this definition. Neither interval allows input 5, even though both formulas can be calculated there.

To sketch the function, label the horizontal axis xx and vertical axis p(x)p(x). Draw the part of y=x+3y=x+3 from a filled point at (−2,1)(-2,1) to an open point at (1,4)(1,4). Draw the part of y=6−xy=6-x from a filled point at (1,5)(1,5) to a filled point at (4,2)(4,2). An open point is excluded; a filled point is included. Do not join (1,4)(1,4) to (1,5)(1,5) with a vertical segment: that would assign several outputs to input 1.

Solve within each branch, then check its interval

Finding p(1)p(1) starts with an input. Solving p(x)=4p(x)=4 starts with an output and asks which inputs produce it.

  • First branch: x+3=4x+3=4 gives x=1x=1, but 1 does not satisfy −2≤x<1-2\leq x<1. Reject this candidate.
  • Second branch: 6−x=46-x=4 gives x=2x=2, which satisfies 1≤x≤41\leq x\leq4. Keep it.

The only solution is x=2x=2. Check: p(2)=6−2=4p(2)=6-2=4. On the graph, the horizontal line at output 4 meets the function at (2,4)(2,4); the open point (1,4)(1,4) does not count.

Practise one decision at a time

  1. Using the same pp, find p(−2)p(-2), p(1/2)p(1/2) and p(3)p(3).

    Show the branch choices and answers

    The first branch applies at −2-2 and 1/21/2: p(−2)=1p(-2)=1 and p(1/2)=7/2p(1/2)=7/2. The second applies at 3: p(3)=3p(3)=3. Compare the input with the boundary before calculating.

  2. Solve p(x)=3p(x)=3. Could two different inputs have this output?

    Show the solution

    First branch: x+3=3x+3=3 gives x=0x=0, inside its interval. Second branch: 6−x=36-x=3 gives x=3x=3, also inside its interval. Both work: p(0)=p(3)=3p(0)=p(3)=3. Different inputs may share an output; each individual input still has only one output.

  3. Change the first branch condition to −2≤x≤1-2\leq x\leq1, leaving the second unchanged. Does this still define a function?

    Show the boundary check

    No. At input 1, both branches now apply but give different outputs: 1+3=41+3=4 and 6−1=56-1=5. Restore an excluded endpoint in one branch to choose one output. Overlapping conditions are permissible if every overlapping input gives the same output, but they conflict here.

  4. A tank starts with 6 L of water. Water enters at 2 L/min for the first 3 minutes, then at 1 L/min for the next 4 minutes. There is no outflow and the tank does not overflow. Let tt be elapsed time in minutes and V(t)V(t) volume in litres, for 0≤t≤70\leq t\leq7. Explain the second branch below, then find V(3)V(3), V(5)V(5) and the time when the tank contains 14 L.

    V(t)={6+2t,0≤t≤3,12+(t−3),3<t≤7.V(t)=\begin{cases}6+2t,&0\leq t\leq3,\\12+(t-3),&3<t\leq7.\end{cases}
    Show a hint

    At the rate change, the tank already contains 6+2(3)=126+2(3)=12 L. How many minutes have passed since that change?

    Show the explanation and answers

    After minute 3, the elapsed time at the new rate is t−3t-3 minutes, so add 1(t−3)1(t-3) litres to the existing 12 L. Using 12+t12+t would count three extra minutes at the new rate. The boundary belongs to the first branch: V(3)=12V(3)=12 L. At minute 5, V(5)=12+(5−3)=14V(5)=12+(5-3)=14 L.

    For 14 L, the first formula gives 6+2t=146+2t=14, or t=4t=4, outside its interval. The second gives 12+(t−3)=1412+(t-3)=14, or t=5t=5, inside its interval. The tank reaches 14 L after 5 minutes. At the change, both formulas give 12, so the graph meets there without a jump even though the rate changes.

Keep this habit: choose by the input, calculate the output, and check the branch condition again when solving for an input. Later, this distinction helps separate a function’s value at a boundary from its nearby behaviour.

Choose your next step

If the graph is the hard part, revisit points, slope and straight-line graphs. For more on turning points and domain-aware quadratic graphs, continue with quadratic graphs. Then connect function transformations to periodic patterns in the unit circle and trigonometric graphs.

When checking your work, ask: what goes in, what comes out, and which values are allowed at each step? If a step still feels unclear, algebra and precalculus tutoring can help you work through a graph or inverse problem at your pace. Sessions are currently offered in English.

Useful for

Focused practice for functions and trigonometry in Concordia MATH 201 and Dawson 201-015-RE, and a foundation review for Sheridan MATH15382D. These lessons cover selected topics, not a complete course; use your current section’s outline for assessment scope.

Work on the step you’re missing.

Tell us the subject and your preferred time. Nablio confirms the details by text or email.

Request a lesson