A rice farmer in Chitwan is told to give her field 100 kg of nitrogen (N), 30 kg of phosphate (P₂O₅) and 30 kg of potash (K₂O) a hectare, written 100:30:30: the government’s long-standing recommended dose for rice, as a 2017 trial in Chitwan used it. The agrovet sells none of these as they are. It sells three bags, the three fertilizers Nepal imports and subsidizes: urea (46% N), DAP (diammonium phosphate: 18% N and 46% P₂O₅) and MoP (muriate of potash: 60% K₂O). DAP feeds two nutrients at once, so the bags can’t be worked out one at a time. And NARC, Nepal’s agricultural research council, recommends a stronger dose for the same crop, 120:60:40.
So here is this unit’s question: how many kilograms of each bag does one ropani of rice need, for either dose? Three unknowns tied by three conditions make a system of linear equations, and a matrix solves it, for both doses at once. The answer comes at the end of 5.3.
Doses: Acharya and others, Agronomy Journal of Nepal (2022); the bags: Mishra and Bhattarai, Agriculture Development Journal (2026).
This unit solves systems exactly, with determinants and matrices, as CDC’s Algebra asks. Unit 15, in the Computational Methods option, solves them the way computers do: Gauss elimination, and the Gauss–Seidel method, which creeps up on the answer step by step.
5.1 System of linear equations
An equation like 2x + 3y − z = 5 is linear: each unknown appears only to the first power, never multiplied by another unknown. Several such equations that must all hold at once are a system of linear equations, and a solution is a set of values of the unknowns that satisfies every one.
The matrix form
Write the system
Multiply out the left side, row times column, and the three equations come back. In short, : A is the coefficient matrix, X the matrix of unknowns and B the matrix of constants. The augmented matrix is A with B written on as a fourth column: every number of the system, and nothing else.
Three kinds of answer
Two equations in x and y are two straight lines, and a solution is a point on both. Two lines can cross at one point (one solution), be parallel (no point on both: no solution) or be the same line (every point of it: infinitely many solutions). They can never meet in exactly two points. Three equations in x, y, z are three planes in space, and the same three cases hold: the planes meet at one point, have no point common to all three, or share a whole line (or plane) of points.
A system with at least one solution is consistent; one with none is inconsistent. Every method in this unit must say which case it is in, not only find a point.
The augmented matrix of x − 2y = 5, 3x + y = 1 is:
Pick an answer to see why.
5.2 Cramer’s rule
Two unknowns
Solve a₁x + b₁y = c₁ and a₂x + b₂y = c₂ by elimination, but keep the letters:
- Multiply the first equation by b₂ and the second by b₁, and subtract: the y terms cancel, leaving (a₁b₂ − a₂b₁)x = c₁b₂ − c₂b₁.
- In the same way, multiply by a₂ and a₁ and subtract to remove x: (a₁b₂ − a₂b₁)y = a₁c₂ − a₂c₁.
- Each bracket is a 2 × 2 determinant:
- So and , and if D ≠ 0,
D is the determinant of the coefficients. is D with the column of x’s coefficients replaced by the constants, and is D with the column of y’s replaced. That is Cramer’s rule.
When D = 0, step 4 can’t divide. a₁b₂ = a₂b₁ says the two lines have the same slope: they are parallel or the same line. If or is not 0, steps 1–2 give 0 = a number that isn’t 0: no solution. If all three are 0 (and each equation really is a line, not both its coefficients 0), the equations are multiples of each other: infinitely many.
Three unknowns
For three equations AX = B as in 5.1, let D = |A|, and let , , be D with the first, second or third column replaced by the constants d₁, d₂, d₃. Why the same rule holds:
- (a factor x of the first column goes in: Grade 11’s property 4).
- Add y times column 2 and z times column 3 to column 1, C₁ → C₁ + yC₂ + zC₃: the value doesn’t change (property 6), and column 1 becomes a₁x + b₁y + c₁z, …, which by the equations is d₁, d₂, d₃.
- So . The same with columns 2 and 3 gives and . If D ≠ 0,
Each unknown comes out on its own, without finding the others first: useful when only one current, or one price, is wanted.
For a system of two equations in x and y, D = 0 and . The system has:
Pick an answer to see why.
5.3 Matrix method: the inverse
AX = B looks like 3x = 12, which is solved by multiplying by , the number that undoes 3. The matrix that undoes A is .
- AX = B, with |A| ≠ 0, so that exists Grade 11: Grade 11, 6.4.
- Multiply both sides by on the left: . (Matrix products depend on order, so both sides must be multiplied on the same side.)
- (multiplication is associative; ).
- So
and it is the only solution: every solution must equal by steps 2–3. Put back, , so it is one.
If |A| = 0, A has no inverse and the method gives no answer; the system then has no solution or infinitely many, and 5.4 decides which.
A is a non-singular 3 × 3 matrix and AX = B. Then X is:
Pick an answer to see why.
Back to the field
Let u, d and m be the kilograms of urea, DAP and MoP a hectare. Nitrogen comes from urea (46%) and DAP (18%), phosphate from DAP (46%), potash from MoP (60%):
|A| = 0.46 × 0.46 × 0.60 = 0.12696 ≠ 0, and the inverse, from the adjoint, is
For 100:30:30, : , , kg a hectare. For NARC’s 120:60:40 the same gives 209.8, 130.4 and 66.7.
A ropani is 508.7 m², about 0.0509 ha. So one ropani of rice needs about 9.8 kg of urea, 3.3 kg of DAP and 2.5 kg of MoP for the government’s dose, and about 10.7 kg, 6.6 kg and 3.4 kg for NARC’s.
What the inverse says: the −0.851 means each extra kilogram of phosphate asked for cuts the urea by 0.851 kg, because the DAP that brings the phosphate brings nitrogen too. That is why NARC’s dose doubles the DAP but adds only 18 kg of urea. Over the twelve years to 2024/25, Nepal’s subsidized supply was about 62% urea, 35% DAP and 3% MoP, against a recommended 49%, 29% and 22%: the potash is the bag most often missing.
One dose for the whole country is itself being retired: in July 2022 the agriculture ministry endorsed new rice recommendations by soil domain (four in the Terai, one in the inner Terai, one in the hills), with zinc and boron as well, replacing a blanket recommendation that had not been updated since 1976. For the matrix nothing changes but B: put in your domain’s dose and the same gives the bags, as the project at the end of the unit does.
5.4 Matrix method: row-equivalent matrices
Elementary row operations
You solved equations long before matrices by doing three things to them, which never change the solutions. On the augmented matrix they are the elementary row operations:
- Swap two rows, : the same equations in another order.
- Multiply a row by a number k ≠ 0, : 2x + 4y = 6 and x + 2y = 3 have the same solutions. (Multiplying by 0 would throw an equation away, so k = 0 is not allowed.)
- Add a multiple of one row to another, : whatever satisfies both old equations satisfies the new one, and subtracting again brings the old one back.
Each operation can be undone by another of the same kind, so no solution is lost and none is gained. Matrices joined by such operations are row-equivalent, written , and row-equivalent augmented matrices are systems with the same solutions.
The row-equivalent method uses them to turn into , which reads off the answer: x = …, y = …, z = …. Work one column at a time: make its pivot (the diagonal entry) 1, then make every other entry of that column 0.
When there is no single answer
If a column can’t be given a pivot, the method still ends, and the last rows tell the case. A row with c ≠ 0 says 0 = c: no solution. A row of zeros says 0 = 0, an equation that was a combination of the others: if there is no 0 = c row, there are infinitely many solutions, with an unknown left free.
Row operations take the augmented matrix of a system to . The system has:
Pick an answer to see why.
The inverse by row operations
The same operations find : write and work it to . Why: each row operation is the same as multiplying on the left by a matrix, so the operations together multiply by one matrix E with EA = I, and that E is ; done to I as well, they turn it into .
Which method?
| Method | Best for | When det A = 0 |
|---|---|---|
| Cramer’s rule | two or three unknowns; one unknown wanted alone | shows “no solution” if some ; otherwise can’t decide |
| Inverse | the same A with many right sides | fails: no inverse |
| Row-equivalent | any system, any size | tells which: 0 = c row or a row of zeros |
Computers use row operations, never Cramer’s rule beyond a few unknowns: for 100 unknowns it needs 101 determinants of size 100. Unit 15 counts how much work each takes.
Exercise
Choose the correct option
In Cramer’s rule for three unknowns, is formed from D by:
Pick an answer to see why.
Which of these is not an elementary row operation?
Pick an answer to see why.
The system x + 2y = 3, 2x + 4y = 7 has:
Pick an answer to see why.
A system AX = B of three equations has |A| = 4. Then it:
Pick an answer to see why.
For the system 2x − y = 1, x + 3y = 11, the value of D in Cramer’s rule is:
Pick an answer to see why.
Row operations take to . The system:
Pick an answer to see why.
A is a 3 × 3 matrix with |A| = 0. The system AX = O (every constant 0) has:
Pick an answer to see why.
By Cramer’s rule, the solution of 3x + 2y = 7, x − y = 4 has x equal to:
Pick an answer to see why.
If and , then X is:
Pick an answer to see why.
kx + 2y = 4 and 2x + ky = 4 have no solution exactly when:
Pick an answer to see why.
x + y + z = 6, x + 2y + 3z = 10, has infinitely many solutions when:
Pick an answer to see why.
Short questions
Solve by Cramer’s rule:
- a.3x − 4y = 10, 5x + 2y = 8 (2 marks)
- b.x + y + z = 2, 2x − y + 3z = 11, x + 3y − z = −4 (3 marks)
Answer
.
- a.Find . (3 marks)
- b.Use it to solve and . (2 marks)
Answer
Solve by the row-equivalent method: x + y + z = 4, 2x − y + z = 3, x + 2y − z = 1. (5 marks)
Answer
Cramer’s own question: find the parabola through (1, 2), (2, 3) and (3, 6), by Cramer’s rule. (5 marks)
Hint
Answer
For which values of k does the system x + y + z = 1, x + 2y + 4z = k, have a solution? Solve it for each. (5 marks)
Hint
Answer
Long questions
Leontief’s model with two industries, agriculture and manufacturing (the numbers are made up; the method is Leontief’s). Each rupee of farm output uses Rs 0.20 of farm goods and Rs 0.40 of manufactured goods; each rupee of manufactured output uses Rs 0.30 of farm goods and Rs 0.10 of manufactured goods. Final demand is Rs 60 crore of farm goods and Rs 30 crore of manufactured goods.
- a.Write the equations X = AX + F for the total outputs x₁, x₂, and the matrix I − A. (2 marks)
- b.Find . (2 marks)
- c.Find the outputs. (2 marks)
- d.Farm demand rises by Rs 10 crore. How much more must each industry produce? (2 marks)
Hint
Answer
x + y + z = 6, x + 2y + 3z = 14, .
- a.Reduce the augmented matrix and find the values of for which the system has exactly one solution. (3 marks)
- b.When has it no solution? When infinitely many? Give them. (3 marks)
- c.Solve it by Cramer’s rule for , . (2 marks)
Answer
Project work
Printable PDFs
- Study notes 2 pages
- Worksheet 4 pages Answer key
- Harder practice questions 2 pages Answer key
Practice every question in the book, and keep track of the ones you miss →
Where these facts come from
- The rice doses, government recommended 100:30:30 and NARC recommended 120:60:40 kg N:P₂O₅:K₂O a hectare (the opening, 5.3): M. Acharya and others, “Assessment of Nutrient Expert Tool for Fertilizer Management in Rice at Fulbari, Chitwan, Nepal”, Agronomy Journal of Nepal 6(1), 2022.
- Urea, DAP and MoP as Nepal’s major subsidized fertilizers; supply about 62% urea, 35% DAP, 3% MoP against a recommended 49%, 29%, 22% (5.3): R. P. Mishra and A. Bhattarai, “Chemical Fertilizer Supply Chain Management in Nepal”, Agriculture Development Journal 19(1), 2026, read November 2026 (the shares are its Figure 2, 2013/14–2024/25, and MoALD’s technically recommended shares).
- The new rice recommendations by soil domain, endorsed by the Ministry of Agriculture and Livestock Development in July 2022, replacing the blanket recommendation of 1976 (5.3): CGIAR, “Nepal government endorses new site-specific fertilizer recommendations for rice”, 9 August 2022, and IFDC, “Nepal launches site-specific fertilizer recommendations for rice”, read November 2026.
- The bags’ grades, urea 46% N, DAP 18-46-0, MoP 60% K₂O: Wikipedia, “Urea”, “Diammonium phosphate” and “Potassium chloride”, read November 2026; 1 ropani = 5476 sq ft = 508.72 m²: Wikipedia, “Nepalese units of measurement”.
- Kirchhoff’s laws and the network of Figure 5.1 (5.1, 5.2): Grade 12 Physics, Unit 14.
- Leontief’s input–output tables (1941), his 1949 computation on a Harvard computer, and his Nobel Prize (1973) (5.3): Wikipedia, “Wassily Leontief”, read November 2026.
- Cramer’s rule (1750) and the curve through given points; his dates: MacTutor, “Gabriel Cramer”; Maclaurin’s Treatise of Algebra (1748), the Nine Chapters and its counting board, Gauss and the orbit of Pallas (5.2, 5.4): MacTutor, “Matrices and determinants”.
- Methods checked against OpenStax, Precalculus 2e, 9.6–9.8 (CC BY 4.0).
- The unit’s items: CDC, Secondary Education Curriculum 2078, Mathematics, Grades 11–12, Grade 12, 1.5 and learning outcome 1.16; the marks and the model question: CDC, Specification Grid 2078, Mathematics (Mat. 402), Grade 12, and Model question 2080; IOE, BE/BArch Entrance Syllabus 2083, Mathematics 2.1.
Found a mistake? Please tell us.
