Cambridge 9709 · Mathematics (9709) AS · Chapter 2 · P1 - Functions

P1 Chapter 1: Functions

Summarized revision notes, free to read. Sit the matching past papers in any Paperverse world when you are done.

Introduction

Alright, let's dive into one of the most fundamental ideas in A-Level Maths: Functions. Think of them as well-behaved mathematical machines: you put a number in (the input), and you get a specific number out (the output). In this chapter, we're going to build your entire toolkit for dealing with them. First, we'll master Domain and Range – figuring out exactly what numbers can go in and what can come out. Then, we'll get creative by plugging one function machine into another with Composite Functions. After that, we'll learn how to run the machine backwards by finding Inverse Functions. And finally, we'll become graph wizards with Graph Transformations, learning how to shift, stretch, and flip any function's graph. By the end of this, you'll be able to manipulate and understand functions like a pro. Let's get this done!

Defining the Domain and Range of a Function1.2

Alright, let's get into one of the most fundamental concepts in functions: domain and range. Think of a function, $f(x)$, as an exclusive event. The domain is the VIP guest list – it's the complete set of all possible input values ($x$-values) that are allowed to enter the 'function party'. If an $x$-value isn't on the list, it gets rejected at the door! So, what gets a value blacklisted? Two main culprits in AS Maths: <br>1. Division by zero: The denominator of a fraction can't be zero. For $f(x) = \frac{1}{x-2}$, the value $x=2$ causes chaos, so the domain is all real numbers except 2, written as $x \in \mathbb{R}, x \ne 2$.<br>2. Square roots of negatives: We can't take the square root of a negative number in the real number system. For $g(x) = \sqrt{x-4}$, the expression $x-4$ must be zero or positive. So, $x-4 \ge 0$, which means the domain is $x \ge 4$.<br><br>The range is the result of the party – it's the complete set of all possible output values ($f(x)$ or $y$-values) that the function can produce from the allowed inputs. To figure out the range, you need to think about the function's behaviour. What's the highest or lowest value it can hit? For a quadratic like $f(x) = (x-3)^2 + 2$, the vertex is at $(3, 2)$, which is the minimum point. The function can go up forever but never dips below 2. So, its range is $f(x) \ge 2$. A graph of the parabola y = (x-3)^2 + 2, showing its vertex at (3,2). The y-axis from y=2 upwards is highlighted to illustrate the range. Mastering domain and range is non-negotiable for university-level calculus, where you'll analyze complex functions in engineering, economics, and computer science. It’s the absolute bedrock.

Worked Example: Domain and Range of a Radical Function1.2

Problem Given the function $f(x) = 5 - \sqrt{x-1}$, determine its domain and range.

Step 1 First, let's tackle the domain. We need to identify any values of $x$ that would 'break' the function. The only potential issue here is the square root. The expression inside a square root cannot be negative. $$x-1 \ge 0$$

Step 2 Solving this simple inequality gives us the complete set of allowed $x$-values. This is our domain. $$x \ge 1 \\ \text{So, the domain is } \{x \in \mathbb{R} : x \ge 1\}$$

Step 3 Now for the range. Let's build the function up, starting from the square root part. We know that the output of a basic square root function is always non-negative. $$\sqrt{x-1} \ge 0$$

Step 4 Our function has $-\sqrt{x-1}$, not just $\sqrt{x-1}$. When we multiply an inequality by a negative number, we must flip the inequality sign. Think of it as reversing the direction on the number line. $$-\sqrt{x-1} \le 0$$

Step 5 The final step is to add the 5 to complete the function. This shifts all our possible output values up by 5. This gives us the final boundary for our range. $$5 - \sqrt{x-1} \le 5$$

Step 6 Since $f(x) = 5 - \sqrt{x-1}$, we have found our range. The function's output can be 5 or any value less than 5. We state this formally using function notation. $$\text{The range is } f(x) \le 5$$

Composite Functions: Structure and Existence1.2

Alright, let's break down composite functions. Imagine you're editing a video. First, you use an app to add a slow-mo effect (that's function $f$), and then you upload that result to another app to add music (that's function $g$). The final video is the result of a composite function, written as $gf(x)$. The notation is key: $gf(x)$ actually means $g(f(x))$. You always apply the function closest to the $x$ first. So, we work from the inside out: $x$ goes into $f$, and the result, $f(x)$, goes into $g$.<br><br>To find the algebraic expression for $gf(x)$, you literally substitute the entire expression for $f(x)$ into every instance of $x$ in the function $g(x)$. But here's the crucial part, and a classic exam question: the composite function doesn't always exist. For $gf(x)$ to be valid, the output of the first function ($f$) must be a valid input for the second function ($g$). In technical terms, the range of $f$ must be a subset of the domain of $g$. Think of it like plugging a USB-C cable (the range of $f$) into a laptop port (the domain of $g$). If the laptop only has old USB-A ports, it's not going to work! A diagram showing two 'function machines', f and g. An input x goes into machine f, producing an output f(x). This output f(x) then becomes the input for machine g, producing the final output g(f(x)). The diagram should highlight that the range of f <br><br>This concept is more than just an exam hurdle; it's the foundation of the Chain Rule in calculus (A2 topic alert!) and fundamental to computer science, where you constantly 'pipe' the output of one function into another. Understanding this 'compatibility check' is vital for modelling any multi-step process, from financial models to physics simulations.

Worked Example: Forming a Composite Function and its Domain1.2

Problem The functions $f$ and $g$ are defined as follows:<br>$f(x) = x^2 + 1$ for $x \in \mathbb{R}$<br>$g(x) = \sqrt{x - 5}$ for $x \ge 5$<br><br>Find the composite function $fg(x)$ and state its domain and range.

Step 1 First, let's identify the order of operations for $fg(x)$. This means we apply $g$ first, then $f$. To check if $fg(x)$ can even exist, we must verify that the range of the first function ($g$) is compatible with the domain of the second function ($f$). Range of $g(x) = \sqrt{x - 5}$ is $g(x) \ge 0$.<br>Domain of $f(x) = x^2 + 1$ is $x \in \mathbb{R}$.<br>Since the range of $g$ ($[0, \infty)$) is a subset of the domain of $f$ ($(-\infty, \infty)$), the function $fg(x)$ exists. ✅

Step 2 Now that we know it exists, we can find the expression for $fg(x)$. We do this by substituting the entire expression for $g(x)$ into the variable $x$ in the function $f(x)$. $$fg(x) = f(g(x)) = f(\sqrt{x-5})$$ $$fg(x) = (\sqrt{x-5})^2 + 1$$ $$fg(x) = (x-5) + 1 = x - 4$$

Step 3 This is a critical step that many students miss. The domain of a composite function $fg(x)$ is always the same as the domain of the first function that was applied, which in this case is $g(x)$. Don't be fooled by the simple final expression! The domain of $g(x)$ is $x \ge 5$.<br>Therefore, the domain of $fg(x)$ is also $x \ge 5$.

Step 4 Finally, to find the range of the composite function $fg(x)$, we consider what output values are produced when we apply its domain ($x \ge 5$) to its expression ($x-4$). We have $fg(x) = x - 4$ with a domain of $x \ge 5$.<br>The minimum value will occur at the minimum input, $x=5$.<br>$fg(5) = 5 - 4 = 1$.<br>As $x$ increases, $fg(x)$ increases. Therefore, the range of $fg(x)$ is $fg(x) \ge 1$.

Inverse Functions and their Properties1.2

Alright, let's talk about inverse functions. Think of a function $f(x)$ as a process, like putting on your shoes. The inverse function, denoted $f^{-1}(x)$ (and be careful, that '-1' is not a power, it's just notation!), is the reverse process: taking your shoes off. If $f( ext{foot}) = ext{shoe}$, then $f^{-1}( ext{shoe}) = ext{foot}$. Simple, right? <br><br>The absolute deal-breaker for an inverse to exist is that the original function must be one-to-one. This means every output has a unique input. A function like $f(x) = x^2$ is many-to-one because both $x=2$ and $x=-2$ give the output 4. If you tried to 'undo' 4, where would you go? Back to 2 or -2? An inverse can't have this ambiguity. To fix this, we often restrict the domain. For $f(x) = x^2$, if we say it only applies for $x \ge 0$, it becomes one-to-one, and its inverse is $f^{-1}(x) = \sqrt{x}$. This is a classic exam trick! <br><br>Graphically, an inverse function is a reflection of the original function in the line $y=x$. This is a massive visual cue for you in an exam. If you sketch $f(x)$ and $f^{-1}(x)$ on the same axes, they should be perfect mirror images across that diagonal line. A graph showing the curve of y=e^x, its inverse y=ln(x), and the dashed line of reflection y=x bisecting the angle between them. This reflection visually represents the core property of inverses: the inputs and outputs swap. Consequently, the domain of $f(x)$ becomes the range of $f^{-1}(x)$, and the range of $f(x)$ becomes the domain of $f^{-1}(x)$. This relationship is your key to solving a huge range of problems, especially those asking for the domain or range of an inverse. Understanding this concept is not just for passing P1; it's foundational for logarithms, trigonometry, and is used extensively in computer science for algorithms and in cryptography for encryption/decryption keys.

Worked Example: Finding the Inverse of a Function with a Restricted Domain1.2

Problem The function $f$ is defined by $f(x) = (x-2)^2 + 5$ for $x \ge 2$.<br> (i) Find an expression for $f^{-1}(x)$.<br> (ii) State the domain of $f^{-1}(x)$.

Step 1 First up, we set the function equal to $y$. This just makes the algebraic manipulation cleaner. Let $y = f(x)$ $$y = (x-2)^2 + 5$$

Step 2 This is the crucial step for finding any inverse. We literally swap the roles of input ($x$) and output ($y$) by swapping the variables in the equation. $$x = (y-2)^2 + 5$$

Step 3 Now, we need to perform algebraic gymnastics to make $y$ the subject of this new equation. This will give us the formula for our inverse function. $$x - 5 = (y-2)^2$$ $$\sqrt{x - 5} = y - 2$$ $$y = 2 + \sqrt{x-5}$$ Self-check: We take the positive square root because the original domain was $x \ge 2$. This means the range of $f^{-1}(x)$ must be $y \ge 2$. Our expression $y = 2 + \sqrt{x-5}$ satisfies this, whereas $y = 2 - \sqrt{x-5}$ would not.

Step 4 We're almost there! Just replace $y$ with the formal notation $f^{-1}(x)$ to present the final answer for part (i). $$f^{-1}(x) = 2 + \sqrt{x-5}$$

Step 5 For part (ii), we use the core principle: the domain of the inverse is the range of the original function. Let's find the range of $f(x) = (x-2)^2 + 5$ for $x \ge 2$. The vertex of the parabola is at $(2, 5)$. Since the domain is $x \ge 2$, the function starts at its minimum point and increases. Therefore, the range of $f(x)$ is $y \ge 5$.<br><br>This means the domain of $f^{-1}(x)$ is $x \ge 5$.

Transformations of Functions1.2

Alright, let's get into graph transformations. Think of this as the ultimate editing tool for functions. Mastering this isn't just about passing P1; it's a fundamental concept in fields like computer graphics (think animating characters in a game), engineering, and physics for modelling wave behaviour. We're dealing with four main types of transformations which can be combined. Let's break it down:<br><br>1. Vertical Translation: $y = f(x) + a$<br>This is the most straightforward. If $a$ is positive, the whole graph shifts up by $a$ units. If $a$ is negative, it shifts down. Imagine your graph is in an elevator; adding 'a' just changes which floor it's on. The shape doesn't change at all.<br><br>2. Horizontal Translation: $y = f(x+a)$<br>Heads up, this one feels a bit backwards! If you see $f(x+a)$, the graph actually shifts left by $a$ units. If you see $f(x-a)$, it shifts right. Why the reverse psychology? Think about what value of $x$ gets you back to the original input. For $f(x+2)$, you need to put in $x=-2$ to get $f(0)$. So, the point that was at $x=0$ has moved to $x=-2$.<br><br>3. Vertical Stretch/Compression: $y = af(x)$<br>Here, we're stretching or squashing the graph vertically. The graph is stretched parallel to the y-axis by a factor of $|a|$. Every y-coordinate gets multiplied by $a$. If $|a|>1$, it's a stretch. If $0<|a|<1$, it's a compression (a squash). If $a$ is negative, it's a stretch/compression and a reflection in the x-axis. All the positive y-values become negative and vice versa. A graph of y=sin(x) being transformed to y=2sin(x) (vertical stretch) and y=-sin(x) (reflection in x-axis).<br><br>4. Horizontal Stretch/Compression: $y = f(ax)$<br>Like the horizontal shift, this one is also counter-intuitive. The graph is stretched parallel to the x-axis by a factor of $\frac{1}{|a|}$. If $|a|>1$, it's a compression (it gets squashed inwards). If $0<|a|<1$, it's a stretch. If $a$ is negative, you get a stretch/compression and a reflection in the y-axis.<br><br>When you combine these, the order matters. A golden rule for your exams: deal with stretches/reflections first, then translations. Think of it like getting ready: you put on your clothes (stretch/reflect) before you put on your coat and leave the house (translate).

Worked Example: Applying a Sequence of Transformations1.2

Problem The graph of $y=f(x)$ is a parabola with vertex at $(2, -9)$ and roots at $x=-1$ and $x=5$. Sketch the graph of $y = 3 - f(\frac{1}{2}x)$, stating the coordinates of the vertex and the roots of the transformed function.

Step 1 First, let's identify the transformations and the correct order. The function is $y = -f(\frac{1}{2}x) + 3$. Remember, stretches/reflections before translations. So, the order is: <br>1. Horizontal stretch ($f(\frac{1}{2}x)$). <br>2. Reflection in the x-axis ($-f(\frac{1}{2}x)$). <br>3. Vertical translation ($+3$). Transformation 1: Horizontal stretch, parallel to x-axis, scale factor 2. $(x, y) \rightarrow (2x, y)$.<br>Transformation 2: Reflection in the x-axis. $(x, y) \rightarrow (x, -y)$.<br>Transformation 3: Vertical translation, 3 units up. $(x, y) \rightarrow (x, y+3)$.

Step 2 Now, let's list our key points from the original graph, $y=f(x)$. We have the vertex and the two roots. Original points:<br>Root 1: $(-1, 0)$<br>Root 2: $(5, 0)$<br>Vertex: $(2, -9)$

Step 3 Apply the first transformation: the horizontal stretch by a factor of 2. We multiply each x-coordinate by 2. $$(-1, 0) \rightarrow (2 \times -1, 0) = (-2, 0)$$ $$(5, 0) \rightarrow (2 \times 5, 0) = (10, 0)$$ $$(2, -9) \rightarrow (2 \times 2, -9) = (4, -9)$$

Step 4 Next, apply the reflection in the x-axis to our new points. We negate each y-coordinate. $$(-2, 0) \rightarrow (-2, -0) = (-2, 0)$$ $$(10, 0) \rightarrow (10, -0) = (10, 0)$$ $$(4, -9) \rightarrow (4, -(-9)) = (4, 9)$$

Step 5 Finally, apply the vertical translation. We add 3 to each of the y-coordinates from the previous step. $$(-2, 0) \rightarrow (-2, 0+3) = (-2, 3)$$ $$(10, 0) \rightarrow (10, 0+3) = (10, 3)$$ $$(4, 9) \rightarrow (4, 9+3) = (4, 12)$$

Step 6 We've done it! The original parabola which opened upwards with a minimum at $(2, -9)$ is now a parabola that opens downwards with a maximum point (the new vertex) at $(4, 12)$. The points that were roots are now at $(-2, 3)$ and $(10, 3)$. We can now sketch this transformed graph. Final Coordinates:<br>New Vertex: $(4, 12)$<br>Transformed 'Roots': $(-2, 3)$ and $(10, 3)$<br>The transformed graph does not have roots on the x-axis since its maximum point is above the axis and it opens downwards.

Key Points to Remember

  • The Domain is the set of all possible input values ($x$-values), while the Range is the set of all resulting output values ($f(x)$-values).
  • A composite function like $fg(x)$ means you apply the function $g$ first, and then apply the function $f$ to the result of $g(x)$. Remember, work from the inside out!
  • An inverse function, $f^{-1}(x)$, only exists if the original function $f(x)$ is one-to-one. The domain of $f^{-1}(x)$ is the range of $f(x)$, and vice versa.
  • For Graph Transformations of $y=f(x)$, changes inside the bracket like $f(x-a)$ affect the $x$-axis (horizontal), and changes outside like $f(x)+a$ affect the $y$-axis (vertical).

Revise this chapter in any of the ten Paperverse worlds