University of Florida/Egm6341/s10.team3.aks/HW6

From testwiki
Jump to navigation Jump to search

(3) Evaluate the rest of the coefficient of matrix

Ref Lecture Notes p.35-3

Problem Statement

Evaluate the remaining coefficient of Matrix by using degrees of Freedom


Solution

We have

Z(s)=i=03cisi=i=03Ni(s)di

such that

d1=Zi

d2=Zi˙

d3=Zi+1

d4=Z˙i+1

where

Z˙=dZdt=dZdsdsdt

such that dsdt=1h

We know the coefficient of matrix for first two rows from lecture notes p.35-3

[10000100]

Using the equations above we have

d3=Zi+1=Z(s=1)=c0+c1+c2+c3

d4=Z˙i+1=1hZ(s=1)=c1+2c2+3c3

Putting the results in matrix form we obtain

[1000010011110123]{c0c1c2c3}={ZiZ'iZi+1Z'i+1}

(4) Verify the inverse of matrix using Matlab

Ref Lecture Notes p.35-4

Problem Statement

Find the inverse of given Matrix

A =

    1     0     0     0
    0     1     0     0
    1     1     1     1
    0     1     2     3

Solution

 

%Defining Matrix in Matlab%

>> A = [1 0 0 0 ; 0 1 0 0 ; 1 1 1 1 ; 0 1 2 3]

A =

     1     0     0     0
     0     1     0     0
     1     1     1     1
     0     1     2     3

%Taking Inverse of matrix%
>> B = inv (A)

B =

     1     0     0     0
     0     1     0     0
    -3    -2     3    -1
     2     1    -2     1

which is same as the one given on p.35-4

Hence Verified

(5) Identify basis functions and plot them

Ref Lecture Notes p.35-4

Problem Statement

Identify the basis functions

Ni(s)

where i=1,2,3,4

Solution

We have

z(s)=i=03cisi=i=14Ni(s)di

Expanding above we obtain

N1d1+N2d2+N3d3+N4d4=C0s0+C1s1+C2s2+C3s3

=C0+C1s1+C2s2+C3s3

d1=zi=z(s=0)=C0

d2=z˙i=z˙i(s=0)=C1

d3=zi+1=zi+1(s=1)=C0+C1+C2+C3

d4=z˙i+1=C1+2C2+3C3

Inserting above values in first eq we obtain

(N1+N3)C0+(N2+N3+N4)C1+(N3+2N4)C2+(N3+3N4)C3=C0+C1s+C2s2+C3s3

Comparing both LHS and RHS we obtain

N1+N3=1

N2+N3+N4=s

N3+2N4=s2

N3+3N4=s3

Solving above we obtain basis functions

N1=13s2+2s3

N2=s32s2+s

N3=3s22s3

Below is the plot of above basis functions

File:Basis function plot.jpg

N4=s3s2

(6) Show that s = s(t)

Ref Lecture Notes p.36-1

Problem Statement

We have to show that s is the function of t (s = s(t) )

Solution

We have (from p.35-1 eq (1))

t(s)=(1s)ti+sti+1

=ti+s(ti+1ti)

butdsdt=1h

ordtds=h

so ti+1ti=ti+1ti10=h

t(s)=ti+hs hs=tti s=(tti)h s=s(t)

Hence Proved

Template:CourseCat