Real-Valued Functions
A real-valued function of a real variable, also called a scalar function, is a rule of correspondence that assigns to each real number in a domain set a unique real number in a codomain set. Unlike a general mathematical function, both the inputs and the outputs here belong exclusively to the set of real numbers (\(\mathbb{R}\)).
Formally, if A and B are two non-empty subsets of the real numbers, a real function f is expressed using the notation:
$$f: A \subseteq \mathbb{R} \rightarrow B \subseteq \mathbb{R}$$
This expression is read as "f is a function defined from A to B, where A and B are subsets of real numbers." In many calculus textbooks, \(B = \mathbb{R}\) is taken by default, writing simply \(f: A \subseteq \mathbb{R} \rightarrow \mathbb{R}\).
Three sets and two types of variables are involved in this relationship:
- Domain (A): the set of all real numbers for which the function is defined. Its elements are usually represented by the letter x, called the independent variable or input.
- Codomain (B): the target set containing all possible output values.
- Range: the subset of the codomain consisting solely of all the outputs obtained by applying the rule of correspondence. Its values are represented by y, called the dependent variable because its result depends on the value chosen for x.

Table of Contents
Notation and Evaluating Real Functions
To express a scalar function using a mathematical formula, the equation y = f(x) is used, where f is the name of the function and f(x) (read as "f of x") represents the numerical value or output corresponding to each element x in the domain.
It is important not to confuse these two symbols: f designates the entire rule relating the two sets, whereas f(x) is a specific real number belonging to the range. For example, in the expression \(f(x) = 6x^2 + x + 1\), this notation directly tells us four things:
- The name of the function is f.
- The independent variable is x.
- The dependent variable is f(x) (which can also be written as y).
- The rule to obtain the output for any x consists of squaring that number, multiplying it by 6, adding the number itself, and finally adding 1.
Although the letters f and x are the most common, the same relationship can be written with other symbols without changing its mathematical meaning. For instance, the equations \(f(x) = x^2 - 4x + 5\), \(g(t) = t^2 - 4t + 5\), and \(h(s) = s^2 - 4s + 5\) define the exact same rule of correspondence.
Evaluating a function means calculating the output value y that corresponds to a specific input value x. To do this safely, it is helpful to think of the independent variable as an empty placeholder in parentheses: \(f(\quad) = 6(\quad)^2 + (\quad) + 1\). When substituting the variable with a number or an algebraic expression, we place that value inside each set of parentheses.
Example 1
Calculate the value of \(f(-2)\) for the real function \(f(x) = 6x^2 + x + 1\).
To evaluate the function at \(x = -2\), we replace each occurrence of the variable x with \(-2\), keeping the parentheses to avoid sign errors:
$$f(-2) = 6(-2)^2 + (-2) + 1$$
First, we evaluate the exponent, and then perform the multiplications and additions:
$$f(-2) = 6 \cdot 4 - 2 + 1 = 24 - 2 + 1 = 23$$
Therefore, the value of the function at \(-2\) is \(23\), which means the point \((-2, 23)\) lies on the graph of the function.
Example 2
Find the simplified expression for \(g(a + 1)\) given that \(g(x) = x^2 - 3x + 2\).
In this case, we evaluate the function at an algebraic expression rather than a single number. We substitute each x with \((a + 1)\):
$$g(a + 1) = (a + 1)^2 - 3(a + 1) + 2$$
We expand the squared binomial and apply the distributive property:
$$g(a + 1) = (a^2 + 2a + 1) - 3a - 3 + 2$$
Combine like terms to reach the final result:
$$g(a + 1) = a^2 - a$$
Ways to Represent a Real Function
The same real-valued function of a real variable can be expressed in four different ways depending on the context of the problem or the available information. Understanding these representations allows you to switch between them to analyze the behavior of the relationship more easily.
1. Verbal Representation
This consists of describing in words the rule of correspondence that transforms each real input number into its respective output. This is how applied word problems usually appear before being translated into symbolic language.
For example, to verbally express the relationship that assigns to each real number twice its value increased by three, the natural language description establishes two successive operations on any real input value: multiply it by two and add three to the result.
2. Algebraic or Analytical Representation
This uses a mathematical formula or equation linking the independent variable x with the dependent variable y. It is the most widely used representation in calculus because it allows you to evaluate any point in the domain and apply algebraic tools.
Example
Translating the description from the previous verbal example into mathematical symbols, we obtain the equation of a linear function:
$$f(x) = 2x + 3$$
Sometimes a function can also be piecewise-defined, using different formulas depending on the interval to which the value of x belongs.
Additionally, an equation can be presented in explicit form, when the dependent variable is isolated in the form \(y = f(x)\) (such as \(y = 2x + 3\)), or in implicit form, when both variables appear mixed on the same side of the equation (such as \(2x - y + 3 = 0\)) and solving for y is required to identify the rule of correspondence.
3. Numerical or Tabular Representation
This consists of organizing a finite set of ordered pairs (x, y) into a table of values. This form is especially useful when data come from experimental measurements or when obtaining reference points before sketching a graph.
Example
Construct a table of values for \(f(x) = 2x + 3\) by evaluating five integers from the domain.
By substituting each selected value of x into the formula, we complete the following table:
| x | f(x) = 2x + 3 | Ordered Pair (x, y) |
|---|---|---|
| −2 | −1 | (−2, −1) |
| −1 | 1 | (−1, 1) |
| 0 | 3 | (0, 3) |
| 1 | 5 | (1, 5) |
| 2 | 7 | (2, 7) |
4. Graphical Representation
This consists of plotting all ordered pairs (x, f(x)) as points on a Cartesian plane. It allows you to visualize trends such as intervals of increase, maxima, minima, and intercepts with the coordinate axes.
Example
Graph the function \(f(x) = 2x + 3\) using the points obtained in the table.
By plotting the points on the Cartesian plane and connecting them with a continuous line (since the domain spans all real numbers), we obtain an increasing line:
Domain and Range
When studying a real function, the first step is to identify which real numbers can be entered as inputs and which values are obtained as outputs. When the codomain is not explicitly specified in the definition of a real function, by standard convention it is assumed to be the entire set of real numbers (ℝ).
Domain
The domain of a function f is the set of all real numbers for which the rule of correspondence is defined and produces a real result. It is commonly denoted as \(D_f\) or \(\text{Dom}(f)\):
$$D_f = \{x \in \mathbb{R} \mid \exists\, f(x) \in \mathbb{R}\}$$
Depending on how the function is presented, we distinguish two situations:
- Explicit domain: stated upfront alongside the formula, either by a mathematical condition or by the physical constraints of an applied problem.
- Implied or natural domain: when no restriction is specified, the domain is the largest subset of real numbers for which the algebraic expression makes sense and does not produce undefined operations.
To determine the natural domain from a formula, we must exclude values of x that cause invalid operations within the real numbers:
| Operation in the Formula | Condition in ℝ | Restriction to Avoid |
|---|---|---|
| Fraction \(\dfrac{P(x)}{Q(x)}\) | \(Q(x) \neq 0\) | Division by zero |
| Even-index root \(\sqrt[2n]{P(x)}\) | \(P(x) \ge 0\) | Negative radicand |
| Logarithm \(\log_b(P(x))\) | \(P(x) > 0\) | Zero or negative argument |
Example 1
Identify the domain of the functions \(f(x) = \dfrac{1}{x^2 - 4}\) with \(4 \le x \le 5\), and \(g(x) = \dfrac{1}{x - 1}\).
We analyze each case depending on whether the domain is given or must be deduced from the equation:
- In f(x), the problem statement explicitly restricts the allowed values to between 4 and 5 (none of which make the denominator zero). Therefore, its domain is \(D_f = \{x \in \mathbb{R} \mid 4 \le x \le 5\} = [4, 5]\).
- In g(x), there is no prior restriction, so we find its natural domain. Since the denominator cannot equal zero, we set \(x - 1 \neq 0\), which gives \(x \neq 1\). Thus, the domain is \(D_g = \mathbb{R} \setminus \{1\} = (-\infty, 1) \cup (1, \infty)\).
Example 2
Determine the natural domain of the radical function \(h(x) = \sqrt{2x - 6}\).
Since this is a square root (even index), we require the expression inside to be greater than or equal to zero to obtain real outputs:
$$2x - 6 \ge 0$$
Solve for the variable x by adding 6 and dividing both sides by 2:
$$2x \ge 6 \implies x \ge 3$$
Consequently, the function accepts any real number greater than or equal to 3, that is, \(D_h = [3, \infty)\).
Range
The range or image set of a function f is the set of all real numbers y actually obtained by evaluating the function at every element of its domain. It is symbolized by \(R_f\) or \(\text{Im}(f)\):
$$R_f = \{y \in \mathbb{R} \mid \exists\, x \in D_f \text{ such that } y = f(x)\}$$
To find the range algebraically, we typically analyze the properties of the expression (such as even powers or radicals) or solve for x in terms of y to observe which output values yield a real x within the domain.
Example
Find the range of the real functions \(f(x) = x^2\) and \(g(x) = -3x + 5\).
We examine the possible values that the dependent variable y can take in each expression:
- For \(f(x) = x^2\), any real number squared produces a positive result or zero (\(x^2 \ge 0\)). For this reason, the range spans all real numbers from zero to infinity: \(R_f = \{y \in \mathbb{R} \mid y \ge 0\} = [0, \infty)\).
- For \(g(x) = -3x + 5\), solving for x gives \(x = \dfrac{5 - y}{3}\). This expression yields a valid real number for any value chosen for y, so \(R_g = \mathbb{R}\).
Graphs of Real Functions
Real-valued functions of a real variable are visually represented on a two-dimensional Cartesian coordinate system. The domain is placed along the horizontal axis (the x-axis) and the range along the vertical axis (the y-axis). Since both axes consist of real numbers, this plane is symbolized by \(\mathbb{R} \times \mathbb{R}\), or simply \(\mathbb{R}^2\).
The graph of a function f is the set of all points (x, y) in the Cartesian plane such that x belongs to the domain of the function and \(y = f(x)\). It is denoted by \(G_f\) and formally defined as:
$$G_f = \{(x, y) \in \mathbb{R}^2 \mid x \in D_f \land y = f(x)\}$$
Analyzing the curve plotted on the plane allows you to visually interpret the behavior of the relationship. Because the second coordinate of each point equals the value \(y = f(x)\), we can read the output of any number in the domain directly from the graph.

Similarly, projecting the graph onto the coordinate axes allows you to identify the domain and range without performing algebraic calculations: the domain corresponds to the interval covered by the curve along the horizontal axis, while the range spans the vertical extent along the y-axis.

Vertical Line Test
Although every real function generates a curve or set of points in the plane, not every curve drawn in \(\mathbb{R}^2\) corresponds to a function. For a graph to represent a function, each element x in the domain must have a unique associated output y.
This geometric criterion is known as the Vertical Line Test: a curve in the Cartesian plane is the graph of a function if and only if no vertical line intersects it at more than one point. If there is at least one vertical line that intersects the curve at two or more points, then the same input value x would have multiple outputs, violating the definition of a function.
Be careful not to confuse this criterion with horizontal lines: the definition of a function requires that each input value x has a unique output y, but it does allow two or more distinct values in the domain to share the same output. For example, in \(f(x) = x^2\), both \(f(-2) = 4\) and \(f(2) = 4\) hold true, while in a constant function like \(g(x) = 3\), all real numbers have the exact same output.
Intercepts with the Coordinate Axes
When analyzing or sketching the graph of a real function, it is helpful to locate the points where the curve crosses the Cartesian axes:
- y-intercept: occurs when \(x = 0\). Due to the uniqueness of the output, a function can cross the vertical axis at most once, at the point \((0, f(0))\), provided zero belongs to the domain.
- x-intercepts (zeros or roots): correspond to the points where the height of the graph is zero, that is, \(y = 0\). Any real number a in the domain that satisfies \(f(a) = 0\) is called a zero or root of the function, and produces an intercept at \((a, 0)\). A function may have one, several, or no zeros.
Main Types of Real Functions and Their Graphs
Below, we analyze the most common families of real-valued functions of a real variable along with their algebraic characteristics, domain, range, and intercepts with the Cartesian axes.
Linear Functions
A linear function has the form \(f(x) = mx + b\), where m and b are real numbers. The coefficient m indicates the slope or steepness of the line, and b determines the y-intercept. If \(m \neq 0\), both the domain and range span all real numbers (\(\mathbb{R}\)); if \(m = 0\), it produces a horizontal constant function whose range reduces to \(\{b\}\).
Example
Analyze the domain, range, and axis intercepts of the function \(f(x) = 2x - 4\).
Since this is a first-degree polynomial without algebraic restrictions, we have \(D_f = \mathbb{R}\) and \(R_f = \mathbb{R}\). Next, we calculate its intercepts:
- y-intercept: evaluate \(f(0) = 2(0) - 4 = -4\), obtaining the point \((0, -4)\).
- x-intercept: solve \(2x - 4 = 0 \implies x = 2\), so the zero of the function is at \((2, 0)\).
Quadratic Functions
A quadratic function has the form \(f(x) = ax^2 + bx + c\), where a, b, and c are real numbers with \(a \neq 0\). Its graph is a vertical parabola that opens upward if \(a > 0\) or downward if \(a < 0\). Its domain is \(D_f = \mathbb{R}\), and its range is bounded by the y-coordinate \(y_v\) of the vertex.
Example
Determine the main features of the quadratic function \(f(x) = x^2 - 2x - 3\).
The domain is \(D_f = \mathbb{R}\). To find the range, we calculate the x-coordinate of the vertex using \(x_v = -\dfrac{b}{2a} = -\dfrac{-2}{2(1)} = 1\), and evaluate \(y_v = f(1) = 1^2 - 2(1) - 3 = -4\). Since \(a = 1 > 0\), the parabola opens upward and its range is \(R_f = [-4, \infty)\). Its intercepts are:
- y-intercept: \(f(0) = -3\), so it crosses the vertical axis at \((0, -3)\).
- x-intercepts: factor \(x^2 - 2x - 3 = (x - 3)(x + 1) = 0\), finding two zeros at \((-1, 0)\) and \((3, 0)\).
Cubic Functions
A cubic function is a third-degree polynomial of the form \(f(x) = ax^3 + bx^2 + cx + d\), where a, b, c, and d are real numbers and \(a \neq 0\). Both its domain and range match the entire set of real numbers (\(\mathbb{R}\)).
Example
Identify the domain, range, and axis intercepts of \(f(x) = x^3 - 4x\).
Being an odd-degree polynomial function, \(D_f = \mathbb{R}\) and \(R_f = \mathbb{R}\). We find the intercepts by evaluating at zero and factoring:
- y-intercept: \(f(0) = 0^3 - 4(0) = 0\), passing through the origin \((0, 0)\).
- x-intercepts: solve \(x^3 - 4x = x(x - 2)(x + 2) = 0\), which yields three real zeros at \((-2, 0)\), \((0, 0)\), and \((2, 0)\).
Rational Functions
A rational function is expressed as the quotient of two polynomial functions: \(f(x) = \dfrac{p(x)}{q(x)}\), where \(p(x) = a_m x^m + \dots + a_1 x + a_0\) and \(q(x) = b_n x^n + \dots + b_1 x + b_0\), with degrees m and n being non-negative integers (\(m, n \ge 0\)). Its domain excludes the real values that make the denominator zero: \(D_f = \mathbb{R} \setminus \{x \in \mathbb{R} \mid q(x) = 0\}\).
Example
Analyze the rational function \(f(x) = \dfrac{x - 2}{x + 1}\).
Set the denominator equal to zero (\(x + 1 = 0 \implies x = -1\)) to exclude that point, obtaining \(D_f = \mathbb{R} \setminus \{-1\}\), where a vertical asymptote is located. Solving for x in \(y = \dfrac{x - 2}{x + 1}\) yields \(x = \dfrac{-y - 2}{y - 1}\), so \(R_f = \mathbb{R} \setminus \{1\}\) (horizontal asymptote at \(y = 1\)). Its intercepts are:
- y-intercept: \(f(0) = \dfrac{0 - 2}{0 + 1} = -2\), at the point \((0, -2)\).
- x-intercept: the numerator equals zero when \(x - 2 = 0 \implies x = 2\), producing the zero \((2, 0)\).

Radical Functions
Radical functions contain the independent variable inside a radical sign, such as \(f(x) = \sqrt{p(x)}\). When the index of the root is even, the domain is restricted to real values that keep the radicand greater than or equal to zero.
Example
Find the domain, range, and intercepts of \(f(x) = \sqrt{x + 1}\).
We require \(x + 1 \ge 0 \implies x \ge -1\), so \(D_f = [-1, \infty)\). Because the principal square root returns only non-negative values, the range is \(R_f = [0, \infty)\). We calculate the intercepts:
- y-intercept: \(f(0) = \sqrt{0 + 1} = 1\), at the point \((0, 1)\).
- x-intercept: \(\sqrt{x + 1} = 0 \implies x = -1\), marking the starting point of the curve at \((-1, 0)\).
Absolute Value Function
The absolute value function assigns to each real number its distance from zero on the number line. Its basic form is \(f(x) = |x|\), defined piecewise as \(x\) if \(x \ge 0\) and \(-x\) if \(x < 0\). Its graph has a characteristic "V" shape with a sharp vertex.
Example
Analyze the shifted function \(f(x) = |x - 2| - 1\).
The expression is defined for any real number, so \(D_f = \mathbb{R}\). Since \(|x - 2| \ge 0\), the minimum value of the function occurs at \((2, -1)\), which determines a range of \(R_f = [-1, \infty)\). Its intercepts are:
- y-intercept: \(f(0) = |0 - 2| - 1 = 2 - 1 = 1\), located at \((0, 1)\).
- x-intercepts: solve \(|x - 2| - 1 = 0 \implies |x - 2| = 1\), giving \(x - 2 = 1 \implies x = 3\) and \(x - 2 = -1 \implies x = 1\). The zeros are at \((1, 0)\) and \((3, 0)\).
Exponential Functions
An exponential function has the form \(f(x) = a^x\), where the base a is a positive constant different from 1 (\(a > 0\), \(a \neq 1\)). Its domain is \(D_f = \mathbb{R}\) and its range is \(R_f = (0, \infty)\), since a power with a positive base never takes zero or negative values.
Example
Determine the graphical properties of \(f(x) = 2^x\).
The domain is \(D_f = \mathbb{R}\) and the range is \(R_f = (0, \infty)\), with a horizontal asymptote along the negative x-axis (\(y = 0\)). We analyze the axis intercepts:
- y-intercept: \(f(0) = 2^0 = 1\), crossing the vertical axis at \((0, 1)\).
- x-intercept: none, because the equation \(2^x = 0\) has no solution in the real numbers.

Logarithmic Functions
A logarithmic function is the inverse of the exponential function and is written as \(f(x) = \log_a(x)\) (\(a > 0\), \(a \neq 1\)). In calculus, it is common to work with the natural logarithm \(f(x) = \ln(x)\), whose base is the irrational number \(e \approx 2.71828\). Its domain includes only positive real numbers \(D_f = (0, \infty)\), and its range is \(R_f = \mathbb{R}\).
Example
Analyze the domain, range, and axis intercepts of the natural logarithm function \(f(x) = \ln(x)\).
The argument of the logarithm must be strictly positive, so \(D_f = (0, \infty)\) and \(R_f = \mathbb{R}\), featuring a vertical asymptote at \(x = 0\). Its intercepts are:
- y-intercept: none, because \(x = 0\) is outside the domain of the function.
- x-intercept: solve \(\ln(x) = 0 \implies x = e^0 = 1\), so it crosses the horizontal axis at \((1, 0)\).
Did you find this useful? Rate it!
Leave a Reply











Related Articles