Solutions

These solutions collect the exercise reasoning in one place.

MATH-C04-C-001

(1,4)+[2,3]=(3,1)(1,4) + [2,-3] = (3,1)

The reached point is (3, 1).

MATH-C04-C-002

First compute the difference:

ba=[82,91]=[6,8]b - a = [8 - 2, 9 - 1] = [6, 8]

Then compute its length:

62+82=36+64=100=10\sqrt{6^2 + 8^2} = \sqrt{36 + 64} = \sqrt{100} = 10

The distance is 10.

MATH-C04-C-003

uv=3(1)+1(3)=33=0u \cdot v = 3(1) + 1(-3) = 3 - 3 = 0

The vectors are orthogonal.

MATH-C04-C-004

Since u = [1, 0] is a unit vector:

proju(a)=(au)u\operatorname{proj}_u(a) = (a \cdot u)u

Now:

au=6(1)+2(0)=6a \cdot u = 6(1) + 2(0) = 6

So:

proju(a)=6[1,0]=[6,0]\operatorname{proj}_u(a) = 6[1, 0] = [6, 0]

MATH-C04-C-005

wx+b=1(3)+2(1)5=3+25=0w \cdot x + b = 1(3) + 2(1) - 5 = 3 + 2 - 5 = 0

The point lies on the boundary.

MATH-C04-C-006

The shifted line is:

y = 2x + 1

At [0,0], the left side is 0, but the right side is 1. The zero vector is not on the shifted line.

MATH-C04-C-007

The vectors [1,0] and [2,0] both lie on the horizontal axis.

They span a line, not the full plane, so they do not form a basis for two-dimensional space.

MATH-C04-C-008

Nearby embeddings are useful because they show similarity under the model's learned representation.

They are not a complete explanation because the model may use other directions, layers, or context to make its final decision.

MATH-C04-C-009

Low-dimensional drawings are useful models.

They should still be checked against formulas or code when reasoning about the actual high-dimensional space.

MATH-C04-C-010

A good question to keep is:

What is this operation
doing to the space?

That question connects vector and matrix computation to geometry.

MATH-C04-C-011

The residual is original minus projection:

[5,2][5,0]=[0,2][5,2] - [5,0] = [0,2]

The projection kept the horizontal component. The residual is the vertical part that was not kept.

MATH-C04-C-012

The first boundary is:

s(x)=0s(x) = 0

The second boundary is:

2s(x)=02s(x) = 0

These have the same zero-score points. Multiplying the whole score by a positive constant changes raw score size, but not the boundary.

MATH-C04-C-013

Use the basis vectors:

2b1+3b2=2[1,1]+3[0,1]2b_1 + 3b_2 = 2[1,1] + 3[0,1]

So:

[2,2]+[0,3]=[2,5][2,2] + [0,3] = [2,5]

The standard vector is [2, 5].