Types of Functions

 

Types of Functions

 

Functions are among the most fundamental concepts encountered in both introductory and advanced mathematics. A function is a specific rule that maps each input $x$ to exactly one output $y$. In this section, you will be introduced to the various types of functions, explore their real-world applications, and access detailed explanations through the submenus below.

Functions are not just abstract mathematical concepts; they continuously govern our daily lives. Your car’s trip computer, the fuel gauge, the step counter on your phone, your electricity bill, and even the content recommended to you by algorithms all operate on the principle of functions.

 

Real-World Applications of Functions

 

Here are a few powerful examples to make the concept of a function more tangible:

  • Fuel Gauge — As the volume of fuel pumped in liters ($x$) increases, the total cost displayed ($y$) increases proportionally. This is a function operating on a “liters $\rightarrow$ price” mapping.
  • Trip Computer Data — Metrics such as average speed, instantaneous fuel consumption, and remaining range are functions that take raw sensor data as inputs to produce a single, distinct output.
  • Fitness Step Counter — Number of steps taken ($x$) $\rightarrow$ calories burned ($y$). This represents another direct functional relationship.

These examples demonstrate that functions are not merely abstract formulas; they serve as the core mathematical models for all measurements and computations in daily life.

 

Types of Functions – Quick Overview

 

The following types of functions represent essential building blocks for high school curricula (such as SAT, ACT, and AP Calculus) as well as university-level mathematics. Each type will be explored in depth on its respective subpage, complete with examples, graphs, and worked solutions.

 

1. Into Function (Non-Surjective Function)

Each element $x$ in the domain maps to an element $y$ within the codomain; however, the range does not necessarily cover the entire codomain, leaving some elements unmapped.

Real-world connection: A car’s fuel consumption modeled against speed might never yield certain theoretical values (for instance, when driving on a perfectly flat road). Alternatively, consider a “weight $\rightarrow$ price” relationship in a grocery store. Every item’s weight maps to a specific price, but not every possible price tag in the store is utilized.

 

2. Surjective Function (Onto Function)

 

Every element in the codomain is mapped to by at least one input $x$ from the domain. The range is equal to the codomain, meaning no elements are left out.

Real-world connection: Every possible fuel consumption rate corresponds to at least one specific driving speed, or consider an elevator servicing all floors of a building. Every floor (codomain) is directly represented by at least one call button (domain).

 

3. Injective Function (One-to-One Function)

 

Distinct inputs map to distinct outputs. There are no collisions or overlapping outputs.

Real-world connection: A vehicle traveling at a specific instantaneous speed yields a unique instantaneous consumption rate, or consider a National Identification Number $\rightarrow$ citizen mapping. Every unique ID corresponds to exactly one individual, and every individual holds exactly one unique ID.

4. Constant Function

 

All inputs $x$ map to the exact same output value $y$. Graphically, this is represented by a horizontal line.

Real-world connection: If a car’s ambient light sensor malfunctions, the dashboard display maintains a constant brightness level regardless of external conditions. Alternatively, consider a parking garage with a “first 30 minutes free” policy. Regardless of the exact duration of stay within that window, the parking fee remains $0$.

 

5. Identity Function

 

Every input maps directly to itself: $f(x) = x$.

Real-world connection: When you disable “automatic brightness” on a smartphone and adjust it manually, the slider’s raw input value is applied directly as the screen’s output brightness level.

 

6. Inverse of a Function

 

Reverses the mapping direction of a function: transforming “$x \rightarrow y$” into “$y \rightarrow x$”.

Real-world connection: Estimating a vehicle’s speed based on its current fuel consumption rate.

 

7. Composite Function

 

The sequential application of two functions: $(f \circ g)(x) = f(g(x))$.

Real-world connection: A processing chain consisting of sensor $\rightarrow$ processor $\rightarrow$ display. Alternatively, consider a logistics tracking chain: Tracking Number $\rightarrow$ Distribution Center $\rightarrow$ Delivery Status. The mapping from “code $\rightarrow$ center $\rightarrow$ status” forms a composite function.

 

8. Permutation Function

 

A function mapping a set onto itself that is both injective (one-to-one) and surjective (onto).

Real-world connection: Rearranging the layout of a menu interface or shifting the application icons on a smartphone home screen. The underlying set of icons remains identical; only their relative positions are permuted.

 

9. Piecewise Function

 

A function defined by multiple sub-functions, each applying to a distinct interval of the domain.

Real-world connection: A car exhibiting one fuel efficiency rate between $0\text{–}50\text{ km/h}$ and a completely different rate between $50\text{–}90\text{ km/h}$. Another classic example is a tiered utility bill: $0\text{–}150\text{ kWh}$ billed at a base rate, $150\text{–}300\text{ kWh}$ at a secondary rate, and $300+\text{ kWh}$ billed at a premium tier.

 

10. Odd and Even Functions

 

  • Odd function: $f(-x) = -f(x)$ $\rightarrow$ Symmetric with respect to the origin.
  • Even function: $f(-x) = f(x)$ $\rightarrow$ Symmetric with respect to the y-axis.

Real-world connection: The balanced physical properties of certain sensors that exhibit bilateral symmetry.

  • Even Function: Sound intensity measurement — an acoustic input of $60\text{ dB}$ coming from the right yields the same scalar reading as $60\text{ dB}$ coming from the left.
  • Odd Function: Steering wheel angle — turning right yields $+30^\circ$ while turning left yields $-30^\circ$. When a vehicle’s steering input is registered as either positive or negative depending on the direction of rotation, it models an odd function. This physical relationship perfectly maps to the algebraic definition of an odd function:
    $f(-x) = -f(x)$

    In other words, changing the sign of the input directly inverts the sign of the output.