Menu Top
Complete Course of Mathematics
Topic 1: Numbers & Numerical Applications Topic 2: Algebra Topic 3: Quantitative Aptitude
Topic 4: Geometry Topic 5: Construction Topic 6: Coordinate Geometry
Topic 7: Mensuration Topic 8: Trigonometry Topic 9: Sets, Relations & Functions
Topic 10: Calculus Topic 11: Mathematical Reasoning Topic 12: Vectors & Three-Dimensional Geometry
Topic 13: Linear Programming Topic 14: Index Numbers & Time-Based Data Topic 15: Financial Mathematics
Topic 16: Statistics & Probability


Content On This Page
Real Functions: Definition Domain and Range of a Real Function (Techniques for Finding) Graph of a Real Function
Graphical Representation of Functions (General) Some Standard Real Functions (Identity, Modulus, etc.) and their Graphs


Real Functions and Their Graphs



Real Functions: Definition

While the concept of a function can apply to any sets (mapping students to their roll numbers, countries to their capitals, etc.), a particularly important class of functions in mathematics involves sets of real numbers. These are known as real functions, and they form the basis of calculus and mathematical analysis.

Real-Valued Function

A function $f: A \to B$ is called a real-valued function if its codomain $B$ is a subset of the set of real numbers $\mathbb{R}$ ($B \subseteq \mathbb{R}$).

This means that the output $f(x)$ of the function is always a real number. The domain $A$, however, can be any set (e.g., a set of complex numbers, vectors, functions, etc., depending on the context). For most common applications in introductory mathematics, the domain is also a subset of $\mathbb{R}$.

Example:

Let $A = \{\text{Apple, Banana, Cherry}\}$. Define a function $w: A \to \mathbb{R}_{\ge 0}$ that maps each fruit to its weight in grams. If $w(\text{Apple})=150$ g, $w(\text{Banana})=120$ g, $w(\text{Cherry})=5$ g, this is a real-valued function because the codomain (non-negative real numbers, a subset of $\mathbb{R}$) contains real numbers as outputs, even though the domain is a set of fruits.

Real Function (or Real Function of a Real Variable)

A function $f: A \to B$ is called a real function (or a real function of a real variable) if both its domain $A$ and its codomain $B$ are subsets of the set of real numbers $\mathbb{R}$.

A function $f$ is a real function $\iff \text{Domain}(f) \subseteq \mathbb{R} \text{ and } \text{Codomain}(f) \subseteq \mathbb{R}$

These are the functions that are typically encountered when studying graphs, limits, derivatives, and integrals. The input is a real number, and the output is a real number.

Examples:

When a real function is defined by a formula (e.g., $f(x) = \frac{1}{x-1}$), and the domain and codomain are not explicitly specified, it is a common convention to assume the domain is the largest possible subset of $\mathbb{R}$ for which the formula produces a real number output, and the codomain is the set of all real numbers, $\mathbb{R}$. This largest possible domain is sometimes called the "natural domain" or "domain of definition".


Summary for Competitive Exams

Real-Valued Function ($f: A \to B$): Codomain $B \subseteq \mathbb{R}$. Output is a real number.

Real Function ($f: A \to B$): Domain $A \subseteq \mathbb{R}$ AND Codomain $B \subseteq \mathbb{R}$. Input is real, Output is real. These are the functions whose graphs can be plotted on the standard x-y plane.

If domain/codomain are not specified for a formula, assume domain is the largest possible subset of $\mathbb{R}$ yielding real output, and codomain is $\mathbb{R}$.


Domain and Range of a Real Function (Techniques for Finding)

For a real function $f(x)$, determining its domain and range is crucial for understanding where the function is defined and what values it can possibly produce. The domain is the set of valid inputs, and the range is the set of actual outputs.

Finding the Domain of a Real Function

The domain of a real function $f(x)$ is the set of all real numbers $x$ for which the expression $f(x)$ is defined and yields a real number output. When given a formula for $f(x)$ without an explicitly stated domain, we find the "natural domain".

Steps and Common Restrictions:

  1. Assume the domain is all real numbers ($\mathbb{R}$) unless there are specific restrictions based on the function's formula.
  2. Identify potential sources of restrictions that would result in an undefined or non-real output:
    • Division by Zero: If the function involves a fraction $\frac{g(x)}{h(x)}$, the denominator $h(x)$ cannot be zero. Exclude any $x$ values for which $h(x)=0$. Solve $h(x) = 0$ and remove the solutions from $\mathbb{R}$.
    • Even Roots of Negative Numbers: If the function involves an even root like a square root ($\sqrt{g(x)}$), fourth root ($\sqrt[4]{g(x)}$), etc., the expression inside the root, $g(x)$, must be non-negative. Solve the inequality $g(x) \ge 0$ for $x$. The domain must be limited to the values satisfying this inequality.
    • Logarithms of Non-positive Numbers: If the function involves a logarithm like $\log_a(g(x))$ (where $a > 0, a \neq 1$), the argument $g(x)$ must be strictly positive. Solve the inequality $g(x) > 0$ for $x$.
    • Trigonometric Functions: Functions like $\tan(x)$ are undefined where $\cos(x)=0$, i.e., $x = \frac{\pi}{2} + n\pi$ for integer $n$. $\cot(x)$ is undefined where $\sin(x)=0$, i.e., $x = n\pi$ for integer $n$. $\text{cosec}(x)$ requires $\sin(x) \neq 0$, $\sec(x)$ requires $\cos(x) \neq 0$.
  3. If there are multiple restrictions, the domain is the set of all real numbers that satisfy ALL restrictions simultaneously. This means finding the intersection of the domains required by each individual restriction.

Example 1. Find the domain of the function $f(x) = \frac{x+1}{x-2}$.

Answer:

Given: Function $f(x) = \frac{x+1}{x-2}$.

To Find: Domain of $f(x)$.

Solution:

The function involves a fraction. The denominator cannot be zero.

Set the denominator equal to zero and find the excluded values of $x$:

$x - 2 = 0$

$x = 2$

... (i)

The function is undefined when $x = 2$. All other real numbers are valid inputs.

The domain is the set of all real numbers except 2.

Domain$(f) = \mathbb{R} \setminus \{2\}$

In interval notation, this is $(-\infty, 2) \cup (2, \infty)$.


Example 2. Find the domain of the function $g(x) = \sqrt{x - 5}$.

Answer:

Given: Function $g(x) = \sqrt{x - 5}$.

To Find: Domain of $g(x)$.

Solution:

The function involves a square root (an even root). The expression inside the square root must be non-negative.

Set the expression inside the root greater than or equal to zero:

$x - 5 \ge 0$

Solve the inequality for $x$:

$x \ge 5$

... (i)

The domain is the set of all real numbers greater than or equal to 5.

Domain$(g) = \{x \in \mathbb{R} \mid x \ge 5\}$

In interval notation, this is $[5, \infty)$.


Example 3. Find the domain of the function $h(x) = \frac{\sqrt{x}}{x - 1}$.

Answer:

Given: Function $h(x) = \frac{\sqrt{x}}{x - 1}$.

To Find: Domain of $h(x)$.

Solution:

This function has two potential restrictions:

1. Square Root: The expression inside the square root must be non-negative. The expression is just $x$.

$x \ge 0$

... (i)

2. Denominator: The denominator cannot be zero.

$x - 1 \neq 0$

$x \neq 1$

... (ii)

The domain is the set of all real numbers $x$ that satisfy both condition (i) AND condition (ii). We need the intersection of the allowed values from both conditions.

Condition (i) gives the interval $[0, \infty)$.

Condition (ii) excludes the single point $x=1$.

So, the domain is all numbers in $[0, \infty)$ except for $x=1$.

Domain$(h) = [0, \infty) \setminus \{1\}$

In interval notation, this is $[0, 1) \cup (1, \infty)$.


Finding the Range of a Real Function

The range of a real function $f(x)$ is the set of all possible real output values $y = f(x)$ that the function can produce when $x$ takes on all values from its domain. Finding the range can be more involved than finding the domain.

Techniques for Finding the Range:

  1. Algebraic Method (Solving for x):

    • Set $y$ equal to the function's rule: $y = f(x)$.
    • Try to solve this equation for $x$ in terms of $y$.
    • Analyze the expression for $x$ in terms of $y$. Determine for which values of $y$ a corresponding real value of $x$ exists within the domain of $f$. The set of these $y$ values is the range. Look for algebraic restrictions on $y$ (like division by zero, even roots of negative numbers).
  2. Graphical Method (Projection on y-axis):

    • Sketch the graph of the function $y = f(x)$ over its domain.
    • The range is the set of all y-values covered by the graph. Imagine "projecting" the graph onto the y-axis. The interval(s) or set of points covered on the y-axis constitute the range.
    • Identify minimum and maximum y-values (if they exist) and whether the graph is continuous between them.
  3. Using Properties of Standard Functions:

    • Leverage known properties of common functions (e.g., $x^2 \ge 0$, $|x| \ge 0$, $-1 \le \sin x \le 1$, $e^x > 0$, range of polynomial of odd degree is $\mathbb{R}$).
    • Understand how transformations (vertical/horizontal shifts, stretches, reflections) affect the range of a base function.
  4. Calculus Methods:

    For complex functions, calculus (finding critical points, intervals of increase/decrease, limits) can be used to determine the minimum and maximum values and overall behavior, which helps identify the range.

Example 4. Find the range of the function $f(x) = 3x - 2$ for $x \in \mathbb{R}$.

Answer:

Given: Function $f(x) = 3x - 2$, Domain is $\mathbb{R}$.

To Find: Range of $f(x)$.

Solution:

Method 1: Algebraic (Solving for x)

Let $y = f(x) = 3x - 2$.

Solve for $x$ in terms of $y$:

$y + 2 = 3x$

$x = \frac{y + 2}{3}$

For $x$ to be a real number (since the domain is $\mathbb{R}$), the expression $\frac{y+2}{3}$ must result in a real number for any real value of $y$. Dividing a real number $(y+2)$ by a non-zero real number (3) always results in a real number.

This means for every real number $y$, we can find a corresponding real number $x = \frac{y+2}{3}$ such that $f(x)=y$.

The set of all possible output values $y$ is $\mathbb{R}$.

Range$(f) = \mathbb{R}$

Method 2: Graphical

The graph of $f(x) = 3x - 2$ is a straight line with slope 3 and y-intercept -2. A straight line that is not horizontal extends infinitely upwards and downwards, covering all possible y-values.

Graph of y=3x-2, a straight line extending infinitely
(Imagine a graph of the line $y=3x-2$).

The projection of this line onto the y-axis covers the entire y-axis.

Range$(f) = \mathbb{R}$.


Example 5. Find the range of the function $g(x) = \sqrt{x - 5}$. (Domain is $[5, \infty)$ as found in Example 2).

Answer:

Given: Function $g(x) = \sqrt{x - 5}$, Domain is $[5, \infty)$.

To Find: Range of $g(x)$.

Solution:

Method 1: Using Properties and Domain Limits

The input to the function is $x$, where $x \in [5, \infty)$, which means $x \ge 5$.

Subtracting 5 from both sides: $x - 5 \ge 5 - 5 \implies x - 5 \ge 0$.

The function is $g(x) = \sqrt{x - 5}$. Since the expression inside the square root ($x-5$) is always $\ge 0$ for $x$ in the domain, the output of the square root function will be real and non-negative.

So, $g(x) \ge 0$ for all $x$ in the domain.

Can $g(x)$ take on any non-negative value $y \ge 0$? Let's check.

If $y=0$, $0 = \sqrt{x-5} \implies 0 = x-5 \implies x=5$. $5$ is in the domain $[5, \infty)$. So $y=0$ is in the range.

If $y=1$, $1 = \sqrt{x-5} \implies 1 = x-5 \implies x=6$. $6$ is in the domain $[5, \infty)$. So $y=1$ is in the range.

If $y=k$ where $k \ge 0$, $k = \sqrt{x-5} \implies k^2 = x-5 \implies x = k^2 + 5$. Since $k \ge 0$, $k^2 \ge 0$, so $k^2+5 \ge 5$. This means $x = k^2+5$ is always in the domain $[5, \infty)$ for any $y=k \ge 0$.

Thus, the range is all non-negative real numbers.

Range$(g) = [0, \infty)$

Method 2: Algebraic (Solving for x)

Let $y = g(x) = \sqrt{x - 5}$.

Square both sides to solve for $x$:

$y^2 = x - 5$

$x = y^2 + 5$

... (ii)

From (ii), for $x$ to be a real number, $y$ must be a real number, which is always true if the output $y$ is real. However, we also know that the square root function (by convention, the principal square root) always produces a non-negative output.

$y \ge 0$

... (iii)

We also need to ensure that the $x$ we find using (ii) is within the domain of the original function $g(x)$, which is $[5, \infty)$.

From (ii), $x = y^2 + 5$. For $x \in [5, \infty)$, we need $y^2 + 5 \ge 5$.

$y^2 \ge 0$

... (iv)

Condition (iv) ($y^2 \ge 0$) is true for all real numbers $y$. However, we must also satisfy condition (iii) ($y \ge 0$) due to the nature of the square root function's output.

Combining $y^2 \ge 0$ and $y \ge 0$, the valid values for $y$ are $y \ge 0$.

Range$(g) = [0, \infty)$

Method 3: Graphical

The graph of $y = \sqrt{x - 5}$ starts at $(5, 0)$ and increases as $x$ increases. Since the domain is $[5, \infty)$, the graph starts at $x=5$ and extends infinitely to the right. The minimum y-value is $y=0$ (at $x=5$), and as $x \to \infty$, $y \to \infty$. The graph covers all y-values from 0 upwards.

Graph of y=sqrt(x-5) starting at (5,0) and going right and up
(Imagine a graph of $y=\sqrt{x-5}$ starting at $(5,0)$ and going up and to the right).

The projection of this graph onto the y-axis covers the interval $[0, \infty)$.

Range$(g) = [0, \infty)$


Graph of a Real Function

The graphical representation of a real function $f: A \to B$ (where $A, B \subseteq \mathbb{R}$) is a visual depiction of the relationship between the input values from the domain and their corresponding output values in the range.

Definition of the Graph of a Real Function

Let $f: A \to B$ be a real function with domain $A$. The graph of the function $f$ is defined as the set of all ordered pairs $(x, f(x))$ such that $x$ belongs to the domain of $f$.

Graph$(f) = \{ (x, y) \mid x \in \text{Domain}(f) \text{ and } y = f(x) \}$

... (1)

Since both $x$ (the input from the domain $A \subseteq \mathbb{R}$) and $y = f(x)$ (the output, which is in the range, and thus in the codomain $B \subseteq \mathbb{R}$) are real numbers, each ordered pair $(x, y)$ in the graph can be plotted as a point in the Cartesian coordinate plane ($\mathbb{R}^2$). The collection of all such points forms the visual graph of the function.

Essentially, the graph is the set of all points $(x, y)$ on the Cartesian plane that satisfy the equation $y = f(x)$ for all valid input values $x$ from the function's domain.

The graph provides a geometric interpretation of the function's behavior, showing how the output varies as the input changes.


Graphical Representation of Functions (General)

The graphical representation transforms the abstract rule of a function into a visible shape on a coordinate system. This visualization is invaluable for understanding properties like increasing/decreasing intervals, maxima/minima, continuity, and identifying the domain and range visually.

Key Aspects of Graphical Representation:


Summary for Competitive Exams

Real-Valued Function: $f: A \to B$ where $B \subseteq \mathbb{R}$. Output is real.

Real Function: $f: A \to B$ where $A \subseteq \mathbb{R}$ AND $B \subseteq \mathbb{R}$. Input and output are real.

Domain (Natural Domain): Largest subset of $\mathbb{R}$ for which $f(x)$ is defined and real.

  • Avoid division by zero.
  • Avoid even roots of negative numbers.
  • Avoid logarithms of non-positive numbers.

Range: Set of all actual output values $y=f(x)$ for $x$ in the domain.

  • Techniques: Solve $y=f(x)$ for $x$, analyze algebraic restrictions on $y$; Graphical projection on y-axis; Use standard function properties.

Graph: Set of points $(x, f(x))$ for all $x$ in the domain. Visual representation on Cartesian plane.

  • Graph of $y=f(x)$ passes the Vertical Line Test.


Some Standard Real Functions (Identity, Modulus, etc.) and their Graphs

In the study of real functions, certain functions appear frequently and serve as building blocks for more complex functions. Understanding their definitions, domains, ranges, and especially their graphs is fundamental.

Here are some essential standard real functions:


1. Identity Function

The identity function maps every real number to itself.

Graph of y=x, a straight line through origin at 45 degrees
(Imagine a graph of the line $y=x$).

2. Constant Function

A constant function maps every real number to the same fixed real number.

Graph of y=c, a horizontal line
(Imagine a graph of a horizontal line $y=c$).

3. Modulus Function (Absolute Value Function)

The modulus function gives the absolute value of a real number.

Graph of y=|x|, a V-shape with vertex at origin
(Imagine a graph of $y=|x|$).

4. Signum Function

The signum function (or sign function) indicates the sign of a real number.

Graph of Signum function
(Imagine a graph of the signum function).

5. Greatest Integer Function (Floor Function)

The greatest integer function (or floor function) gives the largest integer less than or equal to the input real number.

Graph of Greatest Integer Function (step function)
(Imagine a graph of the greatest integer function).

6. Polynomial Functions

Polynomial functions are built using only addition, subtraction, multiplication, and non-negative integer exponents of the variable.

Graphs of linear, quadratic, and cubic functions
(Imagine graphs of $y=x$, $y=x^2$, $y=x^3$).

7. Rational Functions

Rational functions are ratios of polynomial functions.

Graph of a simple rational function like 1/x
(Imagine a graph of $y=1/x$).

8. Exponential Function

Exponential functions have a constant base raised to a variable power.

Graphs of exponential functions a^x for a>1 and 0<a<1
(Imagine graphs of $y=2^x$ and $y=(1/2)^x$).

9. Logarithmic Function

Logarithmic functions are the inverse functions of exponential functions.

Graphs of logarithmic functions log_a(x) for a>1 and 0<a<1
(Imagine graphs of $y=\log_2 x$ and $y=\log_{1/2} x$).

10. Square Root Function

The square root function gives the principal (non-negative) square root of a non-negative number.

Graph of y = sqrt(x)
(Imagine a graph of $y=\sqrt{x}$).

Familiarity with these standard functions, their properties, and their graphical shapes is crucial for success in mathematics involving real functions.


Summary for Competitive Exams

Standard Real Functions - Key Properties & Graphs:

  • Identity ($f(x)=x$): D: $\mathbb{R}$, R: $\mathbb{R}$. Line $y=x$. Bijective on $\mathbb{R} \to \mathbb{R}$.
  • Constant ($f(x)=c$): D: $\mathbb{R}$, R: $\{c\}$. Horizontal Line $y=c$. Not 1-1 (unless domain=singleton), not onto (unless codomain=singleton).
  • Modulus ($f(x)=|x|$): D: $\mathbb{R}$, R: $[0, \infty)$. V-shape at origin. Not 1-1, Not onto $\mathbb{R}$.
  • Signum ($f(x)=\text{sgn}(x)$): D: $\mathbb{R}$, R: $\{-1, 0, 1\}$. Step-like at $x=0$. Not 1-1, Not onto $\mathbb{R}$.
  • Greatest Integer ($f(x)=\lfloor x \rfloor$): D: $\mathbb{R}$, R: $\mathbb{Z}$. Step function. Not 1-1, Not onto $\mathbb{R}$ (but onto $\mathbb{Z}$).
  • Polynomial ($f(x)=a_nx^n+...$): D: $\mathbb{R}$. Range $\mathbb{R}$ if n odd; $[k,\infty)$ or $(-\infty,k]$ if n even. Smooth curve.
  • Rational ($f(x)=p(x)/q(x)$): D: $\mathbb{R} \setminus \{\text{roots of } q(x)\}$. Range varies. Can have asymptotes.
  • Exponential ($f(x)=a^x, a>0, a\neq 1$): D: $\mathbb{R}$, R: $(0, \infty)$. Growth/Decay. Always $>0$. Bijective on $\mathbb{R} \to (0, \infty)$.
  • Logarithmic ($f(x)=\log_a x, a>0, a\neq 1$): D: $(0, \infty)$, R: $\mathbb{R}$. Inverse of exponential. Input always $>0$. Bijective on $(0, \infty) \to \mathbb{R}$.
  • Square Root ($f(x)=\sqrt{x}$): D: $[0, \infty)$, R: $[0, \infty)$. Curve from origin. Bijective on $[0, \infty) \to [0, \infty)$.

Memorize their graphs and key points (intercepts, asymptotes, vertex, steps).