← World hubMethod ShowdownChina

China

Fangcheng: eliminate an unknown

Fangcheng is associated with arranging and manipulating counting-rod arrays to solve simultaneous conditions. Here you meet a small modern version: two equations contain the same y term, so subtracting one entire equation from the other removes y and reveals x. Substitute x back to find y, then check both original equations. The letters, horizontal rows, and equation symbols are modern teaching notation; the historical connection is the systematic elimination of an unknown. [1]

DISCOVER

Solve 2x + y = 11 and x + y = 7.

Two totals describe the same two unknowns. Subtract matching quantities to leave one unknown, then substitute back. Manipulate a modern two-equation board.

2x + y = 11
x + y = 7
subtract whole rows ↓
(2x − x) + (y − y) = 11 − 7

Three worked examples

These examples are calculated by the same engine as the tool. Expand a solution to follow every step.

Solve 2x + y = 11 and x + y = 7.
  1. Align the y quantities in two rows.
  2. Subtract the second row from the first: x = 11 − 7 = 4.
  3. Substitute: 4 + y = 7, so y = 3.

Answer: x after subtracting the second row: 4; y after substitution: 3

Solve 2x + y = 17 and x + y = 13.
  1. Align the y quantities in two rows.
  2. Subtract the second row from the first: x = 17 − 13 = 4.
  3. Substitute: 4 + y = 13, so y = 9.

Answer: x after subtracting the second row: 4; y after substitution: 9

Solve 2x + y = 11 and x + y = 9.
  1. Align the y quantities in two rows.
  2. Subtract the second row from the first: x = 11 − 9 = 2.
  3. Substitute: 2 + y = 9, so y = 7.

Answer: x after subtracting the second row: 2; y after substitution: 7

An array becomes a solving procedure

Roger Hart’s study of fangcheng describes counting rods organized in two-dimensional arrays and transformed through systematic procedures. The connection with modern linear algebra is useful, but historical arrays should not simply be relabelled as present-day textbook pages. The arrangement was part of the calculating apparatus itself. [1]

In this introductory board, the unknowns are written as x and y and each condition appears as an equation. That makes a compact demonstration of elimination possible without teaching the full historical layout first. It also makes the assumptions visible: the same symbol must stand for the same quantity in both conditions, and each total must describe that same pair of quantities.

Translate each row as a whole statement

The exercise always has the form 2x + y = A and x + y = B. Read the first as two copies of x plus one copy of y making the first total. Read the second as one copy of x plus one copy of y making the second total. Do not begin by guessing independent values for the letters.

The y amounts match exactly. That is the feature that makes direct subtraction efficient. If you compare the two collections, the first collection contains one extra x and no extra y. Its larger total must therefore exceed the other total by the value of that extra x. This interpretation explains the operation before the symbols are simplified.

Eliminate, substitute, and report both values

Subtract the complete second equation from the complete first equation. On the left, subtract both its x term and its y term. On the right, subtract the corresponding total. The y terms cancel, and the remaining x coefficient is one. Enter that difference as your x answer.

Next use the simpler second equation. Replace x with the value just found, then remove that known amount from B to leave y. Enter the resulting y value in its own field. The order of the fields matters because a correct pair entered in reversed positions represents different assignments. Finish by retaining both values, since a two-unknown system asks for a pair rather than a single number.

Why subtraction preserves the solution

An equality allows equal quantities to replace one another. If two equations are both true for the same pair x and y, subtracting equal quantities from their sides produces another true equality. Here that new equality isolates x because the shared y term disappears.

The subtraction equation alone does not retain every original condition: it no longer contains y. That is why you keep one original equation as well. The difference together with the retained second equation is enough to reconstruct the first. This explains why elimination is paired with substitution rather than treated as an instruction to discard all earlier information.

Verify the pair and recognize the limits

Put the proposed x and y into both original left sides. The first must equal A, and the second must equal B. Checking only the simpler equation leaves open the possibility that the first condition was mistransformed. Two successful checks confirm that the pair satisfies the actual problem.

The generated exercises choose positive whole-number values and this particular coefficient pattern. More general systems may require multiplying a row before subtraction, may have fractions or negative values, or may fail to determine a unique pair. Those are useful next topics, but this board does not ask you to classify every possible system.

Connect elimination with comparing information

A practical comparison works whenever two totals share the same unknown contribution. Think of two purchases with the same extra item and one extra copy of another item in the larger purchase. The difference identifies the value of the extra copy, provided the item values are genuinely consistent across purchases.

The important habit is noticing which information repeats. Before calculating, underline the matching contribution mentally and predict what will survive subtraction. Later, when coefficients differ, you can deliberately create matching contributions by scaling equations. The method then grows from an understandable comparison into a general procedure, rather than becoming a list of unexplained symbol moves.

Common mistakes

  • Subtracting only the totals. The difference of totals corresponds to the difference of every matching term. Write or explain the full row subtraction.
  • Forgetting that one x remains. Two copies of x minus one copy leave one copy. The y terms cancel because their coefficients match.
  • Checking only one original row. A solution must satisfy both conditions. A value pair that fits just one equation is not enough.

Questions learners ask

Did historical fangcheng use x and y?

The letters and equations here are modern notation. The historical connection concerns numerical arrays and elimination procedures, rather than these exact symbols or horizontal rows.

Why subtract the second row from the first?

That direction leaves a positive single x in this generated family. Reversing the subtraction is also valid but gives negative x on one side and requires another sign step.

Could I solve for y first?

Yes. Another valid algebraic route can isolate y, but the matching y terms make eliminating y the shortest route in this exercise.

What should I do after finding x?

Substitute it into the simpler original equation to determine y, then test the resulting pair in both original equations.

Keep learning

Connect this method to the main Math learning path:

Sources and historical scope

This is a modern two-equation introduction to elimination. It does not reproduce the orientation, scale, or complete procedure of a particular historical fangcheng problem.

  1. Roger Hart, The Chinese Roots of Linear Algebra — Johns Hopkins University Press ↗

The diagrams, examples and printable questions on this page are newly created teaching material. Historical context comes from the sources above.

Math From Counting to Calculus on iPhone

Follow a 46-stage learning journey on iPhone, with explanations and offline core practice.

Free download · Includes advertising and optional in-app purchases. App and browser progress stay on their respective devices.

Download on the App Store — Math From Counting to Calculus