UPI Study › Courses › Calculus 2 › Free lessons › Lesson 10.2 Free lesson
The Dot Product
Calculus 2 · Chapter 10: Vectors & the Geometry of SpaceSection 10.2 · lesson 52 of 549 min · free
← Vectors in R2 and R3Next lesson: The Cross Product →
In this lesson
Two vectors in, one number out.
- Compute the dot product two equivalent ways
- Read the angle - and orthogonality - from its sign
- Separate scalar from vector projection
- Recover work as a dot product
Transcript
Everything said in the video, section by section (1,270 words). Read along, or search it.
MAT-265 - Calculus 2 · Section 10.2
The Dot Product
Section ten point one showed you how to add, subtract and scale vectors. But none of those operations multiplies two vectors together. The dot product does. And it does something unusual. It takes two vectors in, and returns a single number out. A scalar. Which sounds like it should lose information. But that one number turns out to encode the angle between them.
Two Definitions
Componentwise, and Geometric
There are two definitions, and they're equal. The componentwise definition: multiply corresponding components, and add. u dot v equals u one v one, plus u two v two, plus u three v three. And the geometric definition: the magnitude of u, times the magnitude of v, times cosine theta. Where theta is the angle between them. The first is what you compute with. The second is what it means. Two consequences are worth noting immediately. Take v equal to u. Then the angle is zero, cosine is one, and you get u dot u equals the magnitude of u, squared. So the dot product of a vector with itself is its squared length. And the operation is commutative — u dot v equals v dot u — because multiplication of components is.
The Angle
The Sign Reports the Geometry
Solving the geometric form for the cosine gives the angle between two nonzero vectors. Cosine theta equals u dot v, over the product of the magnitudes. And theta is the arccosine of that. Which returns a value between zero and pi. The range of arccosine. But here's the practical part, and it's often all you need. Since both magnitudes are positive, the sign of the dot product is exactly the sign of cosine theta. So: u dot v positive means theta is less than ninety degrees. The vectors point in broadly the same direction. u dot v equals zero means theta is exactly ninety degrees. Perpendicular. And u dot v negative means theta exceeds ninety degrees. They lean apart. Look at the three panels. Same v in each. And u leaning three different ways. The middle case is important enough to have its own name. Two vectors are called orthogonal when their dot product is zero. Orthogonality is the vector generalization of perpendicularity. And the test is remarkably cheap. Multiply components, add, and check whether the result is zero. No square roots. No inverse trigonometry. One convention deserves note. The zero vector is considered orthogonal to every vector — since its dot product with anything is zero. That's a definitional choice rather than a geometric fact. Because the zero vector has no direction, and so forms no angle at all.
Worked Example
Finding an Angle
Let's find an angle. Between u equals two comma three, and v equals five comma minus one. Step one. Compute the dot product. Two times five, plus three times minus one. Ten minus three. Seven. Step two. Compute the magnitudes. The magnitude of u is root of four plus nine. Root thirteen. About three point six zero six. The magnitude of v is root of twenty-five plus one. Root twenty-six. About five point zero nine nine. Step three. Divide, and take the arccosine. Seven over root thirteen times root twenty-six. That's about zero point three eight zero seven. And the arccosine of that is about sixty-seven point six degrees. Now notice — the sign told you the answer before the arithmetic did. The dot product was positive. So theta had to be less than ninety degrees. The arccosine only supplied the precise value.
Projections
Splitting One Vector Along Another
Now a genuinely useful application. Splitting one vector along another. Let v be a nonzero vector. The scalar projection of u onto v — also called the component of u along v — is u dot v, over the magnitude of v. And the vector projection of u onto v is u dot v, over the magnitude of v squared, times v. The scalar projection is a number. And it may be negative — which indicates that u leans away from v. The vector projection is a vector. Always parallel to v. Now, the distinction in the denominators is worth pausing on. Because it's where students lose marks. The scalar projection divides by the magnitude of v once. Converting the dot product into a length. The vector projection divides by the magnitude twice. Once to obtain that length. And once more to reduce v to unit length, before scaling it. Forgetting that second division is the most frequent error in this section. Look at the picture. The gold arrow is the vector projection — the piece of u that lies along v. Its length is the scalar projection. The dashed segment is what's left over. Perpendicular to v. And together, those two pieces reconstruct u exactly.
Worked Example
Both Projections, and the Leftover
Let's compute both. With u equals six comma four, and v equals eight comma zero. Step one. Dot product and magnitude. u dot v is six times eight, plus four times zero. Forty-eight. The magnitude of v is eight. And its square is sixty-four. Step two. The scalar projection. Divide once. Forty-eight over eight. Six. Step three. The vector projection. Divide twice — that is, by sixty-four. Forty-eight over sixty-four is three quarters. Times the vector eight comma zero. That gives six comma zero. Step four. Extract the perpendicular piece, by subtracting the projection from u. Six comma four, minus six comma zero. Equals zero comma four. Step five. Verify orthogonality. Zero comma four, dotted with eight comma zero. Zero times eight, plus four times zero. Zero. Confirmed. So the decomposition is exact. Six comma four equals six comma zero, plus zero comma four. Splitting u into a piece along v, and a piece perpendicular to it. Exactly as the figure depicts.
Key Takeaways
Work, and What to Carry Forward
Four related quantities have now been introduced, all built from the same dot product. The dot product itself. A scalar. It measures the overall alignment of u with v. The angle. Also a scalar. The opening between the two directions. The scalar projection. A signed length — how far u reaches along v. And the vector projection. The only one that returns a vector. The portion of u lying along v. Plus the work application, which is also a scalar. Only the vector projection returns a vector. Everything else returns a plain number. Now, about work. Chapter four point six treated work as the product of a force and the distance over which it acts. That approach served well when force and motion pointed the same way. The vector formulation removes that restriction entirely. Work equals F dot d. Which is the magnitude of F, times the magnitude of d, times cosine theta. And in doing so, it explains why the earlier definition worked. When the force and the displacement point the same way, theta is zero, cosine theta is one, and the formula reduces to force times distance. The old rule was the special case. And notice a consequence. A force perpendicular to the motion does no work at all — because cosine ninety is zero. Five takeaways. The dot product takes two vectors and returns a scalar. Componentwise it's a sum of products. Geometrically it's the product of magnitudes times cosine theta. The sign reports the angle. Positive means acute, zero means orthogonal, negative means obtuse. Orthogonality is tested by checking whether the dot product is zero. No square roots required. The scalar projection divides by the magnitude once. The vector projection divides twice — and forgetting that is the classic error. And work is a dot product. Which explains why force times distance only worked when the two pointed the same way. Next up is section ten point three — the Cross Product. Which multiplies two vectors into a third vector.
About Calculus 2 at UPI Study
Calculus 2 (Math 265) is a self-paced online course of 54 video lessons in 10 chapters, from integration techniques to series, parametric curves and vectors. It carries a NCCRS credit recommendation for 4 semester credits.
Every lesson video and transcript is free on pages like this one. Enrolling adds a practice quiz after each lesson, the graded work and final exam that earn the credit, lifetime access, and an official transcript on completion. UPI Study has helped over 130,000 students with college credits. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
Enroll now → Course details Download the syllabus Every course with PRO →
Why take it here
Why students take Calculus 2 with UPI Study
Where the credit goes
Universities that work with NCCRS
Calculus 2 carries a NCCRS credit recommendation. These universities work with NCCRS; some are UPI Study's signed partners. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
Thomas Edison State UniversitySigned partner
University of the PeopleSigned partner
Charter Oak State CollegeSigned partner
Strayer UniversitySigned partner
Columbia Southern UniversitySigned partner
Indiana TechSigned partner
Penn StateWorks with NCCRS
Southern New Hampshire UniversityWorks with NCCRS
SUNYWorks with NCCRS
+many more cooperating universitiesFind my college →Find my college → Not listed? Ask Athena in the corner of this page, or book a 15-minute call.
FAQ
Questions students ask us
About The Dot Product
What is the dot product and how do you calculate it?
How do you find the angle between two vectors using the dot product?
What does the sign of the dot product tell you about two vectors?
What is the difference between scalar projection and vector projection?
About the Calculus 2 course
How many college credits is Calculus 2?
How much does Calculus 2 cost and what is included?
Which universities accept UPI Study credits?
How long does Calculus 2 take?
How are the exams done?
How do my credits reach my college?
Ready for the full course? Earn 4 credits in Calculus 2.
54 video lessons, a quiz after each one, and the graded work that earns the credit. Recommended for credit by NCCRS.
4 credits · NCCRSEnroll →