1.2 Functions
Detailed Theory: Functions
1. Basic Concepts and Definitions of Functions
1.1 What is a Function?
A function is a special type of relation between two sets where each element of the first set (domain) is associated with exactly one element of the second set (codomain).
Formal Definition: A function f from set A to set B is a rule that assigns to each element x∈A a unique element y∈B.
Notation: f:A→B Read as: "f is a function from A to B"
Visual Representation:
1.2 Key Components of a Function
a) Domain
The set of all possible input values for which the function is defined.
Notation: Dom(f) or Df
Examples:
For f(x)=x, domain = {x:x≥0} or [0,∞)
For g(x)=x1, domain = {x:x=0} or R−{0}
For h(x)=log(x), domain = {x:x>0} or (0,∞)
b) Codomain
The set of all possible output values. This is the set B in f:A→B.
Important Distinction: Codomain ≠ Range
Codomain: All values that could possibly come out
Range: Only the values that actually come out
c) Range/Image
The set of actual output values produced by the function.
Notation: Range(f) or Im(f) or Rf
Definition: Range(f)={f(x):x∈Domain}⊆Codomain
Examples:
For f:R→R, f(x)=x2
Domain: R
Codomain: R
Range: [0,∞) (only non-negative numbers)
For g:R→R, g(x)=sinx
Domain: R
Codomain: R
Range: [−1,1]
1.3 Function Notation
f(x): Value of function f at x (read as "f of x")
y=f(x): y is the output when input is x
f:x↦y: f maps x to y
Example: For f(x)=2x+3
f(1)=2(1)+3=5
f(a)=2a+3
f(x+h)=2(x+h)+3=2x+2h+3
1.4 Vertical Line Test
A relation is a function if and only if every vertical line intersects its graph at most once.
Why it works: If a vertical line intersects the graph at more than one point, it means for a single x-value, there are multiple y-values, violating the definition of a function.
Examples:
y=x2 passes vertical line test → Function
x2+y2=1 (circle) fails vertical line test → Not a function
y=x passes vertical line test → Function
2. Types of Functions
2.1 One-to-One (Injective) Function
A function where different inputs give different outputs.
Formal Definition: f:A→B is injective if f(x1)=f(x2)⇒x1=x2 for all x1,x2∈A
Alternative Definition: f is injective if x1=x2⇒f(x1)=f(x2) for all x1,x2∈A
Horizontal Line Test:
A function is one-to-one if and only if every horizontal line intersects its graph at most once.
Examples:
f(x)=2x+3 is one-to-one Proof: If 2x1+3=2x2+3, then 2x1=2x2, so x1=x2
g(x)=x2 is NOT one-to-one on R Counterexample: g(2)=4 and g(−2)=4, but 2=−2
h(x)=ex is one-to-one
Properties of Injective Functions:
Composition of injective functions is injective
If g∘f is injective, then f is injective (but g may not be)
2.2 Onto (Surjective) Function
A function where every element in the codomain has at least one pre-image.
Formal Definition: f:A→B is surjective if For every y∈B, there exists at least one x∈A such that f(x)=y
Key Point: Range = Codomain
Examples:
f:R→R, f(x)=2x+3 is onto Proof: For any y∈R, solve y=2x+3 → x=2y−3∈R
g:R→R, g(x)=x2 is NOT onto Reason: Negative numbers (e.g., -1) have no pre-image since x2≥0
h:R→[0,∞), h(x)=x2 IS onto Now the codomain matches the range!
Properties of Surjective Functions:
Composition of surjective functions is surjective
If g∘f is surjective, then g is surjective (but f may not be)
2.3 Bijective Function (One-to-One Correspondence)
A function that is both injective and surjective.
Properties:
Has an inverse function
Establishes a perfect pairing between domain and codomain
If A and B are finite sets and f:A→B is bijective, then n(A)=n(B)
Examples:
f:R→R, f(x)=2x+3 is bijective
One-to-one: Yes (linear function with non-zero slope)
Onto: Yes (covers all real numbers)
g:(0,∞)→R, g(x)=lnx is bijective
2.4 Constant Function
A function whose output value is the same for every input.
Definition: f:A→B is constant if there exists c∈B such that f(x)=c for all x∈A
Examples:
f(x)=5 for all x∈R
g(x)=π for all x∈R
Properties:
Neither injective (unless domain has 1 element)
Surjective only if codomain = {c}
2.5 Identity Function
A function that returns its input unchanged.
Definition: IA:A→A defined by IA(x)=x for all x∈A
Properties:
Bijective
f∘IA=f and IA∘f=f for any f:A→A
Example: IR:R→R, IR(x)=x
3. Special Classes of Functions
3.1 Polynomial Functions
Functions of the form: f(x)=anxn+an−1xn−1+⋯+a1x+a0 where an,an−1,…,a0 are constants, and an=0
Key Terms:
Degree: Highest power of x with non-zero coefficient (n)
Coefficients: an,an−1,…,a0
Leading coefficient: an
Constant term: a0
Types of Polynomial Functions:
Constant function: Degree 0, f(x)=c
Linear function: Degree 1, f(x)=ax+b
Quadratic function: Degree 2, f(x)=ax2+bx+c
Cubic function: Degree 3, f(x)=ax3+bx2+cx+d
Domain: All real numbers (R)
Examples:
f(x)=3x2−2x+1 (Quadratic, degree 2)
g(x)=5x3−x (Cubic, degree 3)
h(x)=7 (Constant, degree 0)
3.2 Rational Functions
Functions of the form: f(x)=Q(x)P(x) where P(x) and Q(x) are polynomials, and Q(x)=0
Domain: All real numbers except where denominator = 0
Examples:
f(x)=x1, Domain: R−{0}
g(x)=x−1x2−1, Domain: R−{1} Note: g(x)=x−1(x−1)(x+1)=x+1 for x=1
h(x)=x2−4x3+2x, Domain: R−{−2,2}
3.3 Algebraic Functions
Functions constructed using algebraic operations (addition, subtraction, multiplication, division, and roots).
Examples:
f(x)=x (Square root function) Domain: [0,∞)
g(x)=3x (Cube root function) Domain: R (unlike square root)
h(x)=x2−4 Domain: (−∞,−2]∪[2,∞) (since x2−4≥0)
3.4 Transcendental Functions
Functions that cannot be expressed as algebraic functions.
a) Exponential Functions
f(x)=ax where a>0 and a=1
Properties:
Domain: R
Range: (0,∞)
If a>1: Increasing function
If 0<a<1: Decreasing function
Passes through (0, 1) since a0=1
Special Case: Natural exponential function f(x)=ex where e≈2.71828
b) Logarithmic Functions
Inverse of exponential functions: f(x)=logax
Properties:
Domain: (0,∞)
Range: R
Passes through (1, 0) since loga1=0
logaa=1
Special Cases:
Common logarithm: log10x or logx
Natural logarithm: logex or lnx
Relationship: loga(ax)=x and alogax=x
c) Trigonometric Functions
Sine function: f(x)=sinx
Domain: R
Range: [−1,1]
Period: 2π
Cosine function: f(x)=cosx
Domain: R
Range: [−1,1]
Period: 2π
Tangent function: f(x)=tanx=cosxsinx
Domain: R−{2π+nπ:n∈Z}
Range: R
Period: π
d) Inverse Trigonometric Functions
Arcsine: f(x)=sin−1x or arcsinx
Domain: [−1,1]
Range: [−2π,2π]
Arccosine: f(x)=cos−1x or arccosx
Domain: [−1,1]
Range: [0,π]
Arctangent: f(x)=tan−1x or arctanx
Domain: R
Range: (−2π,2π)
3.5 Even and Odd Functions
Even Functions
Symmetric about the y-axis: f(−x)=f(x) for all x in domain
Examples:
f(x)=x2 Check: f(−x)=(−x)2=x2=f(x)
f(x)=cosx Check: cos(−x)=cosx
f(x)=∣x∣
Odd Functions
Symmetric about the origin: f(−x)=−f(x) for all x in domain
Examples:
f(x)=x3 Check: f(−x)=(−x)3=−x3=−f(x)
f(x)=sinx Check: sin(−x)=−sinx
f(x)=x
Properties:
Sum/difference of even functions is even
Sum/difference of odd functions is odd
Product of two even or two odd functions is even
Product of even and odd function is odd
Every function can be written as sum of even and odd parts: f(x)=2f(x)+f(−x)+2f(x)−f(−x) (even part) + (odd part)
3.6 Periodic Functions
A function is periodic if there exists a positive number T such that: f(x+T)=f(x) for all x in domain
Smallest such T is called the fundamental period.
Examples:
f(x)=sinx: Period = 2π
f(x)=cosx: Period = 2π
f(x)=tanx: Period = π
f(x)=sin(2x): Period = π
f(x)=sin2x: Period = π (since sin2x=21−cos2x)
Properties:
If f has period T, then f(ax+b) has period ∣a∣T
Sum of periodic functions with commensurate periods is periodic
4. Operations on Functions
4.1 Algebra of Functions
For functions f and g with common domain D:
a) Sum: (f+g)(x)=f(x)+g(x)
Domain: Intersection of domains of f and g
Example: f(x)=x, g(x)=4−x
Dom(f) = [0,∞)
Dom(g) = (−∞,4]
Dom(f+g) = [0,∞)∩(−∞,4]=[0,4]
b) Difference: (f−g)(x)=f(x)−g(x)
Domain: Intersection of domains of f and g
c) Product: (f⋅g)(x)=f(x)⋅g(x)
Domain: Intersection of domains of f and g
d) Quotient: (gf)(x)=g(x)f(x)
Domain: Intersection of domains of f and g, excluding where g(x)=0
Example: f(x)=x2, g(x)=x−1
(gf)(x)=x−1x2
Domain: R−{1}
e) Scalar Multiplication: (cf)(x)=c⋅f(x) where c is constant
4.2 Composition of Functions
Applying one function to the result of another.
Definition: If f:A→B and g:B→C, then the composition g∘f:A→C is defined by: (g∘f)(x)=g(f(x))
Important: Order matters! g∘f=f∘g in general.
Example: f(x)=x2, g(x)=x+1
(g∘f)(x)=g(f(x))=g(x2)=x2+1
(f∘g)(x)=f(g(x))=f(x+1)=(x+1)2=x2+2x+1 Clearly, g∘f=f∘g
Properties of Composition:
Associative: (h∘g)∘f=h∘(g∘f)
Identity: f∘I=I∘f=f
Inverse: If f is bijective, then f−1∘f=I and f∘f−1=I
Domain of Composition:
For g∘f:
Start with domain of f
Exclude any x for which f(x) is not in domain of g
Example: f(x)=x, g(x)=x1
Dom(f) = [0,∞)
Dom(g) = R−{0}
For g∘f: g(f(x))=x1
We need: f(x) ∈ Dom(g) ⇒ x=0 ⇒ x=0
Also: x ∈ Dom(f) ⇒ x≥0
Therefore: Dom(g∘f) = (0,∞)
4.3 Inverse Functions
The inverse function "undoes" what the original function did.
Definition: If f:A→B is bijective, then its inverse f−1:B→A exists and satisfies:
f−1(f(x))=x for all x∈A
f(f−1(y))=y for all y∈B
Finding Inverse Function:
Start with y=f(x)
Solve for x in terms of y
Swap x and y to get y=f−1(x)
Example: Find inverse of f(x)=2x+3
y=2x+3
Solve: 2x=y−3 ⇒ x=2y−3
Swap: y=2x−3 So f−1(x)=2x−3
Properties of Inverse Functions:
Graphical: Graph of f−1 is reflection of graph of f about line y=x
Domain and Range:
Dom(f−1) = Range(f)
Range(f−1) = Dom(f)
Composition: f−1∘f=IA and f∘f−1=IB
Inverse of Composition: (g∘f)−1=f−1∘g−1
Horizontal Line Test Revisited:
A function has an inverse if and only if it is one-to-one (bijective onto its range).
5. Transformation of Functions
Given base function y=f(x):
5.1 Vertical Transformations
Vertical shift up by c: y=f(x)+c
Vertical shift down by c: y=f(x)−c
Vertical stretch by factor k (k>1): y=kf(x)
Vertical compression by factor k (0<k<1): y=kf(x)
Reflection about x-axis: y=−f(x)
5.2 Horizontal Transformations
Horizontal shift right by c: y=f(x−c) Note: Opposite direction to intuition!
Horizontal shift left by c: y=f(x+c)
Horizontal stretch by factor k (k>1): y=f(kx)
Horizontal compression by factor k (0<k<1): y=f(kx)
Reflection about y-axis: y=f(−x)
5.3 Combined Transformations
General Form: y=af(b(x−c))+d where:
a: vertical stretch/compression and reflection (about x-axis if negative)
b: horizontal stretch/compression and reflection (about y-axis if negative)
c: horizontal shift
d: vertical shift
Order of Operations: From inside out:
Horizontal shift (c)
Horizontal stretch/compression (b)
Reflection about y-axis (if b<0)
Vertical stretch/compression (a)
Reflection about x-axis (if a<0)
Vertical shift (d)
Example: Transform y=x to y=23−x−1
Start: y=x
Reflection about y-axis: y=−x
Horizontal shift right by 3: y=−(x−3)=3−x
Vertical stretch by 2: y=23−x
Vertical shift down by 1: y=23−x−1
6. Real-Valued Functions of Real Variables
Functions where both domain and codomain are subsets of R.
6.1 Finding Domain
For real-valued functions, exclude values that make:
Denominator zero (for rational functions)
Expression under even root negative (for root functions)
Argument of logarithm non-positive (for logarithmic functions)
Base of exponential negative or 1 (for exponential functions)
Example 1: f(x)=x2−9x−2 Conditions:
For numerator: x−2≥0 ⇒ x≥2
For denominator: x2−9=0 ⇒ x=±3 Combine: x≥2 and x=3 Domain: [2,3)∪(3,∞)
Example 2: g(x)=ln(4−x2) Condition: 4−x2>0 ⇒ x2<4 ⇒ −2<x<2 Domain: (−2,2)
6.2 Finding Range
Methods:
Analytical: Solve y=f(x) for x in terms of y, determine values of y for which solution exists
Graphical: Sketch graph, observe y-values
Using calculus: Find maxima/minima
Example: Find range of f(x)=x2+1x Let y=x2+1x Solve for x: yx2+y=x ⇒ yx2−x+y=0 For real x, discriminant ≥ 0: (−1)2−4y2≥0 ⇒ 1−4y2≥0 ⇒ y2≤41 ⇒ −21≤y≤21 Range: [−21,21]
7. Piecewise Defined Functions
Functions defined by different formulas on different parts of their domain.
General Form:
Example 1: Absolute value function
Example 2: Signum function
Example 3: Greatest integer function (Floor function) f(x)=⌊x⌋=greatest integer≤x Example: ⌊2.7⌋=2, ⌊−1.3⌋=−2
Important: Check continuity at transition points.
8. Solved Examples
Example 1: Function Composition and Domain
Given f(x)=x−1 and g(x)=x2−41, find:
(f∘g)(x) and its domain
(g∘f)(x) and its domain
Solution:
For f∘g: (f∘g)(x)=f(g(x))=g(x)−1=x2−41−1 Domain conditions:
For g: x2−4=0 ⇒ x=±2
For f∘g: g(x)−1≥0 ⇒ x2−41−1≥0 Solve: x2−41≥1 Case 1: If x2−4>0 (x<−2 or x>2), then 1≥x2−4 ⇒ x2≤5 ⇒ −5≤x≤5 Intersection: (2,5]
Case 2: If x2−4<0 (−2<x<2), then 1≤x2−4 ⇒ x2≥5 ⇒ x≤−5 or x≥5 Intersection: None with (−2,2)
Final domain for f∘g: (2,5]
For g∘f: (g∘f)(x)=g(f(x))=(f(x))2−41=(x−1)2−41=x−1−41=x−51 Domain conditions:
For f: x−1≥0 ⇒ x≥1
For g∘f: Denominator ≠ 0 ⇒ x−5=0 ⇒ x=5 Combine: [1,5)∪(5,∞)
Example 2: Finding Inverse Function
Find inverse of f(x)=x−12x+3 and verify.
Solution:
Let y=x−12x+3
Solve for x: y(x−1)=2x+3 yx−y=2x+3 yx−2x=y+3 x(y−2)=y+3 x=y−2y+3
Swap x and y: y=x−2x+3 So f−1(x)=x−2x+3
Verification:
f−1(f(x))=f−1(x−12x+3)=x−12x+3−2x−12x+3+3=2x+3−2(x−1)2x+3+3(x−1)=55x=x
f(f−1(x))=f(x−2x+3)=x−2x+3−12(x−2x+3)+3=x+3−(x−2)2x+6+3(x−2)=55x=x
Example 3: Even/Odd Function Analysis
Determine if f(x)=2ex+e−x is even, odd, or neither.
Solution: Check f(−x): f(−x)=2e−x+e−(−x)=2e−x+ex=2ex+e−x=f(x) Since f(−x)=f(x), the function is even.
Note: This function is actually coshx, the hyperbolic cosine function.
9. Practice Tips for Exams
Function Notation: Remember f(x) means value at x, not f times x
Domain First: Always find domain before other analysis
One-to-One Test: Use horizontal line test or algebraic check
Inverse Existence: Function must be bijective to have inverse
Composition Order: (g∘f)(x)=g(f(x)), apply f first
Transformation Order: Inside out for af(b(x−c))+d
Piecewise Functions: Check endpoints for continuity
Even/Odd: Test f(−x) directly
Range Finding: Solve y=f(x) for x, find y for real x
Graphs: Sketch when possible for visualization
This comprehensive theory covers all aspects of functions with detailed explanations and examples, providing complete preparation for the entrance examination.
Last updated