A14 · Lesson 37 · Normed and inner-product spaces
Length, angle and projection, for signals as well as vectors
A matched-filter receiver correlates the incoming waveform with a template; a Fourier coefficient correlates a signal with a sinusoid; least-squares fitting finds the closest combination of basis signals. All three are the same geometry: an inner product that measures how much two signals point the same way, a norm that measures size (for signals, the square root of energy), and orthogonal projection, which finds the best approximation. Once signals are vectors in an inner-product space, everything from A7's linear algebra applies to them, with integrals in place of sums.
- The solid line is f(x) = x on [−π, π]; the dashed curve is . The readout is the squared error .
- Move a: the error is a parabola in a, smallest at a = 2. That's the projection coefficient .
- At the best a, the leftover error is orthogonal to sin x: nothing more of it can be explained by that direction.
Predict
Over one period T, two tones and have inner product . When is it zero?
The product is half the sum of cosines at and , and each integrates to 0 over T when its frequency is a multiple of (with the tones' sum large, that's the difference that matters). That's why FSK tones are spaced by multiples of : orthogonal signals don't interfere in a correlation receiver.
Name it
Norms
A norm on a vector space assigns a length with only for v = 0, , and . It gives a metric . A complete normed space is a Banach space.
Inner products
An inner product is linear in each slot (for real spaces), symmetric, and positive: for v ≠ 0. It defines a norm . For functions on [a, b]:
A complete inner-product space is a Hilbert space; (lesson 40) is the one for signals.
Geometry
- Cauchy–Schwarz: , so defines an angle.
- Orthogonal: ; then (Pythagoras).
- Projection: the multiple of e closest to f is , and the error is orthogonal to e. For an orthogonal set , project onto each separately and add: that's how Fourier coefficients are computed.
In receivers
A correlator computes between the received signal and a template; by Cauchy–Schwarz it's largest when r is a multiple of s, which is why the matched filter maximizes the output signal-to-noise ratio.
Worked example
Project f(x) = x onto on [−π, π].
Show the solution
- Inner product with .
- Norm of .
- The coefficient. Dividing gives which is 2, −1, , ... These are the Fourier sine coefficients of x.
- The error with alone. The best approximation by alone leaves a squared error of
Answer the coefficient of is (2, −1, , ...), the Fourier sine coefficients of x.
Worked example
Find the angle between u = (1, 2, 2) and v = (2, 0, 1).
Show the solution
- Inner product.
- Lengths. and .
- Angle. so θ = 53.4°.
Answer the angle is 53.4°.
Worked example
On [−1, 1] with , orthogonalize 1, x, x² by Gram–Schmidt.
Show the solution
- 1 and x. They're already orthogonal, since .
- Project on 1. and , so the component along 1 is
- Project on x. , so there's nothing to remove.
- Subtract. What's left is
- Recognize it. That's , a multiple of the Legendre polynomial.
- In general. Gram–Schmidt on the powers of x always produces the orthogonal polynomials for the chosen inner product: Legendre for this one, Chebyshev with the weight .
Answer the orthogonal set is 1, x and .
Check
What's the coefficient of the best approximation of x by on [−π, π]?
Check
What's for the vectors (1, 2) and (3, 1)?
Check
What's the energy of over one period, T = 0.01 s? (Treat x as volts across 1 Ω.)
Write units the way you normally would: 1.5 J, 1500 mJ and 0.0015 kJ are the same answer.
Check
Two tones lasting T = 0.001 s are to be orthogonal. What's the smallest frequency spacing that achieves it (for tones well above that spacing, starting in phase)?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
Check
Vectors have lengths 3 and 4. What's the largest their inner product can be?
Check
A correlation receiver compares the received signal with a template by computing their inner product. Why does the matched template give the largest output for a given signal energy?
Check
Project onto the constants in .
(a)
What is the best constant?
(b)
What is the norm of the residual?
Check
Vectors u and v have lengths a and b and the angle t between them.
Step 1
What is ?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What is ?
Explain why
Why is the best approximation of f by a multiple of e given by the projection ?
The squared error is a parabola in c, smallest where its derivative is zero, which gives . At that c the error is orthogonal to e: its inner product with e is . Geometrically, the shortest line from a point to a line is perpendicular to it. For signals, that means the leftover after the best fit contains none of e, and with an orthogonal set each coefficient can be found separately.
Practice
Keep practicing
9 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.