Functions & Mappings
Functions are one of the most powerful ideas in mathematics. They describe how one quantity depends on another using a clear input–output rule.
This lesson explains what functions and mappings are, how they work, their parts, types, representations, and how they are used in real life, exams, and technology.
Why Functions Are Important
Functions allow us to model relationships instead of isolated values. They explain how change happens.
Almost all advanced math, science, economics, and computer programs are built on functions.
What Is a Function?
A function is a rule that assigns exactly one output to each input.
If the same input gives two different outputs, it is not a function.
Example: f(x) = 2x + 3
Understanding Functions Using Input–Output
Think of a function like a machine. You put something in, and it produces a result.
The same input will always give the same output.
Function Notation
Functions are commonly written using f(x), which means “the value of function f at x”.
This notation clearly shows input and output.
Example: If f(x) = x², then f(3) = 9
Domain of a Function
The domain is the set of all possible input values for which the function is defined.
Some functions do not accept all real numbers as inputs.
Example: For f(x) = 1/x, x ≠ 0
Range of a Function
The range is the set of all possible output values produced by the function.
Range depends on the rule and the domain.
Example: If f(x) = x², then range ≥ 0
Mapping Concept
A mapping shows how each element of one set is connected to an element of another set.
Mappings visually explain functions.
Difference Between Relation and Function
All functions are relations, but not all relations are functions.
Functions follow the one-input-one-output rule.
| Relation | Function |
| One input can have many outputs | Each input has only one output |
| No strict rule | Strict mapping rule |
Types of Functions (Basic)
Functions are classified based on how they behave. Understanding types helps in graphs and exams.
- Linear function: f(x) = mx + c
- Quadratic function: f(x) = ax² + bx + c
- Constant function: f(x) = k
One-to-One and Many-to-One Functions
In a one-to-one function, different inputs give different outputs.
In a many-to-one function, different inputs give the same output.
Example: f(x) = x² is many-to-one because 2 and −2 give the same output.
Onto and Into Functions (Conceptual)
An onto function covers the entire range set.
An into function covers only part of the range set.
These concepts are important in higher mathematics.
Functions as Equations
Functions can be written as equations and graphed visually.
Every point on the graph represents an input–output pair.
Functions in Real Life
Functions describe real-world dependencies.
- Salary based on hours worked
- Electricity bill vs usage
- Distance vs time
- Temperature conversion
Functions in Technology & IT
In programming, functions are reusable blocks of logic.
- Programming functions
- APIs and data transformations
- Machine learning models
- Game logic and animations
Functions in Competitive Exams
Exams test:
- Domain and range
- Function evaluation
- Identifying valid functions
Clear understanding saves time and avoids traps.
Common Mistakes to Avoid
Most errors happen due to misunderstanding definitions.
- Allowing one input to have multiple outputs
- Ignoring domain restrictions
- Confusing relation with function
Practice Questions
Q1. If f(x) = 3x + 1, find f(4).
Q2. What is the domain of f(x) = 1/(x − 2)?
Q3. Is f(x) = x² a one-to-one function?
Quick Quiz
Q1. What does f(x) represent?
Q2. Can a function have two outputs for the same input?
Quick Recap
- Functions map inputs to outputs
- Each input has exactly one output
- Domain and range define limits
- Mappings visualize functions
- Functions power math, science, and technology