Types of Functions: Definition, Method and Examples

MathPublished

Types of Functions: Families, Graphs, and Examples

Functions are mathematical rules that assign exactly one output to every valid input. They can be classified into different types of functions by their algebraic rule, their mapping relationship, and the visual shape of their graph. Common school-level families include constant, linear, quadratic, absolute value, exponential, and rational functions, with each producing a unique graphical footprint.


Before categorizing them, you must understand functions in algebra and how to write them using function notation.

What are function types?

Functions are grouped into specific families based on three primary mathematical characteristics: their mapping, their degree, and their core mathematical concept.


Mapping describes how the elements in the input set (domain) connect to the elements in the output set (range).


A one-to-one function gives every domain element a unique range element, while a many-to-one function maps multiple domain elements to the same output.

Two mapping diagrams. The first shows one-to-one mapping where inputs a, b, c connect to outputs 1, 2, 3 individually. The second shows many-to-one mapping where inputs x and y both connect to output 4.


The degree of a polynomial dictates whether it forms a constant, linear, quadratic, or cubic function. Finally, the core mathematical operations involved define families such as trigonometric, absolute value, exponential, and logarithmic functions.

Compare common function families

Identifying function families requires knowing their standard algebraic format and typical graphical appearance. Below is a gallery of five foundational functions you will encounter frequently.

A gallery of five distinct function graphs: a horizontal constant line, a straight angled linear line, a U-shaped quadratic parabola, a V-shaped absolute value curve, and an upward curving exponential curve.

1. Constant Function

  • Rule: f(x)=cf(x) = c
  • Defining feature: The output remains identical for every input, creating a flat horizontal line.

xx

−1-1

00

11

f(x)f(x)

22

22

22

2. Linear Function

  • Rule: f(x)=mx+bf(x) = mx + b
  • Defining feature: A constant rate of change generates a straight, angled line.

xx

−1-1

00

11

f(x)f(x)

−1-1

00

11

3. Quadratic Function

  • Rule: f(x)=ax2+bx+cf(x) = ax^2 + bx + c
  • Defining feature: Squaring the input produces a symmetric U-shaped parabola.

xx

−1-1

00

11

f(x)f(x)

11

00

11

4. Absolute Value Function

  • Rule: f(x)=∣x∣f(x) = |x|
  • Defining feature: All negative inputs are forced positive, creating a symmetric, sharp V-shape.

xx

−1-1

00

11

f(x)f(x)

11

00

11

5. Exponential Function

  • Rule: f(x)=a⋅bxf(x) = a \cdot b^x
  • Defining feature: Repeated multiplication by a base value creates a curve that grows or decays rapidly along a horizontal asymptote.

xx

−1-1

00

11

f(x)f(x)

0.50.5

11

22

Use rules tables and graphs

Functions represent mathematical relationships that can be expressed in three distinct ways: algebraically, numerically, and graphically.

A flowchart showing three representations of a function. The rule is f(x) = 2x, pointing to a table of values, which points to a coordinate graph showing a straight line.

Algebraic rules show the exact calculation needed to produce an output. Numerical tables present a roster of discrete values so you can easily observe input-output pairings. Finally, a visual graph plots these pairs as coordinates to reveal the ongoing pattern. This connects directly to linear equations, where a first-degree rule always translates directly into a straight line on the graph.

Identify a function from its shape

Every function family produces a distinct visual footprint on a coordinate plane. By memorizing these fundamental shapes, you can immediately categorize a mathematical relationship without performing any calculations.


A straight line indicates a constant or linear function. A U-shaped curve reveals a quadratic function, while a sharp V-shaped corner is the signature of an absolute value function.


Recognizing quadratic graphs allows you to instantly know the equation involves an x2x^2 term. Periodic, wavy curves typically represent trigonometric functions, and curves that flatten out infinitely along an axis often indicate exponential or rational functions.

Choose a useful representation

Different mathematical tasks require different function formats. You must choose the representation that best answers the problem you are solving.


Use an algebraic rule when you need to calculate an exact mathematical output for any possible input value. Use a table when you want to look up discrete, specific data points quickly without computation.


Use a graph when you need to understand the overall behavior, such as finding where the function increases, decreases, or crosses the axes. Once you master these base representations, you can apply function transformations to shift, stretch, and reflect them across the plane.

Worked examples

Below are exact methods for identifying rules, composing functions, and calculating inverses.


Example 1: Identifying function types from rules


Question: Identify the family of functions to which each rule belongs:

a) f(x)=4x−7f(x) = 4x - 7

b) g(x)=2x+5g(x) = 2^x + 5

c) h(x)=∣x+3∣h(x) = |x + 3|


Method:

  1. Analyze the degree, base, and operators in the equation.
  2. Match the structure to the general rule of a function family.

Answer:

a) Linear function (degree one polynomial).

b) Exponential function (variable is in the exponent).

c) Absolute value function (variable is inside the modulus symbol).


Check: Test an input like x=1x=1 on a graphing calculator and verify the resulting visual shape matches the identified family.


Example 2: Evaluating a composite function


Question: Given f(x)=2x+1f(x) = 2x + 1 and g(x)=x2−3g(x) = x^2 - 3, find the composite function f(g(x))f(g(x)).


Method:

  1. Substitute the entire expression for g(x)g(x) into the input variable of f(x)f(x).
  2. Expand and simplify the resulting expression.

Answer:

f(g(x))=f(x2−3)f(g(x)) = f(x^2 - 3)

f(g(x))=2(x2−3)+1f(g(x)) = 2(x^2 - 3) + 1

f(g(x))=2x2−6+1f(g(x)) = 2x^2 - 6 + 1

f(g(x))=2x2−5f(g(x)) = 2x^2 - 5


Check: Test an input value. If x=2x = 2, g(2)=22−3=1g(2) = 2^2 - 3 = 1. Then f(1)=2(1)+1=3f(1) = 2(1) + 1 = 3. Using the composite rule: 2(2)2−5=2(4)−5=8−5=32(2)^2 - 5 = 2(4) - 5 = 8 - 5 = 3. The results match.


Example 3: Finding an inverse function


Question: Find the inverse function, f−1(x)f^{-1}(x), for the linear function f(x)=x−23f(x) = \dfrac{x - 2}{3}.


Method:

  1. Replace f(x)f(x) with yy.
  2. Swap the variables xx and yy.
  3. Solve the new equation for yy.
  4. Replace yy with the inverse notation f−1(x)f^{-1}(x).

Answer:

y=x−23y = \dfrac{x - 2}{3}


Swap xx and yy:

x=y−23x = \dfrac{y - 2}{3}


Solve for yy:

3x=y−23x = y - 2

y=3x+2y = 3x + 2

f−1(x)=3x+2f^{-1}(x) = 3x + 2


Check: Substitute f(x)f(x) into the inverse function.

f−1(f(x))=3(x−23)+2=(x−2)+2=xf^{-1}(f(x)) = 3\left(\dfrac{x - 2}{3}\right) + 2 = (x - 2) + 2 = x. The output successfully returns the original input.

Common mistakes

  • Misidentifying a curve segment as linear: A short segment of a quadratic or exponential function can appear straight if plotted poorly. You must analyze the rule or use enough points to reveal the true shape.
  • Confusing onto and into functions: An onto function covers every single possible value in the codomain. An into function leaves some codomain values unused.
  • Assuming all inverses are functions: Reversing the variables of a quadratic function produces a sideways curve that fails the vertical line test. An inverse relation is only classified as a valid function if the original relationship is strictly one-to-one (bijective).

Frequently asked questions

What type of function is always continuous?

A function whose graph can be drawn completely without lifting your pencil is continuous. The most common school-level continuous functions are constant, linear, quadratic, cubic, and other standard polynomial functions.


Can any mathematical equation be considered a function?

No, a mathematical relation only qualifies as a function if every input connects to exactly one output. Visually, its graph must pass the vertical line test, where no vertical line touches the graph more than once.


How do you determine the types of functions in math from an equation?

You identify the type by looking for the highest degree of the polynomial, where the variable is located, and the presence of specific mathematical operators like absolute value brackets, radicals, or trigonometric terms.

Practice questions

Question

A coordinate plane showing a U-shaped parabola opening upward with its lowest point near the bottom center of the graph.

Which function family does this graph represent?

  • Linear

  • Quadratic

  • Absolute value

  • Exponential

Answer:

Quadratic

Question

A relationship where multiple distinct domain inputs are assigned to the identical range output is classified as which type of mapping?

  • One-to-one

  • Many-to-one

  • Identity

  • Composite

Answer:

Many-to-one

Question

Which visual shape correctly identifies the absolute value function f(x)=∣x−4∣f(x) = |x - 4|?

  • A straight non-vertical line

  • A U-shaped parabolic curve

  • A symmetric V-shaped curve

  • A wavy periodic curve

Answer:

A symmetric V-shaped curve

Question

If f(x)=3xf(x) = 3x and g(x)=x+2g(x) = x + 2, what is the exact numerical value of the composite function f(g(4))f(g(4))?

  • 1414

  • 1818

  • 2020

  • 2424

Answer:

1818

Question

What is the inverse function of the linear function f(x)=2x+8f(x) = 2x + 8?

  • f−1(x)=x−82f^{-1}(x) = \dfrac{x - 8}{2}

  • f−1(x)=x+82f^{-1}(x) = \dfrac{x + 8}{2}

  • f−1(x)=2x−8f^{-1}(x) = 2x - 8

  • f−1(x)=−2x−8f^{-1}(x) = -2x - 8

Answer:

f−1(x)=x−82f^{-1}(x) = \dfrac{x - 8}{2}