Homework #5: Numerical Differentiation and Integration
Homework #5: Numerical Differentiation and Integration
Homework #5: Numerical Differentiation and Integration
Numerical Analysis
Department of Computer Science
PhD. Henry Arguello Fuentes
Undergraduate Students
Homework #5
Numerical Differentiation and Integration
DATE : 4th August 2020 D UE : 23th August 2020
1 I NDICATIONS
• Answers with no process are not valid.
• Make all calculations with 5 decimal places of precision.
2 N UMERICAL D IFFERENTIATION
1. (1 point) The following data was collected for the distance traveled versus time for a rocket:
Use numerical differentiation to estimate the rocket’s velocity and acceleration at each time.
Process:
~v = ————————————– ————————————————————————————–
~a = ————————————– ————————————————————————————–
2. (1 point) A plane is being tracked by radar, and data is taken every second in polar coordinates θ and r.
Process:
~v = ————————————– ————————————————————————————–
~a = ————————————- ————————————————————————————–
3 N UMERICAL I NTEGRATION
1. (1 point) Length of a curve. The arc length of the curve y = f (x) over the interval a ≤ x ≤ b is
Z bp
L= 1 + (f 0 (x)2 )dx.
a
Approximate the arc length of each function using the composite trapezoidal rule with M = 10.
a) f (x) = x3 for 0 ≤ x ≤ 1
Process:
L ≈ ————————————– ————————————————————————————–
2
b) f (x) = sin(x) for 0 ≤ x ≤ π/4
Process:
L ≈ ————————————– ————————————————————————————–
L ≈ ————————————– ————————————————————————————–
3
2. (1 point) Surface area. The solid of revolution obtained by rotating the region under the y = f (x), where
a ≤ x ≤ b, about the x-axis has surface area given by
Z b p
A = 2π f (x) 1 + (f 0 (x)2 )dx.
a
Approximate the surface area using the composite Simpson rule with M = 5.
a) f (x) = x3 for 0 ≤ x ≤ 1
Process:
A ≈ ————————————– ————————————————————————————–
A ≈ ————————————– ————————————————————————————–
4
c) f (x) = e−x for 0 ≤ x ≤ 1
Process:
A ≈ ————————————– ————————————————————————————–
3. (1 point) The following data correspond to the instantaneous speed v[s] of a person walking at several times
t[s].
t, [s] 1 1.9 2.8 3.7 4.6 5.5 6.4 7.3 8.2 9.1 10
v, [m/s] 5 6 5.5 7 8.5 8 6 7 7 5 7
RT
Determine the distance traveled by a person, given by D = T0 vdt, for T = 10 and T0 = 1 using the
composite trapezoidal and Simpson rules.
Process:
DT ≈ ———————————— ————————————————————————————–
DS ≈ ———————————— ————————————————————————————–