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, 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 one fixed quantity, a stand-in for some length whose value you do not need to know while you work. 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#
The properties of equality do not care whether the multiplier you divide by is a numeral or a letter: they let you divide both sides by it 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 , provided . 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 a fixed quantity is what makes a letter behave like the in .
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 the average rate over the whole trip. Solving instead for is the mirror image: dividing by gives , provided , that is, the trip actually covers some distance.
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. Solving for takes no work at all, since already stands alone. 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, is treated as a fixed quantity, no different from the constants and , and that is what lets the ordinary moves work.
Check your understanding
Solve for , where and , , are fixed constants.
Undo the operations in reverse: subtract the added from both sides, then divide by the coefficient (assuming ).
comes from dividing the term by but forgetting to divide the that moved to the other side; a division must reach every term, not just the letter you are chasing. 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. Try a numeric case first. In , both terms already hold , so combine them the way you combine like terms anywhere: , which turns the equation into , so . Writing as is exactly the distributive law read backward.
The same idea rescues a symbolic equation like , where the coefficients are letters instead of numbers. Dividing both sides by (assuming ) does remove the coefficient from the first term, but the second term becomes : is still sitting in two places, just with different coefficients now. No single division finishes the job until the two copies of are combined into one, the same combining step that turned into above. 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, provided :
For an account earning interest, and are positive, so is always at least and the division is safe. 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 , where .
Both terms on the left contain , so factor it out, then divide by the quantity left behind (assuming ).
Dividing by alone (assuming ) would rescale both terms rather than remove from just one: becomes , and is still in two places. 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 a written number, you can see whether it is zero before you divide. With a letter, or an expression built from letters, you cannot see its value, so you name the condition instead: 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: a side length is positive, and for a trip that actually happens, its distance and duration are both positive, which forces its rate to be positive too. In a purely symbolic rearrangement you should name the condition out loud: holds provided , and holds provided . When the excluded value does happen, in this case , the rearranged formula simply does not apply, and the original equation needs its own look, separate from the rearranging done here.
Check your understanding
Solve for . Which condition, if any, belongs with your answer?
Isolating means dividing both sides by .
A condition is needed only when the divisor could be zero. Here the divisor is , a fixed number, about , that is never zero, unlike dividing by a letter such as or , whose value you cannot see. is the answer you are solving for, not something you divided by, so is not the relevant condition here. Flipping the fraction to solves for the wrong quantity.
Now try one where the divisor really is a letter. The volume of a box is , the length times the width times the height.
Check your understanding
Solve for . What condition must accompany your rearranged formula?
Isolating means dividing both sides by the product .
Unlike above, is built from letters, so its value is unknown and could be zero, and a condition is required: . is the quantity in the numerator, not the divisor, so is not the condition the division creates. Flipping the fraction to solves for the wrong quantity. And skipping the condition entirely is wrong precisely because the divisor here is letters, not a fixed number.
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.
Now try it yourself. The first checkpoint rearranged into . Pick , , : compute from the rearranged formula, then substitute that value into the original and confirm both sides match.
Check your understanding
The formula , with , 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.
keeps the wrong sign, subtracting instead of adding it back. divides by instead of multiplying by , undoing the wrong operation. adds to before multiplying by , placing inside the parentheses instead of outside it.