Inner Product Spaces in Engineering Math
Inner Product Spaces in Engineering Math
Classification
Datasets
3
Wen-Hsien Fang Engineering Mathematics (II) 3/85
4.0 Two Extra Measures
• ANGLE between two vectors
- Dot product operation (formula):x y x x +y y
1 2 1 2
x1
y
- Dot product operation (physical meaning): x 1
x2
(cosine formula for the dot product).
y
2
0 y
x y x y cos
Proof : cos cos( x y ) cos( x ) cos( y ) sin( x )sin( y )
x1 y1 x2 y2 x1 y1 x2 y2 xy
=
x y x y x y x y
or, equivalently, x y x y cos
component form
polar form 4
Wen-Hsien Fang Engineering Mathematics (II) 4/85
4.0 Two Extra Measures
Example 4.0-1
3 1
Determine the angle between and ?
4 7
Solution
1
3, 4
7 1
cos
3 4 (1) 7
2 2 2 2
2
=
4
5
Wen-Hsien Fang Engineering Mathematics (II) 5/85
4.0 Two Extra Measures
denoted by x y
Cauchy-Schwarz
2. Since x y = x y cos , inequality
x y x y cos x y
x
3. Unit vector (vector of unit length):
x
6
Wen-Hsien Fang Engineering Mathematics (II) 6/85
4.0 Two Extra Measures
Remarks:
4. Geometric Point of View
x y x y cos . Assume x y =1,
x
x y large small
y
x and y are aligned and pointing in the same direct
x y small large
x and y are less aligned and
7 pointing in
different directions x
y
7
Wen-Hsien Fang Engineering Mathematics (II) 7/85
4.0 Two Extra Measures
T
T b b a b
P =a 2b
b b b
8
Wen-Hsien Fang Engineering Mathematics (II) 8/85
4 . 0 Tw o E x t r a M e a s u r e s
or w1 x w2 y w3 z w1 x0 w2 y0 w3 z0
b
w1 , w2 , w3 x, y , z b 0
T
wT
b
x0
w x w x0
T T y =x
0 0
w xb
T
z0
wT x b 0
w w 10
Wen-Hsien Fang Engineering Mathematics (II) 10/85
4 . 0 Tw o E x t r a M e a s u r e s
Example 4.0-2
Find the distance from [4,1,1]T to the plane x+2y+2z=1.
Solution
From the above, the normal vector w [1, 2, 2] . T
i 1
vn wn
is a legitimate inner product in R n .
13
Wen-Hsien Fang Engineering Mathematics (II) 13/85
4.1.1 Inner Product
P3. v w , u v w u
n n n
(vi wi )ui vi ui wi ui v, u w, u
i 1 i 1 i 1
n n
P4. rv, w ( rv ) w rvi wi r vi wi r v, w
i 1 i 1
n
P5. v, v v 0 if v 0; 0 if v 0
2
i
i 1
14
Wen-Hsien Fang Engineering Mathematics (II) 14/85
4.1.1 Inner Product
Remarks:
1. The inner product (dot product) in Ex.4-1-1 is referred
to as the standard inner product in R n .
n
There are other possible inner products for R as long as
they satisfy the axioms of being an inner product.
if wi 0 i 15
Wen-Hsien Fang Engineering Mathematics (II) 15/85
2. The cosine formula for the dot product (and the
concept of projection) extends naturally to Euclidean
spaces of any dimension (not just 2D or 3D), i.e.
x, y x y x y cos
or, equivalently,
xy x y
cos ( 1 based on C-S )
x y x y
Here cos , referred to as cosine similarity,
provides a measure of the "similarity" of x and y.
The dot product helps measure a vector's projection
onto another and their directional alignment.
16
Wen-Hsien Fang Engineering Mathematics (II) 16/85
4.1.1 Inner Product
17
Wen-Hsien Fang Engineering Mathematics (II) 17/85
4.1.1 Inner Product
An Example
Table 1 Frequency of Key Words
Modules
Key words M1 M2 M3 M4 M5 M6 M7 M8
determinants 0 6 3 0 1 0 1 1
eigenvalues 0 0 0 0 0 5 3 2
linear 5 4 4 5 4 0 3 3
matrices 6 5 3 3 4 4 3 2
numerical 0 0 0 0 3 0 4 3
orthogonality 0 0 0 0 4 6 0 2
spaces 0 0 5 2 3 3 0 1
systems 5 3 3 2 4 2 1 1
transformations 0 0 0 5 1 3 1 0
vector 0 4 4 3 4 1 0 3
18
Wen-Hsien Fang Engineering Mathematics (II) 18/85
4.1.1 Inner Product
• In this example:
T
0.000 0.594 0.327 0.000 0.100 0.000 0.147 0.154 0.000
0.000 0.000 0.000 0.000 0.000 0.500 0.442 0.309 0.000
0.539 0.396 0.436 0.574 0.400 0.000 0.442 0.463 0.000
0.647 0.495 0.327 0.344 0.400 0.400 0.442 0.309 0.000
y QT x 0.000 0.000 0.000 0.000 0.300 0.000 0.590 0.463 0.000
0.000 0.000 0.000 0.000 0.400 0.600 0.000 0.309 0.577
0.000 0.000 0.546 0.229 0.300 0.300 0.000 0.154 0.577
0.539 0.297 0.327 0.229 0.400 0.200 0.147 0.154 0.000
0.000 0.000 0.000 0.574 0.100 0.300 0.147 0.000 0.000
0.000 0.396 0.436 0.344 0.400 0.100 0.000 0.463 0.577
0.000
0.229
0.567 The search vector x is closest to q5 and hence
0.331 module 5 is the best one that matches our
0.635
0.577
0.000 Search criteria. Modules 1 and 7 do not have
0.535
any of the search words and consequently
y1 q1T x 0 and y7 qT7 x 0 21
Wen-Hsien Fang Engineering Mathematics (II) 21/85
4.1.1 Inner Product
1
p, q p ( x)q ( x)dx
0
24
Wen-Hsien Fang Engineering Mathematics (II) 24/85
4.1.1 Inner Product
g ( x)
g ( x)
f, g large when f ( x ) and g ( x ) are
more "similar"
25
Wen-Hsien Fang Engineering Mathematics (II) 25/85
4.1.1 Inner Product
Proof P2 P3 P2
(1) u, v w v w, u v, u w, u u, v u, w
P2 P4 P2
(2) w , rv rv, w r v, w r w , v
(3)
(3) v, 0 v,0 0 0 v, 0 0, Similarly 0, v 0
26
Wen-Hsien Fang Engineering Mathematics (II) 26/85
4.1.1 Inner Product
(1) r1v1 r2 v 2 rn v n , w r1 v1 , w r2 v 2 , w
rn v n , w
(2) v, s1w1 s2 w 2 sm w m s1 v, w1 s2 v, w 2
sm v, w m
27
Wen-Hsien Fang Engineering Mathematics (II) 27/85
4.1.1 Inner Product
Example 4.1-4
Solution
6 u, u + u, v 2 v, v
28
Wen-Hsien Fang Engineering Mathematics (II) 28/85
4.1.2 Norms and Distance
We can extend the concept of a vector's magnitude in Euclidean
space to an arbitrary vector space through the norm, which
measures its length or "size."
Definition:
A vector space V is said to be a normed linear space if to
each vector vV there is associated a real number ||v||
called the norm of v, satisfying
I. ||v|| 0 for every vector v in V (Positivity)
II. ||v|| = 0 if and only if v=0
III. ||rv|| = |r| ||v|| (Homogeneity)
IV. ||v+w|| ||v|| + ||w|| for all v, wV (Triangle
inequality)
Wen-Hsien Fang Engineering Mathematics (II)
29
29/85
4.1.2 Norms and Distance
x 2 x 2 if x R 2
1 2
x xx x, x =
1
x 2
x2
2
x3
2
if x R 3
n
if the dot product is employed for the inner product for R
30
Wen-Hsien Fang Engineering Mathematics (II) 30/85
4.1.2 Norms and Distance
Definition:
If V is an inner product space, then the norm of a
vector v can be defined by
v v, v , for all v V
Note: v, v 0, so v is a real number
E.g .
v1
v
The length of v 2
in R n is v v, v v12 v22 vn2
v
n 1
The length of p in Ex. 4-1-2 is p <p, p >
0
p 2 ( x )dx
31
Wen-Hsien Fang Engineering Mathematics (II) 31/85
4.1.2 Norms and Distance
Proof:
I & II v v, v 0, =0 iff v 0
III rv rv, rv r 2 v, v = r v
• 1
We can construct a unit vector by v v
v
1 1 1
v v , v
2
v, v 2
v, v 1
v v v
P4+Theorem
33
Wen-Hsien Fang Engineering Mathematics (II) 33/85
4.1.2 Norms and Distance
Example 4.1-5
1
1
Find a unit vector v that is a positive multiple of v
2
0
in R 4 .
Solution
1
v 1 ( 1) 2 6 v v
2 2 2
6
34
Wen-Hsien Fang Engineering Mathematics (II) 34/85
4.1.2 Norms and Distance
35
Wen-Hsien Fang Engineering Mathematics (II) 35/85
4.1.2 Norms and Distance
Proof:
Let x be any scalar, then
0 xu v, xu v x u, u 2 x u, v v, v
2
Axiom P.5
x u x( 2 u, v ) v (*)
2 2 2
a b c
2 2
Let a u , b 2 u, v , and c v
2 2
b 4ac 0 4( u, v ) 4 u
2 2
v 0
2 2 2
u, v u v u, v u v
If equality holds in (*), then v xu, need xu v , xu v 0
36
Wen-Hsien Fang Engineering Mathematics (II) 36/85
4.1.2 Norms and Distance
Show that
1 1 2 2
v w v w vn n
w 1 2
v
2
2
v 2
vn 1
2
w 2
w2
2
wn
2
Proof
v1 w1
v w 2 2 2
Take v 2 , w 2 in R n
v, w v w
v w
n n
37
Wen-Hsien Fang Engineering Mathematics (II) 37/85
4.1.2 Norms and Distance
Solution
2 2 2
f,g f g
38
Wen-Hsien Fang Engineering Mathematics (II) 38/85
4.1.2 Norms and Distance
Definition:
The distance between v and w in an inner product space
V can be defined by d(v, w)= ||v – w||.
v vw
w
39
Wen-Hsien Fang Engineering Mathematics (II) 39/85
4.1.2 Norms and Distance
Example 4.1-8
x1 y1
Let x , y be any two vectors in R .
2
x 2 y2
If standard inner product is used, then
x1 y1 x2 y2
2 2
d(x, y )= x y
40
Wen-Hsien Fang Engineering Mathematics (II) 40/85
4.1.2 Norms and Distance
Example 4.1-9
Let the inner product of C 0,1 be defined as
1
f , g f ( x) g ( x) dx then determine (a) f (b) f g ,
0
where f ( x) x, g ( x) x 2 .
Solution
1 1 1
(a) f f ,f f ( x) dx x dx
f ( x) 2
0
x x
0 3
(b) f g f g, f g
1 1
[ f ( x ) g ( x )][ f ( x) g ( x)]dx
0 30
2
x x
41
Wen-Hsien Fang Engineering Mathematics (II) 41/85
Organization
• Definition of
What? Which ? • Properties
orthogonal set
Orthogonality
• Applications • Gram-Schmidt
Where? How?
(LS) orthogonalization
42
Wen-Hsien Fang Engineering Mathematics (II) 42/85
4.2 Orthogonality (I) –Basic Concepts
• Recall that in R2 (R3 ), the angle between two vectors is a
right angle if their inner product (scalar product) is 0.
x
<x, y>=0..orthogonal
E.g. x, y = x y cos (perpendicular)
y
(a) The vector 0 is orthogonal to every vector in R2.
(b) The vectors [3, 2]T and [-4, 6]T are orthogonal in R2.
(c) The vectors [2, -3, 1]T and [1, 1, 1]T are orthogonal
in R3.
43
Wen-Hsien Fang Engineering Mathematics (II) 43/85
4.2 Orthogonality (I) –Basics
Definition:
Let {e1, e2, ..., en }be nonzero vectors in an inner product
space V. If <ei, ej> = 0 whenever i j, then {e1, e2, ..., en}
is said to be an orthogonal set of vectors.
44
Wen-Hsien Fang Engineering Mathematics (II) 44/85
4.2 Orthogonality (I) –Basics
Example 4.2-1
1 2 4
The set 1 , 1 , 5 is an orthogonal set in R .
3
1 3 1
Solution
1 2 1 4
1 , 1 1 2 1 1 1 (3) 0 1 , 5 1 4 1 (5) 1 1 0
1 3 1 1
2 4
1 , 5 2 4 1 ( 5) (3) 1 0
3 1
45
Wen-Hsien Fang Engineering Mathematics (II) 45/85
4.2 Orthogonality (I) –Basics
46
Wen-Hsien Fang Engineering Mathematics (II) 46/85
4.2 Orthogonality (I) –Basics
Theorem:
Let {e1 , e 2 , , e n } be an orthogonal set of vectors.
(1) {r1e1 , r2e 2 , , rne n } is also orthogonal for any
choice of ri 0 in R.
1 1 1
(2) { e1 , e2 , , e n } is an orthonormal set.
e1 e2 en
Proof :
(1) <ri ei , rj e j > ri rj <ei , e j >=0 , for i j
{e1 , e 2 , , e n } orthogonal.
0 ,i j
1 1
(2) { ei , e j }= 1
ei ej ei , ei 1 , i j
e 2
i
47
Wen-Hsien Fang Engineering Mathematics (II) 47/85
4.2 Orthogonality (I) –Basics
1 2
1 1 1 1
u1 v1 1 , u2 v2 1
v1 3 v2 14
1 3
4
1 1
u3 v3 5
v3 42
1 48
Wen-Hsien Fang Engineering Mathematics (II) 48/85
4.2 Orthogonality (I) –Basics
Example 4.2-3
Show that {e1 =[1, 1, 1, 1]T , e 2 =[1, 0, 1, 2]T , e3 =[ 1, 0, 1, 0]T
e 4 =[ 1, 3, 1, 1] } is orthogonal in R (with the dot product),
T 4
Solution
ei , e j 0 for all i j
e1 12 12 12 (1) 2 =2 , e 2 12 02 12 22 6
e3 (1) 2 02 12 0 2 2, e4 (1) 2 32 (1) 2 12 2 3
1 1 1 1
{ e1 , e2 , e3 , e 4 } are the corresponding orthonormal set.
2 6 2 2 3
49
Wen-Hsien Fang Engineering Mathematics (II) 49/85
4.3 Orthogonality (II) –Properties
Proof:
|| e1 e2 e n |2 e1 e 2 e n , e1 e 2 e n
<e1 , e1 > <e2 , e 2 > e n , e n ei , e j
i j
ei , e j 0 , for i j
|| e1 e2 e n || || e1 || || e 2 || || e n ||
2 2 2 2
51
Wen-Hsien Fang Engineering Mathematics (II) 51/85
4.3 Orthogonality (II) –Properties
Theorem:
If {e1, e2, ..., en} is an orthogonal set of nonzero vectors
in an inner product space V, then e1, e2, ..., en are
linearly independent.
Proof:
Let r1e1 + r2e2 + . . . + rnen = 0
<ej , r1e1 + r2e2 + . . . + rnen> = 0 for all j
r1<ej, e1> + r2<ej, e2> + ...+ rn<ej, en> = 0
rj ||ej||2 = 0 rj = 0 for all j
e1, e2, ..., en are linearly independent.
52
Wen-Hsien Fang Engineering Mathematics (II) 52/85
4.3 Orthogonality (II) –Properties
Remarks:
1. Orthogonality is a stronger statement than linear
independence, orthogonality means that the vectors
are not only linear independent but also orthogonal
to each other.
e.g. w
linearly independent but not orthogonal
v
53
Wen-Hsien Fang Engineering Mathematics (II) 53/85
4.3 Orthogonality (II) –Properties
Orthogonality is Good!!!
54
Wen-Hsien Fang Engineering Mathematics (II) 54/85
4.3 Orthogonality (II) –Properties
Proof:
ri || ei ||
2
v, ei
ri 2
|| ei ||
56
Wen-Hsien Fang Engineering Mathematics (II) 56/85
4.3 Orthogonality (II) –Properties
Solution
The task is to find r1 , r2 , r3 , and r4 such that v r1e1 r2e 2 r3e3 r4e 4 .
v, e1 a b c d v, e 2 a c 2d
r1 2
, r2 2
|| e1 || 4 || e 2 || 6
v, e3 a c v, e 4 a 3b c d
r3 2
, r4 2
|| e3 || 2 || e 4 || 12
57
Wen-Hsien Fang Engineering Mathematics (II) 57/85
4.4 Orthogonality (III) –Geometric
Interpretation of Fourier Series
Consider an inner product space C[0,2π] with
f ( x ), g ( x) 02 f ( x) g ( x) dx
It can be shown that
1 1 1 1 1
, cos x,, cos nx, sin x, , sin nx,
2
is an orthonormal basis of C[0,2π].
58
Wen-Hsien Fang Engineering Mathematics (II) 58/85
4.4 Orthogonality (III) –Geometric Interpretation of FS
1 1 1 1
f ( x ) = <f ( x ), < f ( x) , cos x cos x
2 2
1 1
< f ( x) , cos nx cos nx
1 1 1 1
< f ( x) , sin x sin x <f ( x ) , sin nx sin nx
1 2 1 2 1 1
= 0 f ( x) dx 0 f ( x) cos x dx cos x
2
2
1 2 1 2 f ( x ) cos xdx cos x
0 f ( x )dx
2 0
2 1 1 2 1 1
0 f ( x) sin x dx sin x 0 f ( x) sin nxdx sin nx
1 2 f ( x )sin xdx sin x 1 2 f ( x )sin nxdx sin nx
0 0
Fourier Series Expansion
59
Wen-Hsien Fang Engineering Mathematics (II) 59/85
4.4 Orthogonality (III) –Geometric Interpretation of FS
Remarks:
Importance of Fourier Analysis
1. Representation of Periodic Signals – Almost all periodic
functions can be expressed as a sum of sine and cosine functions,
forming a basis.
1. Physical Interpretation – The basis functions correspond to
harmonics with distinct frequencies.
2. Easy Computation of Expansion Coefficients– Since the basis is
orthogonal, expansion coefficients are easily determined.
3. Convenient Analysis in Linear Systems– Harmonic components
behave predictably in linear time-invariant systems (see Chap. 6).
61
Wen-Hsien Fang Engineering Mathematics (II) 61/85
4.5 Orthogonality (IV): G-S Orthogonalization
v2
e1 v1 e1 v1
e2
e 2 v 2 v1
v2 , e1
2
e1
|| e1 ||
? e 2 , e1 0 v 2 e1 , e1 0
e2
v 2 , e1 e1 , e1 0
v 2 , e1
2
e1 , e1 || e1 || 2
|| e1 || 62
Wen-Hsien Fang Engineering Mathematics (II) 62/85
4.5 Orthogonality (IV): G-S Orthogonalization
63
Wen-Hsien Fang Engineering Mathematics (II) 63/85
4.5 Orthogonality (IV): G-S Orthogonalization
Proof:
For all 1 i m 1
m 1 v , e
e m , ei v m m
2
j
e j , ei
j 1 ej
m 1 vm , e j
v m ,ei 2
e j ,ei
j 1 ej
e 2 , j i
v m ,ei v m ,ei 0
j
0 , j i
64
Wen-Hsien Fang Engineering Mathematics (II) 64/85
4.5 Orthogonality (IV): G-S Orthogonalization
Example 4.5-1
Given the orthogonal set 1,0, 2 , 2,3,1 in R ,
3
Solution v ,e v ,e
e v 3
e 2
1
e 3
2
2
e e
3 3 1 2
1 2
1 2
(1,0,0) (1, 0, 2) (2,3,1)
5 14
1
(35, 0, 0) (7, 0, 14) (10,15,5)
35
1 3
(18, 15,9) (6, 5,3)
35 35 65
Wen-Hsien Fang Engineering Mathematics (II) 65/85
4.5 Orthogonality (IV): G-S Orthogonalization
Examp1e 4.5-2
U span v1 (1,1, 1, 1), v 2 (3, 2,0,1), v 3 (1,0,1,0)
Find an orthogonal basis for U.
Solution
e1 v1 (1,1, 1, 1)
v 2 , e1 4
e2 v 2 2
e1 (3, 2, 0,1) (1,1, 1, 1) (2,1,1, 2)
e1 4
v3 , e1 v3 , e2 0 3 1
e3 v 3 2
e1 2
e2 v3 e1 e 2 (4, 3,7, 6)
e1 e2 4 10 10
1
(1,1, 1, 1), (2,1,1, 2), (4, 3,7, 6) is an orthogonal basis for U
10
66
Wen-Hsien Fang Engineering Mathematics (II) 66/85
4.5 Orthogonality (IV): G-S Orthogonalization
Example 4.5-3 1
Consider V P4 with the inner product p, q
1
p ( x) q( x) dx.
If the Gram-Schmidt algorithm is applied to the basis 1, x , x 2 3
,x ,
Solution
3
show that the result is the orthogonal basis 1, x, 1 (3x 2 1), 1 (5 x3 3x)
5
Take e1 1
x , e1 0 the sequence of
e2 x 2
e1 x e1 x Legendre polynomials
e1 2
2
2 x 2 , e1 x2 , e2 2 3 0 1
e3 x e1 e2 x 1 x (3 x 2 1)
e1
2
e2
2 2 2 3
3
1
e 4 (5 x 3 3 x )
Wen-Hsien Fang
5 Engineering Mathematics (II)
67
67/85
Adrien-Marie Legendre
• 阿德里安-馬里·勒讓德(1752.09.18~1833.01.10)
,法國數學家。
• 他的主要貢獻在統計學、數論、抽象代數與數學分
析上。勒讓德的主要研究領域是分析學(尤其是橢圓
積分理論)、數論、初等幾何與天體力學,取得了許
多成果, 導致了㇐系列重要理論的誕生。勒讓德是
橢圓積分理論奠基人之㇐。勒讓德對數論
的主要貢獻是二次互反律,這是同餘式
論中的㇐條基本定理。他還是解析數論
的先驅者之㇐,歸納出了素數分布律,
促使許多數學家研究這個問題。其他貢
獻包括:橢圓函數論、最小二乘法、
測地線理論等。
68
Wen-Hsien Fang Engineering Mathematics (II) 68/85
4.5 Orthogonality (IV): G-S Orthogonalization
Example 4.5-4
Consider C[0,3], with f ( x ), g ( x ) 03 f ( x) g ( x) dx
Use the Gram-Schmidt algorithm to get an orthogonal set e1 , e 2 , e3
from v1,v2,v3
1 v1 v3
1
3 -1 2 3
1 v2
1
69
Wen-Hsien Fang Engineering Mathematics (II) 69/85
4.5 Orthogonality (IV): G-S Orthogonalization
Solution 1 e1 e2
2/3
e1 v1 1 3
3 -1/3
1
v 2 , e1 01dx
e2 v 2 2
e1 v2 3 e1 e3
e1 0 1dx
1
v 3 , e1 v3 , e2 1 2 3
e3 v 3 e1 e2
e1
2
e2
2 -1
1 2 dx 2 ( 2 )dx 3 (1 ) dx
021dx 031dx 3
0 1
3
2
3
v3 e1 e2
1 ( 2 ) 2 dx 3 (1 ) 2 dx
3
0 1dx
0 1
3 3
1
v3 e1 e 2
3
70
Wen-Hsien Fang Engineering Mathematics (II) 70/85
4.6 Orthogonality (V) –
Projection Theorem
ProjU (v ) ~U
71
Wen-Hsien Fang Engineering Mathematics (II) 71/85
4.6 Orthogonality (V) – Projection Theorem
72
Wen-Hsien Fang Engineering Mathematics (II) 72/85
4.6 Orthogonality (V) – Projection Theorem
Proof : v
v ProjU (v)
Let u be any vectors in U ,
ProjU (v )
2
2
v u = (v projU (v ))+(projU (v ) u )
U U
2 2 2
v projU (v ) projU (v ) u v projU (v )
73
Wen-Hsien Fang Engineering Mathematics (II) 73/85
4.6 Orthogonality (V) – Projection Theorem
(8.75, 4.34) x
City 1 City 2 City 3 City 4
In dollars per bottle
x 6.25 6.75 8.00 8.75
y 6.03 5.62 4.78 4.34
74
Wen-Hsien Fang Engineering Mathematics (II) 74/85
4.6 Orthogonality (V) – Projection Theorem
Solution
a 6.25b 6.03 (City1)
a 6.75b 5.62 (City2)
y a bx
# of eqns.=# of measurements
a 8.00b 4.78 (City3)
a 8.75b 4.34 (City4)
Choose a line such that sum of the squares of the vertical distance
from the points to the line y ax b is minimum.
1 6.25 6.03
1 6.75 a 5.62
1 8.00 4.78
b
1 8.75 x 4.34
A b
76
Wen-Hsien Fang Engineering Mathematics (II) 76/85
4.6 Orthogonality (V) – Projection Theorem
AxLS
a 0 ~ span a1,,an
T
1
(b AxLS )
aTn 0
AT
77
Wen-Hsien Fang Engineering Mathematics (II) 77/85
4.6 Orthogonality (V) – Projection Theorem
A (b AxLS ) 0 A b A AxLS
T T T
Normal equation
1
x LS ( A A ) A b
T T
1 6.25 6.03
1 6.75 5.62
A , b
1 8.00 4.78
1
8.75
4.34
78
Wen-Hsien Fang Engineering Mathematics (II) 78/85
4.6 Orthogonality (V) – Projection Theorem
約翰·卡爾·弗里德里希·高斯(1777~1855)
• 德國著名數學家、物理學家、天文學家、大地
測量學家。高斯被認為是歷史上最重要的數學
家之㇐,有「數學王子」的美譽。
• 19歲的高斯得到了㇐個數學史上極重要的結果,
就是《正十七邊形尺規作圖之理論與方法》。
• 穀神星於1801年被義大利天文學家皮亞齊發現,
但因病他耽誤了觀測,從而失去了這顆小行星的
軌跡。高斯通過以前3次的觀測數據,在最小
平方法基礎上創立的測量平差理論 的幫助下,
GAUSS 計算出了穀神星的運行軌跡。奧地利天文學家
海因里希·歐伯斯根據高斯計算出的軌道成功地
發現了穀神星。
79
Wen-Hsien Fang Engineering Mathematics (II) 79/85
4.6 Orthogonality (V) – Projection Theorem
80
Wen-Hsien Fang Engineering Mathematics (II) 80/85
4.6 Orthogonality (V) – Projection Theorem
Remarks:
• Find a least squares curve (a linear function, a
polynomial, a trigonometric polynomial, etc.) fits to a
set of data points in the plane.
E.g. (Polynomial fitting)
P1
y a0 a1x a2 x + aP1x
2
81
Wen-Hsien Fang Engineering Mathematics (II) 81/85
4.6 Orthogonality (V) – Projection Theorem
82
Wen-Hsien Fang Engineering Mathematics (II) 82/85
4.6 Orthogonality (V) – Projection Theorem
Remarks:
In general, we can only find ProjU(v) by the
property < v – ProjU(v) , u > = 0 for all u U.
However, if we have an orthogonal basis for U,
then we can easily find ProjU(v).
Theorem (Projection (Approximation) Theorem)(II):
Assume {e1, e2, …, em} is an orthogonal basis for U,
then
v1 , e1 v1, e 2 v1 , e m
ProjU ( v ) 2
e1 2
e2 2
em
e1 e2 em
83
Wen-Hsien Fang Engineering Mathematics (II) 83/85
4.6 Orthogonality (V) – Projection Theorem
Proof :
projU (v ) U ,and e1 ,, e m is an orthogonal basis
projU (v )=1e1 me m
From the above, < v (1e1 me m ),ei >=0, i =1,...,m
v, e1
Take i 1 1 2
e1
v, e m
Take i m m 2
em
84
Wen-Hsien Fang Engineering Mathematics (II) 84/85
4.6 Orthogonality (V) – Projection Theorem