A72 of 56
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

A7 · Lesson 2 · Linear combinations

Everything you can reach by scaling and adding

A circuit with two sources obeys superposition: its output is some amount of the first source plus some amount of the second. Mixing a red, a green and a blue light makes every color a screen can show. Both are linear combinations: scale some vectors and add them up. Almost every question in linear algebra comes down to one about linear combinations: which vectors can you reach, and with what weights?

  • The two fixed vectors are 𝐯=(2,1) and 𝐰=(−1,2). The sliders set the weights c and d, and the green arrow is c𝐯+d𝐰.
  • Steer the green arrow onto the target dot at (1,4). The readout shows how far away you are.
  • Can you reach every point in the plane this way? What would have to be true of 𝐯 and 𝐰 for some points to be out of reach?

Predict

You need weights c and d with c(2,1)+d(−1,2)=(1,4). How many pairs (c,d) work?

Name it

Linear combinations

A linear combination of vectors 𝐯1,…,𝐯n is c1𝐯1+⋯+cn𝐯n, for any numbers ci. Scaling and adding work one component at a time.

Span

The span of a set of vectors is all their linear combinations.

  • One nonzero vector spans a line through the origin.
  • Two vectors in different directions span a plane (all of 2D, or a plane through the origin in 3D).
  • Two parallel vectors only span a line.

The column picture

A system of equations is a question about linear combinations. The system

2x−y=1,x+2y=4

asks for weights x and y with x[21]+y[−12]=[14]. In matrix form that's A𝐱=𝐛, where the columns of A are the vectors being combined. So: A𝐱=𝐛 has a solution exactly when 𝐛 is in the span of A's columns.

The row picture of the same system is two lines crossing at the solution. Both pictures are true; the column picture is the one that scales up to big systems.

Superposition

A linear circuit's output is a linear combination of its sources: vout=k1V1+k2V2, where k1 is the output with V1 = 1 V alone and k2 the output with V2 = 1 V alone. That's why C1 can find each source's contribution separately and add them.

Worked example

Write 𝐛=(4,5) as a combination of (1,1) and (1,−1).

Show the solution
  1. Set up the equations. You need c+d=4 and c−d=5.
  2. Add them. Adding the two equations gives 2c=9, so c=4.5, and then d=−0.5.
  3. Check. 4.5(1,1)−0.5(1,−1)=(4.5−0.5,4.5+0.5)=(4,5)

Answer 𝐛=4.5(1,1)−0.5(1,−1), so c=4.5 and d=−0.5.

Worked example

A linear circuit gives 0.5 V at its output when source 1 alone is 1 V, and 0.25 V when source 2 alone is 1 V. What does it give with V1 = 10 V and V2 = 4 V?

Show the solution
  1. Weights. The output is a linear combination of the sources, with the single-source responses as weights: 0.5 for V1 and 0.25 for V2.
  2. Superpose. vout=0.5×10+0.25×4=6V

Answer the output is 6 V.

Worked example

Can (1,2,4) be written as a combination of (1,0,1) and (0,1,1)?

Show the solution
  1. Write a general combination. c(1,0,1)+d(0,1,1)=(c,d,c+d)
  2. Match the first two entries. They force c=1 and d=2, and then the third entry is 3, not 4. So no: (1,2,4) is out of reach.
  3. The span. The span of the two vectors is the plane where the third entry equals the sum of the first two: z=x+y The target (1,2,3) lies in it; (1,2,4) sits one unit above it.

Answer no. (1,2,4) sits one unit above the plane z=x+y that the two vectors span.

Check

𝐯=(3,5) and 𝐰=(−4,1). What is the first component of −1𝐯+2𝐰?

Check

Find c so that c(1,1)+d(1,−1)=(6,2).

Check

What do the vectors (1,2) and (2,4) span?

Check

A linear circuit gives 0.5 V at its output for 1 V on source 1 alone, and 0.25 V for 1 V on source 2 alone. What is the output with V1 = 5 V and V2 = 12 V?

Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.

Check

For what k are (1,k) and (2,6) parallel, so that they span only a line?

Check

The columns of a 3 × 2 matrix A point in different directions. For which 𝐛 in 3D does A𝐱=𝐛 have a solution?

Check

Write (5,1) as c(1,1)+d(1,−1).

(a)

What is c?

(b)

What is d?

Check

Solve c(2,1)+d(1,1)=(x,y).

Step 1

The equations are 2c+d=x and c+d=y. Subtract them: what is c?

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Explain why

Explain why "A𝐱=𝐛 has a solution" means the same as "𝐛 is a combination of the columns of A."

Practice

Keep practicing

8 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.