← Back to course

Math — Mechina

Linear equations and systems with a parameter

Summary

An equation Ax=BAx=B (AA, BB depend on the parameter): if A≠0A\neq0 — a unique solution x=BAx=\frac BA; if A=0A=0 and B=0B=0 — infinitely many solutions; if A=0A=0 and B≠0B\neq0 — no solution.

  • System a1x+b1y=c1a_1x+b_1y=c_1, a2x+b2y=c2a_2x+b_2y=c_2. Determinant: D=a1b2−a2b1D=a_1b_2-a_2b_1.
  • D≠0D\neq0 — a unique solution: x=DxDx=\frac{D_x}{D}, y=DyDy=\frac{D_y}{D}, where Dx=c1b2−c2b1D_x=c_1b_2-c_2b_1, Dy=a1c2−a2c1D_y=a_1c_2-a_2c_1.
  • D=0D=0 — the lines are parallel: if the equations are fully proportional — infinitely many solutions, otherwise — none.
  • Geometrically: each equation is a line; a solution = an intersection point.
-2-112345-4-22468xyy=2x-1y=x+2y=2x-3(3, 5)
Different slopes — one intersection; equal slope and different yy-intercepts — no solution.

Question types

1

Linear equation with a parameter

An equation in one unknown with a parameter — split into cases by the coefficient of xx.

Worked example

Solve for every aa: (a2−4)x=a−2(a^2-4)x=a-2.

Solution

IdeaFactor: (a−2)(a+2)x=a−2(a-2)(a+2)x=a-2 and check when the coefficient vanishes.
  1. a≠±2a\neq\pm2: x=a−2(a−2)(a+2)=1a+2x=\frac{a-2}{(a-2)(a+2)}=\frac{1}{a+2}.

    Why: We may cancel because a≠2a\neq2.

  2. a=2a=2: 0⋅x=00\cdot x=0 — infinitely many solutions.
  3. a=−2a=-2: 0⋅x=−40\cdot x=-4 — no solution.
Checka=0a=0: −4x=−2-4x=-2, x=12=10+2x=\frac12=\frac{1}{0+2} ✓.
Common mistakeCancelling (a−2)(a-2) right away and missing the case a=2a=2.

Variants of this type · 1

1.1Parameter on both sides

Worked example

ax+3=2x+aax+3=2x+a.

Solution

IdeaMove everything to one side: (a−2)x=a−3(a-2)x=a-3.
  1. a≠2a\neq2: x=a−3a−2x=\frac{a-3}{a-2}.
  2. a=2a=2: 0=−10=-1 — no solution.
Check✓.
Common mistakex=a2x=\frac{a}{2}.
2

Number of solutions of a system

Asked for which parameter values there is a unique solution / none / infinitely many.

Worked example

x+ay=3x+ay=3, ax+4y=6ax+4y=6. For which aa is there no solution?

Solution

IdeaD=4−a2=0D=4-a^2=0 at a=±2a=\pm2; check each value.
  1. a=2a=2: x+2y=3x+2y=3 and 2x+4y=62x+4y=6 — the same line, infinitely many solutions.
  2. a=−2a=-2: x−2y=3x-2y=3 and −2x+4y=6-2x+4y=6, i.e. x−2y=−3x-2y=-3 — parallel lines, no solution.
Checka≠±2a\neq\pm2 — a unique solution ✓.
Common mistakeAnswering "a=±2a=\pm2" to both questions without checking the constants.

Variants of this type · 1

2.1Using ratios

Worked example

2x+3y=a2x+3y=a, 4x+6y=84x+6y=8. For which aa are there infinitely many solutions?

Solution

Idea24=36=a8\frac24=\frac36=\frac a8.
  1. a=4a=4.
Checka≠4a\neq4 — parallel ✓.
Common mistakea=8a=8.
3

Solving a system with determinants

We want xx and yy as expressions in the parameter.

Worked example

ax+y=1ax+y=1, x+y=2x+y=2. Find xx and yy in terms of aa.

Solution

IdeaCramer's rule.
  1. D=a−1D=a-1, Dx=1−2=−1D_x=1-2=-1, Dy=2a−1D_y=2a-1.
  2. x=−1a−1x=\frac{-1}{a-1}, y=2a−1a−1y=\frac{2a-1}{a-1} (for a≠1a\neq1).
Checkx+y=2a−2a−1=2x+y=\frac{2a-2}{a-1}=2 ✓.
Common mistakeSwapping DxD_x and DyD_y.
4

Condition on the solution

The solution must satisfy a condition: positive, equal to a number, x=yx=y, etc.

Worked example

x+y=ax+y=a, x−y=a+2x-y=a+2. For which aa does x=yx=y hold?

Solution

IdeaSolve in terms of aa, then plug into the condition.
  1. Adding: 2x=2a+22x=2a+2, x=a+1x=a+1; y=−1y=-1.
  2. a+1=−1⇒a=−2a+1=-1\Rightarrow a=-2.
Checka=−2a=-2: x=y=−1x=y=-1, x+y=−2x+y=-2 ✓.
Common mistakeSubstituting x=yx=y into one equation only.

Variants of this type · 1

4.1Negative solution

Worked example

For which aa is the solution of (a−2)x=a+4(a-2)x=a+4 negative?

Solution

Ideax=a+4a−2<0x=\frac{a+4}{a-2}<0 — a negative quotient.
  1. −4<a<2-4<a<2.
Checka=0a=0: x=−2x=-2 ✓.
Common mistakea<−4a<-4.

Exam-style problems

One problem with several parts on the same data, as on the exam. Each part adds something to the drawing.

Practice · 20

Test yourself with problems and full solutions.

Go to practice