English translation
Example vectors
AI Article Decision Snapshot
Turn the lesson into workflow, model, budget, and security checks before choosing tools.
Use this quick snapshot before leaving the article. It keeps the next search tied to practical AI software, model/API, cost, privacy, and implementation questions.
Workflow fit
Identify the real job behind the article: coding, research, document review, support, analytics, content, or internal automation.
Model or tool decision
Decide whether the next step is a software shortlist, an AI tool comparison, an API platform choice, or a model benchmark.
Budget and usage signal
Estimate seats, API calls, prompt volume, retries, review time, and fallback work before assuming the workflow is cheap.
Security and privacy review
Check whether source code, customer data, private documents, prompts, logs, or embeddings will enter the AI workflow.
An orthogonal basis functions like a set of mutually independent coordinate rulers. When representing vectors using such a basis, projections and reconstructions become transparent and intuitive.
I will compute pairwise inner products. Orthogonality is not merely about appearing perpendicular—it is defined rigorously by an inner product equaling exactly zero.
Orthogonality is a fundamental concept in linear algebra—especially critical when working with high-dimensional data. A solid understanding of orthogonal vectors and orthogonal bases is essential for effectively applying AI and machine learning algorithms. This tutorial dives deeply into the definitions and properties of orthogonal vectors and orthogonal bases, illustrated with concrete examples.
Orthogonal Vectors
Let’s first recall the definition of the inner product. In the previous section, we introduced its key properties. Two vectors in an inner product space are said to be orthogonal if their inner product equals zero. Mathematically, given vectors and , they are orthogonal if and only if:
When learning orthogonal vectors and orthogonal bases, begin by reviewing: inner products, vector normalization (unit length), linear independence of basis vectors, projection computation, and coordinate representation.
For example, in , vectors and are orthogonal because their inner product is:
Example: Application of Orthogonal Vectors
Suppose we have two vectors in the 2D plane: and . We can verify whether they are orthogonal:
Since their inner product is zero, these two vectors are indeed orthogonal.
Orthogonal Bases
In a vector space, a basis is a set of linearly independent vectors such that any vector in the space can be expressed uniquely as a linear combination of them. A basis is called an orthogonal basis if every pair of distinct vectors in the set is orthogonal.
After finishing Orthogonal Vectors and Orthogonal Bases, take one minute to reflect: Are the core concepts clearly distinguished? Can you reproduce the practice steps? Can you restate the conclusions in your own words?
For instance, in three-dimensional space, the standard basis vectors , , and form an orthogonal basis—because each pair is orthogonal and each vector has unit length.
Properties of Orthogonal Bases
A key property of orthogonal bases is normalization (or unit-length scaling). If we normalize each vector in an orthogonal basis—i.e., scale it to have length 1—we obtain an orthonormal basis, where every basis vector satisfies:
Example: Computing an Orthogonal Basis in Python
We can construct an orthogonal basis from a set of linearly independent vectors using the Gram–Schmidt process. Below is a simple implementation in Python:
import numpy as np
def gram_schmidt(vectors):
orthogonal_vectors = []
for v in vectors:
for av in orthogonal_vectors:
v -= np.dot(v, av) / np.dot(av, av) * av
orthogonal_vectors.append(v)
return np.array(orthogonal_vectors)
# Example vectors
vectors = np.array([[1, 1, 0], [1, 0, 1], [0, 1, 1]])
# Compute orthogonal basis
orthogonal_basis = gram_schmidt(vectors)
print("Original vectors:\n", vectors)
print("Orthogonal basis:\n", orthogonal_basis)
In this example, we define a set of input vectors and apply the Gram–Schmidt process to produce an orthogonal basis. The output is a set of mutually orthogonal vectors.
If Orthogonal Vectors and Orthogonal Bases hasn’t fully clicked yet, revisit this card and walk through its four actionable steps.
When reviewing Orthogonal Vectors and Orthogonal Bases, avoid tackling large projects upfront. Instead, start with a single, simple example to confirm whether the core logic is clear.
Summary
In this tutorial, we explored the significance and foundational concepts of orthogonal vectors and orthogonal bases. Orthogonality plays a vital role across many domains—including signal processing, dimensionality reduction, and machine learning. Identifying or constructing orthogonal bases simplifies computations and improves numerical stability. In the next installment, we’ll examine the practical importance of inner product spaces—with real-world applications and case studies. Stay tuned!
Apply This Lesson
Turn this article into AI software, model, API, and security decisions.
English Article FAQ
Use this article as evidence before choosing AI tools
How should I use this AI Tutorials article?
Use it as the implementation or learning layer, then connect the idea to AI software buyer guides, tool comparisons, benchmarks, API choices, and security checks before making a production decision.
Is this English article different from the Chinese original?
The English edition is localized for global AI readers while preserving the original diagrams, screenshots, prompts, code examples, and source context from the Chinese article.
What should I read after Example vectors?
Continue with AI Software Buyer Guides, AI Tools Workbench, Best AI Coding Agents, AI Model Benchmarks, OpenAI vs Anthropic API, or LLM Security Tools depending on the decision you need to make.
Can this article alone choose an AI product or model?
No. Treat the article as evidence and context, then validate fit with pricing, privacy requirements, integration effort, benchmark results, workflow tests, and fallback planning.
Continue