🎉 75% of content is free forever — Unlock Premium from $10/mo →
CW
NEWSLIVESearch All Content
đŸ’ŧ Servicesâ„šī¸ Aboutâœ‰ī¸ ContactView Pricing Plansfrom $10

Types of Vectors

CBSE Class 12 MathsVector AlgebrađŸŸĸ Free Lesson

Types of Vectors

What You'll Learn

  • 1Define equal, negative, unit, null, collinear, coplanar and orthogonal vectors precisely
  • 2Test three vectors for collinearity by component ratios
  • 3Test three vectors for coplanarity with the scalar triple product and read its geometric meaning
  • 4Distinguish linear independence from dependence and count how many vectors 3-space can hold
  • 5Implement every test as a short numerical check

Textbook exercises ask you to label a pair of vectors collinear, a triple coplanar, a set independent. Those labels are not decoration: they decide whether a system of equations has a unique solution, whether three forces can hold a point in equilibrium, and whether a set of data columns carries redundant information. Each classification comes with a cheap algebraic test, and every test in this lesson is implemented numerically at the end so you can see the labels produced by actual computation rather than by inspection.

Equal, negative and null vectors

Equality of vectors is component-wise: in three dimensions means all three components match exactly, which is stronger than equal magnitude. The negative flips every component and preserves length, so for every vector — the reason the zero vector is the identity of vector addition. Strictly speaking the zero vector has no well-defined direction; the phrase "arbitrary direction" in the definition is a convention that lets statements like "the zero vector is collinear with every vector" be made without exceptions. Keep that convention in mind when a question asks whether , and can be independent: they cannot, because already gives a non-trivial combination.

Unit vectors and direction ratios

Normalising costs one magnitude computation: , so . Every unit vector lies on the unit sphere, and multiplying it by a positive scalar sweeps out a ray — the geometric picture behind direction cosines, which are simply the three components of the unit vector along the coordinate axes. Direction ratios are any triple proportional to the components; they are not unique, while direction cosines are, once the sense of the vector is fixed.

TypeAlgebraic testGeometric picture
Equalall components equalsame arrow, same length
Negativecomponents are negativessame arrow reversed
Unitmagnitude equals onepoint on the unit sphere
Nullall components zeroa single point
Collinearone is a scalar multiple of the otherparallel or anti-parallel arrows
Orthogonaldot product equals zeroright angle between arrows

Orthogonal, parallel and anti-parallel

Parallel and anti-parallel are both collinear; the sign of is the only difference. The dot product alone cannot separate them from the orthogonal family when the zero vector is involved: for every , so the zero vector is simultaneously orthogonal to everything and collinear with everything. Exam questions occasionally exploit this loophole; the clean answer is that orthogonality is defined for non-zero vectors, and is placed in its own category.

Testing a pair for collinearity

Check if and are collinear.

The component-ratio test is fast, but it hides two traps. A zero component forces the corresponding ratio to be treated by cross-multiplication rather than division: comparing with requires checking and so on, never dividing by zero. In three dimensions an equivalent test uses the cross product: and are collinear exactly when , and the magnitude of that cross product is also the area of the parallelogram they span, which gives a geometric read-out of "how collinear" two nearly parallel vectors are.

Testing a triple for coplanarity

Check if , , are coplanar.

The scalar triple product equals the signed volume of the parallelepiped built on the three vectors, so a zero value means the solid has collapsed to a flat figure — the geometric content of coplanarity. Cyclic permutations do not change the value, , but swapping two vectors flips the sign, which is why orientation must be stated when volumes are signed. Four or more vectors in three dimensions are automatically coplanar in the weaker sense that some non-trivial combination gives the zero vector; the scalar triple product test applies to triples only.

Linear combinations and independence

Independence means no vector in the set is redundant: each one contributes a new direction that the others cannot reach. Dependence means at least one vector is already a combination of the rest, so removing it changes nothing about the span. The dimension of the space sets the ceiling — three dimensions admit at most three independent vectors, and the standard triple is the canonical example. The coordinate axes are independent precisely because the only solution of forces all three components to vanish separately.

Check if , , are linearly independent.

The determinant shortcut generalises: vectors in -space are independent exactly when the matrix that lists them as columns has non-zero determinant, and row reduction reaches the same verdict by counting whether any row becomes all zeros.

Running the classification tests in Python

The first script implements the collinearity and orthogonality tests, including the zero-component edge case, and prints the normalised unit vectors.

python
from math import sqrt

def dot(a, b):
    return sum(x * y for x, y in zip(a, b))

def norm(a):
    return sqrt(dot(a, a))

def unit(a):
    n = norm(a)
    return tuple(x / n for x in a)

def collinear(a, b):
    # component-wise cross multiplication avoids dividing by zero
    return all(a[i] * b[j] == a[j] * b[i]
               for i in range(len(a)) for j in range(i + 1, len(a)))

a, b = (2, -3, 1), (-4, 6, -2)
print("collinear      :", collinear(a, b))
print("dot product    :", dot(a, b), "(not zero: not orthogonal)")
print("unit vector a  :", tuple(round(x, 4) for x in unit(a)))

z = (0, 0, 0)
print("zero vs b collinear :", collinear(z, b), " zero vs b orthogonal:", dot(z, b) == 0)

Collinearity returns true, the unit vector has components over seven, and the zero vector demonstrates the loophole of being both collinear with and orthogonal to everything.

The second script evaluates the scalar triple product and performs Gaussian elimination to decide independence.

python
def det3(m):
    return (m[0][0] * (m[1][1] * m[2][2] - m[1][2] * m[2][1])
            - m[0][1] * (m[1][0] * m[2][2] - m[1][2] * m[2][0])
            + m[0][2] * (m[1][0] * m[2][1] - m[1][1] * m[2][0]))

def independent(cols):
    rows = [[cols[j][i] for j in range(len(cols))] for i in range(len(cols[0]))]
    for col in range(len(rows)):
        pivot = max(range(col, len(rows)), key=lambda r: abs(rows[r][col]))
        rows[col], rows[pivot] = rows[pivot], rows[col]
        if abs(rows[col][col]) < 1e-12:
            return False
        for r in range(col + 1, len(rows)):
            factor = rows[r][col] / rows[col][col]
            rows[r] = [x - factor * y for x, y in zip(rows[r], rows[col])]
    return True

a, b, c = (1, 2, 3), (2, -1, 1), (3, 1, 4)
print("triple product :", det3([a, b, c]), "-> coplanar")

p, q, r = (1, 1, 1), (1, -1, 1), (1, 1, -1)
print("triple product :", det3([p, q, r]))
print("independent    :", independent([p, q, r]))

The first triple gives a zero determinant — coplanar — while the second gives a non-zero value and the elimination routine confirms independence, matching the hand computation above.

Classification errors to avoid

The recurring mistakes are structural. Comparing components by division breaks when a component is zero; use cross multiplication. Claiming vectors are orthogonal because their dot product involves a zero component rather than equaling zero. Forgetting that is collinear with everything, which invalidates "these three are independent" claims that include it. And treating four vectors in 3-space as potentially independent, when the dimension bound already rules it out. Each of these is caught instantly by the corresponding Python test, which is why the tests are worth typing out once and reusing.

Common Mistakes

Dividing component pairs to test collinearity when a component is zero

Fix: Use cross multiplication a one times b two equals a two times b one for every component pair, which never divides by zero.

Calling vectors orthogonal because one component of their dot product vanishes

Fix: Orthogonality requires the full dot product to equal zero; compute the whole sum of products of corresponding components before deciding.

Claiming four vectors in three dimensions might be independent

Fix: No set larger than the dimension of the space can be independent; test any four vectors in three-space for a dependency relation instead.

Key Takeaways

  • Collinear vectors are scalar multiples, orthogonal vectors have zero dot product, and the zero vector is a special case of both
  • Unit vectors are obtained by dividing by the magnitude and carry the direction information without the scale
  • The scalar triple product is the parallelepiped volume, and its vanishing is exactly the coplanarity condition for three vectors
  • Linear independence means no vector is redundant, and three dimensions admit at most three independent vectors
  • Every classification test in this lesson — ratios, dot products, triple products, elimination — runs in a few lines of Python
CW

ChatWhole Learn Editorial Team

Written by experienced data scientists, software engineers, and educators. All content is reviewed by industry professionals to ensure accuracy and relevance.

Last reviewed: 2026-10-15

—
☆☆☆☆☆
0 ratings

Rate & Feedback

Need Expert CBSE Class 12 Help?

Get personalized tutoring, project support, or professional consulting.

Advertisement