BrightChamps Logo
Login
Creative Math Ideas Image
Live Math Learners Count Icon108 Learners

Last updated on July 9th, 2025

Math Whiteboard Illustration

Types of Functions

Professor Greenline Explaining Math Concepts

Functions can be grouped based on the mapping, degree, and mathematical concepts; moreover, based on the properties like periodicity, symmetry, continuity, etc. The way a function is written helps to identify the type of function. In this article, we will learn more about the types of functions and graphs.

Types of Functions for Saudi Students
Professor Greenline from BrightChamps

What are Functions?

A function is a mathematical rule where each output has only one input. In other words, every element of the domain is mapped to one element in the codomain. It is generally denoted as y = f(x), where x is the input and f(x) the output. In a function, the domain is the set of input values (x-values). A domain can be the set of numbers, angles, decimals, or fractions, depending on the type of function. Range is the set of all possible output values (y-values) of the function.
 

Professor Greenline from BrightChamps

How to Represent Functions?

To show the relationship between the domain and the range, we represent functions in three ways. Let’s now look at the three common representations.

 

 

Algebraic Form


In an algebraic form, a function can be expressed as an equation like y = f(x), which shows how each input value x relates to the y-values. Examples:
f(x) = x³
f(x) = sin x
These equations help us find the output for any given input.

 

 

Graphical Form

 

A function can also be represented graphically using a coordinate plane. The graphical representation helps us to understand the function, that is if the function is increasing, decreasing, or constant. By plotting points on the graph, we can observe a pattern or trend in the function’s behavior.

 

 

Roster Form


To represent a function as a collection of ordered pairs we use the roster form. In this form, each element of the domain (x) is matched with exactly one corresponding element in the range(f(x)). For example, if
f(x) = 2x, where x is a natural number ≤ 4, then the function can be represented as:
{(1, 2), (2, 4), (3, 6), (4, 8)}.
Here, the first number in each pair is from the domain, and the second is from the range.
 

Professor Greenline from BrightChamps

What are the Domain, Codomain, and Range of a Function?

In a function f: X → Y, the set X is called the domain, and it consists of all possible values. The set Y is the codomain, and it includes all outputs of f. The range of the function refers to the actual output values (images) of elements from the domain and is always a subset of the codomain.

 

 

The given image illustrates the domain, codomain, and range of the function. Note that only the elements in the codomain that are actually mapped from the domain are included in the range.

 

For the given function:

 

  • Domain = {a, b, c}
  • Codomain = {1, 2, 3, 4, 5}
  • Range = {1, 2, 3}
     
Professor Greenline from BrightChamps

What are the Types of Functions?

Learning the different types of functions helps us analyze their properties more effectively. We classify the function y = f(x) into different types based on certain factors like their mapping, degree, and mathematical concepts.
The different types of functions are:

 

 

  • Based on Mapping

 

  • Based on Degree

 

  • Based on Mathematical Concepts

 

  • Miscellaneous Functions

 


Based on Mapping


As we have learned, a function is a rule that gives one output for each input. Functions can be classified based on how their elements map to the codomain. The types of functions based on mapping are:

 


1. One-to-One Function (Injective):


In this function, each input gives a different output.
Example:
f(x) = x + 1
i.e., If x = 1 → f(x) = 2, and if x = 2 → f(x) = 3 
In a one-to-one function, no two inputs have the same output.

 

 

2. Many-to-One Function


As the term suggests, in this type, different inputs give the same output.

Example:
f(x) = x²
If x = 2 → f(x) = 4, and if x = −2 → f(x) = 4 
i.e., two different inputs have the same output

 

 

3. Onto Function (Surjective)


When every value in the codomain is mapped with the domain, then it is said to be an onto function.

Example:
f(x) = 5 − x where x ∈ {1, 2, 3, 4, 5} and output set is {0, 1, 2, 3, 4}
(Each value in the output set is matched)

 

 

4. Into Function


When some values in the output set are not utilized, it is said to be an into function.

Example:
f(x) = x², where x ∈ {1, 2, 3}, codomain = {1, 2, 3, 4, 5, 6, 7, 8, 9}
Since f(x) only gives 1, 4, and 9, it’s an into function.
 

Professor Greenline from BrightChamps

What are the Types of Functions Based on Degree?

We classify functions based on their degree, that is, the highest exponent of the variable in the equation. Such functions are also called polynomial functions. Let’s look at its different types in detail:

 

 

  • Constant Function

 

  • Linear Function

 

  • Quadratic Function

 

  • Cubic Function

 


Identity Function


The identity function is a function in which all elements in the domain are mapped to the range. It is written in the form f(x) = x or y = x. When plotted on a graph, the identity function forms a straight line.

 

 

Constant Function:


A constant function is a function in which every element in the domain maps to the same value in the range. 
Form: f(x) = K (K is a constant)

In this type of function, the output remains constant for all input values.
Example: f(x) = 5 → Output is always 5.

 

 

Linear Function


The type of polynomial function in which the highest power of the variable is 1 is known as a linear function.
Form: f(x) = mx + c
Here,
m represents the slope.
c represents the y-intercept 

Example: f(x) = 2x + 3, f(x) = x

The linear function is represented by a straight line graph (increasing, decreasing, or constant). One special case of a linear function is the identity function f(x) = x, where the output = input.

 

 

Quadratic Function

 

A quadratic function is a second-degree polynomial, where the highest degree of the variable is 2. The graph of a quadratic function is a parabola (U-shaped curve)

Form: f(x) = ax² + bx + c (a ≠ 0)
Example: f(x) = x² - 4x + 3

 

 

Cubic Function


In a cubic function, the highest power of x is three.

Form: f(x) = ax³ + bx² + cx + d (a ≠ 0)
Example: f(x) = x³ - 2x² + x

The visual representation of this function on a graph gives a curve that may bend or change direction, often displaying a shape more complex than that of a quadratic function.

 

 

Polynomial Function


A polynomial function can be represented in the form: 
f(x) = anxⁿ + an-1xⁿ⁻¹ + ... + a₁x + a₀
Where
n represents a nonnegative integer.
x represents a variable.
Both the domain and range of a polynomial function are R.

 

Polynomial functions can be classified as quadratic, cubic, and so on, depending on the highest power (exponent) of the variable in the equation. The degree depends on the highest exponent of x.
 

Professor Greenline from BrightChamps

What are the Types of Functions Based on Math Concepts?

Functions are widely utilized in various areas of mathematics. Depending on the concept they are used in, functions are further divided into different types. For example, the functions that are used in trigonometry are called trigonometric functions. The functions based on mathematical concepts are listed below:

 

 

Algebraic Functions


Algebraic functions involve operations like addition, subtraction, multiplication, division, and powers of variables. They include constants, coefficients, and variables. A general form of an algebraic function is:

f(x) = aₙxⁿ + aₙ₋₁xⁿ⁻¹ + ... + a1x + a0

Algebraic functions can be represented graphically and are further classified based on the degree of the polynomial:

 

 

  • Linear functions

 

  • Quadratic functions

 

  • Cubic functions

 

  • Polynomial functions

 

 

Trigonometric Functions


Trigonometric functions relate angles to the ratios of sides in a right-angled triangle. They are based on the Pythagorean theorem. The six basic trigonometric functions are:

 

  • f(θ) = sin θ
  • f(θ) = cos θ
  • f(θ) = tan θ
  • f(θ) = sec θ
  • f(θ) = cosec θ
  • f(θ) = cot θ

The angle measured in degrees or radians is the θ

 

 

Inverse Trigonometric Functions


The functions that are the reverse of trigonometric functions are known as inverse trigonometric functions. They help to find angles when the trigonometric ratio is known. The six inverse functions are:

 

  • f(x) = sin⁻¹x
  • f(x) = cos⁻¹x
  • f(x) = tan⁻¹x
  • f(x) = sec⁻¹x
  • f(x) = cosec⁻¹x
  • f(x) = cot⁻¹x
     

In these functions, the domain is a real number, and the range is an angle. Since their values repeat over intervals, they are known as periodic functions.

 

 

Logarithmic and Exponential Functions


Logarithmic function is the inverse of exponential function.
The logarithmic function is generally denoted in the form:
y = logₐx
Where
a is the base and it indicates the number of times the base must be raised to get x.
The corresponding exponential form is:
x = aʸ
These functions are widely used in higher-level mathematics and real-world applications such as compound interest, population growth, and scientific calculations.
 

Professor Greenline from BrightChamps

What are the Other Types of Functions?

In addition to these types of functions, there are several other important functions used across different mathematical contexts. These are described below:

 

 

Modulus Function


The modulus function outputs the distance of a number from zero on the number line without considering its sign. It is denoted as:
f(x) = |x|
This means that whether x is positive or negative, the output is always non-negative. The graph of the modulus function appears in the first and second quadrants because the output y = |x| is always positive or zero. For example, points (x, y), there is a corresponding point (-x, y), making the graph symmetric with respect to the y-axis.

 

 

Rational Function


A rational function is a fraction made up of two algebraic expressions, typically in the form:
f(x) = p(x)/q(x), where q(x) ≠ 0
A function is undefined at any point where its denominator equals zero. The graph of a rational function often includes asymptotes—horizontal or vertical lines that the graph approaches but never touches.

 

 

Signum Function


The signum function (or sign function) indicates the sign of the input number. It doesn’t give a specific value but specifies whether it is positive, negative, or zero. The range of this function is: {-1, 0, 1}
If x > 0 → f(x) = 1
If x = 0 → f(x) = 0
If x < 0 → f(x) = -1
This function is commonly used in programming and logic-based applications like conditional branching, sign detection in algorithms, and many more. 

 

 

Even and Odd Functions


These functions are categorized based on how they behave when the input is replaced by its negative:

A function is even if:
f(-x) = f(x)
(The graph is symmetric about the y-axis)
Examples: f(x) = x², f(x) = cos x

A function is odd if:
f(-x) = -f(x)
(The graph is symmetric about the origin)
Examples: f(x) = x³, f(x) = sin x

 

 

Periodic Function


A function is called periodic if it repeats its values in regular intervals. In simple terms, for some value T, the function satisfies:

f(x + T) = f(x) for all x

Trigonometric functions like sin x and cos x are classic examples, repeating every 2π. For instance, f(x) = sin x has a period of 2π and a range of [-1, 1].

 

 

Inverse Function


The inverse function of f(x), written as f⁻¹(x), essentially reverses the effect of f(x). In the inverse:

When the domain is f(x) then the range is f⁻¹(x)

The range of f(x) becomes the domain of f⁻¹(x)

An inverse function exists only if the original function is bijective (both one-to-one and onto).
Example:

If f(x) = x², then the inverse of f⁻¹(x) = √x (with domain restrictions).

For sin x, the domain is R, and the range [-1, 1]. For the inverse function sin⁻¹x, the domain is [-1, 1], and the range R is -2, 2, not R.

 

 

Greatest Integer Function


Also known as the floor function, this function maps any real number to the greatest integer less than or equal to it. It is written as:

f(x) = ⌊x⌋

Example: ⌊2.8⌋ = 2, ⌊-1.3⌋ = -2

The output is always an integer, and the graph appears as a step curve due to its jump at every integer value.
Domain: All real numbers (ℝ)
Range: Integers (ℤ)

 

 

Composite Function


A composite function is formed by applying one function to the output of another. If f(x) and g(x) are two functions, then the composite function is:

f∘g(x) = f(g(x))

In this case, the output of g(x) becomes the input for f(x).
Example:

Let f(x) = 2x + 3 and g(x) = x + 1

Then, f∘g(x) = f(g(x)) = f(x + 1) = 2(x + 1) + 3 = 2x + 5.

 

 

Graphs of Different Types of Functions


Each type of function has a unique graphical representation and must satisfy the vertical line test to be considered a function. The shape of the graph varies based on the type of function. For example:

  • A linear function produces a straight line.
  • The graph of a quadratic function is a U-shaped curve known as a parabola.
  • A sine or cosine function has a wave-like pattern.
  • Absolute value functions create a V-shaped graph.

The figure below shows the graphs of various other types of function types. Many of these graphs include horizontal, vertical, or even both types of asymptotes, depending on the nature of the function.


 

Professor Greenline from BrightChamps

Real-Life Applications of Types of Functions

Learning the different types of functions helps students solve real-life problems. Let’s now look at some real-life applications:

 

 

  • We can use a linear function to determine the total cost of a taxi ride, where you pay a fixed starting fare plus a set amount for every kilometer driven.

 

  • Exponential functions are used in the banking sector to calculate compound interest.

 

  • Quadratic function is used to analyze the path a ball follows in sports or physics, as it forms the shape of a parabola.
     
Max Pointing Out Common Math Mistakes

Common Mistakes and How to Avoid Them in Types of Functions

Functions are widely used in math to represent how one quantity changes in response to another. Students might make some mistakes when learning different types of functions. Here are a few common mistakes and tips to avoid them:
 

Mistake 1

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

 Confusion Between Domain and Range
 

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

 It is common for students to get confused between the domain and range of a function.
So always understand that the Domain = input(x) and Range = output (y).
For example: For f(x) = x + 3
Here, 
Domain = All real numbers, since the input any value of x.
Range = All real numbers, as the sum of any number with 3 is a real number (≥ 3).
 

Mistake 2

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Not Simplifying Functions
 

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Forgetting to simplify the given expression, like f(x) = (x2 + 2x)/x, can lead to errors in the final result.
Check if the given functions can be further simplified.
For example, the given expression can be simplified to f(x) = x + 2 (for x ≠ 0).
 

Mistake 3

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Identifying the Type of Function Incorrectly
 

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Sometimes students find it difficult to identify the correct type of function. For example, assuming a quadratic is linear.
To avoid this error, remember:

 

  • Linear: f(x) = mx + b → gives a straight line graph.
  • Quadratic: f(x) = ax² + bx + c → parabola
  • Exponential: f(x) = a·bˣ
     

Mistake 4

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Assuming Any Relation as a Function 
 

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Students might assume that every relation is a function, even if each input has multiple outputs.
Keep in mind that each input can result in only one output.
For example, the set {(1, 2), (1, 3)} is not a function (Since 1 has two outputs (2 and 3)).
 

Mistake 5

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

 Misinterpreting Function Notation
 

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Some students mistakenly read f(x) as “f times x” but it means “function f of x”.
Note that f(x) indicates the function where x is the input.
For example, f(x) = 3x + 1 implies the output depends on the input x; it is not a multiplication of f and x.
 

arrow-right
Max from BrightChamps Saying "Hey"

Solved Examples of Types of Functions

Ray, the Character from BrightChamps Explaining Math Concepts
Max, the Girl Character from BrightChamps

Problem 1

Function: f(x) = 2x + 3 Find: f(2)

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"

f(2) = 7
 

Explanation

Here, the identify of the input value: x = 2

Let’s replace x with 2 in the function:
→ f(2) = 2(2) + 3

= 2 × 2 = 4
Simplify the function:  4 + 3 = 7

Therefore, f(2) = 7.
 

Max from BrightChamps Praising Clear Math Explanations
Max, the Girl Character from BrightChamps

Problem 2

Function: f(x) = 2ˣ Find: f(3)

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"

f(3) = 8

Explanation

Identify the input value: x = 3

Next, we replace x with 3 in the function:
→ f(3) = 2³

Now, simplify the function 2³: 2 × 2 × 2 = 8
Therefore, f(3) = 8.
 

Max from BrightChamps Praising Clear Math Explanations
Max, the Girl Character from BrightChamps

Problem 3

Function:  f(x) = |x - 4| Find: f(2)

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"

f(2) = 2
 

Explanation

Here, the identify the input value: x = 2

To find f(2), we replace x with 2:
→ f(2) = |2 – 4|

Simplifying  the expression: 2 – 4 = -2

Taking absolute value: |-2| = 2
Therefore, f(2) = 2.
 

Max from BrightChamps Praising Clear Math Explanations
Max, the Girl Character from BrightChamps

Problem 4

Function: f(x) = x² - 4x + 5 Find: f(3)

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"

f(3) = 2
 

Explanation

The input value we need to identify is: x = 3

Substituting the value of x with 3 in the function:
→ f(3) = (3)² - 4(3) + 5

= 9 – 12 + 5

Now, simplify the function: -3 + 5 = 2
Therefore, f(3) = 2.
 

Max from BrightChamps Praising Clear Math Explanations
Max, the Girl Character from BrightChamps

Problem 5

Function: f(x) = 7 Find: f(10)

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"

f(10) = 7
 

Explanation

Understand the function:
Here, the function f(x) = 7 is a constant function, which means it gives the same output for any input.

Finding the value of f(10), x = 10.

Apply the function rule:
As the function says f(x) = 7 (for all values of x),
f(10) = 7

Therefore, f(10) = 7
 

Max from BrightChamps Praising Clear Math Explanations
Ray Thinking Deeply About Math Problems

FAQs on Types of Functions

1.What do you mean by a function in math?

Math FAQ Answers Dropdown Arrow

2.Name the different types of functions.

Math FAQ Answers Dropdown Arrow

3.How do we identify if a function is quadratic?

Math FAQ Answers Dropdown Arrow

4.Does a function have multiple outputs for an input?

Math FAQ Answers Dropdown Arrow

5.What does a linear function resemble?

Math FAQ Answers Dropdown Arrow

6.How does learning Algebra help students in Saudi Arabia make better decisions in daily life?

Math FAQ Answers Dropdown Arrow

7.How can cultural or local activities in Saudi Arabia support learning Algebra topics such as Types of Functions ?

Math FAQ Answers Dropdown Arrow

8.How do technology and digital tools in Saudi Arabia support learning Algebra and Types of Functions ?

Math FAQ Answers Dropdown Arrow

9.Does learning Algebra support future career opportunities for students in Saudi Arabia?

Math FAQ Answers Dropdown Arrow
Math Teacher Background Image
Math Teacher Image

Jaskaran Singh Saluja

About the Author

Jaskaran Singh Saluja is a math wizard with nearly three years of experience as a math teacher. His expertise is in algebra, so he can make algebra classes interesting by turning tricky equations into simple puzzles.

Max, the Girl Character from BrightChamps

Fun Fact

: He loves to play the quiz with kids through algebra to make kids love it.

INDONESIA - Axa Tower 45th floor, JL prof. Dr Satrio Kav. 18, Kel. Karet Kuningan, Kec. Setiabudi, Kota Adm. Jakarta Selatan, Prov. DKI Jakarta
INDIA - H.No. 8-2-699/1, SyNo. 346, Rd No. 12, Banjara Hills, Hyderabad, Telangana - 500034
SINGAPORE - 60 Paya Lebar Road #05-16, Paya Lebar Square, Singapore (409051)
USA - 251, Little Falls Drive, Wilmington, Delaware 19808
VIETNAM (Office 1) - Hung Vuong Building, 670 Ba Thang Hai, ward 14, district 10, Ho Chi Minh City
VIETNAM (Office 2) - 143 Nguyễn Thị Thập, Khu đô thị Him Lam, Quận 7, Thành phố Hồ Chí Minh 700000, Vietnam
Dubai - BrightChamps, 8W building 5th Floor, DAFZ, Dubai, United Arab Emirates
UK - Ground floor, Redwood House, Brotherswood Court, Almondsbury Business Park, Bristol, BS32 4QW, United Kingdom