Home · Lessons · Mathematics

Mathematics

Functions

A function assigns each domain element to exactly one range element, with operations defined via addition, multiplication, composition, and division under domain restrictions.

In this lesson
  1. Basic Definitions and Concepts
  2. Basic Laws and Formulas
  3. Detailed Solved Examples
  4. Illustrative SVG Diagrams
  5. Comparison Tables
  6. CSCA Tips and Common Mistakes
  7. Additional Exercises with Solutions

Basic Definitions and Concepts

A function is a relation that assigns to each element \(x\) in the set \(X\) (called the domain) exactly one element \(y\) in the set \(Y\) (called the codomain). We write \(y = f(x)\).

Basic Concepts

Types of basic functions

TypeFormulaDomain
Linear\(f(x) = mx + b\)\(\mathbb{R}\)
Quadratic\(f(x) = ax^2 + bx + c\)\(\mathbb{R}\)
Radical\(f(x) = \sqrt{x}\)\(x \geq 0\)
Rational\(f(x) = \frac{P(x)}{Q(x)}\)\(Q(x) \neq 0\)
Measurement\(f(x) = |x|\)\(\mathbb{R}\)

Explanation and justification for each rule

The reason for defining a function as a relation that associates each element in the domain with exactly one element in the codomain is to ensure clarity and avoid ambiguity in the resulting value; if a single element were associated with more than one value in \(y\), it would be impossible to determine \(f(x)\) uniquely, which contradicts the concept of a function in mathematics.

The reason the domain is the set of all \(x\) values for which \(f(x)\) is defined is to avoid undefined operations such as division by zero or taking the square root of a negative number in the set of real numbers; every operation in the mathematical expression must be valid and well-defined.

The reason the range is the set of all values \(y = f(x)\) is to describe all possible outputs of the function when applied to every element of the domain, which helps in understanding the function's behavior and the extent of its influence.

The reason for the vertical line test is that it ensures each \(x\) value corresponds to exactly one \(y\) value; if a vertical line intersects the curve at more than one point, it means there is a \(x\) value corresponding to more than one \(y\) value, which violates the definition of a function.

Step-by-step solved examples

Example 1: Finding the domain and range of the function \(f(x) = \sqrt{x - 3}\)

Solution: Step by step

  1. We need the expression inside the square root to be non-negative because we are dealing with real numbers: \(x - 3 \geq 0\).
  2. Solving the inequality: \(x \geq 3\).
  3. Therefore, the domain is \([3, \infty)\) or in set notation: \(\{x \in \mathbb{R} \mid x \geq 3\}\).
  4. To calculate the range: since the square root always gives a non-negative value, and the smallest value of ⟦79⟧⟦80⟧{x - 3}⟦81⟧ when ⟦82⟧x = 3⟦83⟧ is ⟦84⟧⟦85⟧{0} = 0⟦86⟧.\(\sqrt{x - 3}\)When\(x = 3\)is\(\sqrt{0} = 0\).
  5. As \(x\) increases, \(\sqrt{x - 3}\) increases without bound, so the range is \([0, \infty)\) or \(\{y \in \mathbb{R} \mid y \geq 0\}\).

Example 2: Determining whether the curve given by the equation \(x^2 + y^2 = 25\) represents a function using the vertical line test

Solution: Step by step

  1. The equation \(x^2 + y^2 = 25\) represents a circle with radius 5 centered at the origin.
  2. We draw a vertical line, for example at \(x = 0\): substitute into the equation: \(0^2 + y^2 = 25\) → \(y^2 = 25\) → \(y = 5\) or \(y = -5\).
  3. Thus the vertical line at \(x = 0\) intersects the circle at two points: \((0, 5)\) and \((0, -5)\).
  4. Since there exists a vertical line that intersects the curve at more than one point, the curve does not represent a function.
  5. Conclusion: No, the equation \(x^2 + y^2 = 25\) does not represent a function because it fails the vertical line test.

List of "Common Mistakes" with correction for each error

Test Tips

Basic Laws and Formulas

Operations on functions are defined as a way to construct new functions from existing ones through addition, multiplication, composition, and division, taking into account the domain conditions for each operation.

Operations on functions

Operation Formula
Addition \((f+g)(x) = f(x) + g(x)\)
Multiplication \((f \cdot g)(x) = f(x) \cdot g(x)\)
Composition \((f \circ g)(x) = f(g(x))\)
Division \((f/g)(x) = \frac{f(x)}{g(x)}\), with the condition \(g(x) \neq 0\)

The reason behind these definitions is to maintain compatibility of functions with basic algebraic operations, so that the result is a function defined on the intersection of their domains (except for division, which excludes points where the denominator vanishes).

Step-by-step solved example: addition and multiplication

Assume that \(f(x) = 2x + 1\) and \(g(x) = x^2 - 3\).

  1. Compute \((f+g)(x)\):
    • Step 1: Write the definition of addition: \((f+g)(x) = f(x) + g(x)\)
    • Step 2: Substitute the expressions: \(= (2x + 1) + (x^2 - 3)\)
    • Step 3: Combine like terms: \(= x^2 + 2x + (1 - 3) = x^2 + 2x - 2\)
    • Result: \((f+g)(x) = x^2 + 2x - 2\)
  2. Compute \((f \cdot g)(x)\):
    • Step 1: Write the definition of multiplication: \((f \cdot g)(x) = f(x) \cdot g(x)\)
    • Step 2: Substitute the expressions: \(= (2x + 1) \cdot (x^2 - 3)\)
    • Step 3: Apply distribution: \(= 2x \cdot x^2 + 2x \cdot (-3) + 1 \cdot x^2 + 1 \cdot (-3)\)
    • Step 4: Compute each term: \(= 2x^3 - 6x + x^2 - 3\)
    • Step 5: Arrange in descending powers: \(= 2x^3 + x^2 - 6x - 3\)
    • Result: \((f \cdot g)(x) = 2x^3 + x^2 - 6x - 3\)

Step-by-step solved example: composition and division

Let \(f(x) = \sqrt{x}\) and \(g(x) = x + 4\).

  1. Compute \((f \circ g)(x)\):
    • Step 1: Write the definition of composition: \((f \circ g)(x) = f(g(x))\)
    • Step 2: Substitute \(g(x)\) into \(f\): \(= f(x + 4)\)
    • Step 3: Apply the definition of \(f\): \(= \sqrt{x + 4}\)
    • Condition: Since \(f\) is defined for \(x \geq 0\), then \(x + 4 \geq 0 \Rightarrow x \geq -4\)
    • Result: \((f \circ g)(x) = \sqrt{x + 4}\), domain: \([-4, \infty)\)
  2. Compute \((f/g)(x)\):
    • Step 1: Write the definition of division: \((f/g)(x) = \frac{f(x)}{g(x)}\)
    • Step 2: Substitute the expressions: \(= \frac{\sqrt{x}}{x + 4}\)
    • Step 3: Determine the conditions: \(f(x)\) is defined for \(x \geq 0\), and \(g(x) \neq 0 \Rightarrow x + 4 \neq 0 \Rightarrow x \neq -4\)
    • Step 4: Since \(x \geq 0\), then \(x \neq -4\) holds automatically.
    • Final condition: \(x \geq 0\).
    • Result: \((f/g)(x) = \frac{\sqrt{x}}{x + 4}\), domain: \([0, \infty)\).

Inverse function

If the function \(f\) is one-to-one (injective), then it has an inverse \(f^{-1}\) such that \(f^{-1}(f(x)) = x\) and \(f(f^{-1}(x)) = x\) for every \(x\) in the appropriate domain. This is because a one-to-one function does not assign the same value to two different inputs, allowing the relationship to be reversed uniquely.

Steps to find the inverse:

  1. Write \(y = f(x)\).
  2. Swap \(x\) and \(y\) to get \(x = f(y)\).
  3. Solve the equation for \(y\) to express it in terms of \(x\).
  4. The result is \(y = f^{-1}(x)\).

Worked example step-by-step: Finding the inverse of a linear function

Assume \(f(x) = 3x - 5\).

  1. Step 1: Write \(y = f(x) \Rightarrow y = 3x - 5\).
  2. Step 2: Swap \(x\) and \(y\): \(x = 3y - 5\).
  3. Step 3: Solve for \(y\):
    • Add 5 to both sides: \(x + 5 = 3y\)
    • Divide by 3: \(y = \frac{x + 5}{3}\)
  4. Step 4: Write the inverse: \(f^{-1}(x) = \frac{x + 5}{3}\)

Worked example step-by-step: Finding the inverse of a restricted quadratic function

Assume \(f(x) = x^2\) with the condition \(x \geq 0\) (to ensure it is one-to-one).

  1. Step 1: Write \(y = f(x) \Rightarrow y = x^2\), with \(x \geq 0\), \(y \geq 0\).
  2. Step 2: Swap \(x\) and \(y\): \(x = y^2\), with \(y \geq 0\) (because \(y\) represented the original \(x\), which is non-negative).
  3. Step 3: Solve for \(y\):
    • Take the square root of both sides: \(y = \sqrt{x}\) (we take the positive root only because \(y \geq 0\))
  4. Step 4: Write the inverse: \(f^{-1}(x) = \sqrt{x}\), with domain \(x \geq 0\) (because the domain of \(f^{-1}\) is the range of the original \(f\)).

Classification of Functions

Type Condition Example
Even \(f(-x) = f(x)\) \(f(x) = x^2\)
Odd \(f(-x) = -f(x)\) \(f(x) = x^3\)

The reason for classifying functions as even and odd is to simplify analysis and integration, since even functions are symmetric about the y-axis and odd functions are symmetric about the origin, allowing the use of simplifying properties in calculations.

Worked Example: Verifying Evenness and Oddness

Assume that \(f(x) = x^4 - 2x^2 + 1\).

  1. Step 1: Compute \(f(-x)\):
    • \(f(-x) = (-x)^4 - 2(-x)^2 + 1 = x^4 - 2x^2 + 1\) (because even powers eliminate the negative sign)
  2. Step 2: Compare \(f(-x)\) with \(f(x)\):
    • \(f(x) = x^4 - 2x^2 + 1\)
    • We see that \(f(-x) = f(x)\)
  3. Step 3: Conclusion: Since \(f(-x) = f(x)\), the function is even.

Let \(g(x) = x^3 - x\).

  1. Step 1: Compute \(g(-x)\):
    • \(g(-x) = (-x)^3 - (-x) = -x^3 + x\)
  2. Step 2: Compute \(-g(x)\):
    • \(-g(x) = -(x^3 - x) = -x^3 + x\)
  3. Step 3: Compare \(g(-x)\) with \(-g(x)\):
    • We find that \(g(-x) = -x^3 + x = -g(x)\)
  4. Step 4: Conclusion: Since \(g(-x) = -g(x)\), the function is odd.

List of common errors and corrections

Test Tips

Detailed Solved Examples

Example 1: Finding the domain

Find the domain of \(f(x) = \frac{3x+5}{x^{2}-9}\).

Solution:The denominator \(x^{2}-9 = 0\) when \(x^{2}=9\), i.e. \(x=3\) or \(x=-3\). Since division by zero is undefined, we exclude these two values from the set of real numbers. Therefore, the domain is all real numbers except \(-3\) and \(3\).

Domain = \(\mathbb{R} \setminus \{-3, 3\}\).


Example 2: Domain of a radical function

Find the domain of \(f(x) = \sqrt{4-x^{2}}\).

Solution:Because the square root is defined only for non-negative quantities, we set \(4-x^{2} \geq 0\). Rearranging gives \(x^{2} \leq 4\). Taking the square root of both sides (noting that the square root yields a non-negative value) yields \(-2 \leq x \leq 2\). Hence, the domain is the closed interval from \(-2\) to \(2\).

Domain = \([-2, 2]\).


Example 3: Composition of functions

Given \(f(x)=x^{2}-1\) and \(g(x)=2x+3\), compute \((f\circ g)(x)\) and \((g\circ f)(x)\).

Solution:First, we compute \((f\circ g)(x) = f(g(x))\). Substitute \(g(x)\) into \(f\): \(f(g(x)) = (2x+3)^{2}-1\). Expand the square: \((2x+3)^{2} = 4x^{2}+12x+9\). Then subtract \(1\): \(4x^{2}+12x+9-1 = 4x^{2}+12x+8\). Thus \((f\circ g)(x) = 4x^{2}+12x+8\).

Second, we compute \((g\circ f)(x) = g(f(x))\). Substitute \(f(x)\) into \(g\): \(g(f(x)) = 2(x^{2}-1)+3\). Multiply: \(2x^{2}-2\). Then add \(3\): \(2x^{2}-2+3 = 2x^{2}+1\). Thus \((g\circ f)(x) = 2x^{2}+1\).

Since \((f\circ g)(x) \neq (g\circ f)(x)\) in general (for example, at \(x=0\) the first gives \(8\) and the second gives \(1\)), function composition is not commutative in this case.


Example 4: Inverse Function

Find the inverse of \(f(x) = \frac{3x-1}{x+2}\).

Solution:We start by writing \(y = \frac{3x-1}{x+2}\). Swapping the variables gives \(x = \frac{3y-1}{y+2}\). Multiply both sides by the denominator \(y+2\): \(x(y+2) = 3y-1\). Distribute the multiplication: \(xy + 2x = 3y - 1\). Collect the terms containing \(y\) on one side: \(xy - 3y = -1 - 2x\). Factor out the common factor \(y\): \(y(x-3) = -(1+2x)\). Divide both sides by \((x-3)\) (note that \(x \neq 3\) to avoid division by zero): \(y = \frac{-(1+2x)}{x-3}\). Change the signs in numerator and denominator to obtain a simpler form: \(y = \frac{2x+1}{3-x}\). Therefore, the inverse is \(f^{-1}(x) = \frac{2x+1}{3-x}\).


Example 5: Testing one-to-one

Determine whether \(f(x)=x^{2}\) is a one-to-one function on the set of real numbers \(\mathbb{R}\).

Solution:A function is one-to-one if each value in the domain corresponds to exactly one value in the range, and vice versa; that is, \(f(a)=f(b)\) implies \(a=b\). Take two different numbers, say \(a=2\) and \(b=-2\). Compute \(f(2)=2^{2}=4\) and \(f(-2)=(-2)^{2}=4\). Since \(f(2)=f(-2)\) but \(2 \neq -2\), the condition fails. Hence, \(f(x)=x^{}\) is not one-to-one on \(\mathbb{R}\).

However, if we restrict the domain to \([0,\infty)\), then any two distinct non-negative numbers yield different squares. For example, if \(0 \leq a < b\), then \(a^{2} < b^{2}\), and thus \(f(a) \neq f(b)\). Therefore, on \([0,\infty)\), the function is one-to-one.


Example 6: A Piecewise-Defined Function

Given the piecewise-defined function: \(f(x)=\begin{cases} x^{2}, & x<1 \\ 2x-1, & x\geq 1 \end{cases}\). Compute \(f(-2)\), \(f(1)\), \(f(3)\).

Solution:To compute \(f(-2)\), we note that \(-2 < 1\), so we use the first rule: \(f(-2)=(-2)^{2}=4\).

To compute \(f(1)\), we note that \(1 \geq 1\), so we use the second rule: \(f(1)=2(1)-1=2-1=1\).

To compute \(f(3)\), we note that \(3 \geq 1\), so we use the second rule: \(f(3)=2(3)-1=6-1=5\).

Thus, the values are: \(f(-2)=4\), \(f(1)=1\), \(f(3)=5\).


Explanations and Reasons:

Step-by-step solved examples (additional):

  1. Find the domain of \(g(x)=\frac{5x-2}{x^{2}+4x+3}\).
  2. Solution: Solve \(x^{2}+4x+3=0\) by factoring: \((x+1)(x+3)=0\), so \(x=-1\) or \(x=-3\). The domain is \(\mathbb{R}\setminus\{-1,-3\}\).
  3. Find the domain of \(h(x)=\sqrt{9-2x}\).
  4. Solution: Set \(9-2x\geq0\), then \(2x\leq9\), so \(x\leq\frac{9}{2}\). The domain is \(\left(-\infty,\frac{9}{2}\right]\).
  5. List of common errors with corrections for each:

    • Error: Writing the domain as \(\{x\mid x\neq -3,3\}\) without using the correct set notation.
    • Correction: Use \(\mathbb{R}\setminus\{-3,3\}\) or \((-\infty,-3)\cup(-3,3)\cup(3,\infty)\).
    • Error: When solving an inequality for a radical, writing \(\sqrt{4-x^{2}}\geq0\) instead of \(4-x^{2}\geq0\).
    • Correction: Remember that the square root itself is never negative when defined, so the condition applies only to the expression inside the radical.
    • Error: In composing functions, writing \((f\circ g)(x)=f(x)\cdot g(x)\) confuses composition with multiplication.
    • Correction: Recall that \((f\circ g)(x)=f(g(x))\), meaning substitute \(g(x)\) into \(f\).
    • Error: When finding the inverse, forgetting to swap \(x\) and \(y\) at the start or solving the equation for \(x\) instead of \(y\).
    • Correction: Follow the steps: write \(y=f(x)\), then swap the variables, then solve for \(y\).
    • Error: In the one-to-one test, merely stating that the function is even or odd as justification.
    • Correction: Remember that evenness or oddness does not reflect the one-to-one property; you must test whether \(f(a)=f(b)\) implies \(a=b\).
    • Error: In the piecewise-defined function, using the wrong rule at the boundary value (e.g., using ⟦296⟧x^{2}⟦297⟧ at ⟦298⟧x=1⟦299⟧).\(x^{2}\)The error: in the function defined piecewise, using the wrong rule at the boundary value (e.g., using ⟦296⟧x^{2}⟦297⟧ at ⟦298⟧x=1⟦299⟧).\(x=1\)).
    • Correction: Pay attention to the inequality included in the definition; if the condition is \(x\geq1\), use the second rule at \(x=1\).

    Test Tips:

    • Always check for exceptions in the domain: values that make the denominator zero or the expression inside the radical negative.
    • When dealing with square roots, write the condition only on the radicand and remember that the root itself yields a non-negative value.
    • In function composition, work from the inside out: compute \(g(x)\) first, then substitute the result into \(f\).
    • To find the inverse, follow the steps precisely: write \(y=f(x)\), swap the variables, solve for \(y\), then replace \(y\) with \(f^{-1}(x)\).
    • To test for one-to-one, assume \(f(a)=f(b)\) and try to deduce \(a=b\); if you cannot, look for a counterexample.
    • For piecewise-defined functions, determine which interval the input value belongs to before applying the formula.
    • Use set symbols and parentheses precisely: \(\setminus\) for exclusion, \(\cup\) for union, \(\cap\) for intersection, and commas for intervals.
    • Review your calculations carefully, especially when expanding parentheses and combining like terms; a small sign error can change the result entirely.

Illustrative SVG Diagrams

Figure 1: The quadratic function f(x)=x²

The quadratic function is defined in the general form \(f(x)=ax^{2}+bx+c\), and in the given case we have \(a=1\), \(b=0\), \(c=0\), so it becomes \(f(x)=x^{2}\). This function represents an upward-opening parabola because the coefficient of \(x^{2}\) is positive. The axis of symmetry is the y-axis \(x=0\), and the vertex is at the point \((0,0)\), which is the minimum value of the function since the parabola opens upward. The domain is all real numbers \(\mathbb{R}\), and the range is \([0,\infty)\) because \(x^{2}\geq0\) for every \(x\in\mathbb{R}\).

Example 1: Calculate the value of\(f(3)\)and\(f(-2)\)for the function\(f(x)=x^{2}\).

  1. Substituting \(x=3\) into \(f(x)=x^{2}\) gives \(f(3)=3^{2}=9\).
  2. Substituting \(x=-2\) into \(f(x)=x^{2}\) gives \(f(-2)=(-2)^{2}=4\).

Example 2: Solve the equation \(x^{2}=16\).

  1. Move all terms to one side: \(x^{2}-16=0\).
  2. Factor using the difference of squares: \((x-4)(x+4)=0\).
  3. Set each factor equal to zero: \(x-4=0\) or \(x+4=0\).
  4. We obtain the solutions: \(x=4\) or \(x=-4\).

Test tips: Remember that the square of any real number is non-negative, so \(x^{2}\geq0\) always holds. When solving equations of the form \(x^{2}=k\) with \(k\geq0\), the solution is \(x=\pm\sqrt{k}\). Always check the sign of the number before squaring it.


Figure 2: Linear function

A linear function is defined in the form \(f(x)=mx+b\), where \(m\) is the slope and \(b\) is the y-intercept. In the given figure, we have \(f(x)=2x+1\), so the slope \(m=2\) and the intercept \(b=1\). Since \(m>0\), the function is strictly increasing over its entire domain \(\mathbb{R}\). The line passes through the point \((0,1)\) because when \(x=0\), we get \(f(0)=1\). It also passes through the point \((1,3)\) because \(f(1)=2\times1+1=3\). The domain is \(\mathbb{R}\) and the range is also \(\mathbb{R}\), since a non-horizontal line covers all real values.

Example 1: Calculate the value of \(f(-1)\)and\(f(4)\)for the function\(f(x)=2x+1\).

  1. Substitute \(x=-1\): \(f(-1)=2\times(-1)+1=-2+1=-1\).
  2. Substituting \(x=4\): \(f(4)=2\times4+1=8+1=9\).

Example 2: Find the value of x for which f(x)=11.

  1. Substituting \(f(x)=11\) into the equation: \(2x+1=11\).
  2. Subtracting 1 from both sides: \(2x=10\).
  3. Dividing both sides by 2: \(x=5\).

Test tips: When evaluating a linear function, substitute the given value into \(x\) and perform multiplication before addition according to the order of operations. When solving a linear equation, isolate the term containing the variable using inverse operations by adding or subtracting the constant first, then divide by the coefficient.


Figure 3: The inverse function

The function \(f(x)=2x-3\) is a linear function with slope \(2\) and y-intercept \(-3\). Since the slope is nonzero, the function is one-to-one and has an inverse. To find the inverse \(f^{-1}(x)\), substitute \(y=f(x)\), then solve for \(x\) in terms of \(y\), and finally swap \(x\) and \(y\) to obtain \(f^{-1}(x)\).

Steps to find the inverse:

  1. Write \(y=2x-3\).
  2. Add 3 to both sides: \(y+3=2x\).
  3. Divide both sides by 2: \(x=\frac{y+3}{2}\).
  4. Substitute \(x\) and \(y\) to get the inverse: \(f^{-1}(x)=\frac{x+3}{2}\).

The graphs of the function and its inverse are symmetric with respect to the line \(y=x\), because the inverse reflects points across this line. For example, the point \((1,-1)\) lies on \(f(x)\) since \(f(1)=2\times1-3=-1\), and its inverse point \((-1,1)\) lies on \(f^{-1}(x)\) since \(f^{-1}(-1)=\frac{-1+3}{2}=1\).

Example 1: Compute \(f(0)\) and \(f^{-1}(3)\).

  1. Substitute \(x=0\) into \(f(x)=2x-3\): \(f(0)=2\times0-3=-3\).
  2. Substitute \(x=3\) into \(f^{-1}(x)=\frac{x+3}{2}\): \(f^{-1}(3)=\frac{3+3}{2}=\frac{6}{2}=3\).

Example 2: Verify that \(f(f^{-1}(x))=x\) for all \(x\).

  1. Substitute \(f^{-1}(x)\) into \(f\): \(f(f^{-1}(x))=2\left(\frac{x+3}{2}\right)-3\).
  2. We simplify inside the parentheses: \(2\times\frac{x+3}{2}=x+3\).
  3. We obtain: \(f(f^{-1}(x))=(x+3)-3=x\).
  4. Thus the condition is satisfied.

Test tips: To verify that a function has an inverse, ensure it is strictly increasing or strictly decreasing (i.e., the slope is non-zero for linear functions). When finding the inverse, isolate the variable \(x\) step by step using inverse operations, then swap the variables. After obtaining the expression for the inverse, you can check by confirming that \(f(f^{-1}(x))=x\) and \(f^{-1}(f(x))=x\).

Comparison Tables

Comparison: Types of Functions

TypeGraphBehavior
LinearStraight lineIncreasing (\(m>0\)), Decreasing (\(m<0\))
QuadraticParabolaHas a vertex (max/min)
RationalHyperbolaAsymptotic Lines

Comparison: Domain vs Range

PropertyDomainRange
MeaningAllowed input x-valuesResulting y-values
On the axisx-axis (horizontal)y-axis (vertical)

Definition of functions, domain, and range

A function is a relation between two sets such that each element of the first set (the domain) corresponds to exactly one element of the second set (the range). A function is usually denoted by \(f\), and we write \(y=f(x)\), where \(x\) is an independent variable belonging to the domain, and \(y\) is a dependent variable belonging to the range.

Rule 1: Determining the domain of algebraic functions

To find the domain, we exclude values that make the expression undefined. The most common cases are:

Example 1: Domain of the function \(f(x)=\frac{2x+1}{x^{2}-4}\)

Solution: Step by step

  1. We identify the denominator: \(x^{2}-4\).
  2. Set the denominator equal to zero to find the prohibited values: \(x^{2}-4=0\).
  3. Solve the equation: \(x^{2}=4\), so \(x=2\) or \(x=-2\).
  4. Exclude these two values from the set of real numbers.
  5. Thus the domain is all real numbers except \(2\) and \(-2\).

Result: \(\displaystyle \text{domain}= \mathbb{R}\setminus\{-2,2\}\) or with commas: \((-∞,-2)\cup(-2,2)\cup(2,∞)\).

Example 2: Domain of the function \(g(x)=\sqrt{3x-6}\)

Solution: Step by step

  1. We set the expression under the square root greater than or equal to zero: \(3x-6\geq 0\).
  2. Solve the inequality: \(3x\geq 6\) Thus \(x\geq 2\).
  3. Therefore the domain is all real numbers greater than or equal to \(2\).

Result: \(\displaystyle \text{domain}=[2,∞)\).

Rule 2: Determining the range of quadratic functions

The quadratic function in standard form \(f(x)=ax^{2}+bx+c\) has its vertex at \(x=-\frac{b}{2a}\). If \(a>0\), the vertex is the minimum point (minimum); if \(a<0\), the vertex is the maximum point (maximum).

Example 3: Range of the function \(h(x)=-2x^{2}+8x-5\)

Solution: Step by step

  1. We determine the coefficients: \(a=-2\), \(b=8\), \(c=-5\).
  2. We compute the axis of symmetry: \(x=-\frac{b}{2a}=-\frac{8}{2(-2)}=-\frac{8}{-4}=2\).
  3. Substituting \(x=2\) into the function to find the maximum value: \(h(2)=-2(2)^{2}+8(2)-5=-2\cdot4+16-5=-8+16-5=3\).
  4. Since \(a=-2<0\), the vertex is the highest point, so the range is all values less than or equal to \(3\).

Result: \(\displaystyle \text{range}=(-∞,3]\).

Example 4: Range of the function \(k(x)=x^{2}-4x+7\)

Solution: Step by step

  1. We determine the coefficients: \(a=1\), \(b=-4\), \(c=7\).
  2. We compute the axis of symmetry: \(x=-\frac{b}{2a}=-\frac{-4}{2(1)}=\frac{4}{2}=2\).
  3. Substituting \(x=2\) into the function: \(k(2)=(2)^{2}-4(2)+7=4-8+7=3\).
  4. Since \(a=1>0\), the vertex is the lowest point, so the range is all values greater than or equal to \(3\).

Result: \(\displaystyle \text{range}=[3,∞)\)

List of "Common Mistakes" with correction of each mistake

Test Tips

CSCA Tips and Common Mistakes

Before performing any operation on a function, its domain must be determined precisely, because the domain defines the set of values that the function can accept as inputs. If this condition is ignored, we may reach undefined or incorrect results, such as division by zero or taking the square root of a negative number in the set of real numbers.

Example 1: Finding the domain of the function \( f(x) = \frac{1}{x^2 - 4} \)

  1. We set the denominator: \( x^2 - 4 \).
  2. We set the denominator ≠ 0: \( x^2 - 4 \neq 0 \).
  3. Solving the equation: \( x^2 \neq 4 \) → \( x \neq 2 \) and \( x \neq -2 \).
  4. Therefore, the domain is: \( (-\infty, -2) \cup (-2, 2) \cup (2, \infty) \).

Example 2: Finding the domain of the function \( g(x) = \sqrt{5 - 2x} \)

  1. We set the expression under the root ≥ 0: \( 5 - 2x \geq 0 \).
  2. Solving the inequality: \( -2x \geq -5 \) → \( x \leq \frac{5}{2} \).
  3. So the field is: \( (-\infty, \frac{5}{2}] \).

The inverse function is not the reciprocal.

The symbol \( f^{-1}(x) \) never means \( \frac{1}{f(x)} \), but represents the inverse function that cancels the effect of the original function, i.e., it satisfies the conditions: \( f(f^{-1}(x)) = x \) and \( f^{-1}(f(x)) = x \) for every \( x \) in the appropriate domain, whereas the reciprocal \( \frac{1}{f(x)} \) is merely a multiplicative inverse and has no relation to the functional inverse.

Example 1: Prove that \( f^{-1}(x) \neq \frac{1}{f(x)} \) for the function \( f(x) = 2x + 3 \)

  1. We compute the inverse: set \( y = 2x + 3 \), then swap the variables: \( x = 2y + 3 \).
  2. Solve for \( y \): \( 2y = x - 3 \) → \( y = \frac{x - 3}{2} \).
  3. Thus \( f^{-1}(x) = \frac{x - 3}{2} \).
  4. We compute the reciprocal: \( \frac{1}{f(x)} = \frac{1}{2x + 3} \).
  5. Compare: \( \frac{x - 3}{2} \neq \frac{1}{2x + 3} \) in general, for instance at \( x = 0 \): \( f^{-1}(0) = -\frac{3}{2} \), while \( \frac{1}{f(0)} = \frac{1}{3} \).

Example 2: For the function \( f(x) = x^2 \) (with \( x \geq 0 \))

  1. We compute the inverse: \( y = x^2 \) → \( x = \sqrt{y} \) (we take the positive root because \( x \geq 0 \)).
  2. Thus \( f^{-1}(x) = \sqrt{x} \).
  3. We compute the reciprocal: \( \frac{1}{f(x)} = \frac{1}{x^2} \).
  4. At \( x = 4 \): \( f^{-1}(4) = 2 \), while \( \frac{1}{f(4)} = \frac{1}{16} \), clearly not equal.

Horizontal Line Test

This test is used to determine whether a function is one-to-one (i.e., each value in the domain corresponds to exactly one value in the range, and each value in the range comes from exactly one value in the domain), which is a necessary condition for the existence of an inverse function. If any horizontal line intersects the graph of the function more than once, then the function is not one-to-one and therefore does not have an inverse over its entire domain.

Example 1: Applying the Horizontal Line Test to \( f(x) = x^2 \)

  1. We graph the function \( f(x) = x^2 \), which is an upward-opening parabola.
  2. We consider the horizontal line \( y = 4 \): it intersects the curve at \( x = -2 \) and \( x = 2 \), that is, two points.
  3. Thus the horizontal line intersects the curve more than once → the function is not one-to-one on \( \mathbb{R} \).
  4. But if we restrict the domain to \( [0, \infty) \), then the line \( y = 4 \) intersects at \( x = 2 \) only → it becomes one-to-one.

Example 2: Applying the horizontal line test to \( f(x) = 2x + 1 \)

  1. The function is linear and strictly increasing.
  2. Any horizontal line \( y = c \) intersects the line at exactly one point: \( x = \frac{c - 1}{2} \).
  3. Thus the test succeeds → the function is one-to-one on \( \mathbb{R} \) and therefore has an inverse.

In function composition: compute the inner function first, then the outer function.

When computing the value of the composite function \( (f \circ g)(x) = f(g(x)) \), you must first evaluate the inner function \( g(x) \) at the input \( x \), then use the result as the input to the outer function \( f \). This order is essential because the operation is not commutative: \( f(g(x)) \) is generally not equal to \( g(f(x)) \).

Example 1: Compute \( (f \circ g)(x) \) where \( f(x) = x^2 \) and \( g(x) = x + 1 \).

  1. We compute the inside first: \( g(x) = x + 1 \).
  2. We substitute the result into the outside: \( f(g(x)) = f(x + 1) \).
  3. We apply the rule \( f \): \( f(x + 1) = (x + 1)^2 \).
  4. We expand if needed: \( (x + 1)^2 = x^2 + 2x + 1 \).
  5. Thus \( (f \circ g)(x) = x^2 + 2x + 1 \).

Example 2: Compute \( (g \circ f)(x) \) for the same functions to compare order

  1. We compute the inside first: \( f(x) = x^2 \).
  2. We substitute the result into the outside: \( g(f(x)) = g(x^2) \).
  3. We apply the rule \( g \): \( g(x^2) = x^2 + 1 \).
  4. Thus \( (g \circ f)(x) = x^2 + 1 \).

We observe that \( (f \circ g)(x) = x^2 + 2x + 1 \neq x^2 + 1 = (g \circ f)(x) \), which proves that composition is not commutative.

Common Mistakes

Error Correction Explanation
Confusing \( f^{-1}(x) \) with \( \frac{1}{f(x)} \) Functional inverse ≠ reciprocal The inverse satisfies \( f(f^{-1}(x)) = x \), while the reciprocal is \( \frac{1}{f(x)} \) and only satisfies this property in very special cases.
Confusing \( (f \circ g)(x) \) with \( (g \circ f)(x) \) Always compute from the inside out In \( (f \circ g)(x) \), the inner function is \( g \) and the outer function is \( f \); reversing the order completely changes the result.
Forgetting to exclude zero denominators in rational functions Denominator ≠ 0 is a fundamental condition for the expression. If we do not exclude values that make the denominator zero, we obtain undefined expressions, leading to incorrect answers on the test.
Finding the inverse without verifying the one-to-one property Use the horizontal line test first, or restrict the domain if necessary If the function is not one-to-one, its inverse does not exist as a function over the entire original domain; we may need to restrict the domain (e.g., for \( x^2 \), we take \( x \geq 0 \)).
Applying the square root to both sides without considering the sign When solving \( x^2 = a \), the solution is \( x = \pm \sqrt{a} \) only if there are no domain restrictions In the context of finding an inverse, if the original domain is restricted (e.g., \( x \geq 0 \)), we take only the positive root; ignoring this leads to an incorrect inverse.

Test tips

Additional Exercises with Solutions

Exercise 1: Domain of a Radical Function

To find the domain of the function \(f(x) = \sqrt{x^2 - x - 6}\), the expression under the radical must be non-negative, i.e., \(x^2 - x - 6 \ge 0\).

Solution: We solve the inequality \(x^2 - x - 6 \ge 0\). Factoring the expression: \(x^2 - x - 6 = (x - 3)(x + 2)\). Thus the inequality becomes \((x - 3)(x + 2) \ge 0\). We find the critical points: \(x = -2\) and \(x = 3\). We analyze the sign on the number line intervals: \((-\infty, -2)\), \((-2, 3)\), \((3, \infty)\). Testing the sign of the product in each interval: in \((-\infty, -2)\), both factors are negative → product positive. In \((-2, 3)\), the factor \(x+2\) is positive and \(x-3\) is negative → product negative. In \((3, \infty)\), both factors are positive → product positive. Since the inequality includes equality, we include the points \(-2\) and \(3\). Therefore, the domain is \((-\infty, -2] \cup [3, \infty)\).

Step-by-Step Solved Examples:

  1. Example: Compute \(f(-4)\) for the function \(f(x) = \sqrt{x^2 - x - 6}\).
    • Step 1: Substitute \(x = -4\) into the expression under the radical: \((-4)^2 - (-4) - 6 = 16 + 4 - 6 = 14\).
    • Step 2: Verify that \(14 \ge 0\) → true.
    • Step 3: Compute the square root: \(\sqrt{14}\).
    • Result: \(f(-4) = \sqrt{14}\).
  2. Example: Compute \(f(0)\) for the same function.
    • Step 1: Substitute \(x = 0\): \(0^2 - 0 - 6 = -6\).
    • Step 2: We check that \(-6 \ge 0\) → false, so the square root cannot be computed in the real numbers.
    • Step 3: Therefore \(f(0)\) is undefined.
    • Result: \(f(0)\) is undefined.

Common Mistakes:

Test Tips:


Exercise 2: Composition of Functions

Given \(f(x) = \sqrt{x}\) and \(g(x) = x^2 - 1\), we want to find \((f \circ g)(x) = f(g(x))\) and its domain.

Solution: Substitute \(g(x)\) into \(f\): \((f \circ g)(x) = f(g(x)) = \sqrt{g(x)} = \sqrt{x^2 - 1}\). To find the domain, the expression under the radical must be non-negative: \(x^2 - 1 \ge 0\). Solve the inequality: \(x^2 - 1 = (x - 1)(x + 1) \ge 0\). The critical points are \(x = -1\) and \(x = 1\). Analyze the number line: \((-\infty, -1)\), \((-1, 1)\), \((1, \infty)\). Test the sign: In \((-\infty, -1)\), both factors are negative → product positive. In \((-1, 1)\), the factor \(x+1\) is positive and \(x-1\) is negative → product negative. In \((1, \infty)\), both factors are positive → product positive. Since the inequality includes equality, include the points \(-1\) and \(1\). Thus the domain is \((-\infty, -1] \cup [1, \infty)\).

Step-by-Step Solved Examples:

  1. Example: Compute \((f \circ g)(-2)\) for the functions \(f(x) = \sqrt{x}\) and \(g(x) = x^2 - 1\).
    • Step 1: Compute \(g(-2) = (-2)^2 - 1 = 4 - 1 = 3\).
    • Step 2: Substitute into \(f\): \(f(g(-2)) = f(3) = \sqrt{3}\).
    • Step 3: We verify that \(3 \ge 0\) → true, so the value is defined.
    • Result: \((f \circ g)(-2) = \sqrt{3}\).
  2. Example: Compute \((f \circ g)(0)\) for the same functions.
    • Step 1: We compute \(g(0) = 0^2 - 1 = -1\).
    • Step 2: Substitute into \(f\): \(f(g(0)) = f(-1) = \sqrt{-1}\).
    • Step 3: We check that \(-1 \ge 0\) → false, so \(f(-1)\) is undefined in the real numbers.
    • Step 4: Therefore, \((f \circ g)(0)\) is undefined.
    • Result: \((f \circ g)(0)\) is undefined.

Common Mistakes:

Test Tips:


Exercise 3: Inverse Function

We want to find the inverse of the function \(f(x) = 2x^2 + 1\) under the condition \(x \ge 0\).

Solution:We set \(y = f(x) = 2x^2 + 1\). Swapping the variables to solve for \(x\): \(x = 2y^2 + 1\). Solving for \(y\): subtract 1 from both sides: \(x - 1 = 2y^2\). Divide by 2: \(\frac{x - 1}{2} = y^2\). Take the square root of both sides: \(y = \pm \sqrt{\frac{x - 1}{2}}\). Since the original function is defined for \(x \ge 0\), its values are \(y = f(x) \ge f(0) = 1\), and its inverse must yield non-negative values (because \(x \ge 0\) in the original), so we take the positive root: \(y = \sqrt{\frac{x - 1}{2}}\). Thus, \(f^{-1}(x) = \sqrt{\frac{x - 1}{2}}\). To determine the domain of the inverse, note that the expression under the square root must be non-negative: \(\frac{x - 1}{2} \ge 0 \Rightarrow x - 1 \ge 0 \Rightarrow x \ge 1\). Additionally, the domain of the inverse is the range of the original function, which is \([1, \infty)\) because \(x \ge 0 \Rightarrow f(x) \ge 1\). Hence the domain is \(x \ge 1\).

Step-by-step solved examples:

  1. Example: Compute \(f^{-1}(3)\) for the function \(f(x) = 2x^2 + 1\) with \(x \ge 0\).
    • Step 1: Substitute \(x = 3\) into the inverse formula: \(f^{-1}(3) = \sqrt{\frac{3 - 1}{2}} = \sqrt{\frac{2}{2}} = \sqrt{1}\).
    • Step 2: Compute the square root: \(\sqrt{1} = 1\).
    • Step 3: We verify that \(3 \ge 1\) → true, so the value is defined.
    • Result: \(f^{-1}(3) = 1\).
  2. Example: Compute \(f^{-1}(0)\) for the same function.
    • Step 1: Substitute \(x = 0\) into the inverse formula: \(f^{-1}(0) = \sqrt{\frac{0 - 1}{2}} = \sqrt{-\frac{1}{2}}\).
    • Step 2: We observe that the expression under the square root is negative: \(-\frac{1}{2} < 0\).
    • Step 3: The square root of a negative number is undefined in the real numbers.
    • Step 4: Therefore, \(f^{-1}(0)\) is undefined.
    • Result: \(f^{-1}(0)\) is undefined.

Common Mistakes:

Test Tips:


Exercise 4: Classifying Functions

We want to classify the following functions according to symmetry: \(f(x) = x^4 - x^2\), \(g(x) = x^3 - x\), \(h(x) = x^2 + x\).

Solution:A function is even if \(f(-x) = f(x)\) holds for every \(x\) in its domain. A function is odd if \(f(-x) = -f(x)\) holds for every \(x\) in its domain. If neither condition is satisfied, the function is neither even nor odd.

For the function \(f(x) = x^4 - x^2\), we compute \(f(-x) = (-x)^4 - (-x)^2 = x^4 - x^2 = f(x)\). Since \(f(-x) = f(x)\), it follows that \(f\) is even.

For the function \(g(x) = x^3 - x\), we compute \(g(-x) = (-x)^3 - (-x) = -x^3 + x = -(x^3 - x) = -g(x)\). Since \(g(-x) = -g(x)\), it follows that \(g\) is odd.

For the function \(h(x) = x^2 + x\), we compute \(h(-x) = (-x)^2 + (-x) = x^2 - x\). Comparing with \(h(x) = x^2 + x\), clearly \(x^2 - x \neq x^2 + x\) (except when \(x = 0\)), and comparing with \(-h(x) = -(x^2 + x) = -x^2 - x\), we find \(x^2 - x \neq -x^2 - x\) (except when \(x = 0\)). Since neither condition holds for all \(x\), it follows that \(h\) is neither even nor odd.

Thus: \(f\) is even, \(g\) is odd, \(h\) is neither even nor odd.

Step-by-step solved examples:

  1. Example: Verify that \(f(x) = x^4 - x^2\) is even using a specific value, say \(x = 2\).
    • Step 1: Compute \(f(2) = 2^4 - 2^2 = 16 - 4 = 12\).
    • Step 2: Compute \(f(-2) = (-2)^4 - (-2)^2 = 16 - 4 = 12\).
    • Step 3: Since \(f(-2) = f(2)\), this supports that the function is even (though we need to verify for all \(x\), as done in the general solution).
    • Result: \(f(-2) = f(2) = 12\).
  2. Example: Verify that \(h(x) = x^2 + x\) is not odd using \(x = 1\).
    • Step 1: Compute \(h(1) = 1^2 + 1 = 1 + 1 = 2\).
    • Step 2: Compute \(h(-1) = (-1)^2 + (-1) = 1 - 1 = 0\).
    • Step 3: To compute \(-h(1)\): \(-h(1) = -2\).
    • Step 4: Compare: \(h(-1) = 0\) and \(-h(1) = -2\). Since \(0 \neq -2\), the condition \(h(-x) = -h(x)\) does not hold at \(x = 1\).
    • Step 5: As seen in the general solution, the even condition also fails. Therefore, the function is neither even nor odd.
    • Result: \(h(-1) \neq h(1)\) and \(h(-1) \neq -h(1)\), so it is neither even nor odd.

Common Mistakes:

Test tips:


Exercise 5: Application

Given \(f(x) = 3x - 5\), we want to compute \(f(2)\) and \(f(a+1)\).

Solution:To compute \(f(2)\), substitute \(x = 2\) into the function expression: \(f(2) = 3 \times 2 - 5\). Perform multiplication first: \(3 \times 2 = 6\). Then subtract 5: \(6 - 5 = 1\). Thus \(f(2) = 1\).

To compute \(f(a+1)\), substitute \(x = a+1\) into the function expression: \(f(a+1) = 3 \times (a+1) - 5\). Apply the distributive property: \(3 \times (a+1) = 3 \times a + 3 \times 1 = 3a + 3\). Then subtract 5: \(3a + 3 - 5 = 3a - 2\). Hence \(f(a+1) = 3a - 2\).

Step-by-step solved examples:

  1. Example: Compute \(f(-1)\) for the function \(f(x) = 3x - 5\).
    • Step 1: Substitute \(x = -1\): \(f(-1) = 3 \times (-1) - 5\).
    • Step 2: Compute the multiplication: \(3 \times (-1) = -3\).
    • Step 3: Subtract 5: \(-3 - 5 = -8\).
    • Result: \(f(-1) = -8\).
  2. Example: Compute \(f(0)\) for the same function.
    • Step 1: Substitute \(x = 0\): \(f(0) = 3 \times 0 - 5\).
    • Step 2: Compute the multiplication: \(3 \times 0 = 0\).
    • Step 3: Subtract 5: \(0 - 5 = -5\).
    • Result: \(f(0) = -5\).

Common Mistakes:

Test Tips:


Practise this lesson

Free · three languages · works offline

CSCA Academy — Independent CSCA exam preparation. الدروس · CSCA