No history yet

Functions and Graphs

What is a Function?

Think of a function as a simple rule. For every input you give it, it gives you exactly one output. It's like a consistent machine: put in a number, and it spits out another number based on its internal rule. We often write functions as f(x)f(x), which you can read as "f of x." The letter ff is the name of the function (the rule), and xx is the input.

Function

noun

A mathematical rule that assigns to each input value exactly one output value.

Two important ideas that come with functions are the domain and the range.

Domain

noun

The set of all possible input values (x-values) for a function.

Range

noun

The set of all possible output values (y-values) that a function can produce.

The domain is everything you're allowed to put into the function, and the range is everything you might get out. For example, in the function f(x)=x2f(x) = x^2, you can put in any number you want (the domain is all real numbers), but the output will always be zero or positive (the range is y0y \ge 0).

A Tour of Common Functions

While there are countless functions, a few families show up over and over again. Getting to know their basic shapes is key.

Linear Functions are the simplest. Their graphs are straight lines. The general form is f(x)=mx+bf(x) = mx + b, where mm is the slope (how steep the line is) and bb is the y-intercept (where the line crosses the vertical axis).

Quadratic Functions create a U-shaped curve called a parabola. Their formula is f(x)=ax2+bx+cf(x) = ax^2 + bx + c. If aa is positive, the U opens upwards; if it's negative, it opens downwards.

Polynomial Functions are a broader category that includes linear and quadratic functions. They look like f(x)=anxn+an1xn1+...+a1x+a0f(x) = a_n x^n + a_{n-1} x^{n-1} + ... + a_1 x + a_0. Their graphs are smooth, continuous curves that can have several peaks and valleys.

Exponential Functions, like f(x)=2xf(x) = 2^x, start slow and then grow incredibly fast, or they can do the opposite and decay quickly toward zero. They're useful for modeling things like population growth or radioactive decay.

Logarithmic Functions, like f(x)=log2(x)f(x) = \log_2(x), are the inverses of exponential functions. They start with rapid growth that then levels off. They help answer the question, "What exponent do I need to get this number?"

Trigonometric Functions, like f(x)=sin(x)f(x) = \sin(x) and f(x)=cos(x)f(x) = \cos(x), produce repeating waves. These are essential for describing anything that oscillates or follows a cycle, from sound waves to the orbits of planets.

Transforming Graphs

Once you know the basic shape of a function, you can move it around without having to plot a bunch of new points. This is called transformation. We can shift, stretch, compress, and reflect graphs.

A vertical shift moves the graph up or down. To graph f(x)+cf(x) + c, you take the graph of f(x)f(x) and move it up by cc units. For f(x)cf(x) - c, you move it down.

A horizontal shift moves the graph left or right. This one can feel backward at first. To graph f(xc)f(x - c), you move the graph of f(x)f(x) to the right by cc units. For f(x+c)f(x + c), you move it to the left.

Lesson image

We can also stretch or compress graphs. Multiplying the whole function by a number, like cf(x)c \cdot f(x), causes a vertical stretch (if c>1c > 1) or compression (if 0<c<10 < c < 1). Multiplying the input xx by a number, f(cx)f(cx), causes a horizontal compression or stretch.

Finally, putting a negative sign in front, f(x)-f(x), reflects the graph across the x-axis. A negative sign inside, f(x)f(-x), reflects it across the y-axis.

Inverse Functions

Some functions have an inverse, which essentially undoes what the original function did. If a function ff turns an input aa into an output bb, then its inverse function, written as f1f^{-1}, will turn bb back into aa.

f(a)=b    f1(b)=af(a) = b \iff f^{-1}(b) = a

For example, if f(x)=2xf(x) = 2x, it takes an input and doubles it. Its inverse, f1(x)=x/2f^{-1}(x) = x/2, takes an input and halves it, undoing the original operation.

Not every function has an inverse. For a function to have an inverse, it must be "one-to-one," meaning that every output corresponds to exactly one input. Graphically, this means the function must pass the "horizontal line test": if you can draw a horizontal line that crosses the graph more than once, the function does not have an inverse.

Lesson image

The graph of an inverse function is a mirror image of the original function's graph across the diagonal line y=xy=x. This visual relationship makes it easy to see how the inputs and outputs are swapped.

Quiz Questions 1/6

Which of the following statements best defines a function?

Quiz Questions 2/6

Consider the function f(x)=x2f(x) = x^2. What is its range?

Understanding these core ideas about functions and their graphs is the first major step into the world of calculus. They provide the visual and conceptual language for everything that comes next.