Types of Functions: Complete Study Notes, Formulae, Graphs & Practice Tool
A function is a mathematical rule that assigns each allowed input exactly one output. Functions are the language of algebra, modelling, graphing, calculus, statistics, finance, science, engineering and computer science. This complete RevisionTown guide explains the main types of functions, their formulae, graphs, domains, ranges, transformations, inverse rules, composite rules, exam-style checks and common mistakes.
Use this page as a revision hub. Start with the interactive function explorer, then study each function family, compare formulas in the tables, review domain and range rules, and finish with the practice questions and mastery checklist.
Interactive Function Explorer
Select a function type and enter an \(x\)-value. The tool shows the parent formula, example formula, sample output, domain, range, graph behaviour and exam tip. This is designed for quick revision before solving graphing or algebra problems.
Transformation Builder
Most graph transformations can be summarized using the structure:
\[ g(x)=a f\big(b(x-h)\big)+k \]
The values \(a\), \(b\), \(h\), and \(k\) control stretching, reflection, horizontal movement and vertical movement.
What Is a Function?
A function is a rule, machine or mapping that takes an input and produces one output. If the input is \(x\), the output is commonly written as \(f(x)\), read as “\(f\) of \(x\).” The key condition is simple but strict: every input in the domain must have exactly one output in the range.
The notation:
\[ f: x \mapsto f(x) \]
means that the function \(f\) maps the input \(x\) to the output \(f(x)\). For example:
\[ f(x)=2x+3 \]
If \(x=5\), then:
\[ f(5)=2(5)+3=13 \]
In words, the function takes \(5\), doubles it, adds \(3\), and returns \(13\).
Function Mapping Diagram
Vertical Line Test
A graph represents a function if every vertical line intersects the graph at no more than one point. The reason is that a vertical line fixes one \(x\)-value. If that line touches the graph twice, one input has two outputs, so the relation is not a function.
Quick Classification of Function Types
Functions can be classified in several ways. One method groups them by formula: linear, quadratic, polynomial, rational, radical, exponential, logarithmic and trigonometric. Another method groups them by behaviour: increasing, decreasing, even, odd, periodic, one-to-one, many-to-one, bounded, unbounded, continuous or discontinuous. A third method groups them by construction: piecewise functions, composite functions, inverse functions and transformed functions.
| Function Type | General Formula | Typical Graph | Key Idea |
|---|---|---|---|
| Constant | \(f(x)=c\) | Horizontal line | Every input gives the same output. |
| Identity | \(f(x)=x\) | Line through the origin | The output equals the input. |
| Linear | \(f(x)=mx+c\) | Straight line | Constant rate of change. |
| Quadratic | \(f(x)=ax^2+bx+c\) | Parabola | Second-degree polynomial with a turning point. |
| Polynomial | \(f(x)=a_nx^n+\cdots+a_1x+a_0\) | Smooth curve | Built from powers of \(x\) with non-negative integer exponents. |
| Rational | \(f(x)=\frac{p(x)}{q(x)},\ q(x)\ne0\) | Branches with possible asymptotes | A quotient of two polynomials. |
| Radical | \(f(x)=\sqrt{x}\) or \(f(x)=\sqrt[n]{x}\) | Root curve | Often has restricted domain for even roots. |
| Exponential | \(f(x)=ab^x\) | Rapid growth or decay | The variable is in the exponent. |
| Logarithmic | \(f(x)=\log_b(x)\) | Slow increasing/decreasing curve | The inverse of an exponential function. |
| Trigonometric | \(\sin x,\ \cos x,\ \tan x\) | Periodic wave or repeating curve | Models cycles, angles and oscillations. |
| Piecewise | \(f(x)=\begin{cases}x^2,&x<0\\x+1,&x\ge0\end{cases}\) | Different rules on different intervals | The formula changes depending on the input. |
1. Constant Functions
A constant function has the same output for every input. Its general form is:
\[ f(x)=c \]
The graph is a horizontal line. If \(f(x)=4\), every \(x\)-value gives \(4\). The domain is usually all real numbers, written as \(\mathbb{R}\), and the range is the single value \(\{4\}\).
Constant functions are useful because they model quantities that do not change with the input. In exam questions, they often appear when students compare gradient, rate of change, horizontal lines and special cases of linear functions. A constant function has gradient \(0\).
\[ f(x)=4,\quad \text{domain } \mathbb{R},\quad \text{range } \{4\} \]
2. Identity Functions
The identity function returns the input unchanged:
\[ f(x)=x \]
It is a straight line through the origin with slope \(1\). It is called the identity function because applying it does not change the value. For example, \(f(7)=7\) and \(f(-3)=-3\).
This function becomes important when studying inverse functions because a function and its inverse “undo” each other:
\[ f(f^{-1}(x))=x \quad \text{and} \quad f^{-1}(f(x))=x \]
3. Linear Functions
A linear function has the form:
\[ f(x)=mx+c \]
Here, \(m\) is the slope or gradient, and \(c\) is the \(y\)-intercept. The slope measures how much the output changes when the input increases by \(1\). If \(m>0\), the function increases. If \(m<0\), the function decreases. If \(m=0\), the function becomes constant.
The slope between two points \((x_1,y_1)\) and \((x_2,y_2)\) is:
\[ m=\frac{y_2-y_1}{x_2-x_1} \]
Linear functions model fixed-rate situations such as simple cost calculations, distance at constant speed, currency conversion, temperature conversion and straight-line depreciation. In exams, students are often asked to find the equation of a line, interpret the slope, identify the intercept, or solve two linear functions simultaneously.
4. Quadratic Functions
A quadratic function has degree \(2\). The standard form is:
\[ f(x)=ax^2+bx+c,\quad a\ne0 \]
The graph of a quadratic function is a parabola. If \(a>0\), the parabola opens upward and has a minimum point. If \(a<0\), it opens downward and has a maximum point. Quadratic functions appear in projectile motion, area problems, optimization, revenue models, braking distance, and many algebra questions.
The vertex form is:
\[ f(x)=a(x-h)^2+k \]
The vertex is \((h,k)\). The axis of symmetry is:
\[ x=h \]
In standard form, the \(x\)-coordinate of the vertex is:
\[ x=-\frac{b}{2a} \]
The quadratic formula solves \(ax^2+bx+c=0\):
\[ x=\frac{-b\pm\sqrt{b^2-4ac}}{2a} \]
The discriminant tells the number of real roots:
\[ \Delta=b^2-4ac \]
- If \(\Delta>0\), there are two distinct real roots.
- If \(\Delta=0\), there is one repeated real root.
- If \(\Delta<0\), there are no real roots.
5. Polynomial Functions
A polynomial function is built from powers of \(x\) with non-negative integer exponents:
\[ f(x)=a_nx^n+a_{n-1}x^{n-1}+\cdots+a_1x+a_0 \]
The degree \(n\) is the highest power with a non-zero coefficient. Polynomial graphs are smooth and continuous. They do not have breaks, holes or vertical asymptotes. The leading term \(a_nx^n\) controls the end behaviour.
For even degree polynomials, both ends of the graph move in the same direction. For odd degree polynomials, the ends move in opposite directions. The sign of the leading coefficient determines whether the right-hand end rises or falls.
| Degree | Name | Example | Typical Feature |
|---|---|---|---|
| 0 | Constant | \(f(x)=5\) | Horizontal line |
| 1 | Linear | \(f(x)=2x-1\) | One straight line |
| 2 | Quadratic | \(f(x)=x^2-4x+3\) | Parabola |
| 3 | Cubic | \(f(x)=x^3-3x\) | Can have two turning points |
| 4 | Quartic | \(f(x)=x^4-2x^2+1\) | Can have up to three turning points |
6. Cubic Functions
A cubic function is a polynomial of degree \(3\):
\[ f(x)=ax^3+bx^2+cx+d,\quad a\ne0 \]
Cubic graphs often have an S-shape, although the exact shape depends on coefficients. A simple parent cubic is:
\[ f(x)=x^3 \]
The parent cubic is odd because:
\[ f(-x)=(-x)^3=-x^3=-f(x) \]
Cubic functions are important in graph sketching, transformations, modelling volume, and studying rates of change. In exams, students may need to factor cubics, identify intercepts, sketch end behaviour, or interpret turning points.
7. Absolute Value Functions
The absolute value function is:
\[ f(x)=|x| \]
It measures distance from zero, so it is never negative. The graph is V-shaped with a sharp corner at the origin. A transformed absolute value function can be written as:
\[ f(x)=a|x-h|+k \]
The vertex is \((h,k)\). If \(a>0\), the V opens upward. If \(a<0\), it opens downward. Absolute value functions are used in distance problems, error measurement, tolerances and piecewise definitions.
Absolute value can also be written as a piecewise function:
\[ |x|= \begin{cases} x, & x\ge0\\ -x, & x<0 \end{cases} \]
8. Rational Functions
A rational function is a quotient of two polynomials:
\[ f(x)=\frac{p(x)}{q(x)},\quad q(x)\ne0 \]
The denominator cannot be zero. This restriction creates excluded values in the domain. Rational functions may have vertical asymptotes, horizontal asymptotes, oblique asymptotes or holes. A simple parent rational function is:
\[ f(x)=\frac{1}{x} \]
Its domain is \(x\ne0\), and its range is \(y\ne0\). The graph has two branches, one in Quadrant I and one in Quadrant III.
For a rational function, vertical asymptotes often occur where the denominator equals zero after simplification:
\[ q(x)=0 \]
Rational functions model rates, inverse variation, average cost, pressure-volume relationships and situations where division by a changing quantity matters.
9. Radical and Square Root Functions
A radical function contains a root expression. The most common parent function is:
\[ f(x)=\sqrt{x} \]
For real-valued square root functions, the expression under the square root must be non-negative:
\[ x\ge0 \]
A transformed square root function has the form:
\[ f(x)=a\sqrt{x-h}+k \]
Its starting point is usually \((h,k)\), and the domain is \(x\ge h\) if the expression is \(x-h\). Radical functions appear in geometry, physics, distance formulas, inverse quadratic relationships and algebraic equation solving.
10. Exponential Functions
An exponential function has the variable in the exponent:
\[ f(x)=ab^x,\quad b>0,\quad b\ne1 \]
If \(b>1\), the function grows exponentially. If \(0
\[ f(x)=e^x \]
Exponential functions model compound interest, population growth, radioactive decay, cooling, bacteria growth, inflation and algorithmic scaling.
Compound growth can be written as:
\[ A=P(1+r)^t \]
Continuous growth can be written as:
\[ A=Pe^{rt} \]
The horizontal asymptote of \(f(x)=b^x\) is:
\[ y=0 \]
11. Logarithmic Functions
A logarithmic function is the inverse of an exponential function. The basic form is:
\[ f(x)=\log_b(x),\quad b>0,\quad b\ne1,\quad x>0 \]
The logarithm answers the question: “What exponent is needed?” For example:
\[ \log_2(8)=3 \quad \text{because} \quad 2^3=8 \]
Logarithmic functions have domain \(x>0\). The parent graph has a vertical asymptote at:
\[ x=0 \]
Useful logarithm rules include:
\[ \log_b(MN)=\log_b(M)+\log_b(N) \]
\[ \log_b\left(\frac{M}{N}\right)=\log_b(M)-\log_b(N) \]
\[ \log_b(M^k)=k\log_b(M) \]
Logarithms appear in pH, sound intensity, earthquake magnitude, data scaling, finance and exponential equation solving.
12. Trigonometric Functions
Trigonometric functions connect angles with ratios and cycles. The three core functions are:
\[ \sin x,\quad \cos x,\quad \tan x \]
Sine and cosine are periodic waves with period \(2\pi\):
\[ \sin(x+2\pi)=\sin x \]
\[ \cos(x+2\pi)=\cos x \]
Tangent has period \(\pi\):
\[ \tan(x+\pi)=\tan x \]
A transformed sine function is often written as:
\[ f(x)=a\sin(b(x-h))+k \]
Here, \(|a|\) is the amplitude, \(h\) is the phase shift, \(k\) is the vertical shift, and the period is:
\[ \text{Period}=\frac{2\pi}{|b|} \]
Trigonometric functions model waves, sound, light, seasons, tides, circular motion, alternating current and repeated patterns.
13. Piecewise Functions
A piecewise function uses different formulas for different parts of the domain:
\[ f(x)= \begin{cases} x^2, & x<0\\ x+1, & x\ge0 \end{cases} \]
Piecewise functions are useful when one rule cannot describe the whole situation. Examples include tax brackets, shipping costs, parking fees, mobile data plans, step functions, absolute value functions and real-world restrictions.
When working with a piecewise function, first decide which interval the input belongs to. Then use the matching formula. For example, if:
\[ f(x)= \begin{cases} x^2, & x<0\\ x+1, & x\ge0 \end{cases} \]
then \(f(-3)=(-3)^2=9\), but \(f(3)=3+1=4\).
14. Composite Functions
A composite function is created by putting one function inside another. The notation:
\[ (f\circ g)(x)=f(g(x)) \]
means “apply \(g\) first, then apply \(f\).” If:
\[ f(x)=x^2 \quad \text{and} \quad g(x)=x+3 \]
then:
\[ (f\circ g)(x)=f(x+3)=(x+3)^2 \]
But:
\[ (g\circ f)(x)=g(x^2)=x^2+3 \]
In general:
\[ f(g(x))\ne g(f(x)) \]
Composite functions are important in transformations, modelling multi-step processes, calculus chain rule preparation and inverse functions.
15. Inverse Functions
An inverse function reverses the effect of the original function. If \(f\) sends \(x\) to \(y\), then \(f^{-1}\) sends \(y\) back to \(x\). The inverse relationship is:
\[ f^{-1}(f(x))=x \]
To find an inverse function:
- Write \(f(x)\) as \(y\).
- Swap \(x\) and \(y\).
- Rearrange to make \(y\) the subject.
- Write the result as \(f^{-1}(x)\).
Example:
\[ f(x)=2x+3 \]
\[ y=2x+3 \]
Swap \(x\) and \(y\):
\[ x=2y+3 \]
Rearrange:
\[ x-3=2y \]
\[ y=\frac{x-3}{2} \]
Therefore:
\[ f^{-1}(x)=\frac{x-3}{2} \]
Even, Odd, One-to-One and Many-to-One Functions
Functions can also be classified by symmetry and input-output behaviour.
| Behaviour Type | Definition | Example | Graph Meaning |
|---|---|---|---|
| Even function | \(f(-x)=f(x)\) | \(f(x)=x^2\) | Symmetric about the \(y\)-axis. |
| Odd function | \(f(-x)=-f(x)\) | \(f(x)=x^3\) | Rotational symmetry about the origin. |
| One-to-one function | Each output comes from only one input. | \(f(x)=2x+1\) | Passes the horizontal line test. |
| Many-to-one function | Different inputs can share the same output. | \(f(x)=x^2\) | May fail the horizontal line test. |
| Periodic function | \(f(x+T)=f(x)\) | \(f(x)=\sin x\) | Repeats after a fixed interval. |
| Increasing function | If \(x_2>x_1\), then \(f(x_2)>f(x_1)\) | \(f(x)=e^x\) | Graph rises from left to right. |
| Decreasing function | If \(x_2>x_1\), then \(f(x_2)| \(f(x)=-x\) | Graph falls from left to right. | |
Parent Functions and Transformations
A parent function is the simplest version of a function family. Transformations create new graphs from parent graphs. The most useful transformation formula is:
\[ g(x)=a f\big(b(x-h)\big)+k \]
Each parameter has a clear effect:
| Parameter | Effect | Simple Explanation |
|---|---|---|
| \(a\) | Vertical stretch/compression and reflection | If \(|a|>1\), the graph stretches vertically. If \(0<|a|<1\), it compresses vertically. If \(a<0\), it reflects in the \(x\)-axis. |
| \(b\) | Horizontal stretch/compression and reflection | If \(|b|>1\), the graph compresses horizontally. If \(0<|b|<1\), it stretches horizontally. If \(b<0\), it reflects in the \(y\)-axis. |
| \(h\) | Horizontal shift | \(x-h\) moves the graph right by \(h\). \(x+h\) moves it left by \(h\). |
| \(k\) | Vertical shift | \(+k\) moves the graph up. \(-k\) moves it down. |
Domain and Range Rules
The domain is the set of allowed input values. The range is the set of possible output values. Domain and range are essential because many function types have restrictions. A student who ignores restrictions may get an algebraically neat answer that is mathematically invalid.
| Expression Type | Restriction | Example |
|---|---|---|
| Denominator | Cannot equal zero. | \(\frac{1}{x-5}\Rightarrow x\ne5\) |
| Square root | Inside must be non-negative for real values. | \(\sqrt{x+2}\Rightarrow x\ge-2\) |
| Logarithm | Input must be positive. | \(\ln(x-1)\Rightarrow x>1\) |
| Tangent | Undefined where \(\cos x=0\). | \(\tan x\) undefined at \(x=\frac{\pi}{2}+k\pi\) |
| Inverse function | Original function should be one-to-one or domain-restricted. | \(x^2\) needs a restricted domain to invert as a function. |
Course and Exam Alignment
Types of functions is not a standalone exam. It is a core algebra and precalculus topic that appears across many curricula, including school algebra, GCSE, IGCSE, A-Level, IB Mathematics, AP Precalculus, SAT Math, ACT Math and first-year university preparation. Because each board has its own syllabus, exam timing and grade boundaries, this page does not pretend that one official global score table exists.
Instead, use the following RevisionTown mastery score table to measure readiness for function questions. This is a learning rubric, not an official grade boundary.
| Mastery Score | Level | What It Means | Next Action |
|---|---|---|---|
| 0–39% | Foundation gap | You can recognize some formulas but struggle with domain, range and graph behaviour. | Review parent functions and basic substitution. |
| 40–59% | Basic recognition | You can identify common function types but make mistakes with restrictions and transformations. | Practice domain/range and graph matching questions. |
| 60–74% | Exam-ready foundation | You can solve standard questions on linear, quadratic, exponential and logarithmic functions. | Add mixed practice involving inverse and composite functions. |
| 75–89% | Strong performer | You can connect formulas, graphs, transformations and real-world models with few errors. | Practice timed exam questions and explain your reasoning clearly. |
| 90–100% | Mastery | You can classify, transform, invert, compose and interpret functions confidently. | Move to advanced modelling, calculus preparation and harder problem-solving. |
7-Day Study Timetable for Types of Functions
Since there is no single official exam date for this topic, use this timetable as a practical preparation plan. It can be adapted for a one-week revision sprint, a classroom lesson sequence, or a self-study plan before a test.
| Day | Focus | Study Tasks | Practice Target |
|---|---|---|---|
| Day 1 | Function basics | Learn function notation, mapping, domain, range and the vertical line test. | 20 substitution and identification questions. |
| Day 2 | Linear and quadratic functions | Review slope, intercepts, vertex form, roots and discriminant. | 15 graph sketching questions. |
| Day 3 | Polynomial and rational functions | Study degree, end behaviour, factorization, asymptotes and excluded values. | 12 mixed algebra questions. |
| Day 4 | Radical and absolute value functions | Practice domain restrictions, transformations and piecewise definitions. | 15 domain/range questions. |
| Day 5 | Exponential and logarithmic functions | Learn growth, decay, logarithm rules, inverse relationship and asymptotes. | 12 equation-solving questions. |
| Day 6 | Trigonometric and piecewise functions | Review periodicity, amplitude, period, phase shift and interval-based rules. | 10 graph interpretation questions. |
| Day 7 | Inverse and composite functions | Find inverses, compose functions, check restrictions and complete a mixed quiz. | One timed 30–45 minute practice set. |
Mastery Checklist
Tick what you can do. The progress tool gives a quick readiness score for this topic.
Practice Questions
- State whether \(y^2=x\) is a function of \(x\). Explain using the vertical line test.
- Find \(f(4)\) when \(f(x)=3x-7\).
- Find the domain of \(f(x)=\frac{1}{x-6}\).
- Find the domain of \(g(x)=\sqrt{x+5}\).
- Identify the vertex of \(f(x)=2(x-3)^2-4\).
- Find the inverse of \(f(x)=5x-2\).
- If \(f(x)=x^2\) and \(g(x)=x+1\), find \(f(g(x))\).
- State the period of \(y=3\sin(2x)\).
- Write \(|x-2|\) as a piecewise function.
- Explain why \(f(x)=\ln(x-4)\) has domain \(x>4\).
Answers
- It is not a function of \(x\), because most positive \(x\)-values give two \(y\)-values: \(y=\pm\sqrt{x}\).
- \(f(4)=3(4)-7=5\).
- \(x\ne6\).
- \(x\ge-5\).
- The vertex is \((3,-4)\).
- \(f^{-1}(x)=\frac{x+2}{5}\).
- \(f(g(x))=(x+1)^2\).
- \(\text{Period}=\frac{2\pi}{2}=\pi\).
- \[ |x-2|= \begin{cases} x-2, & x\ge2\\ 2-x, & x<2 \end{cases} \]
- The input of a logarithm must be positive, so \(x-4>0\), which gives \(x>4\).
Common Mistakes to Avoid
| Mistake | Why It Is Wrong | Correct Habit |
|---|---|---|
| Calling every graph a function | Some relations fail the vertical line test. | Check whether one input has more than one output. |
| Ignoring denominator restrictions | Division by zero is undefined. | Set the denominator not equal to zero. |
| Forgetting logarithm restrictions | Real logarithms require positive inputs. | Solve the inequality inside the logarithm. |
| Mixing up \(f(g(x))\) and \(g(f(x))\) | Function composition order matters. | Apply the inside function first. |
| Assuming every inverse is automatically a function | Many-to-one functions fail the horizontal line test. | Restrict the domain when necessary. |
| Moving graphs in the wrong direction | \(x-h\) moves right, not left. | Remember that horizontal transformations feel opposite inside brackets. |
Frequently Asked Questions
What are the main types of functions?
The main types include constant, identity, linear, quadratic, cubic, polynomial, rational, radical, absolute value, exponential, logarithmic, trigonometric, piecewise, composite and inverse functions.
What is the easiest way to identify a function type?
Look at the formula structure. If the highest power is \(1\), it is linear. If the highest power is \(2\), it is quadratic. If the variable is in the denominator, it may be rational. If the variable is in the exponent, it is exponential. If the function contains \(\log\), it is logarithmic.
What is the difference between domain and range?
The domain is the set of allowed input values. The range is the set of possible output values after the function rule has been applied.
Which functions have asymptotes?
Rational, exponential, logarithmic and tangent functions often have asymptotes. Rational functions may have vertical, horizontal or oblique asymptotes. Exponential functions often have horizontal asymptotes. Logarithmic functions often have vertical asymptotes.
What is a one-to-one function?
A one-to-one function is a function where each output belongs to only one input. It passes the horizontal line test and can have an inverse that is also a function.
Why is \(x^2\) not one-to-one on all real numbers?
Because different inputs can give the same output. For example, \(2^2=4\) and \((-2)^2=4\). To make \(x^2\) one-to-one, its domain can be restricted, such as \(x\ge0\).
What is the difference between exponential and logarithmic functions?
In an exponential function, the variable is in the exponent, such as \(2^x\). In a logarithmic function, the output is the exponent needed to produce the input, such as \(\log_2(x)\). They are inverse function families.
Is a piecewise function still one function?
Yes. A piecewise function is still one function if every input belongs to exactly one output rule and produces exactly one output.
What function topics should I master before calculus?
Before calculus, master function notation, domain, range, transformations, inverse functions, composite functions, polynomial behaviour, rational asymptotes, exponential and logarithmic rules, and trigonometric graphs.
Does this page include official grade boundaries?
No. This page gives a RevisionTown learning mastery table. Official grade boundaries and exam timetables depend on the exam board, year, subject and school registration details.
Conclusion
Understanding types of functions is one of the most important foundations in mathematics. Once you know how to recognize a function family, read its formula, predict its graph, find its domain and range, and apply transformations, many algebra and precalculus topics become easier. Linear functions teach constant change. Quadratic functions introduce turning points. Polynomial functions develop end behaviour. Rational functions introduce restrictions and asymptotes. Radical functions strengthen domain thinking. Exponential and logarithmic functions explain growth, decay and inverse relationships. Trigonometric functions model cycles. Piecewise, composite and inverse functions teach structure and deeper reasoning.
The best way to revise is not to memorize isolated formulas only. Study the connection between formula, graph, domain, range and behaviour. When those four parts work together, function questions become far more manageable.
