Skip to content
Glacius
Linear algebraConcept reference

Free variables

A free variable corresponds to a nonpivot variable column; a parameterization expresses every variable using independent real parameters for the free variables.

On this page 7 sections
  1. Overview
  2. In the reduced equation x+2y=6, the x-column has a pivot and the y-column does not
  3. Free does not mean zero
  4. Use a separate parameter for each free variable
  5. Key takeaway
  6. Sources & further reading
  7. Concept connections

01In the reduced equation x+2y=6, the x-column has a pivot and the y-column does not#

In the reduced equation x+2y=6x+2y=6, the x-column has a pivot and the y-column does not. Choose any real value y=ty=t. The equation then forces x=62tx=6-2t.

Every point on the plotted line satisfies x+2y=6. Parameter t=y gives x=6−2t. The examples t=0 and t=2 produce (6,0) and (2,2). The line represents infinitely many real choices, not just these points.Every point on the plotted line satisfies x+2y=6. Parameter t=y gives x=6−2t. The examples t=0 and t=2 produce (6,0) and (2,2). The line represents infinitely many real choices, not just these points.
Figure 1Every point on the plotted line satisfies x+2y=6. Parameter t=y gives x=6−2t. The examples t=0 and t=2 produce (6,0) and (2,2). The line represents infinitely many real choices, not just these points.
Link to this figure ↗Download SVGDownload PNG

For x+2y=6x+2y=6, the formulas x=62tx=6-2t and y=ty=t describe every solution. Substitution cancels the parameter. Choosing t=2t=2 gives (x,y)=(2,2)(x,y)=(2,2).

(62t)+2t=6(6-2t)+2t=6
Check your reasoning

Columns: x,yx,y. Give all solutions; tt is real. [126000]\left[\begin{array}{rr|r}1&2&6\\0&0&0\end{array}\right]

  1. Ax=62t; y=tx=6-2t;\ y=t
  2. Bx=6+2t; y=tx=6+2t;\ y=t
  3. Cx=6; y=0x=6;\ y=0
Show answer and explanation
x=62t; y=tx=6-2t;\ y=t

y=ty=t is free.

02Free does not mean zero#

Free does not mean zero. In xy=3x-y=3, choosing y=0y=0 gives one solution, (3,0)(3,0). Choosing y=2y=2 gives another, (5,2)(5,2). Keeping y=ty=t preserves them all.

Check your reasoning

For xy=3x-y=3, a learner claims only (3,0)(3,0). Repair all solutions; tt is real.

  1. Ax=3; y=0x=3;\ y=0
  2. Bx=3t; y=tx=3-t;\ y=t
  3. Cx=3+t; y=tx=3+t;\ y=t
Show answer and explanation
x=3+t; y=tx=3+t;\ y=t

Every y=ty=t is allowed; x=3+tx=3+t.

03Use a separate parameter for each free variable#

Use a separate parameter for each free variable. In x+yz=4x+y-z=4, only x has a pivot. Set y=sy=s and z=tz=t independently, so x=4s+tx=4-s+t. The augmented column is a right-hand side, not a free variable.

Check your reasoning

Settings obey x+2yz=5x+2y-z=5. Give all (x,y,z)(x,y,z); real s,ts,t vary independently.

  1. A(5,0,0)(5,0,0)
  2. B(52s+t,s,t)(5-2s+t,s,t)
  3. C(5+2st,s,t)(5+2s-t,s,t)
Show answer and explanation
(52s+t,s,t)(5-2s+t,s,t)

Let y=s,z=ty=s,z=t; solve for xx.

Key takeaway

Assign one real parameter per free variable. Express pivot variables in terms of those choices.

  • Parameterize the free variables of a consistent reduced system.

Sources & further reading

  1. [1]

Reference this concept

Link to this page, a section, or an individual figure.

Glacius. “Free variables.” Math behind ML. /learn/la-free