Functions and their properties

The definition of a function and ways to give one, domain and range, zeros and sign intervals, increasing and decreasing, even and odd functions, periodicity, graph transformations (shifts, stretches, reflections, |f(x)|), the graphs of y = k/x, √x, |x| and x³, and the inverse function.

  • Grades 9 and 10
  • 25 min
  • 12 questions
  • Lesson 46 of 92

In this lesson you will learn

  • Find the domain and range of a function from its formula
  • Investigate zeros, sign intervals, increasing and decreasing, evenness, oddness and periodicity
  • Build new graphs from the basic ones by shifts, stretches, reflections and the absolute value
  • Find an inverse function and draw its graph by symmetry in the line y = x

The weather app on Elvin’s phone shows a temperature graph for a winter day: each moment of the day has one temperature. One look at the graph answers several questions: when is it warmest and coldest, when is it above zero, when does it rise and when does it fall? These questions can be asked about any function, and the answers are called the properties of the function. In this lesson we learn to find them from the formula, without a graph, and to get new graphs from old ones without calculation.

In “Linear functions and their graphs” we met the idea of a function, in “The quadratic function and its graph” we shifted the parabola, and in “Square roots, nth roots and rational exponents” we saw the graph of y = √x. Now we extend these ideas to any function. This language will be needed for exponential, logarithmic and trigonometric functions and later for the derivative.

Function, domain and range

FunctionDefinition

A rule that assigns to each value of the variable x exactly one value of the variable y: y = f(x). All values that x may take form the domain D(f); all values that y takes form the range E(f).

A function can be given in four ways: by a formula (y = x² − 1), by a table (temperature by the hour), by a graph and in words (“to each natural number, the number of its divisors”). You can also tell whether a curve is the graph of a function: every vertical line must meet it at most once. The circle x² + y² = 25 is not the graph of a function: for x = 3 we get both y = 4 and y = −4.

The domain of a function given by a formula consists of all x for which the formula makes sense: a denominator must not be zero, and the expression under an even root must not be negative (we solved such conditions in detail in “Quadratic inequalities and the interval method”). The range is harder to find. The most reliable method: a number a belongs to E(f) exactly when the equation f(x) = a has at least one solution.

a ∈ E(f) ⇔ the equation f(x) = a has a solution

Where

D(f)
the domain — the allowed values of x
E(f)
the range — the values that y takes
a
the number being tested

Express x through a and find for which a this is possible. In simple cases there is a shorter way: estimate the pieces (…)² ≥ 0, √(…) ≥ 0, |…| ≥ 0.

Domain and range

Problem

1) Find the domain of y = √(8 − 2x) + 1/x. Find the range: 2) y = x² − 4x + 7; 3) y = 3 − √(x + 1); 4) y = 4/(x² + 1); 5) y = (2x + 1)/(x − 1).

Show solutionHide solution

Solution

1) 8 − 2x ≥ 0 and x ≠ 0 ⇒ x ≤ 4, x ≠ 0. D = (−∞, 0) ∪ (0, 4].
2) Complete the square: y = (x − 2)² + 3 ≥ 3, and y = 3 at x = 2. E = [3, +∞).
3) √(x + 1) takes every non-negative value, so y = 3 − √(x + 1) ≤ 3. E = (−∞, 3].
4) x² + 1 ≥ 1 ⇒ 0 < 4/(x² + 1) ≤ 4, and y = 4 at x = 0. E = (0, 4].
5) (2x + 1)/(x − 1) = a ⇒ 2x + 1 = ax − a ⇒ x(a − 2) = a + 1 ⇒ x = (a + 1)/(a − 2). This is possible when a ≠ 2 (and x ≠ 1 holds too, since a + 1 ≠ a − 2). E = (−∞, 2) ∪ (2, +∞).

Sign up free to keep reading

The rest of the lesson, the quiz and your notes open with an Educora account. Signing up takes a minute, and your progress is saved on all your devices.

Zeros, sign, increasing and decreasing

Zeros and sign intervalsDefinition

The values of x with f(x) = 0 are the zeros of the function: there the graph crosses or touches the x-axis. The intervals where the function keeps its sign are its sign intervals: where f(x) > 0 the graph is above the x-axis, where f(x) < 0 it is below.

x₁ < x₂ ⇒ f(x₁) < f(x₂) — increasingx₁ < x₂ ⇒ f(x₁) > f(x₂) — decreasing

Where

x₁, x₂
any two values from the interval
f(x₂) − f(x₁)
the difference whose sign we study in a proof

For an increasing function a larger argument gives a larger value, and the graph rises from left to right. An increasing or decreasing function takes each value at most once, so the equation f(x) = a has at most one root.

Zeros, sign and proving monotonicity

Problem

1) Find the zeros and sign intervals of f(x) = x³ − 4x.
2) Prove that f(x) = 5 − 2x is decreasing.
3) Prove that f(x) = 1/x is decreasing on (0, +∞).
4) Prove that f(x) = x³ is increasing on the whole number line.

Show solutionHide solution

Solution

1) x³ − 4x = x(x − 2)(x + 2) = 0 ⇒ zeros −2, 0, 2. By the interval method (“+” on the far right): f(x) > 0 on (−2, 0) ∪ (2, +∞), f(x) < 0 on (−∞, −2) ∪ (0, 2).
2) Let x₁ < x₂. f(x₂) − f(x₁) = (5 − 2x₂) − (5 − 2x₁) = −2(x₂ − x₁) < 0, because x₂ − x₁ > 0. So f(x₂) < f(x₁): the function is decreasing.
3) Let 0 < x₁ < x₂. f(x₂) − f(x₁) = 1/x₂ − 1/x₁ = (x₁ − x₂)/(x₁x₂). The numerator is negative and the denominator positive, so the difference is negative: the function is decreasing.
4) x₂³ − x₁³ = (x₂ − x₁)(x₂² + x₁x₂ + x₁²). The second bracket equals (x₂ + x₁/2)² + ¾x₁² and is positive when x₁ ≠ x₂. So x₁ < x₂ ⇒ x₁³ < x₂³: the function is increasing.

Such proofs are easy only for simple functions. In “Increasing and decreasing functions. Extrema” the derivative will answer the same question for any function in one step.

Even and odd functions. Periodic functions

The graph of y = x² is symmetric about the y-axis, because x and −x give the same value. The graph of y = x³ is symmetric about the origin: opposite the point (2, 8) lies the point (−2, −8). These two kinds of symmetry halve the work: draw the right half of the graph and reflect it.

f(−x) = f(x) — even functionf(−x) = −f(x) — odd function

Where

D(f)
−x must also lie in the domain: the domain is symmetric about 0
f(−x)
the formula with −x in place of x, simplified

The graph of an even function is symmetric about the y-axis; the graph of an odd function is symmetric about the origin. Most functions are neither even nor odd.

  1. The domain

    If the domain is not symmetric about 0, the function is neither even nor odd — you are done.

  2. Compute f(−x)

    Replace x with −x and simplify: (−x)² = x², (−x)³ = −x³, |−x| = |x|.

  3. Compare

    f(−x) = f(x) — even; f(−x) = −f(x) — odd. If neither holds, show it with one number: for example, f(−1) ≠ f(1) and f(−1) ≠ −f(1).

Even, odd or neither?

Problem

Decide whether the function is even, odd or neither: 1) f(x) = x⁴ − 3x²; 2) f(x) = x³ + 2x; 3) f(x) = x/(x² + 1); 4) f(x) = x² + x; 5) f(x) = √x; 6) f(x) = |x| − x².

Show solutionHide solution

Solution

1) f(−x) = (−x)⁴ − 3(−x)² = x⁴ − 3x² = f(x) — even.
2) f(−x) = −x³ − 2x = −(x³ + 2x) = −f(x) — odd.
3) f(−x) = −x/(x² + 1) = −f(x) — odd.
4) f(1) = 2, f(−1) = 0: f(−1) ≠ f(1) and f(−1) ≠ −f(1) — neither.
5) D(f) = [0, +∞) is not symmetric — neither.
6) |−x| − (−x)² = |x| − x² = f(x) — even.

Some processes repeat after the same amount of time: the hands of a clock, day and night, the phases of the Moon. In mathematics such functions are called periodic. The most important examples are sin x and cos x, whose period is 2π — we study them in detail in “Trigonometric functions and their graphs”.

f(x + T) = f(x)

Where

T
the period: a number T ≠ 0; usually the smallest positive period is given
x
any number in the domain (x ± T is in it too)

If T is a period, so are 2T, 3T and −T: f(x + nT) = f(x). The graph is one piece of length T repeated again and again.

Values of a periodic function

Problem

The function f has period 4, f(1) = 3 and f(2) = −1. 1) Find f(9), f(−6) and f(2026). 2) If, in addition, f is odd, find f(7).

Show solutionHide solution

Solution

1) 9 = 1 + 2 · 4 ⇒ f(9) = f(1) = 3. −6 = 2 − 2 · 4 ⇒ f(−6) = f(2) = −1. 2026 = 4 · 506 + 2 ⇒ f(2026) = f(2) = −1: the remainder on division by 4 decides.
2) 7 = −1 + 2 · 4 ⇒ f(7) = f(−1) = −f(1) = −3.

Basic functions and graph transformations

You should know the graphs of the four functions below: transformations turn them into many new graphs. The graph of y = k/x is a hyperbola: for k > 0 its branches lie in quadrants I and III, for k < 0 in quadrants II and IV; they come closer and closer to the axes but never meet them.

FunctionD(f)E(f)Even/oddMonotonicity
y = k/x (k > 0)x ≠ 0y ≠ 0odddecreasing on (−∞, 0) and on (0, +∞) separately
y = √x[0, +∞)[0, +∞)neitherincreasing
y = |x|(−∞, +∞)[0, +∞)evendecreasing on (−∞, 0], increasing on [0, +∞)
y = x³(−∞, +∞)(−∞, +∞)oddincreasing
The graphs: a hyperbola, a “half-parabola”, a “V” shape and a cubic parabola. For k < 0, y = k/x is increasing on each interval separately.

Changing the formula of any y = f(x) a little gives new graphs. The rule is easy to remember: a change made to x acts horizontally and “in reverse”; a change made to the whole function acts vertically and “as written”. We saw the parabola being shifted in “The quadratic function and its graph”; now the rules hold for every function.

y = f(x − a) + b

Where

a
horizontal shift: a > 0 — to the right, a < 0 — to the left
b
vertical shift: b > 0 — up, b < 0 — down

Every point moves (x, y) → (x + a, y + b). The domain shifts by a and the range by b.

Shifts

Problem

Say how each graph is obtained and find the domain and range: 1) y = √(x − 2) + 1; 2) y = 2/(x + 1) − 3; 3) y = (x − 1)³ + 2.

Show solutionHide solution

Solution

1) The graph of y = √x moved 2 units to the right and 1 unit up: the starting point (0, 0) → (2, 1). D = [2, +∞), E = [1, +∞).
2) The hyperbola y = 2/x moved 1 unit to the left and 3 units down. The graph approaches the lines x = −1 and y = −3 (they are called asymptotes). D: x ≠ −1, E: y ≠ −3. Check: for x = 0, y = 2 − 3 = −1.
3) The cubic parabola moved 1 unit to the right and 2 units up; its centre of symmetry (0, 0) → (1, 2). D = E = (−∞, +∞).
y = k · f(x)y = f(kx)y = −f(x)y = f(−x)y = |f(x)|

Where

k · f(x)
stretch (k > 1) or compression (0 < k < 1) along the y-axis by the factor k: (x, y) → (x, ky)
f(kx)
compression along the x-axis by the factor k (k > 1): (x, y) → (x/k, y)
−f(x), f(−x)
reflection in the x-axis and in the y-axis
|f(x)|
the parts below the x-axis are reflected upwards; the rest stays

With several transformations, work in order: first those on x (shift, compression), then stretches and reflections, then the vertical shift, and an outer absolute value last.

Stretches, reflections and the absolute value

Problem

1) Compare the graphs of y = 2√x and y = √(4x). 2) Find the domain of y = √(−x). 3) Sketch y = |x² − 4| and find how the number of solutions of |x² − 4| = a depends on a.

Show solutionHide solution

Solution

1) √(4x) = √4 · √x = 2√x — the same graph: compressing 4 times along the x-axis gives the same result here as stretching 2 times along the y-axis.
2) It is the reflection of y = √x in the y-axis: −x ≥ 0 ⇒ D = (−∞, 0].
3) The zeros of the parabola y = x² − 4 are ±2; for −2 < x < 2 it lies below the x-axis. We reflect this part upwards: the vertex (0, −4) → (0, 4). Number of solutions: a < 0 — 0; a = 0 — 2 (x = ±2); 0 < a < 4 — 4; a = 4 — 3 (x = 0 and x = ±2√2); a > 4 — 2.

Interactive

Loading simulation…
The first graph is y = √x, the second is y = k√(x − a) + b. a shifts the graph horizontally, b vertically; k stretches it along the y-axis, and k < 0 reflects it in the x-axis. The starting point is always (a, b).

The inverse function

The function y = 2x + 1 computes y from x. Sometimes we need the opposite question: if y is known, what is x? x = (y − 1)/2. This is possible only when f takes each value once — for example, when f is increasing or decreasing. The function y = x² has no inverse on the whole number line: the value y = 4 comes from both x = 2 and x = −2.

Inverse functionDefinition

If f takes each of its values once, the function g that assigns to each y in E(f) the only x with f(x) = y is the inverse function of f. As usual, we call its argument x again: y = g(x).

g(f(x)) = xf(g(x)) = xD(g) = E(f)E(g) = D(f)

Where

g
the inverse of f, also written f⁻¹
D, E
the domain and range swap places in the inverse

If (a, b) lies on the graph of f, then (b, a) lies on the graph of g. So the graphs of mutually inverse functions are symmetric in the line y = x.

  1. Does an inverse exist?

    f must take each value once (for example, be increasing or decreasing).

  2. Solve for x

    From y = f(x), express x in terms of y.

  3. Swap the letters

    Swap x and y: y = g(x).

  4. State the domain and check

    D(g) = E(f). Check: g(f(x)) must equal x.

Finding inverse functions

Problem

Find the inverse function: 1) y = 2x + 1; 2) y = √(x − 2); 3) y = x³ − 1; 4) y = x², x ≥ 0.

Show solutionHide solution

Solution

1) x = (y − 1)/2 ⇒ y = (x − 1)/2. Check: f(3) = 7, g(7) = 3.
2) D(f) = [2, +∞), E(f) = [0, +∞). y² = x − 2 ⇒ x = y² + 2 ⇒ y = x² + 2, x ≥ 0 — only the right branch of the parabola.
3) x³ = y + 1 ⇒ x = ∛(y + 1) ⇒ y = ∛(x + 1). Check: f(2) = 7, g(7) = ∛8 = 2.
4) For x ≥ 0 the function is increasing; x = √y ⇒ y = √x. The graphs are symmetric in the line y = x. The functions y = aˣ and y = logₐx form the same kind of pair (“Logarithms, their properties and the logarithmic function”).

Interactive

Loading simulation…
y = ax + b and its inverse y = (x − b)/a. Change a and b: the graphs always stay symmetric in the line y = x (the third graph).
Check yourself: fill in the gap
  1. 1.The domain of y = √(x − 5) is x ≥
  2. 2.The least value of y = (x + 2)² − 7 is
  3. 3.The inverse of y = 2x − 6 is y = x/2 +

Remember

  • A function assigns exactly one y to each x; D(f) is the set of allowed x, E(f) the set of values taken: a ∈ E(f) ⇔ f(x) = a has a solution.
  • Zeros are the roots of f(x) = 0; increasing: x₁ < x₂ ⇒ f(x₁) < f(x₂), decreasing: f(x₁) > f(x₂); a monotonic function takes each value once.
  • Even: f(−x) = f(x), the graph is symmetric about the y-axis; odd: f(−x) = −f(x), the graph is symmetric about the origin; the domain must be symmetric.
  • Periodic: f(x + T) = f(x); shifting by a whole number of periods does not change the value.
  • y = f(x − a) + b — a units right, b units up; k · f(x) — vertical stretch, f(kx) — horizontal compression; −f(x), f(−x) — reflections in the axes; |f(x)| — the part below the x-axis flips up.
  • An inverse exists only when f takes each value once: solve for x and swap the letters; D(g) = E(f), and the graphs are symmetric in y = x.
Spotted a mistake or something inaccurate in this lesson?

Check yourself

12 questions. Every correct answer earns XP.

Question 1 / 12

Question 1 / 12. Which equality defines an even function (the domain is symmetric)?