Practice: Vectors and Linear Combinations

Recognition · Interpretation

For x = ( 2 , 5 ) and y = ( 3 , − 1 ) , what is x T y ?

2 hints available, least help first.

Hint 1: Retrieval cue

Write out ∑ i x i y i with the numbers in it.

Hint 2: Concept cue

Ask what kind of thing the answer should be: a quantity, or a direction?

Direct application · Interpretation · Explanation

A workshop's plan is x = ( 8 , 3 , 5 ) units and its unit profits are c = ( 4 , 9 , 2 ) . A proposed change is the direction d = ( 2 , − 1 , 0 ) .

(a) Compute the total profit. (b) Compute the effect of moving one step along d . (c) Give a nonzero direction along which the profit does not change, and say what such a direction means.

Write your answer, then compare it with the worked solution.

2 hints available, least help first.

Hint 1: Retrieval cue

Each part is a dot product. Write the sum out before evaluating.

Hint 2: Strategy cue

For (c), you need two entries whose products against the cost cancel.

Compare with the worked solution

Comparing does not record a result. Judging your own written answer cannot show that you can do this without help.

(a) Total profit. c T x = ( 4 ) ( 8 ) + ( 9 ) ( 3 ) + ( 2 ) ( 5 ) = 32 + 27 + 10 = 69 .

(b) Effect of the change. c T d = ( 4 ) ( 2 ) + ( 9 ) ( − 1 ) + ( 2 ) ( 0 ) = 8 − 9 = − 1 . Moving along d loses one unit of profit per step, so it makes the plan worse. The direction trades a unit of the £9 product for two of the £4 product, which is an £8-for-£9 exchange.

(c) A flat direction. Any nonzero d ′ with c T d ′ = 0 will do, for instance d ′ = ( 9 , − 4 , 0 ) , since ( 4 ) ( 9 ) + ( 9 ) ( − 4 ) + ( 2 ) ( 0 ) = 36 − 36 = 0 . Such a direction is orthogonal to the cost vector: the plan changes but the profit does not.

What that means. A flat direction is how a linear program comes to have several optimal plans with the same value. If you can move along it and stay feasible, every point you pass through is worth exactly as much as the one you started from.

A complete answer does each of these:

  • operates entrywise
  • dot product is scalar
  • reads orthogonality

Comparison · Evaluation

Two nonzero vectors u and v satisfy u T v = 0 . What follows?

2 hints available, least help first.

Hint 1: Retrieval cue

Find two nonzero vectors in the plane whose product is zero.

Hint 2: Concept cue

What angle makes the product vanish?

Direct application · Interpretation · Explanation

A delivery run is described by the displacement x = ( 6 , 8 ) kilometres, and a second run by y = ( 3 , 4 ) kilometres.

(a) Compute ‖ x ‖ and ‖ y ‖ . (b) Give the unit vector in the direction of x . (c) Do x and y point the same way? Answer without comparing their lengths, and say why the two questions are separate.

Write your answer, then compare it with the worked solution.

2 hints available, least help first.

Hint 1: Retrieval cue

The norm is the square root of the dot product of a vector with itself.

Hint 2: Concept cue

For (c), ask whether one vector is a positive multiple of the other.

Compare with the worked solution

Comparing does not record a result. Judging your own written answer cannot show that you can do this without help.

(a) Lengths. ‖ x ‖ = 6 2 + 8 2 = 100 = 10 km. ‖ y ‖ = 3 2 + 4 2 = 25 = 5 km.

(b) Unit vector. x / ‖ x ‖ = ( 6 / 10 ,   8 / 10 ) = ( 0.6 ,   0.8 ) . Check: 0.6 2 + 0.8 2 = 0.36 + 0.64 = 1 .

(c) Direction. Yes. x = 2 y , and multiplying by a positive number scales a vector without turning it, so both point the same way. Equivalently, both have the unit vector ( 0.6 , 0.8 ) .

Why the questions are separate. x is twice as long as y and points identically. Length answers how far; direction answers which way. Neither determines the other: two runs of equal length can point in opposite directions, and two runs along one bearing can differ in distance.

A complete answer does each of these:

  • computes norm
  • normalises without turning
  • separates length direction

Direct application · Completion

For x = ( 6 , 8 ) , what are ‖ x ‖ and the unit vector in the direction of x ?

2 hints available, least help first.

Hint 1: Retrieval cue

‖ x ‖ = x T x .

Hint 2: Concept cue

A unit vector has length exactly 1. Check yours.

Error diagnosis · Explanation · Evaluation

A student writes:

For x = ( 1 , 4 ) and y = ( 3 , 2 ) , the dot product is x T y = ( 3 , 8 ) . Since both entries are positive, the two vectors point in similar directions, and since ( 3 , 8 ) is longer than either input, the product amplifies them.

Identify the error and say what the correct computation reports.

Write your answer, then compare it with the worked solution.

2 hints available, least help first.

Hint 1: Retrieval cue

What kind of object is x T y . A scalar or a vector?

Hint 2: Concept cue

The student stopped one step early. What is the missing step?

Compare with the worked solution

Comparing does not record a result. Judging your own written answer cannot show that you can do this without help.

The error. The student has computed the entrywise product ( x 1 y 1 , x 2 y 2 ) = ( 3 , 8 ) , which is a different operation. The dot product sums those products into a single scalar:

x T y = ( 1 ) ( 3 ) + ( 4 ) ( 2 ) = 3 + 8 = 11.

Why it matters beyond arithmetic. Every later use of this notation expects one number. A cost applied to a plan is money; a constraint row applied to a point is a quantity to compare against a bound. A two-entry answer cannot be compared with a bound at all, so the error does not stay local. It makes the next step meaningless.

What the correct value reports. 11 is positive, which does say the two vectors broadly agree in direction. So the student's conclusion happened to be right, reached by a route that does not support it: the sign of the scalar carries that information, not the signs of two entries that were never supposed to remain separate.

On 'amplifies'. The comparison of lengths is not meaningful here. The dot product is not a vector and has no length; if the student wants a length they want the norm, ‖ x ‖ = 17 , which is a different question again.

A complete answer does each of these:

  • operates entrywise
  • dot product is scalar
  • reads orthogonality

Transfer · Evaluation · Explanation

A scheduling model has the constraint

3 t 1 + t 2 + 4 t 3 ≤ 40

and a candidate schedule t = ( 6 , 5 , 4 ) .

Without using the word "constraint", say what quantity is being computed on the left, decide whether the schedule satisfies it, and explain what a coefficient vector orthogonal to a proposed change would mean here.

Write your answer, then compare it with the worked solution.

2 hints available, least help first.

Hint 1: Retrieval cue

Read the left-hand side as two vectors combined. Which two?

Hint 2: Strategy cue

Ask what changes, and what stays the same, when a direction is orthogonal to the coefficients.

Compare with the worked solution

Comparing does not record a result. Judging your own written answer cannot show that you can do this without help.

What is being computed. The left-hand side is a dot product of the coefficient vector a = ( 3 , 1 , 4 ) with the schedule t . It reports how much of the limited resource this schedule consumes. One number, in whatever units the 40 is measured in.

Testing the schedule. a T t = ( 3 ) ( 6 ) + ( 1 ) ( 5 ) + ( 4 ) ( 4 ) = 18 + 5 + 16 = 39 . Since 39 ≤ 40 , the schedule satisfies the restriction, with one unit of the resource to spare.

A change orthogonal to a . Suppose a proposed adjustment d satisfies a T d = 0 . Then moving along d changes the schedule without changing the resource consumed at all. The new schedule uses exactly the same 39 units. Such a direction slides along the boundary rather than towards or away from it.

Why that is useful. If the resource is currently binding, an orthogonal direction is the only kind you can move along without violating it. That is exactly how an optimiser explores alternatives once a constraint is tight, and it is why the orthogonality test matters far beyond the geometry lesson that introduces it.

A complete answer does each of these:

  • operates entrywise
  • dot product is scalar
  • reads orthogonality

Error diagnosis · Explanation

A student is comparing two price vectors, p = ( 2 , 1 ) and q = ( 8 , 4 ) , and writes:

‖ q ‖ = 80 ≈ 8.9 and ‖ p ‖ = 5 ≈ 2.2 , so q is much bigger. A bigger vector points somewhere different, so p and q describe different price structures.

(a) Say what is right and what is wrong in this. (b) Give the unit vector for each of p and q , and use them to settle whether the two point the same way. (c) State the correct relationship between p and q .

Write your answer, then compare it with the worked solution.

2 hints available, least help first.

Hint 1: Retrieval cue

Check whether one vector is a multiple of the other before reasoning about direction.

Hint 2: Concept cue

Normalise both and compare the results.

Compare with the worked solution

Comparing does not record a result. Judging your own written answer cannot show that you can do this without help.

(a) What is right and wrong. Both norms are correct: ‖ p ‖ = 4 + 1 = 5 and ‖ q ‖ = 64 + 16 = 80 , so q really is the longer vector, four times as long, since 80 = 4 5 . What does not follow is "a bigger vector points somewhere different". Length and direction are independent properties, and a positive multiple changes only the first.

(b) Unit vectors. p / ‖ p ‖ = ( 2 , 1 ) / 5 ≈ ( 0.894 ,   0.447 ) and q / ‖ q ‖ = ( 8 , 4 ) / 80 ≈ ( 0.894 ,   0.447 ) . They are identical, so the two vectors point the same way. Dividing by the norm rescales without turning, which is why this comparison is the one that answers the direction question.

(c) The relationship. q = 4 p . As price structures they are proportional, the second good costs half the first in both, and differ only by a scale factor of four.

A complete answer does each of these:

  • computes norm
  • normalises without turning
  • separates length direction
Practice data

Your practice record is stored in this browser only. Clearing it removes every answer and every scheduled review, and cannot be undone.

Results update as you type. Use the up and down arrow keys to move between results, Enter to open one, and Escape to close.

Type to search.

Settings

Appearance

Interface density

Your record

Your progress is stored in this browser and nowhere else: an identifier, the answers you have given, the mastery states and review schedule derived from them, and the lesson you last opened. Clearing it makes you a new learner on this device. It cannot be undone, and it will not affect your appearance or density settings.

Focus timer

Focus--minutes remaining

Phase

Kept in this browser only, and used to label the session in your own history.

Today

Nothing recorded yet. Finish a focus session and it will appear here.

Settings

Focus sessions between long breaks.

Sessions you are aiming for in a day.

Notifications

Your history

Sessions are stored in this browser and nowhere else. They are not evidence and never reach your mastery record.