Linear Algebra: UNIT III: Inner Product Spaces

The Gram Schmidt Orthogonalization: Theorems Part 2 - Example Solved Problems

Important Example Solved Problems - Engineering Maths or Mathematics - The Gram Schmidt Orthogonalization: Theorems Part 2

THE GRAM SCHMIDT ORTHOGONALIZATION

THEOREM PART 2

WORKED EXAMPLE PROBLEMS


Example 13

Let V=P2(R). Define < f(x), g(x) > = ‒1ʃ1 f(t)g(t) dt. Prove that the polynomial f (x) = 1 + 2x+3x2 as a linear combination of the vectors in the orthonormal basis {u1, u2, u3} for P2(R).

Solution:

From Example 7

We know that β = { 1/√2, √(3/2)x, √(5/2).(3/2).(x2 ‒ 1/3) } is an orthonormal basis for P2(R).

Let f(x) P2(R).

f(x)= 3Σi=1 < f(x), ui > ui

 f(x) = < f(x), u1)u1 + < f(x), u2 > u2 + <f(x), u3 > u3


 

Example 14

Verify the Cauchy - Schwarz inequality for x = (1,−1,3) and y = (2, 0, −1).

Solution:

We know that the Cauchy Schwarz inequality is

 │< x, y> |  ≤ ||x|| ||y||

| x y | = | (1, − 1, 3) . (2, 0, − 1) | = | 2+0−3| = |−1| = 1

 || x || = √[(1)2 + (−1)2 + (3)2] = √[1+1+9] = √11.

 || y || = √[(2)2 + (0)2 + (− 1)2] = √[4 + 0 + 1] = √5

  | < x, y> | ≤ ||x|| ||y||

 1 ≤ √11.√5

 1 ≤ √55

 Cauchy − Schwarz inequality is satisfied.

 

Example 15

Show that the following function defines an inner product on R2, where u = (u1, u2) and v = (v1, v2) and

 <u, v> = u1v1 + 2u2v2.

Solution:

(i) Because the product of real numbers is commutative,

 <u, v> = u1v1+2u2v2 = v1u1+2v2u2 = (v, u)

(ii) Let W = (w1, w2). Then

 <u, v+w> = u1 (v1 + w1) + 2u2(v2+w2)

= u1v1 + u1w1 + 2u2v2 + 2u2w2

= (u1v1 + 2u2v2) + (u1w1 + 2u2w2)

= <u, v> + <u, w>

(iii) If c is any scalar, then

 c<u, v> = c(u1v1 + 2u2v2)

= (cu1)vi +2(cu2)v2 = <cu, v>

(iv) Because the square of a real number is non negative

 <v, v> = v12+2v22 ≥ 0

This expression is equal to zero if and only if v=0.

 ( (i.e.) if and only if v1 = v2 = 0)

 

Example 16

Show that the following function is not an inner product on R3, where u = (u1, u2, u3) and v = (v1, v2, v3) defined by

 <u, v> = u1v1 − 2u2v2 + u3v3

Solution:

We can easy prove that

(i) <x,y> = <y, x>

(ii) <x,y+z> = <x,y> + <x, z>

(iii) c<x, y> = <cx, y>

For the condition (iv)

(i.e.) <x, x> ≥ 0 and <x, y> = 0 if and only if x=0

Let x=(1, 2, 1) then

 <x, x> = (1)(1) − 2(2)(2) + (1)(1) = −6 which is less than 0.

  The function is not an inner product.

 

Example 17

Let f (x) = 1 and g(x)=x be functions in the vector space c [0, 1], with the inner product defined as

 <f,g>= aʃb f(x)g(x) dx

Verify that | <f,g> | ≤ ||ƒ|| || g ||

Solution:


There fore 0.5 ≤ 0.577

(i.e) | <f,g> | ≤ ||f|| ||g||               (0.5≤0.577).

 

Example 18

Show that the following set is a basis for R4.

S={(2, 3, 2,−2), (1, 0, 0, 1), (−1, 0, 2, 1), (−1, 2, −1, 1)}

Solution:

Let v1 = (2,3,2,−2), v2 = (1, 0, 0, 1), v3 = (−1, 0, 2, 1) and v4= (−1, 2, 1, 1). The set S has 4 non zero vectors. We can show that S is a basis for R4 by showing that it is an orthogonal set as follows.

v1.v2 = 2+0 +0−2=0

v1.v3 =−2+0+4−2=0

v1.v4 =−2+6−2−2=0

v2.v3 = −1+0+0+1=0

v2.v4 =−1+0+0+1=0

v2.v4 =1+0−2+1=0

So S is orthogonal and since orthogonal sets are linearly independent it is a basis for R4.

 

Example 19

Apply the Gram Schmidt orthonormalization process to the basis for V=R3 defined by β={(1, 1, 0), (1, 2, 0), (0, 1, 2)}

Solution:

Let y1 = (1, 1, 0), y2 = (1, 2, 0) and y3 = (0, 1, 2)

Let |Δ|=  = 1[4 − 0] − 1[2 − 0] + 0[0 − 0] = 2 ≠ 0.

 {y1, y2, y3} is linearly independent.

Let { x1, x2, x3 } be the orthogonal set.


 {x1, x2, x3} is an orthogonal set.

Let β′ = {x1,x2, x3 } be an orthogonal basis for R3.

Normalizing each vector in β' produces


So β′′ = { u1, u2, u3} is an orthonormal basis in R3.

 

Example 20

The vectors y1 = (0, 1, 0) and y2 = (1, 1, 1) span a plane in R3. By applying Gram−Schmidt orthonormalization process, find an orthonormal basis for this subspace.

Solution:

Let {x1, x2} be the orthogonal set.


 {x1, x2} be the orthogonal set.

Let β'= {x1, x2} be an orthogonal basis for R3.

Normalizing x1 and x2 produces the orthonormal set,


 So β" = {u1, u2 } is an orthonormal basis for R3.

 

Example 21

Apply the Gram−Schmidt orthonormalization process to the basis β = {1,x,x2} in P2, using the inner product

 <p,q> = -1ʃ1 p(x) q(x) dx

Solution:

Let β = { 1, x, x2 } = { x1, x2, x3 }

 Let x1 = y1 = 1


= x2 ‒ 1/3

Now by normalizing β' = { x1, x2, x3} we have


 

Example 22

Let R3 have the inner product space. Use Gram−Schmidt process to obtain the orthogonal basis β for span (S) and normalize the vectors in this basis to obtain an orthonormal basis β where

 S = {(1, 0, 1), (0, 1, 1), (1, 3, 3)} and x=(1, 1, 2).

Solution:

Let us consider S={ u1, u2, u3 }

where u1 = (1, 0, 1), u2 = (0, 1, 1) and u3 = (1, 3, 3)

Let v1 = u1 = (1, 0, 1)


Now <u2, v1> = < (0, 1, 1), (1, 0, 1) > = 0+0+1 = 1

 ||v1|| = √[12 + 02 + 12] = √2

 v2 = (0, 1, 1)   ‒  1/2(1, 0, 1)

= (−1/2, 1, 1/2)

 v2 = (−1/2, 1, 1/2)

Now v3

 <u3, v1> = < (1, 3, 3), (1, 0, 1) > = 1+0+3 = 4

  < u3, v2 > = < (1, 3, 3), ( −1/2, 1, 1/2) > = −1/2 + 3 + 3/2 = 4


form an orthogonal basis on R3.

The norms of these vectors are respectively.

|| v1 || = √2, || v2 || = √(3/2) and || v3 || = √[ 1/9 + 1/9 + 1/9 ] = √(1/3)

  The orthonormal basis for R3 is


The orthonormal basis for R3 is β ={y1, y2, y3 }

 β= { ( 1/√2, 0, 1/√2), ( ‒1/√6, 2/√6, 1/√6), ( 1/√3, 1/√3, ‒1/√3) }

 

Example 23

Let V=R4. Let S = {u1, u2, u3}. Define u1 = (1,−2,− 1, 3), u2 = (3, 6, 3, − 1), u3 = (1, 4, 2, 8) and x = (− 1, 2, 1, 1). Use Gram−Schmidt process to compute the orthogonal vectors and normalize these vectors in this basis to form an orthonormal basis.

Solution:

Given that S = { u1, u2, u3 }

where u1 = (1, −2, −1, 3), u2 = (3, 6, 3,−1) and u3 = (1, 4, 2, 8).

Let v1 = u1 = (1, −2, −1, 3).


Now <u2, v1> = < (3, 6, 3, 1), (1, −2, −1, 3) > = 3−12−3−3 = −15.

  || v1 || = √ [ 12 + (− 2)2 + (− 1)2 + (3)2 ] = √[ 1 +4 +1 + 9 ] = √15

v2 = (3, 6, 3, − 1) − (−15/15)(1, − 2, − 1, 3)

v2 = (3, 6, 3, 1) + (1, −2, −1, 3) = (4, 4, 2, 2)

Now v3 = 

 < u3, v1 > = < (1, 4, 2, 8), (1, − 2, − 1, 3) > = 1−8−2 + 24 = 15

  < u3, v2 > = < (1, 4, 2, 8), (4, 4, 2, 2) > = 4+16+4+16 = 40

 || v2 || = √ [ 42 + 42 + 22 + 22 ] = √[ 16 + 16 + 4 + 4 ] = √40

  v3 = (1, 4, 2, 8) − 15/15(1, −2, −1, 3) – 40/40(4, 4, 2, 2)

= (1, 4, 2, 8) + (−1, 2, 1, −3) + (−4,−4,−2,−2)

  v3 = (− 4, 2, 1, 3)

Thus v1 = (1,−2, 1, 3), v2 = (4, 4, 2, 2) and v3 = (−4, 2, 1, 3) form an orthogonal basis for R3.

The norms of these vectors are

 ||v1|| = √15, ||v2|| = √40 and ||v3|| = √[ (− 4)2 + 22 + 12 + 32 ] = √30.

  The orthonormal basis for R4 is β = {y1, y2, y3 } where y1, y2 and y2 are

 y1 = v1 / ||v1|| = 1/√15  (1, −2, −1, 3) = (  1/√15, ‒2/√15, ‒1/√15, 3/√15 )

y2 = v2 / ||v2|| = 1/√40  (4, 4, 2, 2) = (  4/√40, 4/√40, 2/√40, 2/√40 )

y3 = v3 / ||v3|| = 1/√30  (‒4, 2, 1, 3) = (  ‒4/√30, 2/√30, 1/√30, 3/√30 )

 

 Example 24

Let V=span (S). Define <f,g> = 0ʃπ ƒ (t) g(t) dt,

S = {sin t, cost, 1, t} and h(t)=2t+1. Use Gram−Schmidt process to compute the orthogonal vectors and normalize these vectors to an orthonormal basis.

Solution:

Let V = span (S) and S={u1, u2, u3, u4}. It is given that <f,g> = 0ʃπ f(t)g(t) dt, S = { sin t, cos t, 1, t } and h(t) = 2t + 1.

Let u1 = sint, u2 = cost, u3= 1 and u4 =t.

Now let v1 = u1 = sin t.



By using integration by parts for the R.H.S

Let u=t, dv=sin t dt, then du = dt, v=−cos t

We know that ʃudv = uv − ʃvdu


Again by applying integration by parts for the above integration

Let u=t, dv = cost dt then du= dt, v sin t.



 v1 = sint, v2 = cos t, v3 = 1/π [π − 4sin t] and v4 = 1/2π [2πt + 8cost − π2]

These are the orthogonal basis.

The norms of these vectors are

||v1|| = √sin t;

|| v2 || = √cost;

||v3|| = √ ( 1/π [π‒ 4sin t] ) and

|| v4 || = √ ( 1/2π [ 2πt + 8cos t ‒ π2] )

The orthogonal basis of these vectors are β= {y1, y2, y3, y4 }.

Where

y1 = v1 / ||v1|| ;

y2 = v2 / ||v2|| ;

y3 = v3 / ||v3|| ;

y4 = v4 / ||v4|| ;

 

Example 25

Let V=c[0,1]. Define <f,g> = 0ʃ1 f(t)g(t) dt. Let S = {u1, u2 } where u1 = t and u2= √t. Apply Gram−Schmidt process to compute the orthogonal vectors and normalize these vectors to an orthonormal basis.

Solution:

It is given that <f,g> =  0ʃ1 f(t)g(t) dt

Also it is given that S = { u1, u2 } = { t, √t }, u1 =t, and u2 = √t.

Let v1 = u1 =t.


 v1 = t and v2 = √t – 6/5t form an orthogonal basis.

The norms of these vectors are obtained as


The corresponding norms are given by

  ||v1|| = 1/√3 and ||v2||  = 1 / √50

 The orthonormal basis is β = {y1, y2}


 

Linear Algebra: UNIT III: Inner Product Spaces : Tag: maths, mathematics : - The Gram Schmidt Orthogonalization: Theorems Part 2 - Example Solved Problems


Linear Algebra: UNIT III: Inner Product Spaces



Under Subject


Linear Algebra

MA25C02 2nd Semester | 2025 Regulation



Related Subjects


English Essentials II

EN25C02 2nd Semester | 2025 Regulation | 2nd Semester 2025 Regulation



Linear Algebra

MA25C02 2nd Semester | 2025 Regulation


Transforms and its Applications

MA25C03 2nd Semester EEE Dept | 2025 Regulation | 2nd Semester 2025 Regulation


Applied Physics (CE) II

PH25C02 2nd Semester Civil, Agri Depts | 2025 Regulation | 2nd Semester 2025 Regulation


Applied Physics (CSIE) II

PH25C03 2nd Semester AIDS, CSE, IT, CSE(CY) Dept | 2025 Regulation | 2nd Semester 2025 Regulation


Applied Physics (EE) II

PH25C04 2nd Semester EEE Dept | 2025 Regulation | 2nd Semester 2025 Regulation


Applied Physics (ME) II

PH25C05 2nd Semester Mechanical Dept | 2025 Regulation | 2nd Semester 2025 Regulation


Applied Chemistry (CE) II

CY25C02 2nd Semester Civil Dept | 2025 Regulation | 2nd Semester 2025 Regulation


Applied Chemistry (ME) II

CY25C03 2nd Semester Mechanical Dept | 2025 Regulation | 2nd Semester 2025 Regulation


Electron Devices

EC25C01 2nd Semester ECE Dept | 2025 Regulation | 2nd Semester 2025 Regulation


Digital Principles and Computer Organization

CS25C06 2nd Semester AIDS, CSE, IT, CSE(CY) Dept | 2025 Regulation | 2nd Semester 2025 Regulation


Basic Electrical and Electronics Engineering

EE25C01 2nd Semester | 2025 Regulation | 2nd Semester 2025 Regulation


Basic Civil and Mechanical Engineering

GE25C01 2nd Semester EEE Dept | 2025 Regulation | 2nd Semester 2025 Regulation


Data Structures using CPlusPlus

CS25C05 2nd Semester ECE Dept | 2025 Regulation | 2nd Semester 2025 Regulation


Engineering Drawing

ME25C01 EEE, Mech, Agri, EEE Depts | 2025 Regulation | 2nd Semester 2025 Regulation


Data Structures and Algorithms

CS25C04 2nd Semester EEE Dept | 2025 Regulation


Circuits and Network Analysis

EC25C02 2nd Semester ECE Dept | 2025 Regulation | 2nd Semester 2025 Regulation


Engineering Mechanics

ME25C02 2nd Semester Mech, Civil, Agri Depts | 2025 Regulation | 2nd Semester 2025 Regulation


Object Oriented Programming (OOPs)

CS25C07 2nd Semester CSE, CSE(CY) Depts | 2025 Regulation | 2nd Semester 2025 Regulation