Real Analysis & Calculus Revision Guide

Real Analysis Complete Real Analysis & Calculus Revision Guide Continuity • Uniform Continuity • Differentiability • Monotone Functions • Sequences • Limit Points • Topology & Theorems 1. Boundedness Theorem If a function f is continuous on a closed interval [a,b], then it is bounded. There exist real numbers M and m such that: m ≤ f(x) ≤ M for all x ∈ [a,b] Example f(x)=x² on [-2,2] Minimum value = 0 Maximum value = 4 Hence f(x) is bounded. Continuous functions on closed intervals never "blow up" to infinity. 2. Extreme Value Theorem If f is continuous on [a,b], then f attains both: Absolute Maximum Absolute Minimum Example f(x)=x² on [-1,2] Minimum = 0 at x=0 Maximum = 4 at x=2 3. Intermediate Value Theorem (IVT) If f is continuous on [a,b] and k lies between f(a) and f(b), then there exists c∈(a,b) such that: f(c)=k Example f(x)=x³ f(1)=1 and f(2)=8 Since 5 lies between 1 and 8, ...

Inner Products in Mathematics: Properties, Computation & Practical Applications

Inner Products in Mathematics: Properties, Computation & Real-World Applications Matrix Space Toolkit in SageMath

Part 1: Getting Hands-On with Inside — The Dot Product in SageMath

Welcome to your inner world—of vectors, that is. In this post, we're going on a journey to explore the inner product, a powerful tool in mathematics that helps us measure how things align, relate, and interact “from the inside.” And we'll do all of this using the mathematical computing power of SageMath.

๐Ÿงญ 1. What Is an Inner Product?

Imagine you’re in a playground of vectors. Each vector has a direction and a length. An inner product space adds a special rule: it tells us how much two vectors align—how much they point in the same (or opposite) direction. This alignment is what we call the inner product.

๐Ÿ” In \( \mathbb{R}^n \): The Standard Dot Product

If you're in regular 2D or 3D space, this "inner product" is just the good old dot product.

Let’s see this in SageMath:

This number (21) tells us how aligned u and v are. Positive = same-ish direction, negative = opposite-ish, and zero = perfectly perpendicular (orthogonal).

๐Ÿ“ Measuring Vector Length: The Norm

You can also find the length of a vector using norm():

This is like the vector’s speed, size, or magnitude.

๐Ÿ” Detecting Perpendicularity (Orthogonality)

Want to check if two vectors are orthogonal?

A zero result? They’re orthogonal — no alignment at all.

๐Ÿงช Try It Yourself! Basic Exercises in SageMath

  1. Calculate the norm of a vector of your choice.
  2. Verify the triangle inequality:
  3. Test the parallelogram law:

๐Ÿงฎ The Inner Product Defined by a Matrix

Want a more customized inner product? Use a symmetric positive-definite matrix!

This changes how we perceive lengths and directions — under this inner product, even e1 and e2 are no longer orthogonal!

๐Ÿ“ˆ Inner Product in Function Spaces: C[0,1]

The concept of inner products even works for functions. On the interval [0,1], define: \[ \langle f, g \rangle=\int_0^1 f(x) g(x) \,dx \]

In SageMath:

Check the Cauchy-Schwarz Inequality:

๐Ÿ“š Inner Products on Matrices: \( M_n(\mathbb{R}) \)

Even matrices can have inner products! One way is using the trace:

\[ \langle A, B \rangle=trace( AB^T) \]

๐Ÿ“ Inner Product on Polynomials: \( P_n(\mathbb{R}) \)

Polynomials up to degree n can also live in inner product spaces:

\[ \langle p, q \rangle=p(0)q(0)+p(1)q(1)+...+p(n)q(n) \]

SageMath:

๐Ÿ•ถ️ Orthogonal Projection: Casting Shadows

To find how much of vector v lies in the direction of u: \[ \mathrm{proj}_{u}(v) = \frac{\langle v, u \rangle}{\langle u, u \rangle} u \]

SageMath:

Use it with functions, matrices, or polynomials by supplying the correct inner product.

๐Ÿง  Why Inner Products Matter

They’re everywhere:

  • ๐ŸŽง Signal processing — decomposing sounds or images.
  • ๐Ÿง  Machine learning — PCA, SVMs, and more.
  • ⚛️ Quantum mechanics — probability amplitudes.
  • ๐Ÿ“Š Data science — measuring similarity in high-dimensional spaces.
  • ๐Ÿ“ Geometry — defining angles, lengths, and orthogonality.

Inner products generalize how we measure, compare, and decompose all sorts of mathematical objects — from vectors to functions and beyond.

✏️ Ready to Explore?

Try these in SageMath and In the next post, we’ll dig deeper into orthogonal bases and Gram-Schmidt orthogonalization. Stay tuned!

Comments

Popular posts from this blog

Heuristic Computation and the Discovery of Mersenne Primes

Understanding the Laplacian of 1/r and the Dirac Delta Function Mathematical Foundations & SageMath Insights

Neural Network Generalization in the Over-Parameterization Regime: Mechanisms, Benefits, and Limitations