How to Do Functions- Complete Guide to Mathematical Functions

What Functions Actually Are (No Nonsense)

A function is a relationship where every input gives exactly one output. That's it. You put in a number, the function does something to it, and spits out one result.

Not two results. Not zero results. One.

If you feed the same input into a function multiple times, you get the same output every time. That's the core idea. Functions are predictable machines.

Think of it like a vending machine. You press B4, you get the same candy bar every single time. The vending machine is a function.

Function Notation — Reading the Math Language

When mathematicians write functions, they use a specific format:

f(x) = 2x + 3

This says: "f of x equals 2x plus 3."

The letter before the parentheses is the function name. You can use any letter — g(x), h(t), k(n) — but f is the default when people are lazy.

Inside the parentheses is the input variable. It tells you what you're plugging in.

The right side is the rule — what the function actually does to that input.

Reading Function Notation in Practice

If you see f(5) = ?, it means "plug 5 into the function."

Using f(x) = 2x + 3:

f(5) = 2(5) + 3 = 10 + 3 = 13

Simple. Straightforward. No tricks.

Domain and Range — What Goes In, What Comes Out

Domain is all the possible inputs a function accepts. Range is all the possible outputs it produces.

Some functions have restrictions. For example:

f(x) = 1/x

You cannot plug in 0. There's no such thing as 1 divided by 0. So the domain is all real numbers except 0.

Common domain restrictions:

When you're given a function, always ask: what can't I put into this?

Types of Functions — Know Your Categories

Functions fall into different families. Here's the breakdown:

Type Form Example
Linear f(x) = mx + b f(x) = 3x - 7
Quadratic f(x) = ax² + bx + c f(x) = x² - 4x + 3
Polynomial Sum of power terms f(x) = x³ + 2x² - x + 5
Exponential f(x) = a^x f(x) = 2^x
Logarithmic f(x) = log(x) f(x) = ln(x)
Trigonometric sin, cos, tan f(x) = sin(x)

Linear Functions — Straight Lines

Linear functions graph as straight lines. The formula f(x) = mx + b has two key parts:

m = slope (rise over run, how steep it is)
b = y-intercept (where the line crosses the y-axis)

Quadratic Functions — Parabolas

These graph as U-shaped curves called parabolas. They have a highest or lowest point called the vertex. Quadratics are everywhere — projectile motion, optimization problems, business profit curves.

Exponential Functions — Growth and Decay

f(x) = 2^x grows crazy fast. At x = 10, you get 1024. At x = 20, you get over a million. Exponential functions model population growth, radioactive decay, and compound interest.

How to Evaluate Functions — Step by Step

Here's the practical process for evaluating any function:

Step 1: Identify the function rule

Start with something like f(x) = x² - 2x + 1

Step 2: Replace the input variable

Wherever you see x, substitute your given value. If evaluating f(3), replace every x with 3:

f(3) = (3)² - 2(3) + 1

Step 3: Apply order of operations

f(3) = 9 - 6 + 1

f(3) = 4

Step 4: Check for domain violations

Before you calculate, make sure your input is allowed. If you had g(x) = 1/(x-2), you couldn't evaluate g(2) because that would be division by zero.

Function Operations — Combining Functions

You can add, subtract, multiply, and divide functions. Here's how:

Addition and Subtraction

(f + g)(x) = f(x) + g(x)

Just add the outputs together for each input.

Multiplication

(f · g)(x) = f(x) · g(x)

Multiply the outputs together.

Division

(f/g)(x) = f(x) / g(x)

Divide outputs, but watch out — g(x) cannot be zero.

Composition of Functions

This is where it gets interesting. Function composition means plugging one function into another.

Written as (f ∘ g)(x) = f(g(x))

You evaluate g(x) first, then use that result as the input for f.

Example:

f(x) = 2x + 1
g(x) = x²

f(g(3)) = f(9) = 2(9) + 1 = 19

Work from the inside out. Always.

Inverse Functions — Running It Backwards

An inverse function f⁻¹(x) reverses whatever f(x) does. If f turns 2 into 5, the inverse turns 5 back into 2.

To find an inverse:

Example with f(x) = 3x - 4:

  1. y = 3x - 4
  2. x = 3y - 4
  3. x + 4 = 3y
  4. y = (x + 4)/3
  5. f⁻¹(x) = (x + 4)/3

Not all functions have inverses. Only one-to-one functions (each output comes from exactly one input) have true inverses.

Graphing Functions — Visualizing the Relationship

Functions graph on the coordinate plane. The x-axis shows inputs, the y-axis shows outputs. Each point (x, y) on the graph represents f(x) = y.

Key features to identify on any graph:

Linear functions need only two points to graph. Quadratics need the vertex plus one point on each side. More complex functions need more analysis.

Common Mistakes to Avoid

Confusing f(x) with multiplication. f(x) doesn't mean f times x. It's function notation.

Ignoring domain restrictions. Always check what you can and cannot plug in before calculating.

Composition order errors. f(g(x)) is different from g(f(x)). The order matters enormously.

Forgetting the chain rule. When composing functions with powers, you multiply by the derivative of the inside function.

Assuming all functions are invertible. Horizontal line test — if any horizontal line crosses the graph more than once, there's no inverse function.

Functions in the Real World

Functions aren't abstract math theater. They describe real relationships:

Any situation where one quantity depends on another is a function. Master the concept and you can model almost anything.

Quick Reference — The Core Formulas

Keep these in your toolkit. You'll use them constantly.