No history yet

Functions and Graphs

What Is a Function?

Think of a function as a simple machine. You put something in, it does something to it, and a single, predictable thing comes out. For example, imagine a machine that doubles any number you put into it. If you put in a 2, you get a 4. If you put in a 10, you get a 20. For every input, there is exactly one output. That's the core idea of a function.

In math, we write this relationship using function notation. For our doubling machine, we'd write it as f(x)=2xf(x) = 2x. Here, 'f' is the name of our function, and 'x' is the placeholder for the input. The expression f(x)f(x) represents the output. So, f(3)=2×3=6f(3) = 2 \times 3 = 6.

The key rule for a function is that each input must have only one output. If you put 3 into a machine and sometimes get 6 but other times get 9, it's not a function.

Domain and Range

Two important terms that go with functions are domain and range. They simply describe what goes in and what comes out.

Domain

noun

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

Range

noun

The set of all possible output values (f(x) or y-values) for a function.

Consider our function f(x)=2xf(x) = 2x. We can put any real number into it, so its domain is all real numbers. Since doubling any real number results in another real number, its range is also all real numbers.

However, some functions have restrictions. For the function g(x)=xg(x) = \sqrt{x}, we can't take the square root of a negative number (without getting into imaginary numbers). So, its domain is all non-negative numbers (x0x \ge 0). The output is also always non-negative, so its range is all non-negative numbers (g(x)0g(x) \ge 0).

Lesson image

A Tour of Functions

Functions come in many families, each with its own characteristic equation and graph shape. Understanding these families helps you quickly grasp the behavior of a function just by looking at its formula.

Linear Functions These are the simplest functions. They represent a constant rate of change and their graphs are always 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).

Lesson image

Quadratic Functions These functions have an x2x^2 term, and their graphs are called parabolas—smooth, U-shaped curves. The general form is f(x)=ax2+bx+cf(x) = ax^2 + bx + c. If 'a' is positive, the U opens upwards; if 'a' is negative, it opens downwards.

Polynomial Functions Linear and quadratic functions are types of polynomial functions. In general, a polynomial function involves sums of powers of x, like f(x)=x32x2+5f(x) = x^3 - 2x^2 + 5. Their graphs are smooth, continuous curves that can have various turns and wiggles. The highest power of x (the degree) influences the overall shape and number of turns.

Rational Functions These are fractions where the numerator and denominator are both polynomials, like f(x)=1xf(x) = \frac{1}{x} or g(x)=x+1x2g(x) = \frac{x+1}{x-2}. Their graphs can be interesting, often having asymptotes—lines that the graph gets closer and closer to but never touches. This happens where the denominator is zero, as division by zero is undefined.

Exponential Functions Exponential functions model rapid growth or decay, like population growth or radioactive decay. Their form is f(x)=a×bxf(x) = a \times b^x, where the variable x is in the exponent. Their graphs start flat and then shoot up (or down) very quickly.

Logarithmic Functions Logarithmic functions are the inverses of exponential functions. If y=bxy = b^x, then logb(y)=x\log_b(y) = x. They answer the question, "What exponent do I need to raise the base 'b' to in order to get 'y'?" Their graphs are the mirror image of exponential graphs across the line y=xy=x. They increase very slowly for large x-values.

Ready to check your understanding? Let's try a few questions.

Quiz Questions 1/6

What is the most fundamental property of a function in mathematics?

Quiz Questions 2/6

Given the function f(x)=x2+5f(x) = x^2 + 5, what is the value of f(3)f(3)?

Functions and their graphs are the visual language of calculus. Being able to recognize these basic types and understand what domain and range mean will give you a solid foundation for everything that comes next.