1.1 What is a Function?

Before we dive into calculus, we must first master the fundamental currency of our subject: the function. In physics, a function might describe the trajectory of a particle through spacetime. In pure mathematics, a function acts as a deterministic bridge between sets, a mechanism for transforming one mathematical object into another.

Intuition (The Blender Analogy).

Think of a function as a highly sophisticated blender. We feed inputs (ingredients) into the blender, and it processes them according to a specific internal mechanism to produce an output (a smoothie).

  • •
    ​

    Input x=Strawberry⟹f⁢(x)=Strawberry Smoothiex=\text{Strawberry}\implies f(x)=\text{Strawberry Smoothie}

  • •
    ​

    Input x=Avocado⟹f⁢(x)=Avocado Smoothiex=\text{Avocado}\implies f(x)=\text{Avocado Smoothie}

But what happens if we attempt to put rocks into our blender? The blender breaks! This physically motivates a crucial mathematical constraint: not everything belongs in the blender. We must define the valid inputs before we turn the machine on.

Let us elevate our intuition to a formal setting.

Definition 1.1.1 (Function).

A function ff is a rule that applies to each value xx in a set DD and returns a unique value f⁢(x)f(x).

This uniqueness is paramount. A function does not roll dice; if you input the same xx tomorrow, it will yield the identical f⁢(x)f(x) as it did today.

Definition 1.1.2 (Domain and Range).

Given a function f:ℝ→ℝf\colon\mathbb{R}\to\mathbb{R}, the domain of ff, denoted dom⁡(f)\operatorname{dom}(f), is defined as the set of all values xx such that f⁢(x)f(x) is a unique and valid output:

equation (1.1) (1.1)
dom⁡(f)≔{x∈ℝ:f⁢(x)⁢ is a unique real number}.\operatorname{dom}(f)\coloneqq\{x\in\mathbb{R}:f(x)\text{ is a unique real % number}\}.

The range of ff, denoted ran⁡(f)\operatorname{ran}(f), is the set of all possible outputs produced by the function:

equation (1.2) (1.2)
ran⁡(f)≔{f⁢(x):x∈dom⁡(f)}.\operatorname{ran}(f)\coloneqq\{f(x):x\in\operatorname{dom}(f)\}.
Note.

In this course, we will only work with functions whose domains are subsets of ℝ\mathbb{R}, the set of all real numbers.

Example 1.1.3.

Consider the squaring function f⁢(x)=x2f(x)=x^{2}.

  • •
    ​

    The domain is dom⁡(f)=ℝ\operatorname{dom}(f)=\mathbb{R}, since any real number can be squared.

  • •
    ​

    The range is ran⁡(f)=[0,∞)\operatorname{ran}(f)=[0,\infty). To see this formally, let y∈[0,∞)y\in[0,\infty). The equation f⁢(x)=y⇔x2=yf(x)=y\iff x^{2}=y admits the real solutions x=±yx=\pm\sqrt{y}. However, if we let y∈(−∞,0)y\in(-\infty,0), the equation x2=yx^{2}=y does not have any solutions in ℝ\mathbb{R}. Thus, negative numbers are not in the range.

Example 1.1.4.

Consider the reciprocal function f⁢(x)=1xf(x)=\frac{1}{x}. This function is undefined when the denominator is zero. Thus, the blender breaks at x=0x=0, leaving us with the domain:

equation (1.3) (1.3)
dom⁡(f)=(−∞,0)∪(0,∞).\operatorname{dom}(f)=(-\infty,0)\cup(0,\infty).