## Evaluate Algebraic Expressions

### Learning Outcomes

• Define and identify constants in an algebraic expression
• Evaluate algebraic expressions for different values

In mathematics, we may see expressions such as $x+5,\dfrac{4}{3}\normalsize\pi {r}^{3}$, or $\sqrt{2{m}^{3}{n}^{2}}$. In the expression $x+5$, $5$ is called a constant because it does not vary and x is called a variable because it does. (In naming the variable, ignore any exponents or radicals containing the variable.) An algebraic expression is a collection of constants and variables joined together by the algebraic operations of addition, subtraction, multiplication, and division.

The examples in this section include exponents. Recall that an exponent is shorthand for writing repeated multiplication of the same number. When variables have exponents, it means repeated multiplication of the same variable. The base of an exponent is the number or variable being multiplied, and the exponent tells us how many times to multiply.

For example,

$\begin{array}{ll}\left(-3\right)^{5}=\left(-3\right)\cdot\left(-3\right)\cdot\left(-3\right)\cdot\left(-3\right)\cdot\left(-3\right)\,\,\, & x^{5}=x\cdot x\cdot x\cdot x\cdot x \\ \left(2\cdot7\right)^{3}=\left(2\cdot7\right)\cdot\left(2\cdot7\right)\cdot\left(2\cdot7\right) & \left(yz\right)^{3}=\left(yz\right)\cdot\left(yz\right)\cdot\left(yz\right)\end{array}$

In each case, the exponent tells us how many factors of the base to use regardless of whether the base consists of constants or variables.
In the following example, we will practice identifying constants and variables in mathematical expressions.

### Example

List the constants and variables for each algebraic expression.

1. $x+5$
2. $\dfrac{4}{3}\normalsize\pi {r}^{3}$
3. $\sqrt{2{m}^{3}{n}^{2}}$

Any variable in an algebraic expression may take on or be assigned different values. When that happens, the value of the algebraic expression changes. To evaluate an algebraic expression means to determine the value of the expression for a given value of each variable in the expression. Replace each variable in the expression with the given value then simplify the resulting expression using the order of operations. If the algebraic expression contains more than one variable, replace each variable with its assigned value and simplify the expression as before. In the next example we show how to substitute various types of numbers into a mathematical expression.

### Example

Evaluate the expression $2x - 7$ for each value for $x$.

1. $x=0$
2. $x=1$
3. $x=\dfrac{1}{2}$
4. $x=-4$

Now we will show more examples of evaluating a variety of mathematical expressions for various values.

### Example

Evaluate each expression for the given values.

1. $x+5$ for $x=-5$
2. $\dfrac{t}{2t - 1}$ for $t=10$
3. $\dfrac{4}{3}\normalsize\pi {r}^{3}$ for $r=5$
4. $a+ab+b$ for $a=11,b=-8$
5. $\sqrt{2{m}^{3}{n}^{2}}$ for $m=2,n=3$

In the following video we present more examples of evaluating a variety of expressions for given values.