Steply

Calculate 2a - 3b for a = (1, -2, 0, 4), b = (2, -1, 1, 3)

Step by step, with the reason for every step · Linear combinations · Linear Algebra

Step by step

The question

Question: work out 2a − 3b.

a = [1; −2; 0; 4]
b = [2; −1; 1; 3]

a is (1, −2, 0, 4), and b is (2, −1, 1, 3).

We put them in.

So 2a − 3b is this.

= 2 × [1; −2; 0; 4] − 3 × [2; −1; 1; 3]

A vector in R 4 is a column of 4 numbers.

Numbers times vectors, added together, is called a linear combination.

a vector in R⁴: a column of 4 numbers
linear combination: numbers × vectors, added

1 Multiply each vector by its number

Each vector is multiplied by its number: every entry.

2 × 1 at the top, and so on down.

= [2 × 1; 2 × (−2); 2 × 0; 2 × 4] − [3 × 2; 3 × (−1); 3 × 1; 3 × 3]

We work out each times.

= [2; −4; 0; 8] − [6; −3; 3; 9]

2 Add matching entries

Now matching entries go together: top with top, then the next, down to the bottom.

A minus between the vectors takes away every entry.

= [2 − 6; −4 − (−3); 0 − 3; 8 − 9]

Careful!

Taking away a negative is adding: −4 − (−3) = −4 + 3.

Careful: not −4 − 3 ✗

So the answer is the vector (−4, −1, −3, −1).

= [−4; −1; −3; −1]

3 Check

Let's check.

We take the second part away from the answer (taking away a minus part is adding it back).

The first part must come back.

= [−4; −1; −3; −1] + [6; −3; 3; 9]
= [−4 + 6; −1 + (−3); −3 + 3; −1 + 9]
= [2; −4; 0; 8]

We get (2, −4, 0, 8): that is 2 × a, the first part.

So the answer is right!

Let's look back.

First: multiply each vector by its number.

Then: add matching entries.

Last: check.

Answer
= [−4; −1; −3; −1]

Your turn

Try this one yourself, then check:

2a − 2b for a = [1; −2; 0; 2], b = [2; −1; 3; 3]
Show the answer
[−2; −2; −6; −2]

More from Linear combinations

The whole lesson: Linear combinations →