Adding and Subtracting Linear Expressions
Learn how to identify like terms, keep track of signs, and combine linear terms with integer and fractional coefficients to simplify algebraic expressions.
Before you start
- A term is a number, a letter, or numbers and letters multiplied together. In , the terms are , and .
- Every term takes the sign ( or ) directly in front of it. In , the second term is , with coefficient .
- Adding and subtracting directed numbers: , and .
- Adding fractions: to add and , find the common denominator : .
1. What Is a Linear Expression?
In algebra, an expression is called linear if each of its terms contains at most one variable, and that variable is raised only to the power of . Constant terms (plain numbers with no letters) are also allowed.
Here are examples of linear expressions:
- (one variable, , raised to the power of )
- (two variables, and , each raised to the power of )
- (variables with fractional coefficients)
If a term has a variable raised to a power other than (such as or ), the square root of a variable (such as ), or two or more variables multiplied together (such as or ), the expression is non-linear.
| Expression | Linear or Non-linear? | Reason |
|---|---|---|
| Linear | The variable has power . | |
| Non-linear | The term has variable raised to power . | |
| Linear | All variables () are raised to power . | |
| Non-linear | The term is a product of two variables (). | |
| Linear | Can be written as ; is to the power . | |
| Non-linear | The term contains two variables multiplied together. | |
| Linear | Four terms, each variable has power . |
2. Like and Unlike Terms
The Definition of Like Terms
Like terms are algebraic terms that have the exact same variables raised to the exact same powers.
Their numerical coefficients can be different.
All constant terms (plain numbers such as ) are like terms with each other.
Unlike terms have different variables, or the same variable raised to different powers.
The Order of Factors Does Not Matter
Because multiplication is commutative (), the order in which variables are written does not change the term.
For example, and are like terms because .
Similarly, and are like terms because .
Terms such as and are not linear, but the same rule decides whether they are like terms, so you will see a few of them in this lesson.
Worked Example 1: Grouping Like Terms
From the following list of algebraic terms, group all the like terms together and list any terms that have no like partners:
Solution:
Identify terms sharing the exact same variable parts:
- Terms in : and .
- Terms in : and (since ).
- Terms in : , and (since ).
- Constant terms: and .
- Terms with no like partners: (no other term in alone), (no other term in alone), and (no other term in alone).
Like groups: (), (), () and (). Terms with no like partners: .
3. Adding and Subtracting Like Terms
In arithmetic, . In algebra, .
When adding or subtracting like terms, we add or subtract their numerical coefficients and keep the variable part unchanged.
This works because means 3 lots of and 2 more lots of , which is 5 lots of .
Only like terms can be combined. Unlike terms, such as , cannot be simplified and must be left as they are.
Combining Coefficients
To combine like terms:
1. Identify the like terms.
2. Add or subtract their numerical coefficients according to the rules of directed numbers.
3. Attach the shared variable part to the resulting coefficient.
If the resulting coefficient is , we write , not . If it is , we write , not . If it is , the term equals and drops out completely ().
Worked Example 2: Combining Like Terms with One Variable
Simplify each of the following expressions completely:
(a)
(b)
(c)
(d)
Solution:
(a) The coefficients are and :
(b) The coefficients are and :
(c) The coefficients are and :
When the coefficient is zero, the entire term becomes zero: do not write .
(d) The coefficients are and :
(a) (b) (c) (d)
4. Expressions with Several Variables and Constants
When an algebraic expression contains multiple variables and constant numbers, we simplify it by grouping like terms together before combining their coefficients.
The 3-Step Strategy for Simplifying Linear Expressions
Step 1: Group like terms together. Move like terms next to each other. Crucial rule: Every term must carry the sign ( or ) that appears immediately in front of it.
Step 2: Order terms cleanly. By standard convention, write variable terms in alphabetical order (), and place constant numbers last.
Step 3: Combine each group. Add or subtract the coefficients of each like group.
Adding or Subtracting an Expression in Brackets
To add an expression in brackets, remove the brackets; no sign changes: .
To subtract an expression in brackets, subtract every term in it, so each sign inside the brackets changes: .
Taking away takes away but gives back the , because is less than .
Worked Example 3: Simplifying Expressions with Multiple Variables
Simplify each expression completely:
(a)
(b)
(c)
(d)
(e)
Solution:
(a) Group -terms together, followed by -terms and constants:
(b) Group -terms, -terms, and constant numbers:
(c) Group -terms, -terms, and constants:
(d) Subtracting a negative term is equivalent to adding: :
(e) Remove the first brackets as they are. Subtract every term of the second brackets: and :
(a) (b) (c) (d) (e)
5. Linear Expressions with Fractional Coefficients
Linear terms can have fractions as coefficients, such as (which means ) or (which means ).
To combine like terms with fractional coefficients:
1. Group like terms together.
2. For each variable group, find the lowest common multiple (LCM) of the denominators to express the coefficients with a common denominator.
3. Add or subtract the numerators and simplify the fraction.
4. Leave a fractional coefficient as a proper or improper fraction in simplest form (such as or ), never as a mixed number. and mean the same.
Worked Example 4: Expressions with Fractional Coefficients
Simplify each expression completely:
(a)
(b)
(c)
Solution:
(a) Group -terms and -terms:
For the -terms, the common denominator of and is :
For the -terms, the common denominator of and is :
Combine the two results:
(b) Remove brackets and group -terms and -terms. Note that :
LCM for -denominators ( and ) is : .
LCM for -denominators ( and ) is : .
(c) Subtract every term of the second brackets: , , and :
Group -terms, -terms, and numbers (alphabetical order puts before ):
Calculate each part:
Combining all parts in alphabetical order:
(a) (b) (c)
6. Real-World Applications and the Unit Rule
Algebraic expressions often represent real-world physical quantities such as lengths, perimeters, masses, and costs.
When writing an algebraic answer that has a unit of measurement:
The Unit Rule for Algebraic Expressions
Whenever an algebraic expression has more than one term and is followed by a unit, the entire expression must be enclosed in brackets.
Examples:
- Write , not (which looks like plus ).
- Write , not .
- Write dollars, not dollars. The $ sign is kept for a fixed amount, such as $84.
If the expression has only one term, brackets are not required: or .
Worked Example 5: Grain Sacks and Total Cost
A farmer packs three sacks of wheat. Their masses are , , and .
(a) Find an expression in terms of and for the total mass of the three sacks.
(b) If and , find the mass of each sack and the total mass in kilograms.
(c) Wheat is sold at $1.25 per kilogram. Calculate the total selling price of the three sacks.
Solution:
(a) Add the masses of the three sacks:
Group like terms:
(b) Substitute and into each mass:
Every mass is positive, as a mass must be. Now substitute into the simplified expression for the total:
Check: .
(c) Multiply the mass by the unit price of $1.25 per kg:
The total selling price is $102.50.
(a) (b) , , ; total (c) $102.50
Common Mistakes to Avoid
- Adding unlike terms: Writing . This is completely wrong; unlike terms cannot be combined. is already in simplest form.
- Dropping the negative sign when rearranging: Rearranging to . The minus sign belongs to , so the rearranged expression is .
- Changing only the first sign after a minus: Writing . Every term of the subtracted brackets changes sign: .
- Forgetting that means : Writing . A single variable has an invisible coefficient of , so .
- Omitting brackets before units: Writing instead of . Without brackets, the unit applies only to the last term.
Practice Questions
Work out each problem on paper before clicking to reveal the solution. Questions 9 to 12 apply your algebra skills to real-world settings.
Question 1: Linear vs Non-linear Expressions
State whether each expression is linear or non-linear, giving a brief reason:
(a)
(b)
(c)
(d)
ShowHide solution
(a) Linear. The only variable is , and its power is .
(b) Non-linear. The variable is raised to the power of in the term .
(c) Linear. Each of the three variables () is raised to the power of , and no two variables are multiplied together.
(d) Non-linear. The term contains two variables multiplied together.
(a) Linear (b) Non-linear (c) Linear (d) Non-linear
Question 2: Identifying Like Terms
From the list , group all sets of like terms together.
ShowHide solution
- Terms in : and .
- Terms in : and .
- Terms in : and (since ).
- contains the letter as well, and no other term has exactly , so it has no like partner.
Like groups: (), (), and (). Term with no partner: .
Question 3: Basic Combining of Like Terms
Simplify each expression completely:
(a)
(b)
(c)
(d)
ShowHide solution
(a) .
(b) .
(c) .
(d) .
(a) (b) (c) (d)
Question 4: Combining Coefficients with Directed Numbers
Simplify each of the following:
(a)
(b)
(c)
(d)
ShowHide solution
(a) .
(b) , so .
(c) .
(d) .
(a) (b) (c) (d)
Question 5: Two Variables and Constant Terms
Simplify each expression:
(a)
(b)
(c)
ShowHide solution
(a) Group like terms: .
(b) Group like terms: .
(c) Group like terms: .
(a) (b) (c)
Question 6: Three Variables and Sign Reversals
Simplify each expression completely:
(a)
(b)
(c)
ShowHide solution
(a) Subtract every term of the second brackets:
Group like terms:
(b) Subtract every term of the second brackets: .
Alphabetical order puts before , constants last:
(c) Subtract every term in the brackets: .
Group like terms:
(a) (b) (c)
Question 7: Single Variable with Fractional Coefficients
Simplify each of the following:
(a)
(b)
(c)
ShowHide solution
(a) Common denominator of and is :
(b) Common denominator of and is :
(c) Write as . Common denominator is :
(a) (b) (c)
Question 8: Multiple Variables with Fractional Coefficients
Simplify completely:
(a)
(b)
ShowHide solution
(a) Group -terms and -terms:
For : .
For : .
Result: .
(b) Subtract every term of the second brackets:
For : .
For : .
Result: .
(a) (b)
Question 9: Triangle Perimeter in a Setting
The three sides of a triangle measure , , and .
(a) Write down an expression in terms of for the perimeter of the triangle in its simplest form.
(b) If , find the length of each side and the total perimeter of the triangle in centimetres.
ShowHide solution
(a) The perimeter is the sum of the three side lengths:
Group like terms:
Remember to enclose the multi-term expression in brackets before the unit.
(b) Substitute into each side length:
Total perimeter .
Check: .
(a) (b) Sides: ; Perimeter
Question 10: School Bookshop Purchases in a Setting
At a school bookshop, each notebook costs $3 and each pen costs $2.
Mei Ling buys notebooks and pens. Junjie buys notebooks and pens.
(a) Write an expression in terms of for the total number of notebooks bought by the two students.
(b) Write an expression in terms of and for the total number of items (notebooks and pens) bought by the two students.
(c) If and , find the total number of items bought and the total amount the two students paid.
ShowHide solution
(a) Add the notebooks:
(b) First add the pens:
Then add the notebooks and the pens:
The answer has more than one term and a unit, so it is written in brackets.
(c) Substitute and :
For the cost, find the number of each kind first:
Check: items.
Notebooks: , so $33. Pens: , so $32.
Total paid: , so the two students paid $65.
(a) notebooks (b) items (c) items; $65
Question 11: The Fourth Side of a Garden Bed
A garden bed is in the shape of a quadrilateral. Its total perimeter is .
Three of its boundary sides measure , , and .
(a) Find an expression in terms of and for the length of the fourth side in its simplest form.
(b) If and , calculate the length of each of the four sides and verify that every side has a positive length.
ShowHide solution
(a) First, sum the three known side lengths:
Subtract this sum from the total perimeter to find the fourth side:
(b) Substitute and into all four sides:
All four lengths are greater than , as lengths must be.
Check total perimeter: .
Using the formula: .
(a) (b) Sides: ; all are positive and total .
Question 12: Sports Tournament Scores in a Setting
In a school sports tournament, three teams scored points based on game results:
- Team Alpha scored points.
- Team Beta scored points.
- Team Gamma scored points.
(a) Write an expression in terms of and for the total points scored by all three teams.
(b) If and , find the score of each team and identify the winning team.
ShowHide solution
(a) Add the points of all three teams:
Group like terms:
(b) Substitute and into each team’s score expression:
Total points .
Check with total expression: .
Team Alpha won with points.
(a) (b) Alpha: , Beta: , Gamma: . Team Alpha won.
Key Points to Remember
- Linear Expressions: Contain variables raised only to the power of , with at most one variable per term. Plain constant numbers are permitted.
- Like Terms: Have the exact same variables raised to the exact same powers (e.g. and , or and ). Only like terms can be added or subtracted.
- Every Term Keeps Its Sign: When rearranging terms, always carry the or sign that sits immediately in front of each term.
- Alphabetical Ordering: Write variable terms in alphabetical order () with constant numbers placed last.
- Zero Coefficients: When coefficients add to zero, the term vanishes (). Do not write .
- Subtracting Brackets: To subtract an expression in brackets, subtract every term in it: .
- The Unit Rule: When an algebraic expression has more than one term and carries a unit, always enclose the entire expression in brackets, such as or items.