Solving for a Variable
Learning goals
- Isolate a chosen letter, treating the others as fixed numbers
- Rearrange into
- Factor the target out when it appears in several terms
- State the nonzero condition that dividing by a letter assumes
- Check a rearranged formula with simple numbers from the original
What it means to solve for a variable
A literal equation is an equation that contains more than one letter. The word comes from the Latin littera, for letter, and once you start looking, literal equations are everywhere. The equations , , , and are all literal equations, and so is nearly every formula in geometry and science.
To solve for a particular variable in such an equation is to rewrite the equation so that one variable stands alone on a side. Every other letter and number is gathered on the other side. Solving for means reaching ; solving the same equation for means reaching . The relationship never changes what it says. You are only rewriting it so a different letter becomes the subject.
The key that unlocks all of this is a small shift in how you read the other letters. When you solve for , treat as though it were a known number, a stand-in for some fixed length you simply have not been told. That is exactly the way the first lesson of this subject taught you to see a letter as a placeholder for a number. Then has the same shape as , and you already know to divide by the coefficient. Solving for a variable is nothing more than the equation solving of the last few lessons, carried out with letters sitting patiently where the numbers used to be.
The same moves, now with letters
Because the other letters behave like fixed numbers, the tools are the ones you already trust: the properties of equality. You may add, subtract, multiply, or divide both sides by the same quantity (nonzero for multiplying and dividing), and each move produces an equivalent equation. To solve for a target variable, undo the operations wrapped around it in reverse order, using inverse operations, until it stands alone. The only difference from before is that the numbers you add or divide by now wear letters.
Why isolating a letter uses the very same moves#
When you solved a numerical equation like , you divided both sides by to reach . A literal equation is no different. In the width is multiplied by the length , exactly as it was multiplied by before. The difference is that now the multiplier is a letter whose value you have not been told. The properties of equality do not care whether that multiplier is a numeral or a letter. They let you divide both sides by that multiplier all the same, provided it is not zero.
So divide both sides of by . On the right, the in the numerator cancels the you divided by, leaving alone:
Read the result the usual way round and . Nothing here is new. The single move, dividing both sides by the coefficient of the target, is the same one that finished every equation in the last few lessons. Treating as though it were a fixed number is what makes a letter behave like the in . That is the whole idea behind solving for a variable.
Worked example 1 Solve for the rate
The distance formula multiplies the rate by the time . To solve for , undo that multiplication by dividing both sides by , which a real trip guarantees is not zero:
The rearranged formula reads rate as distance divided by time, which is exactly how a speedometer would compute it. Solving instead for is the mirror image: dividing by gives .
Rearranging a formula in more than one step
Most formulas wrap the target in more than one operation, so you peel them off in reverse order, just as you did solving two-step equations. Strip away anything added to the target first, then divide by whatever multiplies it. The whole routine from the equation-solving lesson carries over unchanged; the constants are simply letters now.
Worked example 2 Solve for the width
The perimeter of a rectangle is . The target sits inside the term , with added on, so undo in reverse. Subtract the added from both sides first:
Now divide both sides by the coefficient . The division must reach the whole left side, every term of it:
Watch that last step. Dividing only the and forgetting the gives the wrong ; the correct result is , which equals once each term is divided.
Worked example 3 Solve for
The formula turns a Fahrenheit temperature into Celsius. To aim it the other way and read Fahrenheit from Celsius, solve for . The target is under two layers: it is inside the parentheses, and the whole parenthesis is multiplied by . Undo the outer layer first by multiplying both sides by the reciprocal :
Then add to both sides to free :
That is the companion formula every weather report uses. Rearranging once, rather than re-solving from scratch each time, is the whole payoff: one derivation hands you a formula aimed straight at Fahrenheit.
Worked example 4 Solve for
The equation describes a line, and the graphing chapter will lean on it constantly. Solving for takes no work at all, since already stands alone, and that is exactly the form a grapher wants. Solving for takes the familiar two steps. Subtract from both sides:
Then divide by the coefficient , assuming the line is not horizontal so that :
Keep the whole numerator together over . Throughout, the value of is treated as a known number, no different from the constants and , and that is what lets the ordinary moves work.
Check your understanding
Solve for , treating , , and as known constants.
Undo the operations in reverse: subtract the added from both sides, then divide by the coefficient .
Dividing before subtracting gives the wrong , and dropping the sign on gives . Treat , , and as fixed numbers and the steps match a numerical two-step equation.
When the target appears in more than one term
Every formula so far held the target in a single term. The one genuinely new situation is a target that appears in two or more terms at once, as in . You cannot divide the trouble away in one stroke, because is sitting in two places, and dividing by would clear it from the first term only. The fix is the factoring skill from the expanding lesson, the distributive law read in reverse.
Why a target in two terms must be factored out#
Suppose the variable you are solving for, , appears in two separate terms, as in . The distributive law says . Read from right to left, that same equation says
which gathers the two copies of into a single factor. This is the crucial move: once appears only once, multiplied by the quantity , one division finishes the job. Divide both sides by , which is legal as long as :
Factoring is not a trick saved for tidy expressions; it is the one step that turns two appearances of the target into one. And once the target appears a single time, the ordinary inverse operations isolate it exactly as before.
The same routine handles a target that starts on both sides of the equation. Bring every term containing the target to one side first, then factor it out.
Worked example 5 Solve for
Here the target appears on both sides, in and in . First bring both terms to the same side by subtracting from both sides:
Now the two copies of sit together, so factor out by reading the distributive law backward:
With in a single place, divide both sides by , which requires so the divisor is not zero:
Collecting the target on one side and factoring it out is the routine whenever the variable you want appears more than once.
Worked example 6 Solve for the principal
The amount in a simple-interest account after a time is , the principal plus the interest it earns. To recover the principal from the final amount, solve for . The target appears in both terms on the right, so factor it out. Both and share the factor :
Now multiplies the single quantity , so divide both sides by it:
The factor pulled out was , not . The lone is , so a stays behind inside the parentheses; dropping it and writing is the most common slip here.
Check your understanding
Solve for .
Both terms on the left contain , so factor it out, then divide by the quantity left behind.
You cannot divide by alone, since that clears from only the first term. Factoring gathers both copies of into one before the single division, and the factor is the sum , not the product .
Dividing by a letter, and checking the result
Every division in this lesson, by , by , by , quietly assumed the divisor was not zero. With numbers that assumption is automatic. With letters it is a genuine condition, the same nonzero-denominator rule from the algebraic-fractions lesson. An expression you divide by, or place under a fraction bar, must not be zero, and any value that would make it zero is excluded. For the geometry and motion formulas above the condition takes care of itself, because a side length, a speed, and a duration are all positive. In a purely symbolic rearrangement you should name the condition out loud: holds provided , and holds provided .
A rearranged formula is easy to check, and the check is worth the few seconds. Pick simple numbers that fit the original, then confirm the rearranged version agrees. Take . A rectangle with and has area , and the rearranged formula returns , matching the width you started with. When a test case comes out wrong, a sign or a stray term in the rearrangement is off. This test catches a slip exactly as substituting a numeric answer back into the original equation does.
Check your understanding
The formula can be rearranged. Solve it for .
Clear the denominator first by multiplying both sides by , which is nonzero because it sits in a denominator, then add to both sides.
This recovers the slope-intercept form of a line, the shape the graphing chapter will want. Multiplying only part of the right side, or forgetting to add back, produces the other choices.