Scalar Multiplication Calculator

Scale vectors effortlessly! Enter a scalar and a vector to see the magic of scalar multiplication unfold.

Input Values

Enter a scalar and a vector to perform scalar multiplication.

Scalar
e.g., [1, 2, 3]

Enter vector components as a JSON array.

Result:

Vector Visualization

Understanding Scalar Multiplication

Scalar multiplication is a fundamental operation in linear algebra that involves multiplying a vector by a scalar (a single number). This operation scales the magnitude (length) of the vector and can also reverse its direction if the scalar is negative.

Formula

If we have a scalar k and a vector v = [x, y, z], then the scalar multiplication k * v is calculated as:

k * v = k * [x, y, z] = [k*x, k*y, k*z]

Example

Let's take a scalar k = 2 and a vector v = [1, 2]. The scalar multiplication is:

2 * [1, 2] = [2*1, 2*2] = [2, 4]

The resulting vector [2, 4] is twice as long as the original vector [1, 2] and points in the same direction. If we used a negative scalar, the direction would be reversed.

Use Cases

This tool helps you quickly perform scalar multiplication and visualize the effect on vectors, making it easier to understand this important concept.