Vectors in Mathematics

In mathematics, a vector is a mathematical object that has both magnitude and direction. Vectors are widely used in various fields of science and engineering, including physics, computer graphics, and machine learning.

Definition

A vector is represented by an ordered set of numbers, which can be written as a column or row matrix. For example, the vector (3, 4, 5) can be written as:

(345)\begin{pmatrix} 3 \\ 4 \\ 5 \end{pmatrix}

The magnitude of a vector is the length of its representation in space. It is calculated using the Pythagorean theorem:

v=v12+v22+v32++vn2|\vec{v}| = \sqrt{v_1^2 + v_2^2 + v_3^2 + \cdots + v_n^2}

where v\vec{v} is the vector and v1v_1, v2v_2, v3v_3, ..., vnv_n are its components.

The direction of a vector is the angle it makes with a reference axis. It is calculated using trigonometry:

θ=tan1(v2v1)\theta = \tan^{-1}\left(\frac{v_2}{v_1}\right)

where θ\theta is the angle and v1v_1, v2v_2 are the components of the vector in a 2D space.

Operations

Vectors can be added, subtracted, and multiplied by scalars. The rules for these operations are:

  • Addition: u+v=(u1+v1u2+v2u3+v3)\vec{u} + \vec{v} = \begin{pmatrix} u_1 + v_1 \\ u_2 + v_2 \\ u_3 + v_3 \end{pmatrix}
  • Subtraction: uv=(u1v1u2v2u3v3)\vec{u} - \vec{v} = \begin{pmatrix} u_1 - v_1 \\ u_2 - v_2 \\ u_3 - v_3 \end{pmatrix}
  • Scalar multiplication: ku=(ku1ku2ku3)k\vec{u} = \begin{pmatrix} ku_1 \\ ku_2 \\ ku_3 \end{pmatrix}

The dot product and cross product are two important vector operations that are used in physics and engineering.

The dot product of two vectors u\vec{u} and v\vec{v} is defined as:

uv=u1v1+u2v2+u3v3++unvn\vec{u} \cdot \vec{v} = u_1v_1 + u_2v_2 + u_3v_3 + \cdots + u_nv_n

The dot product gives a scalar quantity that is equal to the product of the magnitudes of the vectors and the cosine of the angle between them.

The cross product of two vectors u\vec{u} and v\vec{v} is defined as:

u×v=(u2v3u3v2u3v1u1v3u1v2u2v1)\vec{u} \times \vec{v} = \begin{pmatrix} u_2v_3 - u_3v_2 \\ u_3v_1 - u_1v_3 \\ u_1v_2 - u_2v_1 \end{pmatrix}

The cross product gives a vector that is perpendicular to the two input vectors and has a magnitude equal to the product of their magnitudes times the sine of the angle between them.

Applications

Vectors are widely used in physics to represent physical quantities such as velocity, acceleration, and force. For example, the velocity of an object can be represented as a vector with its magnitude equal to the speed of the object and its direction pointing in the direction of motion.

In computer graphics and game development, vectors are used to represent positions, directions, and colors. For example, the position of a 3D object in a virtual world can be represented as a vector with its components representing the x, y, and z coordinates.

In machine learning, vectors are used to represent data points in high-dimensional spaces. For example, a document can be represented as a vector with its components representing the frequencies of the words in the document.

Conclusion

Vectors are mathematical objects that have both magnitude and direction. They are widely used in various fields of science and engineering, including physics, computer graphics, and machine learning. Vectors can be added, subtracted, and multiplied by scalars, and they have two important operations, the dot product and cross product.

ベクトル[JA]