University of Florida/Egm4313/s12.team8.dupre/R7.3

From testwiki
Jump to navigation Jump to search

Template:Big3

Problem Statement

Find:

(a) The scalar product <f,g>.

(b) The magnitude of f and g.

(c) The angle between f and g.

For:

(1) f(x)=cos(x),g(x)=x for 2x10.

(2) f(x)=12(3x21),g(x)=12(5x23x) for 1x1.

Solution (1)

(a) We know that <f,g>=abf(x)g(x)dx

Plugging in our given f and g functions:

210xcos(x)dx (7.3.1)

Integrating (7.3.1) by parts where:

du=cos(x),v=x,u=sin(x),dv=dx

We find:

vdu=vuudv

xcosx=xsinxsinxdx

This leads us to the solution:

<f,g>=xsinx+cosx+C(7.3.2) where C=0.

(b) We know that the magnitude of a function is obtained as follows:

f=<f,f>=[abf2(x)dx]1/2

Plugging our given values in and using trigonometric identities:

f(x)=[210cos2(x)dx]1/2=[210(12(cos(2x))+12)dx]1/2 (7.3.3)

Using u substitution on (7.3.3) to integrate, where:

u=2x,du=2dx

We find:

14210cos(u)du=21012dx

This leads to:

[12(sinxcosx+x)210]1/2

And allows us to solve for our answer:

f(x)=2.47

Doing the same process (without needing to integrate by parts) for our given g function:

g(x)=[210x2dx]1/2

g(x)=[x33210]

Giving us our final magnitude of:

g(x)=18.33

(c) We know that:

cos(θ)=<f,g>fg(7.3.4)

Plugging in solved values shows:

cos(θ)=7.68(2.478)(18.33)

Leading us to:

θ=1.74radians 

Solution (2)

(a) We know that <f,g>=abf(x)g(x)dx

Plugging in our given f and g functions:

1211(3x21)(5x33x)dx (7.3.5)

Integrating (7.3.5), we find:

12[156x6144x4+32x211]

This leads us to the solution:

<f,g>=0

(b) We know that the magnitude of a function is obtained as follows:

f=<f,f>=[abf2(x)dx]1/2

Plugging our given values in and using trigonometric identities:

f(x)=[11(32x212)2dx]1/2=[920x5x32+x411]1/2 (7.3.7)

This allows us to solve for our answer:

f=.632456

We now obtain the magnitude of the g function in the same way, as follows:

g(x)=[11(52x332x)2dx]1/2=[2528x732x5+34x3]11]1/2

Which leads up to our final magnitude:

g(x)=.5345  

(c) We know that:

cos(θ)=<f,g>fg(7.3.4)

Plugging in (7.3.8) and (7.3.9) shows:

cos(θ)=0(.632456)(.5345)

Leading us to:

θ=π2 radians

Template:CourseCat