No history yet

Functions and Graphs

What is a Function?

Think of a function as a simple machine. You put something in, and you get something out. For example, a coffee grinder is a function: you put in coffee beans (the input), and you get ground coffee (the output). In math, functions work the same way but with numbers.

A function is a rule that assigns exactly one output to each input. If you put in the number 2, you'll always get the same specific number back. You'll never put in a 2 and get a 3 one time and a 5 the next. This reliability is key.

For every input, there is only one output.

We often write functions using a special notation, like f(x)f(x). This is read as "f of x." The ff is the name of the function, and the xx inside the parentheses is the input, also known as the variable. So, if we have a function f(x)=x+3f(x) = x + 3, it means our function 'f' takes any number 'x' and adds 3 to it. If we input 2, the output is f(2)=2+3=5f(2) = 2 + 3 = 5.

Domain and Range

Two important ideas for any function are its domain and range. The domain is the set of all possible inputs the function can accept. The range is the set of all possible outputs the function can produce.

Domain

noun

The set of all possible input values for a function.

Range

noun

The set of all possible output values for a function.

For our coffee grinder, the domain is coffee beans. You can't put in rocks or juice. The range is ground coffee. You'll never get a block of ice out of it. For a mathematical function like f(x)=xf(x) = \sqrt{x}, the domain is any number greater than or equal to zero, because you can't take the square root of a negative number in the real number system. The range is also all numbers greater than or equal to zero.

Lesson image

A Tour of Common Functions

Functions come in many flavors. Getting to know the basic types and their shapes is like learning the main characters in a story. It helps you understand the plot of more complex math problems.

Function TypeGeneral FormGraph Shape
Linearf(x)=mx+bf(x) = mx + bStraight Line
Quadraticf(x)=ax2+bx+cf(x) = ax^2 + bx + cParabola (U-shape)
Polynomialf(x)=anxn+...+a0f(x) = a_nx^n + ... + a_0Smooth, continuous curve
Rationalf(x)=P(x)/Q(x)f(x) = P(x)/Q(x)Curve with breaks (asymptotes)
Exponentialf(x)=axf(x) = a^xRapid growth or decay curve
Logarithmicf(x)=loga(x)f(x) = \log_a(x)Slow growth curve

Each of these function families has a distinct personality. Linear functions describe constant rates of change. Quadratic functions model things like the path of a thrown ball. Exponential functions are perfect for describing population growth or radioactive decay.

Bringing Functions to Life with Graphs

A graph is a picture of a function. It shows the relationship between the inputs (plotted on the horizontal x-axis) and the outputs (plotted on the vertical y-axis). Every point (x,y)(x, y) on the graph means that if you input xx into the function, you get out yy. Graphs help us see the behavior of a function at a glance.

A simple way to check if a graph represents a function is the Vertical Line Test. If you can draw a vertical line anywhere on the graph that crosses the curve more than once, it is not a function. This is because one input (the x-value where you drew the line) would have more than one output (the y-values where it crosses).

Shifting and Stretching Graphs

Once you know the basic shape of a function's graph, like the U-shape of a parabola, you can create many new functions by transforming it. These transformations are like giving the graph instructions to move, flip, or stretch.

Let's take a basic function, which we'll call f(x)f(x). Common transformations include:

  • Vertical Shifts: Adding a constant outside the function moves the graph up or down. f(x)+cf(x) + c shifts the graph up by cc units. f(x)cf(x) - c shifts it down.
  • Horizontal Shifts: Adding a constant inside the function moves the graph left or right. f(xc)f(x - c) shifts the graph to the right by cc units. f(x+c)f(x + c) shifts it to the left.
  • Reflections: A negative sign can flip the graph. f(x)-f(x) reflects the graph across the x-axis. f(x)f(-x) reflects it across the y-axis.
  • Stretching and Compressing: Multiplying by a constant can stretch or shrink the graph. cf(x)c \cdot f(x) stretches it vertically if c>1c > 1 and compresses it if 0<c<10 < c < 1.
Lesson image

By combining these simple rules, you can graph very complex functions just by starting with a basic shape and applying a series of transformations. It's a powerful way to visualize functions without having to plot dozens of points.

Ready to check your understanding?

Quiz Questions 1/5

Which of the following statements best describes a function in mathematics?

Quiz Questions 2/5

If f(x)=2x1f(x) = 2x - 1, what is the value of f(4)f(4)?

Understanding functions and how their graphs behave is a cornerstone of higher math. With this foundation, you're ready to explore how these functions change.