A function is a rule that assigns each input exactly one output.

  • Think of it like a machine: you feed it an input (say, xx), and it processes it to give you one output f(x)f(x).
  • Every input must have only one output. If an input gives two different outputs, it’s not a function.

Notation:

  • f(x)f(x) is read as “f of x”
  • f(x)=x2+3x+1f(x) = x^2 + 3x + 1 means: input xx gives output x2+3x+1x^2 + 3x + 1

Key Terminology

TermMeaning
DomainAll possible valid inputs (values of xx)
CodomainThe set in which output values lie
RangeActual outputs obtained from the domain
ImageOutput value corresponding to an input
Pre-imageThe input that gives a specific output

Example:
For f(x)=x2f(x) = \sqrt{x - 2},

  • Domain: x2x \geq 2 (because square root must be real)
  • Range: f(x)0f(x) \geq 0

Types of Functions

1. Identity Function

f(x)=x(output equals input)f(x) = x \quad \text{(output equals input)}

2. Constant Function

f(x)=c(same output for any input)f(x) = c \quad \text{(same output for any input)}

3. Linear Function

f(x)=ax+b(graph is a straight line)f(x) = ax + b \quad \text{(graph is a straight line)}

4. Quadratic Function

f(x)=ax2+bx+c(graph is a parabola)f(x) = ax^2 + bx + c \quad \text{(graph is a parabola)}

5. Cubic, Polynomial Functions

f(x)=axn+(n = 3 or higher)f(x) = ax^n + \dots \quad \text{(n = 3 or higher)}

6. Rational Function

f(x) = \frac{P(x)}{Q(x)} \quad \text{(P and Q are polynomials, Q(x) \ne 0)}

7. Modulus Function

f(x)=x(distance from zero)f(x) = |x| \quad \text{(distance from zero)}

8. Signum Function

f(x)={1x>00x=01x<0f(x) = \begin{cases} 1 & x > 0 \\ 0 & x = 0 \\ -1 & x < 0 \end{cases}

9. Greatest Integer Function (Floor Function)

f(x)=x(largest integer \lex)f(x) = \lfloor x \rfloor \quad \text{(largest integer \le x)}

Important Operations on Functions

1. Function Composition

(fg)(x)=f(g(x))(f \circ g)(x) = f(g(x))

Think of it as nested processing: first apply gg, then apply ff to that result.

2. Inverse Function

  • If f(x)=yf(x) = y, then f1(y)=xf^{-1}(y) = x
  • Not all functions have inverses. A function must be one-to-one (injective) to have an inverse.

Function Properties (Must-Know)

PropertyMeaning
Injective (One-to-One)Different inputs give different outputs
Surjective (Onto)Every value in codomain is an output
BijectiveBoth injective and surjective (has inverse)
Even Functionf(x)=f(x)f(-x) = f(x) (symmetric about y-axis)
Odd Functionf(x)=f(x)f(-x) = -f(x) (symmetric about origin)
PeriodicRepeats after a fixed interval: f(x+T)=f(x)f(x + T) = f(x)

Visual Explanations

  • Vertical Line Test: To check if a graph is a function → If any vertical line cuts the graph more than once, it’s not a function.

  • Even vs. Odd functions:

    • Even: Parabola f(x)=x2f(x) = x^2
    • Odd: Cube function f(x)=x3f(x) = x^3

Conceptual Tips and Mistakes to Avoid

MistakeCorrection
Assuming every equation is a functionUse the vertical line test or check if output is unique for input
Forgetting domain restrictionsAlways check for roots, denominators, log inputs
Misinterpreting inversef1(x)f^{-1}(x) is not the reciprocal unless it's explicitly a multiplicative inverse
f(g(x))g(f(x))f(g(x)) \ne g(f(x))Composition is not commutative
Treating floor/ceil functions as linearThey're step functions, discontinuous

Examples

Example 1: Find domain of f(x)=1x2f(x) = \frac{1}{x-2}

  • Denominator can’t be zero → x2x \neq 2
  • Domain: xR,x2x \in \mathbb{R}, x \neq 2

Example 2: If f(x)=x2f(x) = x^2, find f(3)f(-3)

f(3)=(3)2=9f(-3) = (-3)^2 = 9

Example 3: Is f(x)=x+1f(x) = \sqrt{x+1} defined for x=2x = -2?

f(2)=2+1=1Not realNot definedf(-2) = \sqrt{-2 + 1} = \sqrt{-1} \rightarrow \text{Not real} \Rightarrow \text{Not defined}

Example 4: Composition

Let f(x)=2x+1f(x) = 2x+1, g(x)=x2g(x) = x^2. Find (fg)(x)(f \circ g)(x)

(fg)(x)=f(g(x))=f(x2)=2x2+1(f \circ g)(x) = f(g(x)) = f(x^2) = 2x^2 + 1

Example 5: Greatest Integer Function

Find 1.3\lfloor -1.3 \rfloor
Answer: 2-2