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 and . The sliders set the weights and , and the green arrow is .
- Steer the green arrow onto the target dot at . 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 and with . How many pairs work?
Exactly one: , . The two vectors point in different directions, so every point in the plane is reachable, and in only one way. If they were parallel, the combinations would all lie on one line: most targets would be unreachable, and those on the line could be reached in infinitely many ways.
Name it
Linear combinations
A linear combination of vectors is , for any numbers . 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
asks for weights and with . In matrix form that's , where the columns of are the vectors being combined. So: has a solution exactly when is in the span of '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: , where is the output with = 1 V alone and the output with = 1 V alone. That's why C1 can find each source's contribution separately and add them.
Worked example
Write as a combination of and .
Show the solution
- Set up the equations. You need and .
- Add them. Adding the two equations gives , so , and then .
- Check.
Answer , so and .
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 = 10 V and = 4 V?
Show the solution
- Weights. The output is a linear combination of the sources, with the single-source responses as weights: 0.5 for and 0.25 for .
- Superpose.
Answer the output is 6 V.
Worked example
Can be written as a combination of and ?
Show the solution
- Write a general combination.
- Match the first two entries. They force and , and then the third entry is 3, not 4. So no: is out of reach.
- The span. The span of the two vectors is the plane where the third entry equals the sum of the first two: The target lies in it; sits one unit above it.
Answer no. sits one unit above the plane that the two vectors span.
Check
and . What is the first component of ?
Check
Find so that .
Check
What do the vectors and 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 = 5 V and = 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 are and parallel, so that they span only a line?
Check
The columns of a 3 × 2 matrix point in different directions. For which in 3D does have a solution?
Check
Write as .
(a)
What is ?
(b)
What is ?
Check
Solve .
Step 1
The equations are and . Subtract them: what is ?
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°.
Step 2
What is ?
Explain why
Explain why " has a solution" means the same as " is a combination of the columns of ."
Multiplying by takes times the first column plus times the second, and so on: the entries of are the weights in a linear combination of the columns. So asks whether some choice of weights makes that combination equal . If lies in the span of the columns, such weights exist and they are the solution; if it doesn't, no weights work and the system has no solution.
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.