Solving for a Variable
Progress can't be saved in this browser, so this lesson's status can't be set.
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 contains more than one letter, such as , , or . Many geometry and science formulas have this form.
To solve for a variable means to get that variable alone on one side, with no copy of it on the other side. For a rectangle with positive lengths, solving for gives ; solving for gives .
Treat the other letters as fixed numbers while you work. For example, gives by division by . In , the fixed quantities and play the roles of and . Their values need not be known yet to carry out the same division.
The same moves, now with letters
The properties of equality still apply. Add or subtract the same quantity on both sides, or multiply or divide both sides by a nonzero quantity. Undo the operations around the target variable in reverse order.
Why isolating a letter uses the same moves#
For , dividing both sides by gives , so . Multiplying by reverses that step: .
For , divide both sides by , provided :
Thus . Multiplying both sides by recovers , so the rearrangement keeps the same relationship. The steps are the same as with the number , and they work for any value of that is not zero.
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 , provided the elapsed time is nonzero:
In words, the rate is the distance divided by the time, which is the average rate over the whole trip. Solving for works the same way: dividing by gives , provided . With a rate of zero, you cannot get the time back by dividing.
Rearranging a formula in more than one step
When several operations surround the target, undo the last one first. In , the last operation is adding . In , it is multiplying the whole group by . The order depends on how the expression was built.
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 , dividing every term of the left side:
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 get Fahrenheit from Celsius instead, 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 :
This form gives the Fahrenheit temperature directly from the Celsius temperature, so you can use it for every new reading without rearranging again.
Worked example 4 Solve for
In , already stands alone. To solve for , treat , , and as fixed numbers. Subtract from both sides:
Then divide by the coefficient , provided :
Keep the whole numerator together over .
Check your understanding
Which formula solves for , where and , , are fixed constants? Test your choice with , , by substituting its value of into .
Undo the operations in reverse: subtract from both sides, then divide by , which is nonzero.
For the test values, . Substituting into the original gives , so it checks. The other formulas give , , and , none of which satisfies .
The check tests only these values. The formula works for every nonzero and any and because each step of the algebra can be undone. The option is wrong because division must reach the whole numerator .
When the target appears in more than one term
When the target appears in several terms, combine those terms first. In , the left side is . Dividing by then gives .
This is the distributive law in reverse, the same idea used for combining like terms and factoring expressions. It also works when the coefficients are letters, as in . Dividing by alone, even when , leaves on the left. Factor first, so that the target appears only once.
Why a target in two terms must be factored out#
Start with . Use the distributive law to gather the two copies of :
Dividing by the nonzero combined coefficient gives . Check: . The same law works for any fixed coefficients and in place of and :
So becomes . If , divide both sides by :
If instead, the equation is : it has no solution when , and every real works when .
Use the same steps when the target 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:
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 :
Here is the interest rate per time unit, written as a decimal, and uses that same time unit. For nonnegative and , is at least , so division is allowed. The factor pulled out is ; the factor left in parentheses is . The lone is , so the must remain. Expanding checks that both original terms return.
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. Factor first, so that appears once and a single division isolates it. The factor is the sum , not the product .
Dividing by a letter, and checking the result
Recall the nonzero-denominator rule from Algebraic Fractions: division is defined only when the divisor is not zero. For known numbers such as and , we know the divisor is not zero. A symbolic divisor may be zero even when its separate letters are not. For example, is zero whenever . State the nonzero condition before dividing. A real situation may guarantee it, the way positive side lengths do for a rectangle, but a letter by itself does not.
The formula from Example 5 applies only when . When , return to : subtracting gives . If , any real works; if , none does. The rearranged fraction cannot describe those cases.
Also keep restrictions already present in the original equation. Clearing a denominator does not make a previously excluded value allowed. For example, requires . Multiplying by gives , but the original restriction still applies.
To isolate a letter that starts in the denominator, consider with . Multiplying by gives , then dividing by gives . Checking, .
For the general equation , start from . If , dividing by gives . This value is allowed only when , since the original requires . If and are both zero, every nonzero works in the original equation. If exactly one of them is zero, no allowed works. So there is exactly one solution when and are both nonzero, and not otherwise.
Check your understanding
Solve for . Which condition, if any, belongs with your answer?
Isolating means dividing both sides by .
The divisor is a fixed number, about , so it is already known to be nonzero. No additional algebraic restriction is needed for this division. is the target and is the numerator; neither is the divisor, so neither needs a nonzero condition for this division. The fraction reverses the needed division.
The area formula and the box-volume formula use letter divisors when rearranged. Positive dimensions guarantee those divisors are nonzero. If the letters can be any numbers, you have to state that each divisor is not zero.
Check your understanding
Isolate in and in . Which pair gives the formulas and the algebraic divisor conditions that justify them?
Divide by to isolate the width.
Divide by the product to isolate the height.
Positive rectangle and box dimensions guarantee these conditions. For unrestricted quantities, the formulas still require them. and are numerators, so their being nonzero is not the divisor condition. If , both displayed fractions are undefined; return to the original equations for that case.
To check a rearrangement, choose simple numbers that satisfy the original formula and its restrictions. For a rectangle with and , the area is . The rearranged formula gives , matching the original width.
If the numbers do not match, there is an error somewhere. A successful check is useful, but one set of numbers cannot prove the formula for every input. For that, you rely on the reversible algebra steps.
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.
Keep the original restriction .
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.