Mathwords logoMathwords

types of functions — Definition, Formula & Examples

Types of functions are the major categories used to classify functions based on their rules, shapes, and behavior. The most common types studied in high school include linear, quadratic, polynomial, exponential, logarithmic, trigonometric, rational, and absolute value functions.

A function f:ABf: A \to B assigns each element of its domain AA to exactly one element of its codomain BB. Functions are classified by the algebraic form of the rule that defines this assignment — for instance, whether the independent variable appears as a base, an exponent, inside a trigonometric operator, or raised to various integer powers. Each classification determines the function's domain, range, continuity, rate of change, and graph shape.

How It Works

Recognizing a function's type tells you what to expect from its graph, its growth behavior, and the techniques you can use to solve equations involving it. A linear function like f(x)=3x+1f(x) = 3x + 1 grows at a constant rate and produces a straight line. A quadratic function like f(x)=x24f(x) = x^2 - 4 produces a parabola. An exponential function like f(x)=2xf(x) = 2^x grows by a constant factor, producing rapid increase or decay. To classify a function, look at where the variable appears: if xx is only in the exponent, it is exponential; if xx is the base raised to whole-number powers, it is polynomial; if xx appears inside sin\sin, cos\cos, or tan\tan, it is trigonometric. The table below summarizes the main types. | Type | General Form | Example | Graph Shape | |---|---|---|---| | Linear | f(x)=mx+bf(x)=mx+b | f(x)=2x+3f(x)=2x+3 | Straight line | | Quadratic | f(x)=ax2+bx+cf(x)=ax^2+bx+c | f(x)=x24f(x)=x^2-4 | Parabola | | Polynomial | f(x)=anxn++a0f(x)=a_nx^n+\cdots+a_0 | f(x)=x3xf(x)=x^3-x | Smooth curve with turns | | Exponential | f(x)=abxf(x)=a\cdot b^x | f(x)=32xf(x)=3\cdot 2^x | J-shaped curve | | Logarithmic | f(x)=logb(x)f(x)=\log_b(x) | f(x)=log2(x)f(x)=\log_2(x) | Slow-rising curve | | Trigonometric | f(x)=sin(x),cos(x),f(x)=\sin(x),\cos(x),\ldots | f(x)=sin(x)f(x)=\sin(x) | Wave | | Rational | f(x)=p(x)q(x)f(x)=\frac{p(x)}{q(x)} | f(x)=1xf(x)=\frac{1}{x} | Curve with asymptotes | | Absolute value | f(x)=ax+bf(x)=|ax+b| | f(x)=x2f(x)=|x-2| | V-shape |

Example

Problem: Classify each function and describe its key feature: (a) f(x)=5x7f(x) = 5x - 7, (b) g(x)=43xg(x) = 4 \cdot 3^x, (c) h(x)=x+1x2h(x) = \frac{x+1}{x-2}.
Classify f(x): The variable xx appears to the first power with no other operations. This matches the form mx+bmx + b, so ff is a linear function. Its slope is 5, meaning it increases by 5 units for every 1-unit increase in xx.
f(x)=5x7(linear)f(x) = 5x - 7 \quad \text{(linear)}
Classify g(x): The variable xx appears in the exponent, and the base 3 is a positive constant. This is an exponential function. Because the base is greater than 1, gg models exponential growth — it triples every time xx increases by 1.
g(x)=43x(exponential)g(x) = 4 \cdot 3^x \quad \text{(exponential)}
Classify h(x): The function is a ratio of two polynomials. The denominator x2x - 2 can equal zero, so the domain excludes x=2x = 2. This is a rational function with a vertical asymptote at x=2x = 2.
h(x)=x+1x2(rational)h(x) = \frac{x+1}{x-2} \quad \text{(rational)}
Answer: ff is linear (constant rate of change), gg is exponential (constant growth factor of 3), and hh is rational (ratio of polynomials with an asymptote at x=2x = 2).

Another Example

Problem: A population doubles every year starting from 500. Write the function and identify its type.
Identify the pattern: Doubling means multiplying by 2 each year — a constant multiplicative factor.
Write the function: Using the exponential form f(t)=abtf(t) = a \cdot b^t with initial value a=500a = 500 and growth factor b=2b = 2:
P(t)=5002tP(t) = 500 \cdot 2^t
Classify: The variable tt is in the exponent, so this is an exponential function.
Answer: P(t)=5002tP(t) = 500 \cdot 2^t — an exponential function.

Why It Matters

Classifying functions is central to Algebra 2 and Precalculus, where each type demands different solving techniques — factoring for polynomials, logarithms for exponentials, and asymptote analysis for rational functions. In careers like data science and engineering, choosing the right function type to model real-world data (population growth, signal waves, cost curves) is one of the first and most consequential decisions in any analysis.

Common Mistakes

Mistake: Confusing exponential and power functions. Students sometimes call x3x^3 exponential because the exponent is large.
Correction: In an exponential function the variable is the exponent (3x3^x). In a power or polynomial function the variable is the base (x3x^3). Check which part — the base or the exponent — contains xx.
Mistake: Forgetting that linear and quadratic functions are special cases of polynomial functions.
Correction: A linear function is a degree-1 polynomial and a quadratic is a degree-2 polynomial. When a problem asks you to be specific, name the narrower type (linear or quadratic) rather than just saying 'polynomial'.

Related Terms