No history yet

Functions and Graphs

What Is a Function?

At its heart, a function is a rule. It takes an input, does something to it, and produces a single, unique output. Think of a coffee machine: you put in coffee grounds and water (the input), and it produces a cup of coffee (the output). For the same inputs, you always get the same output. A function in math works the same way.

function

noun

A mathematical relationship between a set of inputs and a set of permissible outputs, where each input is related to exactly one output.

Every function has three main parts: the inputs, the relationship (the rule), and the outputs. We can visualize this as a mapping from one set of values to another.

We typically use the notation f(x)f(x) to represent a function. This is read as "f of x". Here, ff is the name of the function, and xx is the input variable. For example, if we have the function f(x)=x+5f(x) = x + 5, it means the function named 'f' takes an input 'x' and adds 5 to it. If we plug in x=3x=3, we get f(3)=3+5=8f(3) = 3 + 5 = 8.

Domain and Range

Two key terms you'll always hear with functions are 'domain' and 'range'.

  • Domain: The set of all possible input values (xx) for which the function is defined.
  • Range: The set of all possible output values (yy or f(x)f(x)) that the function can produce.

For a simple function like f(x)=2x+1f(x) = 2x + 1, you can plug in any real number for xx and get a valid output. So, its domain is all real numbers. The outputs can also be any real number, so its range is all real numbers, too.

But consider f(x)=x2f(x) = x^2. The domain is still all real numbers. What about the range? Since squaring any number (positive or negative) results in a non-negative number, the range is all real numbers greater than or equal to zero.

A common mistake is forgetting about values that make a function undefined. For example, in the function f(x)=1/xf(x) = 1/x, the input x=0x=0 is not in the domain because division by zero is undefined.

Graphing Functions

A graph is a picture of a function. It shows the relationship between the inputs and outputs by plotting them as points on a coordinate plane. Each point on the graph has coordinates (x,f(x))(x, f(x)). The horizontal axis (x-axis) represents the domain, and the vertical axis (y-axis) represents the range.

Graphs help us quickly identify key features of a function. For example, where does the graph cross the axes? These points are called intercepts.

  • Y-intercept: The point where the graph crosses the y-axis. This occurs when x=0x=0. To find it, you calculate f(0)f(0).
  • X-intercept(s): The point(s) where the graph crosses the x-axis. This occurs when y=0y=0 or f(x)=0f(x)=0. To find them, you solve the equation f(x)=0f(x)=0 for xx. A function can have multiple x-intercepts.

Another key feature is an asymptote.

asymptote

noun

A line that a curve approaches as it heads towards infinity.

Asymptotes are invisible lines that the graph gets closer and closer to but never touches. They often occur in rational functions (fractions with variables in the denominator). For instance, the graph of f(x)=1/xf(x) = 1/x gets infinitely close to the x-axis and y-axis but never actually crosses them.

Finally, how can you tell if a graph represents a true function? Use the Vertical Line Test. If you can draw a vertical line anywhere on the graph and it only intersects the curve at one point, it's a function. If it hits the curve at more than one point, it is not a function because that input would have multiple outputs.

The equation of a circle, x2+y2=1x^2 + y^2 = 1, is not a function. A vertical line can cross it twice, meaning one x-value corresponds to two different y-values.

Let's test what you've learned about these core concepts.

Quiz Questions 1/5

What is the defining characteristic of a mathematical function?

Quiz Questions 2/5

Given the function f(x)=3x4f(x) = 3x - 4, what is the value of f(5)f(5)?

Understanding functions and how to interpret their graphs is a fundamental skill. It's the language we use to describe relationships in calculus and beyond.