Unit 2, lesson 17

Making a Variable the Subject

How to isolate one variable in a formula with inverse operations, which nonzero and sign conditions the result needs, and how to read the new formula in context.

  • Theory part 33
  • Practice part 34
  • Rearranging Formulas

A thermometer app shows Celsius, but your oven dial is in Fahrenheit. The formula you have turns Celsius into Fahrenheit, and you need it the other way around. Rearranging a formula answers exactly that kind of question, and calculus asks it all the time, from implicit differentiation to related rates. The algebra is short. The care is in noticing when a step is allowed and which values still make sense.

Key terms

Subject of a formula

Definition A formula is an equation that relates several variables. A variable is the subject of the formula when it stands alone on one side and does not appear anywhere on the other side. To make a variable the subject means to replace the formula by an equation of the form

variable=expressionwithout that variable,\begin{gathered} \text{variable} = \text{expression} \\[0.4em] \text{without that variable}, \end{gathered}

which has exactly the same solutions as the original formula for all the values allowed by the conditions you state along the way.

In plain words Decide which letter you want, then get it by itself on one side. The other side then tells you how to compute it from everything else.

Example The circumference of a circle is C=2πrC = 2\pi r, so CC is the subject. Dividing both sides by the nonzero number 2π2\pi gives

r=C2π.r = \frac{C}{2\pi}.

Now rr is the subject. A circle with circumference C=10πC = 10\pi centimeters has radius r=5r = 5 centimeters.

Parameter

Definition A parameter is a quantity that is held fixed while the other variables in a formula vary. Different values of the parameter give different members of a family of formulas or graphs. In this lesson every variable and parameter is a real number, and a parameter may come with conditions such as m≠0m \ne 0 or L>0L > 0 that must be stated whenever a step depends on them.

In plain words A parameter is a setting you choose once and then leave alone. Change the setting and you get a different line, a different rectangle or a different circle.

Example In y=mx+by = mx + b the letters xx and yy are the variables, and mm and bb are parameters. Choosing m=2m = 2 and b=−1b = -1 gives the single line y=2x−1y = 2x - 1. Choosing m=2m = 2 and letting bb run over all real numbers gives a family of parallel lines with slope 22.

Inverse operation

Definition An inverse operation undoes another one. Adding cc is undone by subtracting cc, and multiplying by a number c≠0c \ne 0 is undone by dividing by cc. Two moves always turn an equation into an equivalent one, with exactly the same solutions. The first is adding or subtracting the same real number on both sides, or the same expression as long as it is defined for every value under consideration. The second is multiplying or dividing both sides by the same quantity, provided that quantity is not zero.

To isolate a variable, undo the operations applied to it in the reverse of the order in which they were applied. Operations that are not one-to-one, such as squaring, have no inverse on all real numbers, so they need extra care.

In plain words Peel the variable free from the outside in. Whatever was done to it last, you undo first.

Example Fahrenheit is computed from Celsius by multiplying by 95\frac{9}{5} and then adding 3232,

F=95C+32.F = \frac{9}{5}C + 32.

Undo the last step first by subtracting 3232, then multiply both sides by 59\frac{5}{9},

C=59(F−32).C = \frac{5}{9}(F - 32).

A reading of F=212F = 212 gives C=59⋅180=100C = \frac{5}{9} \cdot 180 = 100, the boiling point of water, as it should.

Nonzero condition

Definition Dividing both sides of an equation by a quantity mm produces an equivalent equation only when m≠0m \ne 0. When you divide by an expression that contains a parameter, the rearranged formula carries the condition that this expression is nonzero. The case where it equals zero must be examined separately, directly from the original equation and without dividing.

In plain words You may never divide by zero, even when the zero is hiding inside a letter. Write the condition next to the answer, and then look at the forbidden case on its own.

Example Make xx the subject of the line equation y=mx+by = mx + b. Subtracting bb gives y−b=mxy - b = mx. If m≠0m \ne 0, divide by mm,

x=y−bm,m≠0.x = \frac{y - b}{m}, \qquad m \ne 0.

For the line y=2x−1y = 2x - 1 and the height y=7y = 7 this gives x=7+12=4x = \frac{7 + 1}{2} = 4, and indeed 2⋅4−1=72 \cdot 4 - 1 = 7.

If m=0m = 0 the original equation reads y=by = b, a horizontal line. A height y≠by \ne b is never reached, so no xx works. The height y=by = b is reached at every xx, so there is no single answer. Either way xx cannot be made the subject, which is exactly what the condition m≠0m \ne 0 warned about.

Units

Definition In a formula about measured quantities, both sides of an equation must have the same units, and only quantities with the same units may be added or subtracted. Rearranging preserves this, so the units of the new subject can be found by doing the same operations to the units. A mismatch signals an algebra mistake.

In plain words The units follow the algebra. If the answer for a time comes out in meters, something went wrong.

Example Distance at constant speed is d=vtd = vt. For a speed v≠0v \ne 0, dividing by vv gives

t=dv.t = \frac{d}{v}.

The units are kilometers divided by kilometers per hour, which is hours. Covering d=150d = 150 kilometers at v=60v = 60 kilometers per hour takes

t=15060=2.5 hours.t = \frac{150}{60} = 2.5 \text{ hours.}

Admissible value

Definition An admissible value of a variable or parameter is a value for which the formula is defined and still describes the intended situation. A rearranged formula may be algebraically valid for every real number while only some of those numbers are admissible. The admissible set must be stated with the formula, and it is carried over to the rearranged version in terms of the new subject.

In plain words The algebra does not know that a length cannot be negative. You have to tell it, and the restriction stays with the formula after you rearrange it.

Example A rectangle with length LL and width WW has perimeter P=2L+2WP = 2L + 2W. For an ordinary rectangle L>0L > 0 and W>0W > 0, so PP is positive. To make WW the subject, subtract 2L2L and divide by the nonzero number 22,

W=P−2L2=P2−L.W = \frac{P - 2L}{2} = \frac{P}{2} - L.

The condition W>0W > 0 now becomes L<P2L < \frac{P}{2}, so the admissible lengths for a given perimeter are 0<L<P20 < L < \frac{P}{2}. With P=20P = 20 meters and L=7L = 7 meters the width is W=10−7=3W = 10 - 7 = 3 meters. With L=12L = 12 meters the formula still returns a number, W=−2W = -2, but no rectangle has that width, so L=12L = 12 is not admissible.

The rearranged formula also reads well in context. For a fixed perimeter, each extra meter of length costs exactly one meter of width. That kind of tradeoff is the starting point of many optimization problems in calculus.

Check yourself

  1. Make yy the subject of 3x−2y=63x - 2y = 6, and find yy when x=4x = 4.
Show the answer

Subtract 3x3x to get −2y=6−3x-2y = 6 - 3x, then divide by the nonzero number −2-2,

y=3x−62=32x−3.y = \frac{3x - 6}{2} = \frac{3}{2}x - 3.

At x=4x = 4 this gives y=3y = 3, and the check 3⋅4−2⋅3=63 \cdot 4 - 2 \cdot 3 = 6 works.

  1. An object moves with constant acceleration aa, so its velocity after time tt is v=v0+atv = v_0 + at. Make tt the subject and say what happens when a=0a = 0.
Show the answer

Subtract v0v_0 and divide by aa, which is allowed only when a≠0a \ne 0,

t=v−v0a,a≠0.t = \frac{v - v_0}{a}, \qquad a \ne 0.

When a=0a = 0 the velocity is always v0v_0. A different velocity is never reached, and the velocity v0v_0 is reached at every time, so tt cannot be found from vv.

  1. A fence of total length 3030 meters encloses a rectangle, so 2L+2W=302L + 2W = 30. Make LL the subject and give the admissible widths.
Show the answer

Dividing by 22 gives L+W=15L + W = 15, so L=15−WL = 15 - W. A real rectangle needs W>0W > 0 and L>0L > 0, and 15−W>015 - W > 0 means W<15W < 15. The admissible widths are 0<W<150 < W < 15 meters.

How this lesson connects