General Aptitude

Basic algebra

Part 1 of 4 · 14 min

Linear and simultaneous equations

The concept

Start with something familiar

Picture an old shop balance with two pans. On the left pan sit 3 identical bags of sugar and a 7 kg weight. On the right pan sit 22 kg of weights. The pans are level.
How heavy is one bag? Take the 7 kg weight off the left, and take 7 kg off the right too, so the pans stay level. Now 3 bags balance 15 kg, so one bag is 5 kg. You just solved 3x+7=223x + 7 = 22 without calling it algebra.
An equation is that balance. This part shows you how to keep it level, how to turn a word problem into one, and what to do when there are two unknowns.

Idea 1: an equation is a balance, so do the same to both sides

Whatever you add, subtract, multiply or divide on one side, do on the other, and the equation stays true. Your goal is to get the unknown alone on one side.
StepLeftRight
Start3x+73x + 72222
Subtract 7 from both3x3x1515
Divide both by 3xx55
Key idea
Do the same thing to both sides until the unknown stands alone.
Example
Solve 5x−4=2x+115x - 4 = 2x + 11.
Subtract 2x2x from both sides: 3x−4=113x - 4 = 11. Add 4: 3x=153x = 15. Divide by 3: x=5x = 5. Check: 25−4=2125 - 4 = 21 and 10+11=2110 + 11 = 21.

Idea 2: turn the words into an equation, one phrase at a time

Word problems are equations written in sentences. Give the unknown a letter, then translate each phrase.
The words say...Write
"a number"xx
"twice the number"2x2x
"5 more than xx"x+5x + 5
"5 less than xx"x−5x - 5
"is", "gives", "equals"==
Example
When a number is doubled and then increased by 9, the result is 45. Find the number.
"Doubled" is 2x2x, "increased by 9" is 2x+92x + 9, "the result is 45" is =45= 45. So 2x+9=452x + 9 = 45, 2x=362x = 36, x=18x = 18.

Idea 3: two unknowns need two equations, so eliminate one

3 pens and 2 notebooks cost ₹100. 2 pens and 3 notebooks cost ₹110. One equation can't fix two unknowns, because many pairs of prices satisfy it. Two equations together pin down one pair.
Write pp for a pen and nn for a notebook:3p+2n=1002p+3n=1103p + 2n = 100 \qquad 2p + 3n = 110Elimination removes one unknown by adding or subtracting the equations, after scaling them if needed. Here the coefficients are swapped (3, 2 and 2, 3), so a neat trick works:
OperationResult
Add the equations5p+5n=2105p + 5n = 210, so p+n=42p + n = 42
Subtract themp−n=−10p - n = -10
Add these two2p=322p = 32, so p=16p = 16
Thenn=42−16=26n = 42 - 16 = 26
Example
Check the answer in both original equations.
3×16+2×26=48+52=1003 \times 16 + 2 \times 26 = 48 + 52 = 100 ✓ and 2×16+3×26=32+78=1102 \times 16 + 3 \times 26 = 32 + 78 = 110 ✓. A pen costs ₹16 and a notebook ₹26.

Idea 4: some pairs have no solution or infinitely many

Every linear equation in xx and yy is a straight line, and the solution is where the two lines meet. Two lines usually cross once. But they can also be parallel (never meet) or be the same line (meet everywhere). You can tell from the coefficients alone.
For a1x+b1y=c1a_1 x + b_1 y = c_1 and a2x+b2y=c2a_2 x + b_2 y = c_2:
RatiosLinesSolutions
a1a2≠b1b2\dfrac{a_1}{a_2} \ne \dfrac{b_1}{b_2}crossexactly one
a1a2=b1b2≠c1c2\dfrac{a_1}{a_2} = \dfrac{b_1}{b_2} \ne \dfrac{c_1}{c_2}parallelnone
all three ratios equalsame lineinfinitely many
Example
How many solutions do these pairs have?
2x+3y=52x + 3y = 5 and 4x+6y=104x + 6y = 10: ratios 24=36=510\dfrac{2}{4} = \dfrac{3}{6} = \dfrac{5}{10}, all equal, so infinitely many. 2x+3y=52x + 3y = 5 and 4x+6y=124x + 6y = 12: 24=36\dfrac{2}{4} = \dfrac{3}{6} but 512\dfrac{5}{12} differs, so none.

Idea 5: digit problems use 10 times tens plus units

A two-digit number with tens digit tt and units digit uu is not tutu. The number 36 is 3×10+63 \times 10 + 6. So:
NumberValue
tens tt, units uu10t+u10t + u
digits reversed10u+t10u + t
reversed minus original9(u−t)9(u - t)
Example
The digits of a two-digit number add to 9. Reversing the digits makes the number 27 bigger. Find it.
t+u=9t + u = 9 and 9(u−t)=279(u - t) = 27, so u−t=3u - t = 3. Adding: 2u=122u = 12, u=6u = 6, t=3t = 3. The number is 36. Check: 63−36=2763 - 36 = 27.

How to spot which idea you need

The question says...Use
one unknown, one conditionIdea 1: balance
"more than", "less than", "twice"Idea 2: translate phrase by phrase
two unknowns, two conditionsIdea 3: eliminate one
"no solution", "infinitely many", find kkIdea 4: compare ratios
digits, "reversed"Idea 5: 10t+u10t + u

Worked example 1warm-up

A show sells adult tickets at ₹50 and child tickets at ₹30. It sells 40 tickets and collects ₹1,700. How many adult tickets were sold?
Solution
Step 1. Name the unknownsIdea 2
Adults aa, children cc.
Step 2. Write two equationsIdea 2
Tickets: a+c=40a + c = 40. Money: 50a+30c=170050a + 30c = 1700.
Step 3. Eliminate ccIdea 3
From the first, c=40−ac = 40 - a. Substitute: 50a+30(40−a)=170050a + 30(40 - a) = 1700, so 50a+1200−30a=170050a + 1200 - 30a = 1700, giving 20a=50020a = 500.
Step 4. Answer
a=25a = 25 adult tickets, and c=15c = 15.
Check
25×50+15×30=1250+450=170025 \times 50 + 15 \times 30 = 1250 + 450 = 1700.

Worked example 2GATE level

If 1 is added to both the numerator and the denominator of a fraction, it becomes 12\dfrac{1}{2}. If 1 is subtracted from both, it becomes 13\dfrac{1}{3}. Find the fraction.
Solution
Step 1. Name the unknownsIdea 2
Let the fraction be xy\dfrac{x}{y}.
Step 2. Turn each condition into a linear equationIdea 1
Cross-multiply each one.x+1y+1=12⇒2x+2=y+1⇒y=2x+1\begin{aligned} \frac{x + 1}{y + 1} &= \frac{1}{2} \\ \Rightarrow 2x + 2 &= y + 1 \\ \Rightarrow y &= 2x + 1 \end{aligned}x−1y−1=13⇒3x−3=y−1⇒y=3x−2\begin{aligned} \frac{x - 1}{y - 1} &= \frac{1}{3} \\ \Rightarrow 3x - 3 &= y - 1 \\ \Rightarrow y &= 3x - 2 \end{aligned}
Step 3. Solve the pairIdea 3: substitution
Both equal yy, so 2x+1=3x−22x + 1 = 3x - 2, giving x=3x = 3 and y=7y = 7.
Step 4. Answer and check
The fraction is 37\dfrac{3}{7}. Check: 48=12\dfrac{4}{8} = \dfrac{1}{2} and 26=13\dfrac{2}{6} = \dfrac{1}{3} .

All the equations at a glance

IdeaEquation
Balancesame operation on both sides
Translate"5 less than xx" is x−5x - 5
Two unknownsadd or subtract to eliminate one
Number of solutionscompare a1a2\dfrac{a_1}{a_2}, b1b2\dfrac{b_1}{b_2}, c1c2\dfrac{c_1}{c_2}
Digits10t+u10t + u; reversed differs by 9(u−t)9(u - t)