The vector_difference function is used to calculate the difference of two vectors online.

The
vector calculator
allows to **determine the difference of two vectors** of the plane or space.

- Calculate the difference of two vectors of the plan
- Calculate the difference of two vectors in space
- Calculate the difference of two vectors in a space of any dimension The vector calculator is used according to the same principle for any dimension of spaces.

Let (O,`vec(i)`,`vec(j)`) a frame of the plan, `vec(u)` and `vec(v)` two vectors that have the respective coordinates (`x_u`,`y_(u)`) and (`x_(v)`,`y_(v)`) in the frame (O,`vec(i)`,`vec(j)`) .

The vector `vec(u)-vec(v)` has coordinates (`x_(u)`-`x_(v)`,`y_(u)`-`y_(v)`) in the system (`vec(i)`,`vec(j)`).

The vector calculator is able to subtract vectors that have numeric or literal coordinates.

Let `vec(u)`(1;2) `vec(v)`(3;5) to calculate the difference `vec(u)`-`vec(v)`, enter vector_difference(`[1;2];[3;5]`) , after calculation the vector [-2;-3] is returned.

Let `vec(u)`(a;b) `vec(v)`(2*a;`b`) to calculate the difference `vec(u)`-`vec(v)`, enter vector_difference(`[a;b];[2*a;b]`)

Let (O,`vec(i)`,`vec(j)`,`vec(k)`) a space frame, `vec(u)` and `vec(v)` two vectors that have the respective coordinates (`x_u`,`y_(u)`,`z_(u)`) and (`x_(v)`,`y_(v)`,`z_(v)`) in the frame (O,`vec(i)`,`vec(j)`,`vec(k)`) .

The vector `vec(u)-vec(v)` has coordinates (`x_(u)`-`x_(v)`,`y_(u)`-`y_(v)`,`z_(u)`-`z_(v)`) in the system (`vec(i)`,`vec(j)`,`vec(k)`).

The vector calculator is able to subtract vectors that have numeric or literal coordinates.

Let `vec(u)`(1;2;1) `vec(v)`(3;5;2) to calculate the difference `vec(u)`-`vec(v)`, enter vector_difference(`[3;5;2];[1;2;1]`) after calculation the result [2;3;1] is returned.

Let `vec(u)`(a;b,c) `vec(v)`(2*a;2-b,c+1) to calculate the difference `vec(u)`-`vec(v)`, enter vector_difference(`[a;b;c];[3*a;2;2*c+1]`) , after calculation, the result is returned.

vector_difference(vector;vector)

vector_difference(`[1;1;1];[5;5;6]`) returns [-4;-4;-5]

See also

- Vector calculator : vector_calculator. The vector calculator allows to do calculations with vectors using coordinates.
- Calculating the coordinates of a vector from two points. : vector_coordinates. The vector calculator allows the calculation of the coordinates of a vector from the coordinates of two points online.
- Determinant calculator : determinant. The determinant function calculates online the determinant of vectors or the determinant of a matrix.
- Calculating the difference of two vectors : vector_difference. The vector_difference function is used to calculate the difference of two vectors online.
- Calculating the norm of a vector : vector_norm. The vector calculator allows the calculation of the norm of a vector online.
- Calculus scalar triple product : scalar_triple_product. The scalar triple product calculator allows online calculation of scalar triple product.
- Dot product calculator : dot_product. The dot product calculator allows the calculation of the dot product of two vectors online from their coordinates.
- Product of a vector by a number : product_vector_number. The vector calculator allows to calculate the product of a vector by a number online.
- Cross product calculator : cross_product. The vector calculator allows the calculation of the cross product of two vectors online from their coordinates.
- Calculating the sum of two vectors : vector_sum. The vector calculator allows the calculation of the sum of two vectors online.