Equations & Inequalities

Solving Literal Equations

A literal equation is an equation with two or more letters, and solving it means isolating one letter: ax+b=cax+b=c becomes x=c−bax=\frac{c-b}{a} for a≠0a\neq 0.

ax+b=c  ⇒  x=c−ba,a≠0ax+b=c \;\Rightarrow\; x=\frac{c-b}{a}, \quad a\neq 0

The skill is the same one used on numbers, with a single mental switch: every letter you are not solving for is treated as a number. The sections below cover fractions, negatives, repeated letters, roots and the cases where the method breaks.

What is a literal equation, and is it a formula?

The word “literal” comes from the Latin for letter. A literal equation is one where letters carry the weight: A=lwA=lw, P=2l+2wP=2l+2w, E=mc2E=mc^2 and ax+b=cax+b=c all qualify. A formula is a literal equation that describes a real relationship, like area or interest. The equation ax+b=cax+b=c is literal but is not a formula, because it describes no particular situation. Every formula is literal, but the reverse is false.

The answer to a literal equation is not a number. Solving A=lwA=lw for ww gives w=Alw=\frac{A}{l}, which is a new formula. That is the real payoff: do the algebra once, and the rearranged version works for every future set of numbers, in a spreadsheet, a program or a lab report.

If you can already handle one-step equations, you have the whole toolkit. Nothing new is allowed. Add, subtract, multiply or divide both sides by the same thing, and only the bookkeeping gets longer.

Every other letter is a constant

While solving for ww in P=2l+2wP=2l+2w, treat PP and ll exactly like the numbers 20 and 3. If a step would be legal with numbers, it is legal with letters.

How do you solve a literal equation step by step?

Wrong versus right division when solving the perimeter formula for w, checked with P=20 and l=3
Dividing only 2l by 2 gives w = 17, which fails the perimeter check, while dividing the whole side gives w = 7.

The cleanest idea is to read the equation as a recipe applied to your target letter, then undo the recipe backwards. In A=12h(b1+b2)A=\frac{1}{2}h(b_1+b_2), the letter b1b_1 is first added to b2b_2, then multiplied by hh, then halved. To free it, undo the halving, then the multiplication, then the addition.

  1. Mark the letter you want.
  2. List what was done to it, in order of operations.
  3. Undo those operations in reverse order, each time on both sides.
  4. Stop when the target stands alone.

Here is the trapezoid area formula solved for b1b_1:

A=12h(b1+b2)A=\frac{1}{2}h(b_1+b_2)

2A=h(b1+b2)2A=h(b_1+b_2)

2Ah=b1+b2\frac{2A}{h}=b_1+b_2

b1=2Ah−b2b_1=\frac{2A}{h}-b_2

Test it with A=15A=15, h=5h=5, b2=2b_2=2. The formula gives b1=305−2=4b_1=\frac{30}{5}-2=4, and the original gives 12(5)(4+2)=15\frac{1}{2}(5)(4+2)=15.

The trap that costs the most points is dividing only part of a side. From P=2l+2wP=2l+2w, subtracting 2l2l leaves P−2l=2wP-2l=2w, and the division by 2 must cover the whole left side: w=P−2l2w=\frac{P-2l}{2}, not P−2l2P-\frac{2l}{2}. This is the same structure as two-step equations, and longer chains follow the pattern of multi-step equations. Your answer may also look different from a key: P−2l2\frac{P-2l}{2} and P2−l\frac{P}{2}-l are identical.

Quick check

Solve v=u+atv = u + at for tt.

Solving literal equations with fractions and negatives

Number line showing correct R equals 1 versus wrong S plus T equals 4 when S and T are 2
With S = T = 2, the correct R is 1, while the tempting S + T lands at 4.

When the target sits inside a fraction coefficient, multiply by the reciprocal. Solve the Celsius formula for FF:

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

95C=F−32\frac{9}{5}C=F-32

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

Check with boiling water: C=100C=100 gives F=180+32=212F=180+32=212.

When the target is in a denominator, bring it up first. From v=dtv=\frac{d}{t}, multiply both sides by tt to get vt=dvt=d, then divide by vv: t=dvt=\frac{d}{v}. When a letter stands alone in a single ratio like this, the target and the other denominator simply swap places. That shortcut works only when there is one term on each side, so do not use it on sums. Equations where several fractions are added fall under rational equations, and the same clearing logic applies.

Negatives cause quieter errors. Solve 3x−y=73x-y=7 for yy: subtracting 3x3x gives −y=7−3x-y=7-3x. Now multiply every term by −1-1, which gives y=3x−7y=3x-7. Flipping only the sign of yy and leaving 7−3x7-3x untouched is the classic slip. Test x=2x=2: the original forces y=−1y=-1, and 3(2)−7=−13(2)-7=-1.

Reciprocals do not split

From 1R=1S+1T\frac{1}{R}=\frac{1}{S}+\frac{1}{T}, the answer is not R=S+TR=S+T. Combine the right side into S+TST\frac{S+T}{ST} first, then flip: R=STS+TR=\frac{ST}{S+T}.

What if the letter you want appears in more than one term?

You cannot isolate a letter that shows up twice, because each copy sits in a different place. The fix is to make it appear once. Move every term containing the target to one side, move everything else to the other, factor out the target, then divide by what remains in the bracket.

Solve ax+b=cx+dax+b=cx+d for xx:

ax+b=cx+dax+b=cx+d

ax−cx=d−bax-cx=d-b

x(a−c)=d−bx(a-c)=d-b

x=d−ba−cx=\frac{d-b}{a-c}

This requires a≠ca\neq c. Test with a=3a=3, b=1b=1, c=1c=1, d=9d=9. The original is 3x+1=x+93x+1=x+9, so 2x=82x=8 and x=4x=4. The formula gives 9−13−1=4\frac{9-1}{3-1}=4.

If the target is trapped in a bracket or a denominator, work in this order: clear denominators, expand brackets, collect target terms, factor, divide. Skipping the collecting step is why many students get stuck. The numeric version of this skill is equations with variables on both sides, and the literal version only replaces coefficients with letters.

Solving literal equations with squares and roots

To free a squared letter, isolate the square first and take the root last. From V=πr2hV=\pi r^2h, divide by πh\pi h to get r2=Vπhr^2=\frac{V}{\pi h}, then r=±Vπhr=\pm\sqrt{\frac{V}{\pi h}}. A cylinder radius cannot be negative, so geometry keeps the positive root. In pure algebra with no context, keep both.

Roots run the other way. The pendulum period is T=2πLgT=2\pi\sqrt{\frac{L}{g}}. Divide by 2π2\pi, then square both sides:

T2π=Lg\frac{T}{2\pi}=\sqrt{\frac{L}{g}}

T24π2=Lg\frac{T^2}{4\pi^2}=\frac{L}{g}

L=gT24π2L=\frac{gT^2}{4\pi^2}

Test with g=π2g=\pi^2 and L=1L=1: the period is 2π1π2=22\pi\sqrt{\frac{1}{\pi^2}}=2, and the new formula gives π2⋅44π2=1\frac{\pi^2\cdot 4}{4\pi^2}=1. Squaring can create extra solutions in general, which is covered in radical equations.

The method fails when the target is both squared and plain, as in y=x2+xy=x^2+x. No amount of moving terms isolates xx. Rewrite it as x2+x−y=0x^2+x-y=0 and use the quadratic formula to get x=−1±1+4y2x=\frac{-1\pm\sqrt{1+4y}}{2}. Practice that move with quadratic formula problems.

Quick check

Solve E=12mv2E = \frac{1}{2}mv^2 for vv, taking vv as positive.

When can you not divide by a letter in a literal equation?

Dividing by a letter quietly assumes it is not zero. The result w=Alw=\frac{A}{l} is valid only when l≠0l\neq 0, and a careful answer states this. Most textbooks let the restriction go unwritten, but it is where the method is honest about its limits.

The restriction can change the nature of the problem. In x(a−c)=d−bx(a-c)=d-b, if a=ca=c, you cannot divide, and two outcomes remain:

  • b≠db\neq d: no solution. Example: 2x+1=2x+52x+1=2x+5.
  • b=db=d: every xx works. Example: 2x+5=2x+52x+5=2x+5.

Letters also matter for inequalities, where a sign decides the direction. Solve ax>bax>b for xx. If a>0a>0, then x>bax>\frac{b}{a}. If a<0a<0, the inequality flips and x<bax<\frac{b}{a}. If a=0a=0, the left side is always 00, so the answer depends only on bb. Because the sign of a letter is often unknown, linear inequalities with letters usually need cases.

How do literal equations connect to slope-intercept form?

Converting a line to y=mx+by=mx+b is a literal equation exercise in disguise. Take the standard form Ax+By=CAx+By=C and solve for yy:

By=C−AxBy=C-Ax

y=−ABx+CBy=-\frac{A}{B}x+\frac{C}{B}

This is valid for B≠0B\neq 0. Read it as a shortcut: the slope is −AB-\frac{A}{B} and the yy-intercept is CB\frac{C}{B}, so you can see both without solving. For 2x+3y=122x+3y=12, the slope is −23-\frac{2}{3} and the intercept is 123=4\frac{12}{3}=4, giving y=−23x+4y=-\frac{2}{3}x+4. Test x=0x=0: 3y=123y=12, so y=4y=4.

The restriction here has a picture. If B=0B=0, the equation is Ax=CAx=C, a vertical line, and no function y=mx+by=mx+b describes it. The same fact that forbids dividing by zero forbids writing a vertical line in slope-intercept form.

Where do literal equations show up in real life?

Science and finance run on rearranged formulas. A few that appear constantly:

  • d=rtd=rt becomes r=dtr=\frac{d}{t} for speed, or t=drt=\frac{d}{r} for travel time.
  • I=PrtI=Prt becomes P=IrtP=\frac{I}{rt}, the principal needed to earn a given interest.
  • V=IRV=IR becomes I=VRI=\frac{V}{R}, the current through a resistor.
  • PV=nRTPV=nRT becomes T=PVnRT=\frac{PV}{nR}, the temperature of a gas.

A 150-mile drive that takes 2.5 hours gives r=1502.5=60r=\frac{150}{2.5}=60 miles per hour. The algebra came first and the numbers went in last, which is how spreadsheets and programs are built. Rate setups like this are the core of distance, rate and time problems.

Sequences use the same move. The sum of an arithmetic series is S=n2(a+l)S=\frac{n}{2}(a+l), and solving for the number of terms gives n=2Sa+ln=\frac{2S}{a+l}. With S=24S=24, a=3a=3, l=9l=9, this gives n=4812=4n=\frac{48}{12}=4, matching the terms 3,5,7,93,5,7,9. More on this formula is in the arithmetic series formula lesson.

Quick check

Solve PV=nRTPV = nRT for TT.

How do you check a literal equation answer?

Letters hide mistakes, so test with numbers. Pick easy values for every letter except the target, compute the target from the original equation, then plug the same values into your rearranged version. The two results must match.

Original Rearranged Test
A=12bhA=\frac{1}{2}bh h=2Abh=\frac{2A}{b} b=4,h=3b=4,h=3 gives A=6A=6, and 124=3\frac{12}{4}=3
I=PrtI=Prt r=IPtr=\frac{I}{Pt} P=200,r=0.05,t=3P=200,r=0.05,t=3 gives I=30I=30, and 30600=0.05\frac{30}{600}=0.05
F=95C+32F=\frac{9}{5}C+32 C=59(F−32)C=\frac{5}{9}(F-32) C=20C=20 gives F=68F=68, and 59⋅36=20\frac{5}{9}\cdot 36=20

Two more checks cost almost nothing. First, look at units: if t=drt=\frac{d}{r} is in hours, then miles divided by miles per hour must reduce to hours. Second, set one letter to 11 or 00 and see whether the result is sensible. When a check fails, the error is usually in the first step where a division or sign was applied to only part of a side.

Try this: Solve y=3x+12y=\frac{3x+1}{2} for xx. Then test your answer with x=5x=5: find yy from the original, and confirm your formula returns 55.

For more numeric reps on the same moves, work through a set of multi-step equation practice problems.

Practice problems

0 of 5 solved

  1. Solve I=PrtI = Prt for tt.

  2. Solve y=mx+by = mx + b for xx.

  3. Solve 3x−2y=123x - 2y = 12 for yy.

  4. Solve A=P(1+rt)A = P(1 + rt) for rr.

  5. Solve y=x+1x−2y = \frac{x+1}{x-2} for xx.

Common questions

What is a literal equation?

A literal equation is an equation with two or more letters, such as A=lwA=lw or ax+b=cax+b=c. Solving it means isolating one chosen letter, so the answer is an expression in the other letters instead of a single number.

Is a literal equation the same as a formula?

Every formula is a literal equation, but not every literal equation is a formula. A formula such as d=rtd=rt describes a real relationship, while ax+b=cax+b=c is only a pattern with no story attached.

What does it mean to solve for a variable?

It means rewriting the equation so that the chosen letter sits alone on one side with nothing multiplied, added or divided around it. Everything else ends up on the other side.

How do you solve a literal equation when the variable appears twice?

Move every term containing that variable to one side and everything else to the other. Factor the variable out so it appears once, then divide by the bracket.

Do you need a plus or minus sign when taking a square root in a literal equation?

In pure algebra, yes: r2=kr^2=k gives r=±kr=\pm\sqrt{k}. When the letter is a physical length, time or speed, only the positive root makes sense, so the sign is dropped.

Why does my answer look different from the answer key?

Equivalent expressions can be written in several ways. For example, P−2l2\frac{P-2l}{2} and P2−l\frac{P}{2}-l are the same. Test both with sample numbers to see that they agree.

Up next