← Math — Semester A midterm

appeared in 4/10

System of two linear equations with a parameter

What it looks like on the exam

"For which aa is there a unique solution — find it", "when are there infinitely many solutions / no solution", "when is the solution in the fourth quadrant or above a given line".

📘 The lesson on this topic in the courseLinear equations and systems with a parameter→

How to solve

A system of two linear equations is two lines in the plane. There are only three possibilities: the lines meet (a unique solution), are parallel (no solution) or coincide (infinitely many). The parameter decides which. The tool is the determinant: it is zero exactly when the lines are parallel or coincide.

a1x+b1y=c1,a2x+b2y=c2,D=a1b2−a2b1a_1x+b_1y=c_1,\quad a_2x+b_2y=c_2,\qquad D=a_1b_2-a_2b_1
x=c1b2−c2b1D,y=a1c2−a2c1Dx=\frac{c_1b_2-c_2b_1}{D},\qquad y=\frac{a_1c_2-a_2c_1}{D}

If D≠0D\neq0 — a unique solution. If D=0D=0 — substitute the parameter value into the system and check: if the equations are multiples of each other — infinitely many solutions; if only the left-hand sides are proportional — no solution.

The method, step by step

  1. Compute DD as an expression in the parameter and find when D=0D=0.

    Why: These are the suspect values.

  2. For every value where D=0D=0 — substitute and check: infinitely many or none.

    Why: There is no way to tell without substituting.

  3. For D≠0D\neq0 — find xx and yy (Cramer's rule or elimination).

    Why: Cancel where possible, remembering the domain.

  4. Conditions on the solution (a quadrant, above a line): substitute x(a)x(a), y(a)y(a) into the condition and solve an inequality in the parameter.

    Why: Usually a rational inequality — a sign table.

  5. Remove the values where D=0D=0 from the answer.

    Why: There is no unique solution there.

Cases you will meet

A unique solution

D≠0D\neq0.

Infinitely many solutions

a1a2=b1b2=c1c2\frac{a_1}{a_2}=\frac{b_1}{b_2}=\frac{c_1}{c_2}

no solution

a1a2=b1b2≠c1c2\frac{a_1}{a_2}=\frac{b_1}{b_2}\neq\frac{c_1}{c_2}

A solution in a given quadrant

First quadrant: x>0x>0 and y>0y>0; fourth: x>0x>0 and y<0y<0.

A solution on / above a line

Substitute x(a)x(a), y(a)y(a) into the line's equation or inequality.

Full topic in the course →
1

Fully worked example

Worked example

Given the system ax+2y=4ax+2y=4, 2x+ay=a+22x+ay=a+2. (a) When is there a unique solution, and what is it? (b) When is there none, and when infinitely many? (c) For which aa is the solution in the first quadrant?

Solution

IdeaThe determinant; at its zeros — substitute; for the quadrant — inequalities on x(a)x(a), y(a)y(a).
  1. D=a2−4D=a^2-4; D=0  ⟺  a=±2D=0\iff a=\pm2.

    Why: a⋅a−2⋅2a\cdot a-2\cdot2.

  2. x=4a−2(a+2)a2−4=2a+2x=\frac{4a-2(a+2)}{a^2-4}=\frac{2}{a+2}, y=a(a+2)−8a2−4=a+4a+2y=\frac{a(a+2)-8}{a^2-4}=\frac{a+4}{a+2}.

    Why: Cancel (a−2)(a-2).

  3. a=2a=2: both equations are 2x+2y=42x+2y=4 — infinitely many solutions.

    Why: The equations are the same.

  4. a=−2a=-2: −2x+2y=4-2x+2y=4 and 2x−2y=02x-2y=0 — a contradiction, no solution.

    Why: The left sides are opposite, the right sides are not.

  5. (c) x>0⇒a>−2x>0\Rightarrow a>-2; y>0⇒a<−4y>0\Rightarrow a<-4 or a>−2a>-2. Together: a>−2a>-2, a≠2a\neq2.

    Why: Remove a=2a=2 (no unique solution).

Checka=0a=0: 2y=42y=4, 2x=22x=2, that is (1,2)(1,2); by the formula x=1x=1, y=2y=2 ✓.
Common mistakeLeaving a=2a=2 in the answer to (c).

Practice