Concept of a function — input, output, mapping
Why functions matter: They're the language of relationships in mathematics. Temperature depends on time, distance depends on speed, profit depends on sales — all functions. Without this concept, we can't model the universe.
What IS a Function? (Precise Definition)
We write: or
- Domain (): The set of all possible inputs (what you're allowed to put in)
- Codomain (): The set where outputs live (the "target" set)
- Range: The set of actual outputs produced (subset of codomain)
- Image of : The output when we input
WHY "exactly one"? If could be both 5 and 7, we couldn't predict anything. Mathematics needs determinism. This rule makes functions well-defined.

How Does Mapping Work? The Rule
A function is fundamentally a mapping or correspondence.
The Three Parts:
- Input set (Domain): Where we choose from
- Rule: The operation that transforms
- Output set (Codomain/Range): Where lands
Read as: "f is a function from the real numbers to the real numbers, defined by the rule "
- is the name of the function
- specifies domain and codomain
- is the independent variable (input)
- is the dependent variable (output)
- is the rule or formula
WHY this notation? It separates the function (the machine) from its inputs. and are different: is the whole process, is the result of applying it to .
Derivation: Why "Exactly One Output"?
Let's build this from scratch. Suppose we have two sets and .
Attempt 1 — Is this a function?
Check: Each input (1, 2, 3) has exactly one output. ✓ This IS a function.
Attempt 2 — Is this a function?
Check: Input 2 maps to both 5 AND 7. ✗ This is NOT a function (it's a relation, but not a function).
WHY does this matter? If we write , we need a single answer. Ambiguity breaks computation.
Attempt 3 — Is this a function?
Check: Input 2 has no output. ✗ NOT a function — domain must be fully covered.
Derivation: A vertical line represents all points for different values. If it crosses twice, say at and , then input produces two outputs — violating the definition.
Worked Examples — Building Intuition
Compute specific values:
- — Input 3, output 9
- — Input -2, output 4
- — Input 0, output 0
Key observations:
- Domain: All real numbers (any works)
- Codomain: All real numbers (stated in definition)
- Range: — outputs are never negative (WHY? A square is always ≥0)
Why this step? We squared because that's the rule. Notice in value, but — different inputs can give the same output. That's allowed! What's forbidden is one input giving multiple outputs.
The rule:
Compute:
- (since , use top branch)
- (since , use bottom branch)
WHY piecewise? Some functions need different rules for different inputs. Still one output per input! For , we use the second rule (not both), getting exactly 5.
Test: At , solve .
Input produces two outputs: and . ✗ Not a function.
How to fix? Restrict to top half: (single-valued). Now it's a function.
Common Mistakes — Steel-Manning Wrong Ideas
Why it feels right: The symbol appears in algebra (quadratic formula), so it seems natural.
The fix: Functions require determinism. If you want both roots, define two functions: and , or return a set (but that's a different type of object, not a standard real function).
Why it feels right: Most early examples are formulas.
The fix: Functions can be defined by:
- Formulas:
- Tables:
- Graphs: A ploted curve
- Words: "Round to nearest integer"
- Algorithms: Computer code
The essence is the input-output pairing, not the representation.
Why it feels right: We see outputs are and mix it up.
The fix:
- Domain = inputs you put in
- Range = outputs you get out
For : Domain (you can square any real), Range (squares are non-negative).
Active Recall Practice
Recall Feynman Explanation (Explain to a 12-Year-Old)
Imagine you have a magic box. You drop a number in the top, and a number pops out the bottom. The rule is: the same number in always gives the same number out. If you drop in 3today, you get 9. If you drop in 3 tomorrow, you still get 9 — the box never changes its mind.
That's a function! The numbers you can drop in are the "domain" (like, you can't drop in a basketball, only numbers the box accepts). The numbers that can pop out are in the "codomain." The actual numbers that DO pop out are the "range."
Why do we care? Because everything in the world works like this: time goes in, temperature comes out. Money goes in, stuff comes out. Functions let us predict and understand patterns.
Or: "Function = Faithful Delivery" — mail service analogy. Address (input) → Package (output). One address can't receive two different packages labeled the same way.
Connections to Other Concepts
- Domain and Range: Natural next step — how to find them
- Types of Functions: One-one, onto, bijective classifications
- Inverse Functions: When can we reverse a function?
- Composition of Functions: Chaining functions together
- Relations: Functions are special relations (single-valued)
- Graphs of Functions: Visual representation of mappings
- Real-world Applications: Physics laws, economics, computer science
#flashcards/maths
What is a function? :: A rule that assigns to each input exactly one output. Written where is domain, is codomain.
What does "exactly one output" mean?
Distinguish: Domain vs Codomain vs Range
Vertical Line Test
Why can different inputs give the same output?
Give a relation that is NOT a function :: The circle . At , (two outputs). Any relation where maps to multiple values.
Can a function be defined without a formula?
What is ?
Why is the notation important?
Concept Map
Hinglish (regional understanding)
Intuition Hinglish mein samjho
Function kya hai? Socho ek machine hai — jaise ek formula calculator. Tum usme ek number dalo (input), aur woh tumhe ek specific number wapas dega (output). Par rule ye hai ki same input ka hamesha same output hona chahiye. Agar tum 5 dalo, aur kabhi 25 mile, kabhi 30 mile — toh woh function nahi hai, confusion hai!
Mapping ka matlab? Har input kiek "posting" hoti hai exactly ek output pe. Jaise ek school mein har student kaek roll number hota hai — tum ek student ko do roll numbers nahi de sakte. Isliye kehte hain: "One input, one output" — ye function ki jaan hai. Domain matlab sab valid inputs (jaise 1, 2, 3..), codomain matlab output ka pool, aur range matlab actual outputs jo mil rahe hain.
Vertical line test — agar graph par koi bhi straight vertical line (upar-niche) ek se zyada points pe cut kare, matlab ek x pe do y values hain, toh woh function nahi hai. Example: circle ka equation — isme pe aur dono possible hain. Isliye circle ek function nahi, bas ek relation hai.
Kyun zaroori hai? Physics, engineering, economics — sab jagah relationships functions ke through express hote hain. Agar clear mapping na ho, prediction impossible ho jata hai. Isliye function concept mathematics ki nenv hai!