No history yet

Introduction to Functions and Limits

What is a Function?

At its core, a function is a rule. It takes an input, does something to it, and produces exactly one output. Think of it like a coffee machine. You put in a coffee pod (the input), and you get a cup of coffee (the output). For any specific pod, you always get the same type of coffee. A function works the same way: for any given input, there is only one possible output.

Function

noun

A mathematical relationship that takes an input value and produces a single, unique output value.

We often write functions using a special notation. You'll commonly see something like f(x)f(x), which is read as "f of x." Here, ff is the name of the function (the rule), and xx is the input. So, if we have the function f(x)=x+5f(x) = x + 5, it means our rule is to take any input xx and add 5 to it. If we plug in 3, we write f(3)=3+5=8f(3) = 3 + 5 = 8. The input is 3, and the output is 8.

Domain and Range

Functions don't always accept every possible number as an input. The set of all valid inputs for a function is called its domain. The set of all possible outputs the function can produce is called its range.

Let's consider the function f(x)=xf(x) = \sqrt{x}. Since we can't take the square root of a negative number (in the realm of real numbers), the domain is all non-negative numbers, which we can write as x0x \ge 0. The outputs will also only be non-negative, so the range is also all numbers greater than or equal to zero.

Lesson image

For another example, look at g(x)=x2g(x) = x^2. You can square any real number, so its domain is all real numbers. However, the result of squaring a number is always non-negative. Therefore, the range of g(x)g(x) is all numbers greater than or equal to 0.

The Idea of a Limit

Now we get to a central idea in calculus: the limit. A limit describes the value that a function approaches as its input gets closer and closer to a certain number. The key here is the word "approaches." We don't care what the function's value is at that number, only what it's getting infinitesimally close to.

Imagine walking towards a door. A limit is concerned with the exact location of the door you're approaching, not with whether you actually walk through it.

We write the limit of a function f(x)f(x) as xx approaches a number cc like this:

limxcf(x)=L\lim_{x \to c} f(x) = L

Consider the function f(x)=x21x1f(x) = \frac{x^2 - 1}{x - 1}. If we try to plug in x=1x=1, we get 00\frac{0}{0}, which is undefined. But we can ask what happens as xx gets very close to 1. If you plug in 1.1, you get 2.1. If you plug in 1.01, you get 2.01. If you plug in 1.001, you get 2.001. It seems like the output is getting closer and closer to 2. So, we'd say the limit of this function as xx approaches 1 is 2.

One-Sided Limits

Sometimes, a function approaches different values depending on which direction you approach the input from. This brings us to one-sided limits.

We can look at the limit as xx approaches cc from the right (values greater than cc) or from the left (values less than cc).

limxc+f(x)andlimxcf(x)\lim_{x \to c^+} f(x) \quad \text{and} \quad \lim_{x \to c^-} f(x)

For a general limit to exist, the limit from the left must equal the limit from the right. If they are different, we say the limit does not exist at that point.

In the graph above, as xx approaches 2 from the left, the function's value gets closer and closer to 1. As xx approaches 2 from the right, the value gets closer to 3. Since the left and right limits are not equal, the overall limit as xx approaches 2 does not exist.

Limits at Infinity

We can also ask what happens to a function's output as the input gets incredibly large (approaching positive infinity, \infty) or incredibly small (approaching negative infinity, -\infty). This is useful for understanding the long-term behavior of a function.

limxf(x)orlimxf(x)\lim_{x \to \infty} f(x) \quad \text{or} \quad \lim_{x \to -\infty} f(x)

Consider the function f(x)=1xf(x) = \frac{1}{x}. As xx gets larger and larger (100, 1000, 1,000,000), the value of 1x\frac{1}{x} gets smaller and smaller, getting closer and closer to 0. The same thing happens as xx becomes a very large negative number. So, we can say:

limx1x=0andlimx1x=0\lim_{x \to \infty} \frac{1}{x} = 0 \quad \text{and} \quad \lim_{x \to -\infty} \frac{1}{x} = 0

This tells us that the graph of the function has a horizontal asymptote at y=0y=0. The function gets arbitrarily close to this line but never quite touches it as xx goes to infinity in either direction.

Understanding functions and limits is the first major step into the world of calculus. They provide the language and tools needed to describe change and motion with precision.

Quiz Questions 1/6

What is the defining characteristic of a function in mathematics?

Quiz Questions 2/6

Given the function f(x)=x23f(x) = x^2 - 3, what is the value of f(4)f(4)?