AI Math Tutor

Blog · Algebra basics

Algebraic Functions Explained: Notation, Graphs, Examples

Algebraic functions are a formal way to describe a rule: put a number in, get exactly one number out, every time. This post covers what the notation f(x)f(x) actually means, how to evaluate a function at a given input, how to find its domain, how a linear function's graph differs from a quadratic one, and a quick test for whether something is a function at all. Two worked examples show the ideas in practice.

Key takeaways

Function notation: what f(x) means

A function is a rule that takes an input and produces exactly one output. The notation f(x)f(x) names that rule and shows which input it is being applied to: f(x)=2x+1f(x) = 2x + 1 describes a rule where you double the input and add 1. Writing f(3)f(3) means apply that rule to the input 3, not multiply ff by 3.

This is the same underlying idea as an equation, just used differently. An equation like 2x+1=72x + 1 = 7 asks you to find the input that produces a specific output. A function describes the rule itself, for any input at all, which is why function notation is so useful once you start comparing different rules or graphing them. The building blocks behind this notation, variables, equations, and expressions, are covered from the start in Basics of Algebra: Variables, Equations and Functions.

Evaluating a function step by step

Evaluating a function means substituting a specific value for the input variable everywhere it appears in the rule, then simplifying using the normal order of operations. If f(x)=3x2−4f(x) = 3x^2 - 4, finding f(2)f(2) means replacing every xx with 22: 3(2)2−4=3(4)−4=12−4=83(2)^2 - 4 = 3(4) - 4 = 12 - 4 = 8.

The most common slip here is applying the exponent to the wrong part of the expression, especially when the input itself is negative. f(−2)f(-2) for the same function means 3(−2)2−43(-2)^2 - 4, and the exponent applies to −2-2 as a whole, giving 3(4)−4=83(4) - 4 = 8, the same result as f(2)f(2) in this case since squaring removes the negative sign.

Domain: what x is allowed to be

The domain of a function is the complete set of input values it can accept without breaking any math rule. A function like f(x)=2x+1f(x) = 2x + 1 has no restrictions at all; any real number can go in. Restrictions show up with certain kinds of expressions: a fraction cannot have a denominator of zero, and a square root cannot contain a negative number.

For f(x)=1x−3f(x) = \frac{1}{x - 3}, the input x=3x = 3 would make the denominator zero, so 3 is excluded from the domain, and every other real number is allowed. For a function involving a square root, like the one in the worked examples below, the expression under the root has to stay zero or positive, which restricts the domain to a range of values rather than excluding a single point. Solving for the number of inputs that satisfy a given equation, rather than the allowed range for a function, is covered separately in How Many Solutions Does an Equation Have? One, None, Many.

Linear vs quadratic functions: how the graphs differ

A linear function has the form f(x)=mx+bf(x) = mx + b, where mm is the slope and bb is the value where the graph crosses the vertical axis. Its graph is a straight line, and its rate of change is constant: every time xx increases by 1, the output changes by exactly mm, no matter where you are on the line.

A quadratic function has the form f(x)=ax2+bx+cf(x) = ax^2 + bx + c, and its graph is a curve called a parabola, opening upward when aa is positive and downward when aa is negative. Unlike a linear function, the rate of change is not constant: the output changes more quickly as xx moves further from the parabola's turning point. This is the visible reason a quadratic graph curves while a linear one stays straight. For more practice telling different function types apart, see Algebra Examples With Answers: 12 Problems Worked Out.

The vertical line test

Not every graph represents a function. A function requires that each input produce exactly one output, so on a graph, that means no vertical line should ever cross the curve more than once. If a vertical line crosses the graph twice, that x-value would correspond to two different y-values, which breaks the definition of a function.

A circle is the classic example of a graph that fails this test: a vertical line through the middle of a circle crosses it twice, once above the center and once below, so a circle is not the graph of a function. A parabola that opens upward or downward, by contrast, passes the test, since any vertical line touches it at most once.

Worked examples

Example 1: evaluate f(4)f(4) for f(x)=2x2−3x+1f(x) = 2x^2 - 3x + 1

  1. Substitute 44 everywhere xx appears in the function.
    f(4)=2(4)2−3(4)+1f(4) = 2(4)^2 - 3(4) + 1
  2. Apply the exponent before multiplying, following the order of operations.
    2(16)−3(4)+12(16) - 3(4) + 1
  3. Multiply each term, then add and subtract from left to right.
    32−12+1=2132 - 12 + 1 = 21

So f(4)=21f(4) = 21. Check it by substituting again in a slightly different order: 2×16=322 \times 16 = 32, 3×4=123 \times 4 = 12, and 32−12+1=2132 - 12 + 1 = 21, which matches.

Example 2: find the domain of f(x)=x−4f(x) = \sqrt{x - 4}

  1. Recall that a square root cannot contain a negative number, so the expression inside the root has to be zero or positive.
    x−4≥0x - 4 \ge 0
  2. Add 4 to both sides to solve for xx.
    x≥4x \ge 4

So the domain is every real number x≥4x \ge 4. Check the boundary: at x=4x = 4, the expression under the root is 4−4=04 - 4 = 0, and 0=0\sqrt{0} = 0 is a valid output. At x=3x = 3, just below the boundary, the expression is 3−4=−13 - 4 = -1, and a square root of a negative number is not a real number, confirming the domain starts exactly at 4.

Common mistakes

Functions built from a single input variable are the foundation for working with two variables at once, covered in Algebra With x and y: Two Variables Without the Panic. Scan a function problem you are stuck on and read every step in AI Math Tutor.

AI Math Tutor is a study aid, not a substitute for a teacher, and it can make mistakes: check every step, not just the answer.

Questions

What does f(x) actually mean?

f(x) is a name for a rule that turns an input, x, into exactly one output. It is read as 'f of x,' and it does not mean f multiplied by x. If f(x)=2x+1f(x) = 2x + 1, then f(3)f(3) means substitute 3 everywhere x appears, which gives 2(3)+1=72(3) + 1 = 7.

What is the domain of a function?

The domain is the full set of input values a function is allowed to accept. Most algebraic functions accept every real number, but some are restricted, such as a function with a square root, which cannot accept an input that makes the expression under the root negative.

How can you tell if a graph represents a function at all?

Use the vertical line test: if any vertical line drawn through the graph touches the curve more than once, the graph is not a function, because that would mean one input produces more than one output. If every vertical line touches the curve at most once, it is a function.

What is the difference between a linear and a quadratic function?

A linear function has the form f(x)=mx+bf(x) = mx + b and graphs as a straight line, with a constant rate of change. A quadratic function has the form f(x)=ax2+bx+cf(x) = ax^2 + bx + c and graphs as a curved parabola, where the rate of change itself keeps changing as x changes.

Read next