Order of Operations with Variables
You should be comfortable with:
Voltage drop, wire sizing, load balancing
Medication dosages, IV drip rates, vital monitoring
In arithmetic you learned PEMDAS β the order in which operations must be performed. In algebra, the same rules apply, but now expressions contain variables (letters that stand for unknown or changeable values). Being able to evaluate these expressions correctly β substituting numbers for variables and simplifying in the right order β is the gateway skill to every topic that follows.
Quick PEMDAS Review
The order of operations for any mathematical expression is:
- P β Parentheses (and other grouping symbols: brackets, braces, fraction bars)
- E β Exponents (and roots)
- MD β Multiplication and Division, left to right
- AS β Addition and Subtraction, left to right
Multiplication and division have equal priority β work left to right. The same is true for addition and subtraction.
Evaluating Expressions by Substitution
To evaluate an algebraic expression, replace every variable with its given value, then follow PEMDAS to simplify.
Example 1: Evaluate when
Step 1 β Substitute:
Step 2 β Multiply first (MD before AS):
Step 3 β Add:
Answer:
Example 2: Evaluate when
Step 1 β Substitute:
Step 2 β Exponent first:
Step 3 β Multiply:
Step 4 β Add and subtract left to right:
Answer:
Example 3: Evaluate when and
A fraction bar acts as a grouping symbol β evaluate the numerator and denominator separately before dividing.
Numerator:
Denominator:
Answer:
Nested Grouping Symbols
When parentheses appear inside brackets or braces, work from the innermost grouping outward.
Example 4: Simplify when
Step 1 β Innermost parentheses first. Substitute :
Step 2 β Multiply inside the brackets:
Step 3 β Subtract inside the brackets:
Step 4 β Multiply:
Answer:
Example 5: Evaluate when
Step 1 β Innermost parentheses:
Step 2 β Brackets next:
Step 3 β Multiply inside braces:
Step 4 β Apply the negative sign (braces):
Answer:
The Exponent Trap: vs.
This distinction causes more errors than almost anything else in algebra.
- means βtake , square it, then negate.β The exponent applies to only.
- means βnegate first, then square the result.β The exponent applies to .
Example 6: Evaluate both when
These give different answers. The parentheses make all the difference.
Expressions with Multiple Variables
Many real-world formulas involve two or more variables. The process is the same: substitute all values, then simplify with PEMDAS.
Example 7: Evaluate when and
Answer:
This is the perimeter formula for a rectangle β you will see it in geometry and in many trades.
Real-World Application: Electrician β Ohmβs Law
Electricians use Ohmβs Law constantly:
where is voltage (volts), is current (amps), and is resistance (ohms).
Scenario: A circuit has a current of amps flowing through a resistance of ohms. Find the voltage.
Step 1 β Substitute:
Step 2 β Multiply:
Answer: The voltage is volts.
Now suppose two resistors are in series ( ohms, ohms). The total voltage is:
Notice the parentheses β you must add the resistances before multiplying. Without them, , which is wrong.
Real-World Application: Nursing β Dosage by Weight
Nurses calculate medication dosages using body weight formulas. A common pattern is:
where is the dose to administer, is the patientβs weight in kilograms, is the recommended dose rate (mg per kg), and is the concentration of the medication (mg per mL).
Scenario: A patient weighs kg. The physician orders mg/kg. The medication comes in a concentration of mg/mL. Find the volume to administer.
Step 1 β Substitute:
Step 2 β Multiply the numerator (grouping symbol β fraction bar):
Step 3 β Divide:
Answer: Administer mL. The fraction bar acts as a grouping symbol β it tells you to evaluate the entire numerator () before dividing by the denominator. Treating the fraction bar correctly is essential in clinical dosage calculations.
Common Mistakes to Avoid
-
Forgetting to square before negating. , not . If you want a positive result, write .
-
Not treating the fraction bar as a grouping symbol. In , you must add first: . Computing is incorrect.
-
Multiplying before handling inner parentheses. In , you cannot write . Evaluate or simplify inside the parentheses first β if is known, add it to 3; if is unknown, distribute: .
-
Substituting incorrectly for negative values. When and the expression is , write . Dropping the parentheses gives , which is wrong.
-
Working right to left instead of left to right for equal-priority operations. In , divide first (left to right): . Working right to left gives , which is incorrect.
Practice Problems
Problem 1: Evaluate when
Answer:
Problem 2: Evaluate when
Answer:
Problem 3: Evaluate when and
Numerator:
Denominator:
Answer:
Problem 4: Evaluate when
Innermost first:
Answer:
Problem 5: An electrician calculates power with . Find when amps and ohms.
Answer: watts.
Problem 6: Evaluate when
Step 1 β Parentheses:
Step 2 β Exponent:
Step 3 β Negate:
Answer:
Problem 7: A nurse uses the formula with kg, mg/kg, and mg/mL. Find .
Answer: Administer mL.
Key Takeaways
- PEMDAS applies to algebraic expressions exactly the same way it applies to numeric ones
- To evaluate an expression, substitute the given values for every variable, then simplify step by step
- A fraction bar is a grouping symbol β evaluate the top and bottom separately before dividing
- Work innermost grouping symbols first when parentheses are nested inside brackets or braces
- Watch the critical difference between (negative) and (positive when is positive)
- Always wrap negative substitutions in parentheses to avoid sign errors
- Getting the order of operations right in real-world formulas (Ohmβs Law, dosage calculations) is not just a math skill β it is a safety issue
Return to Algebra for more topics in this section.
Next Up in Algebra
Last updated: March 29, 2026