Vector Magnitude

Find Euclidean length by squaring every component, adding the squares, and taking the nonnegative square root.

Use a right-triangle pair

The squares of 3 and 4 are 9 and 16. Their sum is 25, so the vector has magnitude 5.

norm([[3], [4]])

Extend to three components

Length uses every component, regardless of dimension. The squares 1, 4 and 4 sum to 9, whose nonnegative root is 3.

norm([[1], [2], [2]])

Leave an exact radical when needed

Two unit components give a squared length of 2. Since 2 is not a perfect square, the exact answer remains sqrt(2).

norm([[1], [1]])

Practice

Practice: problems like this one, made and checked in your browser.

Recap

  • Magnitude squares components before adding.
  • The square root is always nonnegative.
  • Keep a radical exact when the sum is not a perfect square.