Three things that students of algebra often confuse are the notions of equations, expressions, and functions.
An expression is any set of constant numeric values, variables, and operations. The idea is that, if we know the values of all the variables at a given point, we can determine the numeric value of the entire expression.
Some expressions don’t have any variables at all. This usually means that they have a specific, unchanging mathematical value. The only exception to this is when some portion of the expression breaks math. Dividing by zero, for instance, always breaks math, so \(5/0\) has no mathematical value. Taking square roots of negative numbers leads to mathematical values, but not real ones, so depending on our goal, \(\sqrt(-5)\) may not have a valid value.
Since some values can create problems, this means that some expressions with variables have specific values or sets of values that create problems. For instance, if we’re limiting ourselves to real numbers, \(\sqrt(x)\) prohibits \(x\) from being negative. And \(1/x\) prohibits \(x\) from being zero.
An equation is a statement of fact about two expressions. An equation is true for any values of variables that make the two expressions have the same mathematical value, and otherwise it is false.
For instance, consider \(x^2 = 4\). This is true for any numbers which, when squared, have a value of 4. These are 2 and -2. Those are the only values that make that statement true.
We can have variables on both sides of the equation. Consider \(x^2 = x + 2\). This is also true for two values, 2 and -1.
If an equation involves two or more variables, it can be true for an infinite number of values. For instance, \(y = x\) is true for all pairs \((x, y)\) where \(x\) and \(y\) have the same value.
A function is a relationship between sets of data. It is often described as being a machine: If you put a specific value into the machine, you can predict exactly what output you’ll get.
It can very often by described by an expression, but it is rarely described by an equation. This is confusing because we normally state a function by giving an equation. But let’s take a careful look at a function. Here’s an example: \[f(x) = x^2 + 7\]
This is an equation, but it’s connecting two expressions. One expression consists of the name of a function (\(f\)) and its input (\(x\)). The other expression describes what operations are going to be applied to the input. The expression on the right is the actual function; the expression on the left gives its name.
Consider this: “My car is a silver Honda.” What is my car? It’s not the entire sentence “My car is a silver Honda.” That would be silly. It’s the object that both “my car” and “a silver Honda” refer to. In a similar way, \(f(x)\) and \(x^2 + 7\) are two ways to refer to a machine that takes any value, squares it, and adds seven to the result.
We use \(f(x)\) when we want to make general comments, or when we want to make other statements about the function. We use the specific form of the function (\(x^2 + 7\)) when we want to see what it actually does.