No history yet

Functions and Limits

What Is a Function?

At its core, a function is a rule that takes an input and produces exactly one output. Think of it like a machine: you put something in, the machine does its work, and something specific comes out. For every unique input, there is only one possible output.

The set of all possible inputs is called the domain, and the set of all possible outputs is called the range.

Lesson image

For instance, in the function f(x)=x2f(x) = x^2, the input is xx, and the output is its square. If you input 3, the output is 9. You can't put in 3 and get both 9 and some other number. The domain could be all real numbers, but the range is only non-negative numbers, since squaring a number never results in a negative.

A Tour of Function Types

Functions come in many flavors, each with its own characteristic shape and behavior. Here are a few common types you'll encounter constantly.

TypeGeneral FormDescription
Linearf(x)=mx+bf(x) = mx + bCreates a straight line. Describes constant rates of change.
Quadraticf(x)=ax2+bx+cf(x) = ax^2 + bx + cForms a parabola. Models things like the path of a thrown ball.
Polynomialf(x)=anxn+...+a1x+a0f(x) = a_n x^n + ... + a_1 x + a_0A generalization of linear and quadratic functions with whole number powers.
Rationalf(x)=P(x)/Q(x)f(x) = P(x) / Q(x)A ratio of two polynomial functions. Can have breaks or gaps called asymptotes.
Exponentialf(x)=axf(x) = a^xDescribes rapid growth or decay, like population growth or radioactive decay.
Logarithmicf(x)=logb(x)f(x) = \log_b(x)The inverse of exponential functions. Used for things like the Richter scale.
Trigonometricf(x)=sin(x),cos(x)f(x) = \sin(x), \cos(x)Periodic functions that repeat in cycles. Essential for modeling waves and oscillations.

The Idea of a Limit

Calculus is the study of change, and to understand change, we need to look at what happens as things get closer and closer to a certain point. This is the concept of a limit.

A limit tells us what value a function approaches as its input gets arbitrarily close to a specific number. We don't care about the value at the number, only the value it's heading towards. Imagine walking towards a wall. A limit is like asking, "Where will you be just before you hit the wall?"

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

Let's look at an example. Consider the function f(x)=x24x2f(x) = \frac{x^2 - 4}{x - 2}.

What happens when xx is exactly 2? If we plug it in, we get 4422=00\frac{4-4}{2-2} = \frac{0}{0}, which is undefined. The function has a hole at x=2x=2. But what value is the function approaching as xx gets close to 2?

xf(x)
1.93.9
1.993.99
1.9993.999
??
2.0014.001
2.014.01
2.14.1

As xx gets closer to 2 from both sides, the output f(x)f(x) gets closer to 4. So, we say the limit of f(x)f(x) as xx approaches 2 is 4.

Finding Limits

While making a table works, it's not efficient. There are algebraic techniques for finding limits.

  1. Direct Substitution: The first thing to try is always to just plug the number in. For f(x)=x2+1f(x) = x^2 + 1, the limit as x3x \to 3 is simply 32+1=103^2 + 1 = 10. If you get a real number, that's your answer.

  2. Factoring and Canceling: This is what we needed for our previous example. When direct substitution gives you 00\frac{0}{0}, try factoring. We can factor the numerator of f(x)=x24x2f(x) = \frac{x^2 - 4}{x - 2}:

limx2(x2)(x+2)x2\lim_{x \to 2} \frac{(x-2)(x+2)}{x-2}

Since we're only concerned with values of xx near 2, not at 2, the (x2)(x-2) terms can be canceled out. This leaves us with a much simpler limit to solve:

limx2(x+2)=2+2=4\lim_{x \to 2} (x+2) = 2 + 2 = 4

This confirms our finding from the table.

What Is Continuity?

Informally, a function is continuous if you can draw its graph without lifting your pen from the paper. There are no jumps, holes, or breaks.

For a function f(x)f(x) to be continuous at a point cc, three conditions must be met:

  1. The function is defined at that point (f(c)f(c) exists).
  2. The limit of the function exists at that point (limxcf(x)\lim_{x \to c} f(x) exists).
  3. The function's value and the limit are the same (limxcf(x)=f(c)\lim_{x \to c} f(x) = f(c)).

If any of these fail, the function is discontinuous at that point. The function we looked at earlier, f(x)=x24x2f(x) = \frac{x^2-4}{x-2}, is discontinuous at x=2x=2 because the first condition fails: f(2)f(2) is not defined. It has a removable discontinuity, or a "hole".

Lesson image

Continuity is a vital property. Many of the theorems in calculus only apply to functions that are continuous over a given interval. Understanding limits allows us to precisely define and test for this important characteristic.