Assignment 3 Answer
Assignment 3 Answer
2. Find the least squares polynomial approximation of degree 2 to the functions and
intervals in Exercise 1.
3. Find the least squares polynomial approximation of degree 2 on the interval [−1, 1] for
the functions in Exercise 2.
1
Instructions:
2
ASSIGNMENT 3 SIN3005
GROUP 3
Sid + * d : S*In x de
a S de , S de Shnx
Parr th mtearotbn
Ca ln o) - 1) 7
4a, 2.9428- 0
26
44, + , =6. 9996
Slye te iltoneaus eauohn
4 + Ba, = S.88 76
, I666 S
Sub into 0
2.943 - 4(I.666s)
2
-I.861/
P , C) = 1.6665 - |.86
4. c),3]
Let . ondond o e othogona1 Polgnanals on Lo,bJ, hen
4, ) x - 8, whae
wge 8, a)[4, )]d« 2
wan le 72,
4 ) = (*-8,) ( ) - Ck sas (),
eoch xi Lob]
wee
fssune wlw) = t.
8, d
d , 3-1
PC) = - 2
S, « *-4x t4) d
a-2 d S-4x t4 d
S 4 +4 d
20-
lo +16
3
x(x3) dr
de
2)n-a)
-
, ce) = (z -
-4x +
Sdve us Sustwone
B2
s'(-a)dx
S
=C-aC*-tut) -a-)
, (a) -2
5e) S) ti,3]
, -2
In 3-In = 0.C493
a,
-d
Cn-a) de 4t4 dr
2 = -0.29s8
- 2 ( 3) + 4(2)
-0.2953+I.1409
S. 5) ) - x lh , Ci3]
, C)= 4 4wg a. d, w)
lh z de Cah ) -1>
s d
2.9438 = |419
2
4,SCa-a)xhx dx
Cx-a d
Sslve ush fhoe :
a,
3
- 13614