Physics Library
 An open source physics library
Encyclopedia | Forums | Docs | Random  

Inner Products of Functions

(Topic)

FS02: Inner Products of Functions

FS01 showed that a complicated periodic waveform can be assembled from harmonics. The next question is more precise:

  • How can we measure how much of one candidate harmonic is contained in a function?

The answer begins with ordinary vector geometry.

For a vector, the dot product measures alignment and extracts components. Fourier analysis uses the same geometric idea, but the “vectors” are functions and the dot product becomes an integral.

The central definition of this lecture will be

        ∫ b
⟨f,g⟩ =    f (x)g(x)dx.
         a
(1)

This lecture develops Equation (1) slowly rather than treating it as a mysterious rule. We will build it from:

  • ordinary vector dot products,
  • orthogonality,
  • vector projection,
  • the passage from finite sums to integrals,
  • function norms and normalization,
  • projection of one function onto another,
  • residual orthogonality,
  • weighted inner products.

The trigonometric orthogonality identities themselves are postponed to FS03. By the end of FS02, however, the reason Fourier coefficients are projection coefficients should already be clear.

1 Review: the dot product of ordinary vectors

Consider two vectors in three-dimensional Euclidean space:

    ⌊   ⌋           ⌊  ⌋
      a1             b1
a = ⌈ a2⌉ ,    b =  ⌈b2⌉ .
      a              b
       3              3
(2)

Their dot product is

a ⋅ b = a1b1 + a2b2 + a3b3.
(3)

This operation takes two vectors and returns one scalar.

For example, let

    ⌊    ⌋          ⌊    ⌋
       2               4
a = ⌈ − 1 ⌉,    b = ⌈  5 ⌉ .
       3              − 2
(4)

Then

a ⋅ b = (2)(4) + (−1)(5) + (3)(−2) (5)
= 8 − 5 − 6 (6)
= −3. (7)

The dot product contains geometric information. It can be written as

a ⋅ b = ∥a∥ ∥b∥ cos𝜃,
(8)

where 𝜃 is the angle between the vectors.

Thus:

  • a positive dot product indicates an acute angle,
  • a negative dot product indicates an obtuse angle,
  • a zero dot product indicates a right angle.

2 Orthogonal vectors

Two nonzero vectors are orthogonal when

a ⋅ b = 0.
(9)

From Equation (8),

0 = ∥a ∥∥b ∥cos 𝜃.
(10)

If both vectors are nonzero, their norms are nonzero, so

cos𝜃 = 0.
(11)

Therefore

      ∘
𝜃 = 90 .
(12)

Orthogonality is therefore the general algebraic form of perpendicularity.

3 Projection of one vector onto another

Suppose we want the part of v that points along a nonzero vector e.

Any vector parallel to e has the form

ce,
(13)

for some scalar c.

We therefore write

v =  ce + r,
(14)

where r is the leftover or residual vector.

For ce to be the projection, the residual should contain no component along e. Therefore require

r ⋅ e = 0.
(15)

Substitute

r = v − ce.
(16)

Then

(v − ce) ⋅ e = 0.
(17)

Distribute the dot product:

v ⋅ e − c(e ⋅ e) = 0.
(18)

Move the second term to the other side:

v ⋅ e = c(e ⋅ e).
(19)

Divide by e ⋅ e:

    v-⋅ e
c = e ⋅ e .
(20)

Thus the projection itself is

          v ⋅ e
proje v = -e ⋅ e-e.
(21)

PIC

Figure 1. Vector projection. The coefficient multiplying e is chosen so that the residual r = v − ce is perpendicular to e. This same residual-orthogonality idea will be reused for functions.

4 Special case: projection onto a unit vector

If e is a unit vector, then

e ⋅ e = 1.
(22)

Equation (20) becomes

c = v ⋅ e.
(23)

This is why components in an orthonormal Cartesian basis are obtained by dot products.

For example,

v  = v ⋅ e .
 x       x
(24)

Fourier analysis will eventually do the same thing with normalized basis functions.

5 From vectors to lists of sampled function values

Suppose we sample two functions f and g at equally spaced points

x1,x2,...,xN .
(25)

The function values form lists:

    ⌊       ⌋          ⌊       ⌋
      f(x1)              g(x1)
    | f(x ) |          | g(x ) |
f = ||   . 2 || ,    g = ||   .2  ||.
    ⌈   ..   ⌉          ⌈   ..   ⌉
      f(xN )             g(xN )
(26)

An ordinary discrete dot product is

        N
       ∑
f ⋅ g =   f (xk)g(xk).
       k=1
(27)

If the points have spacing Δx, multiply by Δx:

 N
∑
   f (xk)g(xk)Δx.
k=1
(28)

Equation (28) is a Riemann sum. As the sample spacing becomes smaller and the number of samples increases, the sum approaches an integral:

∑N                    ∫ b
   f (xk)g(xk)Δx  −→     f (x)g(x)dx.
k=1                    a
(29)

This provides a natural bridge from the finite-dimensional vector dot product to a continuous function inner product.

PIC

Figure 2. A function inner product can be motivated by sampling two functions, multiplying corresponding samples, summing them, and then taking the continuous limit of the weighted sum.

6 Definition of the inner product of real functions

For real-valued functions on the interval [a,b], define

        ∫
          b
⟨f,g⟩ =    f (x)g(x)dx.
         a
(30)

The angle brackets distinguish the function inner product from ordinary multiplication.

It is important to read the notation correctly:

⟨f,g⟩
(31)

is one number obtained from two entire functions.

The integration interval is part of the definition. The same pair of functions can be orthogonal on one interval and not orthogonal on another.

7 Property 1: symmetry

For real functions,

        ∫ b
⟨f,g⟩ =    f (x)g(x)dx.
         a
(32)

Because multiplication of real numbers is commutative,

f (x )g(x) = g(x)f(x).
(33)

Therefore

⟨f,g⟩ = ∫ abf(x)g(x) dx (34)
= ∫ abg(x)f(x) dx (35)
= ⟨g,f⟩. (36)

Thus

⟨f, g⟩ = ⟨g,f⟩.
(37)

8 Property 2: linearity

Let α and β be constants. Then

⟨αf + βh,g⟩ = ∫ ab[αf(x) + βh(x)]g(x) dx (38)
= α∫ abf(x)g(x) dx + β ∫ abh(x)g(x) dx (39)
= α⟨f,g⟩ + β⟨h,g⟩. (40)

So the inner product is linear in each argument for real-valued functions.

9 Property 3: positivity

Take the inner product of a function with itself:

         ∫ b
⟨f,f ⟩ =    f 2(x )dx.
          a
(41)

Because

f2(x) ≥ 0,
(42)

we have

⟨f, f⟩ ≥ 0.
(43)

For the ordinary function spaces used in this series, if

⟨f, f⟩ = 0,
(44)

then f is zero except possibly on sets that do not affect the integral. For elementary continuous functions, this simply means

f (x) = 0
(45)

throughout the interval.

10 Norm of a function

The Euclidean vector norm satisfies

      √ -----
∥v∥ =   v ⋅ v.
(46)

The analogous function norm is

       ∘ ------
∥f ∥ =   ⟨f,f ⟩.
(47)

Therefore

      [∫  b        ]1∕2
∥f∥ =      f2(x) dx    .
         a
(48)

The norm measures the overall size of the function over the interval.

It does not generally equal the maximum value of the function. It is an integrated measure of magnitude.

PIC

Figure 3. The function norm is determined by the area under f2(x), not by the largest single value of f. Normalizing a function rescales its entire graph so that its inner product with itself equals one.

11 Example: norm of f(x) = x on [−1, 1]

Let

f(x) = x.
(49)

Then

∥f∥2 = ⟨f,f⟩ (50)
= ∫ −11x2 dx. (51)

An antiderivative is

∫
    2      x3-
  x  dx =  3 .
(52)

Thus

∥f∥2 = x3||
--||
3−11 (53)
= 1-
3 −− 1
3 (54)
= 2
--
3. (55)

Therefore

       ∘ --
         2
∥f ∥ =   --.
         3
(56)

12 Normalization of a function

A normalized function has norm one.

Given a nonzero function f, define

^    -f--
f =  ∥f∥ .
(57)

Then

⟨f,f⟩ = ⟨          ⟩
  --f-  -f--
  ∥f ∥, ∥f∥ (58)
= --1--
∥f ∥2⟨f,f⟩ (59)
= 1. (60)

For f(x) = x on [−1, 1],

       ∘  --
          3
^f(x) =    2 x.
(61)

13 Orthogonal functions

Two functions are orthogonal on [a,b] when

⟨f,g⟩ = 0.
(62)

In integral form,

∫ b
   f (x)g(x)dx =  0.
 a
(63)

The functions do not need to look geometrically perpendicular on an ordinary graph. The word orthogonal refers to their inner product.

14 Example: 1 and x on [−1, 1]

Let

f(x ) = 1,    g(x) = x.
(64)

Then

⟨1,x⟩ = ∫ −11xdx (65)
= x2||
--||
2−11 (66)
= 1-
2 −1-
2 (67)
= 0. (68)

Therefore 1 and x are orthogonal on [−1, 1].

The cancellation occurs because x is negative on the left half and positive on the right half.

PIC

Figure 4. Orthogonality of 1 and x on a symmetric interval. Their product is just x, whose negative and positive signed areas cancel exactly over [−1,1].

15 The interval matters

Use the same functions on [0, 1]:

⟨1,x⟩ = ∫ 01xdx (69)
= x2||
--||
201 (70)
= 1-
2. (71)

Now the inner product is not zero.

Therefore:

  • 1 and x are orthogonal on [−1, 1],
  • 1 and x are not orthogonal on [0, 1].

Orthogonality belongs to the functions together with the chosen inner product and interval.

16 Even and odd symmetry already helps

Suppose f is even and g is odd on the symmetric interval [−L,L].

Then

f(− x) = f(x)
(72)

and

g(− x) = − g(x).
(73)

Their product satisfies

[fg](−x) = f(−x)g(−x) (74)
= f(x)[−g(x)] (75)
= −f(x)g(x). (76)

Thus fg is odd.

The integral of an odd function over a symmetric interval is zero:

∫
  L
    f(x)g(x) dx = 0.
 −L
(77)

Therefore every even function is orthogonal to every odd function under this standard inner product on a symmetric interval, provided the integral exists.

This symmetry observation will save substantial work later.

17 Projection of one function onto another

Now repeat the vector argument using functions.

Suppose we want to approximate f(x) using one nonzero function ϕ(x). Write

f(x) = cϕ(x) + r(x),
(78)

where r is the residual.

For cϕ to contain all of the component of f along ϕ, require the residual to be orthogonal to ϕ:

⟨r,ϕ⟩ = 0.
(79)

From Equation (78),

r = f − cϕ.
(80)

Therefore

⟨f − cϕ,ϕ ⟩ = 0.
(81)

Use linearity:

⟨f,ϕ⟩ − c⟨ϕ,ϕ ⟩ = 0.
(82)

Thus

⟨f,ϕ⟩ = c⟨ϕ,ϕ ⟩.
(83)

Finally,

c =  ⟨f,ϕ⟩.
     ⟨ϕ, ϕ⟩
(84)

This is one of the central equations of the Fourier-series learning path.

PIC

Figure 5. Function projection uses the same geometry as vector projection. The coefficient c is selected so that the residual r = f − cϕ has zero inner product with the basis function ϕ.

18 If the basis function is normalized

If

⟨ϕ, ϕ⟩ = 1,
(85)

then Equation (84) simplifies to

c = ⟨f,ϕ⟩.
(86)

This is the function-space analogue of taking the dot product with a unit vector.

19 Worked projection example: approximate x2 by a constant

Let

        2
f(x) = x
(87)

on [−1, 1].

Approximate it using the constant basis function

ϕ(x ) = 1.
(88)

We seek

f(x ) ≈ c.
(89)

The projection coefficient is

    ⟨x2,1⟩-
c =  ⟨1,1⟩ .
(90)

Compute the numerator:

⟨x2, 1⟩ = ∫ −11x2 dx (91)
= 2
--
3. (92)

Compute the denominator:

⟨1, 1⟩ = ∫ −111 dx (93)
= 2. (94)

Therefore

c = 2∕3-
 2 (95)
= 1
--
3. (96)

So the projection of x2 onto the constant functions is

proj (x2 ) = 1.
    1       3
(97)

The residual is

         2   1-
r (x ) = x −  3.
(98)

Check its orthogonality to the constant basis:

⟨r, 1⟩ = ∫ −11(      1 )
  x2 − --
       3dx (99)
= 2-
3 −1-
3(2) (100)
= 0. (101)

PIC

Figure 6. Projection of x2 onto the constant basis function on [−1,1]. The best constant projection in the inner-product sense is 1∕3, leaving a residual whose signed integral is zero.

20 Why the projection constant equals the average value

For the constant basis function ϕ = 1 on [a,b],

    ∫
      bf(x )dx
c = -a∫b------.
       a 1dx
(102)

But

∫
  b
   1 dx = b − a.
 a
(103)

Therefore

          ∫ b
c = --1--    f (x)dx.
    b − a  a
(104)

Equation (104) is exactly the average value of f over the interval.

Thus the average or DC component of a function can be understood geometrically as its projection onto the constant function.

This observation will later explain the constant term in a Fourier series.

21 Projection onto several orthogonal functions

Suppose

ϕ1,ϕ2,...,ϕN
(105)

are mutually orthogonal:

⟨ϕm, ϕn⟩ = 0     (m  ⁄= n ).
(106)

Approximate f by

      ∑N
SN  =     cnϕn.
      n=1
(107)

Require the residual

r = f − SN
(108)

be orthogonal to every basis function:

⟨r,ϕm ⟩ = 0.
(109)

Substitute the residual:

⟨                 ⟩
      ∑N
  f −     cnϕn,ϕm    = 0.
      n=1
(110)

Use linearity:

         ∑N
⟨f, ϕm⟩ −     cn⟨ϕn,ϕm ⟩ = 0.
         n=1
(111)

Because the functions are orthogonal, every term with

n ⁄=  m
(112)

vanishes. Only the n = m term remains:

⟨f,ϕm ⟩ − cm⟨ϕm, ϕm ⟩ = 0.
(113)

Therefore

       ⟨f,ϕ  ⟩
cm =  -----m---.
      ⟨ϕm, ϕm⟩
(114)

This is the general projection formula behind real Fourier coefficients.

FS03 will establish that the sine and cosine functions used in Fourier series are orthogonal on the appropriate interval. Once that is known, Equation (114) will immediately tell us how to isolate one harmonic.

22 Orthonormal functions

A collection of functions is orthonormal when

           {

⟨ϕm, ϕn ⟩ =  1,  m  = n,
            0,  m  ⁄= n.
(115)

This combines two properties:

  • different basis functions are orthogonal,
  • each basis function has norm one.

For an orthonormal basis, Equation (114) simplifies to

cm =  ⟨f,ϕm ⟩.
(116)

This is the cleanest analogue of Cartesian vector components.

23 Pythagorean relation for orthogonal functions

For orthogonal functions f and g,

⟨f,g⟩ = 0.
(117)

Compute the squared norm of their sum:

∥f + g∥2 = ⟨f + g,f + g⟩ (118)
= ⟨f,f⟩ + ⟨f,g⟩ + ⟨g,f⟩ + ⟨g,g⟩. (119)

The cross terms vanish:

⟨f, g⟩ = ⟨g,f⟩ = 0.
(120)

Therefore

       2       2      2
∥f + g∥  = ∥f ∥ +  ∥g∥ .
(121)

Equation (121) is the function-space Pythagorean theorem.

Later, Parseval’s theorem will be an infinite-dimensional version of this idea.

24 Angle between functions

The vector relation

        -a-⋅ b--
cos𝜃 =  ∥a∥∥b ∥
(122)

suggests an analogous definition for nonzero real functions:

        ⟨f, g⟩
cos𝜃 =  -------.
        ∥f∥∥g∥
(123)

This provides a geometric interpretation of the inner product.

If

⟨f,g⟩ = 0,
(124)

then

cos𝜃 = 0,
(125)

so the functions can be regarded as separated by a 90∘ angle in function space.

The graph of one function is not literally drawn at right angles to the graph of the other. The angle belongs to the abstract geometry defined by the inner product.

25 Worked example: project x3 onto x

On [−1, 1], let

f (x) = x3,     ϕ(x) = x.
(126)

We seek

x3 ≈ cx.
(127)

The coefficient is

    ⟨x3,x-⟩
c =  ⟨x,x⟩ .
(128)

The numerator is

⟨x3,x⟩ = ∫ −11x4 dx (129)
=  5|
x-||
5 |−11 (130)
= 1
--
5 −− 1
---
5 (131)
= 2-
5. (132)

The denominator is

⟨x, x⟩ = 2.
         3
(133)

Thus

c = 2∕5-
2∕3 (134)
= 2
--
53
--
2 (135)
= 3-
5. (136)

Therefore the projection is

proj (x3) = 3x.
    x       5
(137)

The residual is

        3   3-
r(x) = x  − 5x.
(138)

Check orthogonality:

⟨r,x⟩ = ∫ −11(      3  )
  x3 − --x
       5xdx (139)
= ∫ −11(          )
   4   3- 2
  x  − 5 xdx (140)
= 2-
5 −3-
52-
3 (141)
= 2-
5 −2-
5 (142)
= 0. (143)

26 Weighted inner products

The ordinary inner product treats every point of the interval with the same Weight. Sometimes a problem naturally assigns greater importance to some parts of the interval than others.

Define a weighted inner product by

         ∫  b
⟨f,g⟩w =     w(x )f (x)g(x)dx,
           a
(144)

where the weight function satisfies

w (x) > 0
(145)

throughout the interval, apart from possible special endpoint behavior in more advanced settings.

The associated weighted norm is

        [                ]
         ∫ b      2       1∕2
∥f∥w =      w (x)f (x)dx     .
          a
(146)

Weighted inner products will become important later in generalized eigenfunction expansions and Sturm-Liouville theory.

PIC

Figure 7. A weighted inner product changes how strongly different portions of the interval contribute. Regions with larger w(x) influence the projection and norm more strongly.

27 Example of a weighted projection

On [0, 1], let

w (x) = 2x,     f(x) = x,     ϕ(x) = 1.
(147)

The weighted projection coefficient onto the constant function is

    ⟨x,1⟩w
c = -------.
    ⟨1,1⟩w
(148)

Compute the numerator:

⟨x, 1⟩w = ∫ 01(2x)(x)(1) dx (149)
= 2 ∫ 01x2 dx (150)
= 2
--
3. (151)

The denominator is

⟨1, 1⟩w = ∫ 012xdx (152)
= 1. (153)

Thus

    2
c = 3.
(154)

Without the weight, the ordinary average of x on [0, 1] is

1.
2
(155)

The weight w = 2x emphasizes the right side of the interval, where x is larger, so the weighted projection shifts upward to 2∕3.

28 Units of a function inner product

Suppose f and g have physical units [f] and [g], and x has units [x].

Then

[⟨f, g⟩] = [f][g ][x].
(156)

Therefore an inner product is not necessarily dimensionless.

Likewise,

            ---
[∥f ∥] = [f ]∘ [x].
(157)

In mathematical treatments, variables are often nondimensionalized or the units are suppressed. In physics applications, the dimensions should still be checked.

29 Function space: what does it mean to treat a function like a vector?

A vector in ordinary three-dimensional space is specified by three components. A function requires infinitely many values to specify its complete shape.

The phrase function space refers to a set of functions treated as points or vectors in a larger abstract space.

The inner product supplies geometry to that space. It lets us define:

  • length through ∥f∥,
  • orthogonality through ⟨f,g⟩ = 0,
  • angle through Equation (123),
  • projection through Equation (84).

This geometric viewpoint is the foundation of Fourier analysis.

A rigorous treatment eventually introduces Hilbert spaces and equivalence classes of functions. That level of functional analysis is not needed yet. The elementary integral geometry is enough to derive Fourier series.

30 Why orthogonality makes coefficient extraction easy

Suppose

f =  c1ϕ1 + c2ϕ2 + c3ϕ3.
(158)

Take the inner product with ϕ2:

⟨f,ϕ2⟩ = ⟨c1ϕ1 + c2ϕ2 + c3ϕ3,ϕ2⟩ (159)
= c1⟨ϕ1,ϕ2⟩ + c2⟨ϕ2,ϕ2⟩ + c3⟨ϕ3,ϕ2⟩. (160)

If the basis functions are mutually orthogonal,

⟨ϕ1,ϕ2⟩ = 0
(161)

and

⟨ϕ3,ϕ2⟩ = 0.
(162)

Therefore

⟨f,ϕ2⟩ = c2⟨ϕ2,ϕ2 ⟩.
(163)

Hence

     -⟨f,ϕ2⟩-
c2 = ⟨ϕ2,ϕ2⟩ .
(164)

The inner product with ϕ2 destroys every orthogonal component and leaves only the ϕ2 component.

This is exactly what FS04 and FS05 will do with cosine and sine harmonics.

31 Preview of the Fourier connection

FS01 introduced a finite harmonic sum of the form

         a0   ∑N
SN (x) = ---+     [ancos(nω0x ) + bnsin(nω0x )].
          2   n=1
(165)

If the functions

1,     cos(nω0x),     sin (n ω0x)
(166)

are orthogonal over one full period, then each coefficient can be extracted by projection.

For example, the structure must look like

am ∝  ⟨f,cos(m ω0x)⟩.
(167)

The proportionality factor depends on the norm of the cosine basis function.

We are not yet entitled to write the final Fourier coefficient formula because we have not proved the required trigonometric orthogonality identities.

That is the purpose of FS03.

PIC

Figure 8. FS02 supplies the geometry. FS03 will prove that distinct sine and cosine harmonics are orthogonal, after which FS04 and FS05 can extract individual Fourier coefficients by projection.

32 A first three-function orthogonal example

On [−1, 1], consider

ϕ (x) = 1,     ϕ (x) = x,     ϕ (x) = x2 − 1-.
 0              1              2           3
(168)

We already know

⟨1,x⟩ = 0.
(169)

Now check

⟨1,ϕ2⟩ = ∫ −11(      1 )
  x2 − --
       3dx (170)
= 2-
3 −2-
3 (171)
= 0. (172)

Next,

⟨x,ϕ2⟩ = ∫ −11x(       )
   2   1-
 x  −  3dx (173)
= ∫ −11(         )
  x3 − 1-x
       3dx. (174)

The integrand is odd, so

⟨x,ϕ2⟩ = 0.
(175)

Thus the three functions are mutually orthogonal.

This example illustrates a general strategy: new basis functions can be constructed by subtracting projections onto earlier basis functions. A systematic version of this process is the Gram-Schmidt procedure, which will be useful later but is not needed for the first Fourier derivations.

33 Self-check questions

  1. What does the inner product of two functions return: another function or a scalar?
  2. Why is the integration interval part of the definition of orthogonality?
  3. What does it mean geometrically if
    ⟨f, g⟩ = 0?
    (176)

  4. Derive the projection coefficient
        ⟨f,ϕ⟩
c = ------
    ⟨ϕ,ϕ⟩
    (177)

    from residual orthogonality.

  5. Why does the denominator disappear for a normalized basis function?
  6. What is the projection of a function onto the constant basis function physically related to?
  7. Why does an even function have zero inner product with an odd function over a symmetric interval?
  8. Why does orthogonality make it possible to isolate one coefficient from an expansion containing many coefficients?
  9. What is the difference between an orthogonal set and an orthonormal set?
  10. Why are we postponing the Fourier coefficient formulas until after FS03?

34 Practice problems

  1. Compute
    ⟨1, x2⟩
    (178)

    on [−1, 1].

  2. Determine whether x and x2 are orthogonal on [−1, 1].
  3. Determine whether 1 and x are orthogonal on [−2, 2] and on [0, 2].
  4. Compute the norm of f(x) = 1 on [−L,L].
  5. Normalize f(x) = 1 on [−L,L].
  6. Compute the norm of f(x) = x on [−2, 2].
  7. Project f(x) = x2 onto the constant function on [0, 1].
  8. Project f(x) = x4 onto the constant function on [−1, 1].
  9. Project f(x) = x3 onto ϕ(x) = x on [−2, 2].
  10. Show directly that x2 − 1∕3 is orthogonal to 1 on [−1, 1].
  11. Suppose ϕ1 and ϕ2 are orthogonal. Prove
    ∥c1ϕ1 + c2ϕ2∥2 = c21∥ϕ1∥2 + c22∥ϕ2∥2.
    (179)

  12. Using the weighted inner product with w(x) = x on [0, 1], project f(x) = x onto the constant function.

35 Summary

The ordinary vector dot product

a ⋅ b
(180)

has a continuous analogue for real functions:

        ∫
          b
⟨f,g⟩ =    f (x)g(x)dx.
         a
(181)

This inner product defines the geometry needed for Fourier analysis.

Two functions are orthogonal when

⟨f,g⟩ = 0.
(182)

The norm of a function is

       ∘ ------
∥f ∥ =   ⟨f,f ⟩.
(183)

The projection coefficient of f onto a nonzero basis function ϕ is

     ⟨f,ϕ⟩
c =  -----.
     ⟨ϕ, ϕ⟩
(184)

This coefficient is obtained by requiring the residual

r = f −  cϕ
(185)

be orthogonal to ϕ.

For an orthogonal collection {ϕn},

cm =  -⟨f,ϕm-⟩-.
      ⟨ϕm, ϕm⟩
(186)

FS03 now supplies the missing ingredient: it proves in detail that distinct sine and cosine harmonics are orthogonal over a complete period.

References

References

[1]   PhysicsLibrary, FS00: Fourier Series Roadmap, Motivation, and Learning Path.

[2]   PhysicsLibrary, FS01: Periodic Functions, Harmonics, and Why Fourier Series Exist.

[3]   E. Kreyszig, Advanced Engineering Mathematics, Wiley.

[4]   G. B. Arfken, H. J. Weber, and F. E. Harris, Mathematical Methods for Physicists, Academic Press.


"Inner Products of Functions" is owned by bloftin.
(view preamble)
View style:
Other names:  FS02
Also defines:  function inner product, orthogonal functions, function norm, normalized function, orthonormal functions, function projection, projection coefficient, weighted inner product, residual orthogonality
Keywords:  Fourier series, function inner product, dot product, orthogonality, norm, normalization, projection, weighted inner product, function space, basis functions, residual

Attachments:
Function Inner-Product, Orthogonality, and Projection Exercises (Example) by bloftin

Cross-references: period, Hilbert spaces, dimensions, physics applications, units, Weight, relation, theorem, formula, Fourier series, work, graph, magnitude, inner product, unit vector, algebraic, norms, scalar, operation, vectors, Fourier coefficients, FS03, identities, trigonometric orthogonality, vector projection, dot product, vector, function, harmonics, periodic, FS01
There are 7 references to this object.

This is version 1 of Inner Products of Functions, born on 2026-10-22.
Object id is 1519, canonical name is InnerProductsOfFunctions.
Accessed 17 times total.

Classification:
Physics Classification: 02.30.Nw (Fourier analysis)
 02.30.Lt (Sequences, series, and summability)
 02.10.Ud (Linear algebra)

Pending Errata and Addenda

None.

Discussion

No messages.

Interact