Skip to main content

Variables and Algebraic Expressions — Writing, Evaluating, and Simplifying

Grade: 6-7 | Topic: Algebra

What You Will Learn

In this lesson you will understand what variables are and why we use them, learn how to translate everyday English phrases into algebraic expressions, practice evaluating expressions by substituting numbers, and simplify expressions by combining like terms.

Theory

What is a Variable?

A variable is a letter that stands for a number we do not know yet (or a number that can change). The most common variable letters are xx, yy, and nn, but any letter can be used.

Think of a variable as a box with a label: the label is the letter, and any number can go inside the box. When we write x+5x + 5, we mean "some number plus five." If x=3x = 3, the result is 88. If x=10x = 10, the result is 1515.

What is an Algebraic Expression?

An algebraic expression is a combination of numbers, variables, and operations (addition, subtraction, multiplication, division). Here are some examples:

  • 2x+72x + 7
  • 5n35n - 3
  • 4a+2b4a + 2b
  • y3+9\frac{y}{3} + 9

Notice that expressions do not have an equals sign. Once you add an equals sign (like 2x+7=152x + 7 = 15), it becomes an equation.

Parts of an Expression

TermMeaningExample in 3x+53x + 5
TermA single piece separated by + or -3x3x and 55
CoefficientThe number multiplied by a variable33 (in 3x3x)
ConstantA term with no variable55
VariableThe letterxx

Writing Expressions from Words

Algebra often starts by translating words into symbols. Here is a reference for common phrases:

English phraseOperationAlgebraic form
a number plus 8additionn+8n + 8
5 more than xxadditionx+5x + 5
a number minus 3subtractionn3n - 3
7 less than yysubtractiony7y - 7 (not 7y7 - y)
twice a numbermultiplication2n2n
the product of 4 and xxmultiplication4x4x
a number divided by 6divisionn6\frac{n}{6}
half of zzdivisionz2\frac{z}{2}

Watch out for "less than" — the phrase "7 less than yy" means y7y - 7, not 7y7 - y. The number after "less than" comes first in the expression.

Evaluating Expressions

To evaluate an expression means to substitute a given value for each variable and then compute the result.

For 3x+23x + 2 when x=4x = 4:

3(4)+2=12+2=143(4) + 2 = 12 + 2 = 14

Always use parentheses when substituting to avoid sign errors, especially with negative numbers.

Simplifying by Combining Like Terms

Like terms are terms that have exactly the same variable part. You simplify by adding or subtracting their coefficients.

  • 5x+3x=8x5x + 3x = 8x (same variable xx, add coefficients)
  • 7y2y=5y7y - 2y = 5y
  • 4x+3+2x+9=6x+124x + 3 + 2x + 9 = 6x + 12 (combine xx-terms and constants separately)

Terms like 3x3x and 3y3y are not like terms because the variables differ. Similarly, xx and x2x^2 are not like terms because the exponents differ.

Worked Examples

Example 1: Translate words to algebra

Write an algebraic expression for "three times a number, decreased by 11."

Let the number be nn.

"Three times a number" is 3n3n. "Decreased by 11" means subtract 11.

3n113n - 11

Example 2: Evaluate an expression

Evaluate 2a3b+102a - 3b + 10 when a=5a = 5 and b=2b = -2.

Substitute:

2(5)3(2)+102(5) - 3(-2) + 10

=10(6)+10= 10 - (-6) + 10

=10+6+10= 10 + 6 + 10

=26= 26

Notice that subtracting a negative number becomes addition: 3(2)=+6-3(-2) = +6.

Example 3: Simplify an expression

Simplify 8x+43x+7x8x + 4 - 3x + 7 - x.

Group the xx-terms: 8x3xx=4x8x - 3x - x = 4x.

Group the constants: 4+7=114 + 7 = 11.

8x+43x+7x=4x+118x + 4 - 3x + 7 - x = 4x + 11

Example 4: Multi-variable expression

Simplify 5a+2b3a+4b+15a + 2b - 3a + 4b + 1.

Group aa-terms: 5a3a=2a5a - 3a = 2a.

Group bb-terms: 2b+4b=6b2b + 4b = 6b.

Constants: 11.

5a+2b3a+4b+1=2a+6b+15a + 2b - 3a + 4b + 1 = 2a + 6b + 1

Common Mistakes

Mistake 1: Translating "less than" backwards

❌ "5 less than nn" \rightarrow 5n5 - n

✅ "5 less than nn" means start with nn and take away 5: n5n - 5. The phrase "less than" reverses the order.

Mistake 2: Combining unlike terms

3x+4y=7xy3x + 4y = 7xy

✅ You can only combine terms with the same variable. Since 3x3x and 4y4y have different variables, the expression 3x+4y3x + 4y is already simplified. And xyxy is a completely different term (it means xx times yy).

Mistake 3: Forgetting the sign when substituting negatives

❌ Evaluating x2x^2 when x=3x = -3: "x2=32=9x^2 = -3^2 = -9"

✅ Use parentheses: (3)2=9(-3)^2 = 9. Without parentheses, 32-3^2 means (32)=9-(3^2) = -9, which is a different result. Always wrap negative substitutions in parentheses.

Practice Problems

1. Write an algebraic expression: "the sum of a number and 12, divided by 4."

Show Answer

n+124\frac{n + 12}{4}

"The sum of a number and 12" is n+12n + 12. "Divided by 4" means the whole sum is divided.

2. Evaluate 4x74x - 7 when x=3x = 3.

Show Answer

4(3)7=127=54(3) - 7 = 12 - 7 = 5

3. Evaluate a2+2a1a^2 + 2a - 1 when a=2a = -2.

Show Answer

(2)2+2(2)1=4+(4)1=1(-2)^2 + 2(-2) - 1 = 4 + (-4) - 1 = -1

4. Simplify: 6m+92m+3m46m + 9 - 2m + 3m - 4.

Show Answer

Group mm-terms: 6m2m+3m=7m6m - 2m + 3m = 7m.

Group constants: 94=59 - 4 = 5.

Simplified: 7m+57m + 5.

5. Simplify: 3x+5yx+2y83x + 5y - x + 2y - 8.

Show Answer

Group xx-terms: 3xx=2x3x - x = 2x.

Group yy-terms: 5y+2y=7y5y + 2y = 7y.

Constants: 8-8.

Simplified: 2x+7y82x + 7y - 8.

Summary

  • A variable is a letter representing an unknown or changeable number.
  • An algebraic expression combines numbers, variables, and operations — no equals sign.
  • To evaluate, substitute numbers for variables and compute.
  • To simplify, combine like terms (terms with the same variable and exponent).
  • Careful translation of English phrases into algebra is a foundational skill for solving equations.

Need help with algebraic expressions? Take a photo of your math problem and MathPal will solve it step by step. Open MathPal