HexMathv1.0.4
Vector calculator
This vector calculator finds the magnitude of a vector, adds, subtracts and scales vectors, and computes the dot product, the cross product and the angle between two vectors. Type the vectors or scan the problem. HexMath returns the result and shows the working component by component, in two or three dimensions.
Loading math input...
What this page covers
- The magnitude (length) of a vector in 2 or 3 dimensions.
- Adding, subtracting and scaling vectors.
- The dot product, the angle between two vectors, and the cross product in 3 dimensions.
- Not covered here: matrices acting on vectors (see the matrix multiplication calculator) and vector-valued functions in calculus (type the problem into the solver).
How to enter the problem
- Type it or paste it. Write a vector as ⟨2, −3, 6⟩ or (2, −3, 6), and name the operation, such as magnitude, dot product or cross product.
- Scan it. Fit the one problem in the frame.
- Choose a photo. Several problems in one photo are solved as a list.
- Then tap Solve.
Worked examples
Example 1: Find the magnitude of ⟨2, -3, 6⟩.
Problem
Find the magnitude of .
Answer
VerifiedThe answer is
Explanation
- Write the formulaFor the magnitude is .
- Square each component, , . Squaring removes the sign.
- Add and take the square root, so the magnitude is .
- Check the sizeThe magnitude must be at least the largest component, , and at most the sum . is.
Example 2: Let θ be the angle between a = ⟨1, 1, 0⟩ and b = ⟨0, 1, 1⟩. Find cos θ.
Problem
Let be the angle between and . Find .
Answer
VerifiedThe answer is
Explanation
- Find the dot product
- Find the magnitudesand .
- Use the angle formula
- Name the angle if you need itmeans , which is .
Example 3: Find p × q for p = ⟨2, 0, 1⟩ and q = ⟨1, 3, -1⟩.
Problem
Find for and .
Answer
VerifiedThe answer is
Explanation
- Write the formula
- First component
- Second component
- Third component
- Check perpendicularityand .
Common mistakes
- Adding the components instead of squaring them for the magnitude. is not the length of ; the length is .
- Losing a minus sign when squaring a negative component: .
- Getting the middle component of the cross product backwards. It is , not .
- Treating the dot product as a vector. It is a single number.
Checks, assumptions and limits
- Check a cross product by dotting it with both original vectors. Each result must be 0, because the cross product is perpendicular to both.
- Angles from the dot product are between and (0° and 180°). The cross product is defined for vectors in 3 dimensions.
- HexMath can make mistakes. Double check important steps.
Frequently asked questions
Yes. Give both vectors and ask for the angle. The steps find the dot product and the magnitudes, then the inverse cosine, in radians or degrees as you ask.
Use angle brackets or round brackets with commas, such as ⟨1, 2, 3⟩ or (1, 2, 3). Name each vector if the problem uses more than one.
Yes. Ask in the same thread, for example why the cross product is perpendicular. A typed follow-up needs sign-in.
Yes, for vectors in 3 dimensions. The steps write out each component of the cross product, and the result is a vector perpendicular to both.
Related tasks
Ready to solve your next math problem?
Create a free account for 3 math questions a day in your browser. No card.
Last updated: · HexMath