Learn Chinese, Math, English ELA online with WuKong Education!
Book A Free Trial Class Now
Blog / Education News / Math Education / Types of Functions: Complete Guide with Examples and Graphs

Types of Functions: Complete Guide with Examples and Graphs

Introduction

Functions are all around us, from checking phone battery life to calculating costs while shopping. In math, a function assigns each input exactly one output, written as y = f(x). A key property is uniqueness: every input has one output. The vertical line test helps verify functions on a graph. Functions can be classified by mapping, degree, mathematical concepts, or special properties. This guide will explain each type of function to help students understand and apply them confidently to real-world problems.

Types of Functions Based on Mapping

One-to-One Function (Injective)

A one-to-one function assigns different outputs to different inputs. In other words, if f(a) = f(b), then a = b.

  • Definition: Each input maps to a unique output.
  • Example: f(x) = 2x + 1 Here, no two values of x produce the same y.
  • Key Property: Passes the horizontal line test.
  • Domain and Range: Both are sets of real numbers.
  • Graph Description: A straight line that never repeats a y-value.

Real-life connection: Temperature conversion from Celsius to Fahrenheit is one-to-one.

Learn authentic Chinese from those who live and breathe the culture.

Specially tailored for kids aged 3-18 around the world!

Get started free!

Many-to-One Function

In a many-to-one function, different inputs can produce the same output.

  • Definition: Multiple inputs map to a single output.
  • Example: f(x) = x² f(2) = 4 and f(−2) = 4.
  • Key Property: Fails the horizontal line test.
  • Domain: All real numbers.
  • Range: Non-negative real numbers.
  • Graph Description: A U-shaped parabola symmetric about the y-axis.
Types of Functions Based on Mapping

Onto Function (Surjective)

An onto function covers every possible value in the codomain.

  • Definition: Every element in the codomain has at least one pre-image.
  • Example: f(x) = x³, from ℝ to ℝ.
  • Property: Range equals codomain.
  • Graph Description: A smooth curve extending infinitely in both directions.

Into Function

An into function does not cover all elements of the codomain.

  • Definition: Range is a proper subset of the codomain.
  • Example: f(x) = x², from ℝ to ℝ.
  • Graph Description: Parabola that never goes below the x-axis.

Types of Functions Based on Degree

Identity Function

  • Definition: Output equals input.
  • Formula: f(x) = x
  • Graph Description: A straight line passing through the origin with slope 1.
  • Property: Domain = Range = ℝ.

Constant Function

  • Definition: Output is always the same.
  • Formula: f(x) = c
  • Example: f(x) = 5
  • Graph Description: Horizontal line.
  • Property: Domain is ℝ; range is a single value.

Linear Function

  • Definition: Degree 1 polynomial.
  • Formula: f(x) = mx + b
  • Example: f(x) = 2x + 3
  • Graph Description: Straight line with slope m.
  • Application: Cost calculations, speed-distance relations.

Quadratic Function

  • Definition: Degree 2 polynomial.
  • Formula: f(x) = ax² + bx + c
  • Example: f(x) = x² − 4x + 3
  • Graph Description: Parabola opening upward or downward.
  • Property: Has a maximum or minimum point (vertex).

Cubic Function

  • Definition: Degree 3 polynomial.
  • Formula: f(x) = ax³ + bx² + cx + d
  • Example: f(x) = x³
  • Graph Description: S-shaped curve.
  • Application: Modeling volume and growth trends.

Polynomial Function

  • Definition: Sum of powers of x with real coefficients.
  • Example: f(x) = 3x⁴ − 2x² + x − 7
  • Graph Description: Smooth curve without breaks.
  • Property: Domain is all real numbers.

Types of Functions Based on Mathematical Concepts

Algebraic Functions

Functions formed using algebraic operations.

  • Example: f(x) = √(x + 2)
  • Domain: x ≥ −2
  • Graph Description: Curve starting at x = −2 and increasing.

Trigonometric Functions

Based on angles and triangles.

  • Common Types: sin x, cos x, tan x
  • Example: f(x) = sin x
  • Graph Description: Wave-like curve.
  • Property: Periodic behavior.

Inverse Trigonometric Functions

Reverse of trigonometric functions.

  • Example: f(x) = sin⁻¹(x)
  • Domain: −1 ≤ x ≤ 1
  • Graph Description: Smooth increasing curve.

Exponential Functions

  • Definition: Variable appears in the exponent.
  • Formula: f(x) = aˣ, a > 0
  • Example: f(x) = 2ˣ
  • Graph Description: Rapid growth curve.
  • Application: Population growth, compound interest.

Logarithmic Functions

  • Definition: Inverse of exponential functions.
  • Formula: f(x) = logₐ x
  • Example: f(x) = log₁₀ x
  • Graph Description: Slow growth curve.
  • Domain: x > 0

Miscellaneous Types of Functions

Modulus Function

  • Formula: f(x) = |x|
  • Graph Description: V-shaped graph.
  • Property: Always non-negative.

Rational Function

  • Definition: Ratio of two polynomials.
  • Example: f(x) = 1 / (x − 1)
  • Graph Description: Curve with asymptotes.
  • Domain: Excludes values that make denominator zero.

Signum Function

  • Formula: f(x) = −1 (x < 0), 0 (x = 0), 1 (x > 0)
  • Graph Description: Step-like graph.

Even and Odd Functions

  • Even: f(−x) = f(x), symmetric about y-axis (e.g., x²).
  • Odd: f(−x) = −f(x), symmetric about origin (e.g., x³).

Periodic Function

  • Definition: Repeats values at regular intervals.
  • Example: sin x
  • Graph Description: Repeating wave.

Greatest Integer Function

  • Formula: f(x) = ⌊x⌋
  • Graph Description: Step function.

Inverse Function

  • Definition: Reverses input and output.
  • Property: Only exists for one-to-one functions.
  • Graph Description: Reflection across y = x.

Composite Function

  • Definition: One function inside another.
  • Formula: (f ∘ g)(x) = f(g(x))
  • Example: f(x) = x², g(x) = x + 1 → f(g(x)) = (x + 1)²

Summary Table of Function Types

CategoryFunction TypeDefinitionExampleDomainRange
Based on MappingOne-to-One (Injective)Each input maps to unique outputf(x) = 2x + 5
Many-to-OneMultiple inputs map to same outputf(x) = x²[0, ∞)
Onto (Surjective)Every codomain element has pre-imagef(x) = x + 3
BijectiveOne-to-one and ontof(x) = 3x – 2
IntoSome codomain elements have no pre-imagef(x) = x² + 1[1, ∞)
Based on DegreeIdentityOutput = Inputf(x) = x
ConstantAll inputs map to constantf(x) = 4{4}
LinearDegree 1 polynomialf(x) = 2x – 7
QuadraticDegree 2 polynomialf(x) = 3x² + 2x – 1[-4/3, ∞)
CubicDegree 3 polynomialf(x) = 2x³ – 5x² + x + 3
Based on ConceptsTrigonometricAngle-based ratiosf(θ) = sinθ[-1, 1]
LogarithmicInverse of exponentialf(x) = log₂x(0, ∞)
ExponentialVariable in exponentf(x) = 2ˣ(0, ∞)
MiscellaneousModulusAbsolute value of inputf(x) = |x|[0, ∞)
RationalRatio of two polynomialsf(x) = (x+2)/(x-3)ℝ \ {3}ℝ \ {1}
Evenf(-x) = f(x)f(x) = x²[0, ∞)
Oddf(-x) = -f(x)f(x) = x³
CompositeCombination of two functionsf(g(x)) = 2x² + 3[3, ∞)

Conclusion

Functions are the language of relationships—whether you’re calculating distance, analyzing data, or solving real-world problems. From simple linear functions to complex trigonometric waves, each type has unique properties that make it useful for specific scenarios. By understanding how functions are classified (by mapping, degree, math concepts, or miscellaneous traits), you’ll be able to identify, graph, and solve problems involving any function with confidence.

Remember, practice is key! Try graphing different functions, finding their domains and ranges, or computing composite and inverse functions to reinforce your skills. Functions aren’t just a math topic—they’re a tool to make sense of the world around you. Keep exploring, and you’ll master them in no time!

FAQs About Types of Functions

1. How to identify a one-to-one function?

Use the horizontal line test: If any horizontal line intersects the graph more than once, it’s not one-to-one. Algebraically, if f(x1​)=f(x2​) implies x1​=x2​, the function is one-to-one.

2. What is the difference between even and odd functions?

Even functions satisfy f(−x)=f(x) and are symmetric about the y-axis (e.g., x2).
Odd functions satisfy f(−x)=−f(x) and are symmetric about the origin (e.g., x3).

3. Do all functions have inverses?

No—only bijective functions (one-to-one and onto) have inverses. If a function is not one-to-one (e.g., x2), it doesn’t have a unique inverse unless its domain is restricted.

4. What is the vertical line test used for?

The vertical line test confirms if a relation is a function. If any vertical line intersects the graph more than once, the relation has multiple outputs for one input—so it’s not a function.

5. How do you find the domain of a rational function?

The domain of a rational function f(x)=Q(x)P(x)​ is all real numbers except where the denominator Q(x)=0 (since division by zero is undefined). For example, f(x)=x−21​ has a domain of R∖{2}.

Learn authentic Chinese from those who live and breathe the culture.

Specially tailored for kids aged 3-18 around the world!

Get started free!

Comments0

Comments

0/800
Reply

Real results, the right classes. Try WuKong today

WuKong’s live online courses in Chinese, Math, and English ELA are tailored for every learner. Stay motivated, build skills fast, and see progress from day one.