You are on page 1of 3

De La Salle University - Dasmariñas

College of Engineering, Architecture, and Technology


Electronics Engineering Department

T-ECET220 – Advanced Engineering Mathematics


Assignment # ___

Name: Francisco, Hidalgo, Manalo, F., Panes, Rosales, Tepora Date: May 31, 2020
CYS: ECE22 Instructor: Engr. Phoebe Sapitan

Problem #1

In a certain type of metal test specimen, the normal stress on a specimen is known to be functionally
related to the shear resistance. Find for the regression line and estimates at x=30 for the following:
a. Linear regression
b. Logarithmic regression
c. Exponential regression
d. Power regression
e. Inverse regression
f. Polynomial regression
Solution

We can conclude the following:

TYPE EXPRESSION AT x = 30
Linear Regression ŷ = 29.2819 − 0.2060𝓍 23.1026
Logarithmic Regression ŷ = 40.9548 − 5.2308 ln𝓍 23.1640
−3
Exponential Regression ŷ = 26.7529𝑒 (−4.6637𝑥10 )𝓍 23.2599
Power Regression ŷ = 34.8293𝑥 −0.1183 23.2928
132.2039
Inverse Regression ŷ = 18.8142 + 23.2210
𝓍
Polynomial Regression ŷ = 4.9800 + 1.6914𝓍 − 0.0368𝑥 2 22.5734

Sheet ____ of ____


Problem #2

Use NDD and LIP to determine the polynomial that interpolates at x (-5, 3, 0, 2, 4) function 𝑓(𝑥) =
𝑥 2 sin √|𝑥| − 5. (Hint: Make the table first)
Solution

x f(x)
-5 14.6687
3 3.8832
0 -5.0000
2 -1.0489
4 9.5488

Newton’s Divided Difference:

𝑐𝑢𝑟𝑟𝑒𝑛𝑡 𝑓(𝑥𝑛 ) − 𝑝𝑟𝑒𝑣𝑖𝑜𝑢𝑠 𝑓(𝑥𝑛 )


𝒄𝒏 =
𝑐𝑢𝑟𝑟𝑒𝑛𝑡 𝑥𝑛 − 𝑝𝑟𝑒𝑣𝑖𝑜𝑢𝑠 𝑥𝑛

𝒇𝟒 (𝒙) = 14.6687 − 1.3482(𝑥 + 5) + 0.8619(𝑥 + 5)(𝑥 − 3) + 0.0177(𝑥 + 5)(𝑥 − 3)(𝑥 − 0) − 0.0191(𝑥


+ 5)(𝑥 − 3)(𝑥 − 0)(𝑥 − 2)

𝒇4 (𝒙) = 14.6687 − 1.3482𝑥 − 6.7410 + 0.8619𝑥 2 + 1.7238𝑥 − 12.9285 + 0.0177𝑥 3 + 0.0354𝑥 2


− 0.2655𝑥 − 0.0191𝑥 4 + 0.3629𝑥 2 − 0.5730𝑥

𝒇4 (𝒙) = −0.0191𝑥 4 + 0.0177𝑥 3 + 1.2602𝑥 2 − 0.4639𝑥 − 5.0008

Lagrange Interpolating Polynomial:

(𝑥 − 3)(𝑥)(𝑥 − 2)(𝑥 − 4) 𝑥 4 − 9𝑥 3 + 26𝑥 2 − 24𝑥


𝐿0 (𝑥) = 𝐿0 (𝑥) =
(−5 − 3)(−5)(−5 − 2)(−5 − 4) 2520

(𝑥 + 5)(𝑥)(𝑥 − 2)(𝑥 − 4) 𝑥 4 − 𝑥 3 − 22𝑥 2 + 40𝑥


𝐿1 (𝑥) = 𝐿1 (𝑥) =
(3 + 5)(3)(3 − 2)(3 − 4) −24

(𝑥 + 5)(𝑥 − 3)(𝑥 − 2)(𝑥 − 4) 𝑥 4 − 4𝑥 3 − 19𝑥 2 + 106𝑥 − 120


𝐿2 (𝑥) = 𝐿2 (𝑥) =
(+5)(−3)(−2)(−4) −120

(𝑥 + 5)(𝑥 − 3)(𝑥)(𝑥 − 4) 𝑥 4 − 2𝑥 3 − 23𝑥 2 + 60𝑥


𝐿3 (𝑥) = 𝐿3 (𝑥) =
(2 + 5)(2 − 3)(2)(2 − 4) 28

(𝑥 + 5)(𝑥 − 3)(𝑥)(𝑥 − 2) 𝑥 4 − 19𝑥 2 + 30𝑥


𝐿4 (𝑥) = 𝐿4 (𝑥) =
(4 + 5)(4 − 3)(4)(4 − 2) 72
𝑥 4 − 9𝑥 3 + 26𝑥 2 − 24𝑥 𝑥 4 − 𝑥 3 − 22𝑥 2 + 40𝑥
𝑷𝟒 (𝒙) = (14.6687) + (3.8832)
2520 −24
𝑥 4 − 4𝑥 3 − 19𝑥 2 + 106𝑥 − 120 𝑥 4 − 2𝑥 3 − 23𝑥 2 + 60𝑥
+ (−5.0000) + (−1.0489)
−120 28
𝑥 4 − 19𝑥 2 + 30𝑥
+ (9.5488)
72

𝑷𝟒 (𝒙) = −0.0192𝑥 4 + 0.0176𝑥 3 + 1.2610𝑥 2 − 0.4639𝑥 − 5.0000

You might also like