# Dot Product of Two Vectors - Calculator

An online calculator to calculate the dot product of two vectors also called the scalar product.

## Use of Dot Product Calculator

1 - Enter the components of the two vectors as real numbers in decimal form such as 2, 1.5, ... and press "Calculate the dot Product". The answer is a scalar.
Characters other than numbers are not accepted by the calculator.

 u = < -2 , 3 , 2 > v = < 0 , -1 , 6 > u ⋅ v =

## Definition of the Dot Product of two Vectors

Let u and v be two 3D vectors given in component form by
u = < a , b, c > and v = < d , e , f >
The dot product of the two vectors u and v above is defined by
u.v = < a, b , c > ⋅ < d , e , f > = a�d + b�e +c�f
and it is a scalar quantity.
Example 1
Let u = < -2 , 3, 2 > and v = < 0 , -1 , 6 >
The dot product of the vector u and v is given by
u ⋅ v = < -2 , 3, 2 > ⋅ < 0 , -1 , 6 > = (-2)�(0) + 3�(-1) + 2�6 = 9

## Applications of the Dot Product

The dot product has many applications in mathematics, physics, engineering, ... We will give some examples below.
Example 2
The dot product can be used to find out if two vectors are orthogonal (i.e they are perpendicular or their directions make 90 degrees).
The geometric definition of the dot product is
u ⋅ v = || u || || v || cos (θ)
where θ is the angle between vectors u and v.
Hence, the dot product of two orthogonal vectors is equal to zero since
cos(90�) = 0.
As an example, let
u = < 3 , 3, 3 > and v = < - 2 , 2 , 0 >
The dot product of the vector u and v is given by
u.v = < 3 , 3, 1 > ⋅ < - 2 , 2 , 0 > = 3�(-2) + 3�(2) + (3)�(0) = 0
Conclusion: vector
u < 3 , 3, 3 > and v < - 2 , 2, 0 > are orthogonal; see the vector plot in the figure below. Example 3
The dot product may be used to find the angle θ between two vectors given by their components in 2 or 3 dimensional spaces.
cos(θ) = u ⋅ v / || u || || v ||
As an example, let
u = < 4 , 3, 0 > and v = < 0 , 8 , 6 >
Calculate the dot product using the components.
u ⋅ v = (4)(0) + (3)(8) + (0)(6) = 24
Calculate the magnitudes
|| u || and || v ||
|| u || = √(4 2 + 3 2 + 0 2) = 5
|| v || = √(0 2 + 8 2 + 6 2) = 10
cos(θ) = u ⋅ v / || u || || v || = 24 / (5�10)
θ = arccos(24/50) = 61.3�
Example 4
In physics, the work W done by a constant force
F acting on an object along a constant direction for a displacement d is given by
W = F ⋅ d
{"ft_lang_label":"__label__en","ft_lang_prob":0.8786029,"math_prob":0.9996935,"size":1956,"snap":"2021-43-2021-49","text_gpt3_token_len":634,"char_repetition_ratio":0.15522541,"word_repetition_ratio":0.10909091,"special_character_ratio":0.37014315,"punctuation_ratio":0.11904762,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9997805,"pos_list":[0,1,2,3,4,5,6],"im_url_duplicate_count":[null,null,null,null,null,5,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-10-25T23:25:09Z\",\"WARC-Record-ID\":\"<urn:uuid:dca6e800-2b71-439d-bc17-36738c7f0a53>\",\"Content-Length\":\"134528\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:20886c9a-f814-4104-b9f2-7f1d42b0a1ce>\",\"WARC-Concurrent-To\":\"<urn:uuid:0ed124cb-d68f-4d5b-b075-820d70d97295>\",\"WARC-IP-Address\":\"18.232.245.187\",\"WARC-Target-URI\":\"https://www.analyzemath.com/vector_calculators/dot_product.html\",\"WARC-Payload-Digest\":\"sha1:7VEUVEKEWYVJPWIBDHOEJWXYBULUDJOZ\",\"WARC-Block-Digest\":\"sha1:4ZQX3TIB6FA2TPHR2XXHX6H77G6LRXNM\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-43/CC-MAIN-2021-43_segments_1634323587770.37_warc_CC-MAIN-20211025220214-20211026010214-00331.warc.gz\"}"}