Numerical Methods For Engineers, 7 Ed
Numerical Methods For Engineers, 7 Ed
7th Edition
ISBN: 9789352602131
Author: Canale Chapra
Publisher: MCGRAW-HILL HIGHER EDUCATION
bartleby

Concept explainers

bartleby

Videos

Textbook Question
Book Icon
Chapter 24, Problem 36P

Repeat Prob. 24.35, but use (a) Simpson's 1 / 3 rule, (b) Romberg integration to ε s = 0.5 % , and (c) Gauss quadrature.

(a)

Expert Solution
Check Mark
To determine

To calculate: The work done for the given equations of F(x) and θ(x) using Simpson’s 1/3 rule.

Answer to Problem 36P

Solution:

The work done byusing 4-segment Simpson 1/3 rule is I=66.57542124.

The work done by using 8-segment Simpson 1/3 rule is I=66.96047.

The work done by using 16-segment Simpson 1/3 rule is I=66.92582125.

Explanation of Solution

Given Information:

The given expressions are as follows,

F(x)=1.6x0.045x2θ(x)=0.8+0.125x0.009x2+0.0002x3

Work done in integral form (Refer Sec. 24.4)

W=x0xnF(x)dx

If the direction between the force and displacement changes between initial and final position, then the work done is written as,

W=x0xnF(x)cos[θ(x)]dx …… (1)

Here, θ(x) is the angle between force and displacement.

Formula Used:

Simpson’s 1/3 rule.

I=h3[y0+yn+4(y1+y3+...+yn1)+2(y2+y4+...+yn2)]

Calculation:

Calculate the work done.

Substitute the value of F(x) and θ(x) in equation (1).

Force F(x) is given by,

F(x)=1.6x0.045x2 …… (2)

And,

θ(x)=0.8+0.125x0.009x2+0.0002x3

4-segment Simpson’s 1/3 rule.

Calculate integral from x0=0 to xn=30 value of h is 7.5. So, for four segments Simpson’s 1/3 rule the whole interval is divided into four equally spaced interval.

n xn
0 0
1 7.5
2 15
3 22.5
4 30

Calculate F(x0) from equation (2),

F(x0)=1.6x00.045(x0)2=1.6(0)0.045(0)2=0

Calculate F(x1) from equation (2),

F(x1)=1.6(7.5)0.045(7.5)2=9.46875

Similarly, calculate F(x2),F(x3) and F(x4)

Calculate θ(xn)

θ(x)=0.8+0.125x0.009x2+0.0002x3

Calculate θ(x0) for x0=0.

θ(x0)=0.8+0.125(0)0.009(0)2+0.0002(0)3=0.8

Calculate θ(x1) for x0=7.5.

θ(x1)=0.8+0.125x10.009x12+0.0002x13=0.8+0.125(7.5)0.009(7.5)2+0.0002(7.5)3=1.315625

Similarly, calculate θ(x2), θ(x3) and θ(x4).

Calculate F(x0)cos[(θ0)]

Substitute value of F(x0)=0 and θ(x0)=0.8

F(x0)cos[(θ0)]=(0)cos(0.8)=0

Calculate F(x1)cos[(θ1)]

Substitute value of F(x1)=9.46875 and θ(x0)=1.315625

F(x1)cos[(θ1)]=(9.46875)cos(1.315625)=2.39001847

Similarly, calculate all the other values.

All the values which are calculated in are tabulated below,

n xn F(xn) θ(xn) yn=F(xn)cos[(θn)]
0 0 0 0.8 0
1 7.5 9.46875 1.315625 2.39001847
2 15 13.875 1.325 3.376187019
3 22.5 13.21875 1.334375 3.096161858
4 30 7.5 1.85 –2.066926851

Apply Simpson’s 1/3 rule to calculate work.

According to Simpson’s 1/3 rule integral I is written as,

I=h3[f(a)+f(b)+4(y1+y3+...+yn1)+2(y2+y4+...+yn2)]

I=h3[y0+yn+4(y1+y3+...+yn1)+2(y2+y4+...+yn2)] …… (3)

Here, a and b are the lower and upper limit of the integral respectively and h is the step size that is xnxn1.

Work done is given as,

W=030F(x)cos[θ(x)]dx

Here, a=0,b=3and h=7.5

Calculate I for n=4 from equation (3).

I=h3[y0+y4+4(y1+y3)+2(y2)] …… (4)

Substitute values of h, y0,y1,y2,y3 and y4 in equation (4).

I=h3[y0+y4+4(y1+y3)+2(y2)]=7.53[0+(2.066926851)+4(2.39001847+3.096161858)+2(3.376187019)]=66.5754212475

Hence, the value of integral is I=66.57542124.

8-segment Simpson’s 1/3 rule.

For eight segmented rule value of h=3.75 .The whole interval from x0=0 to xn=30 is divided into 8 intervals. Here, n=8 and h=3.75.

All the values are tabulated below.

n xn F(xn) θ(xn) yn=F(xn)cos[(θn)]
0 0 0 0.8 0
1 3.75 5.367188 1.152734 2.179025
2 7.5 9.46875 1.315625 2.390018
3 11.25 12.30469 1.351953 2.671355
4 15 13.875 1.325 3.376187
5 18.75 14.17969 1.298047 3.819728
6 22.5 13.21875 1.334375 3.096162
7 26.25 10.99219 1.497266 0.807535
8 30 7.5 1.85 –2.06693

Apply Simpson’s 1/3 rule to calculate work done,

According to Simpson’s 1/3 rule integral I is written as,

I=h3[f(a)+f(b)+4(y1+y3+...+yn1)+2(y2+y4+...+yn2)]

I=h3[y0+yn+4(y1+y3+...+yn1)+2(y2+y4+...+yn2)]

a and b are the lower and upper limit of the integral respectively and h is the step size that is xnxn1.

Work done is given by,

W=030F(x)cos[θ(x)]dx

Here, a=0, h= 3.75 and b=30

Substitute values of h, y0,y1,y2,..., y8 in equation (4)

Calculate I for n=9 using equation (3)

I=h3[y0+y8+4(y1+y3+y5+y7)+2(y2+y4+y6)]=3.753[0+(2.06693)+4(2.179025+2.671355+3.819728+0.807535)+2(2.390018+3.376187+3.096162)]=66.96047

Hence, the value of integral is I=66.96047.

16 segment Simpson’s 1/3 rule.

The whole interval from x0=0 to xn=30 is divided into 16 intervals for n=16 and h=1.875

All the values are tabulated below.

n xn F(xn) θ(xn) yn=F(xn)cos[(θn)]
0 0 0 0.8 0
1 1.875 2.841797 1.004053 1.525726
2 3.75 5.367188 1.152734 2.179025
3 5.625 7.576172 1.253955 2.360482
4 7.5 9.46875 1.315625 2.390018
5 9.375 11.04492 1.345654 2.465721
6 11.25 12.30469 1.351953 2.671355
7 13.125 13.24805 1.342432 2.999159
8 15 13.875 1.325 3.376187
9 16.875 14.18555 1.307568 3.691061
10 18.75 14.17969 1.298047 3.819728
11 20.625 13.85742 1.304346 3.648784
12 22.5 13.21875 1.334375 3.096162
13 24.375 12.26367 1.396045 2.132203
14 26.25 10.99219 1.497266 0.807535
15 28.125 9.404297 1.645947 –0.70608
16 30 7.5 1.85 –2.06693

Apply Simpson’s 1/3 rule to calculate work done.

According to Simpson’s 1/3 rule integral I is written as,

I=h3[f(a)+f(b)+4(y1+y3+...+yn1)+2(y2+y4+...+yn2)]

I=h3[y0+yn+4(y1+y3+...+yn1)+2(y2+y4+...+yn2)]

In the above expression a and b are the lower and upper limit of the integral respectively and h is the step size that is xnxn1. Here step size is h= 1.875

Work done is given by,

W=030F(x)cos[θ(x)]dx

Here, a=0 and b=30, h= 1.875

Substitute values of h, y0,y1,y2,..., y16 using above table in equation (4).

Calculate I for n=16 so equation (3) can be written as,

I=h3[y0+y16+4(y1+y3+y5+y7+y9+y11+y13+y15)+2(y2+y4+y6+y8+y10+y12+y14)]=1.8753[0+(2.06693)+4(1.525726+2.360482+2.465721+2.999159+3.691061+3.648784+2.1322030.70608)+2(2.179025+2.390018+2.671355+3.376187+3.819728+3.096162+0.807535)]=66.9258212

Hence, the work done is I=66.92582125.

(b)

Expert Solution
Check Mark
To determine

To calculate: The work done for the given equations of F(x) and θ(x) using Romberg integration to εs=0.5%.

Answer to Problem 36P

Solution: The work done is obtained to be W=66.9609 erg.

Explanation of Solution

Given Information:

The given expressions are as follows,

F(x)=1.6x0.045x2θ(x)=0.8+0.125x0.009x2+0.0002x3

Work done in integral form (Refer Sec. 24.4).

W=x0xnF(x)dx

If the direction between the force and displacement changes between initial and final position, then the work done is written as,

W=x0xnF(x)cos[θ(x)]dx …… (1)

Here, θ(x) is the angle between force and displacement.

Formula Used:

Single segment trapezoidal rule.

I=(ba)f(a)+f(b)2

Multiple application trapezoidal rule.

I=h2[f(x0)+f(xn)+2i=1n1f(xi)]

An estimate of relative percentage error.

|εa|=|O(hn+2)kO(hn)k1O(hn+2)k|100%

Calculation:

The integral is,

W=030(1.6x0.045x2)cos(0.8+0.125x0.009x2+0.0002x3)dx

And,

f(x)=(1.6x0.045x2)cos(0.8+0.125x0.009x2+0.0002x3)

Here, θ(x) is in radians and conversion to degrees is necessary before each computation.

For Romberg Iteration- 1, 2, 4 and 8 segment trapezoidal rule integral needs to be calculated which will be used for complexity calculation in higher order correction of integral estimates.

The Integral for single segment trapezoidal rule is,

I=(ba)f(a)+f(b)2

Substitute a=0, b=30, f(0)=0 and f(30)=2.0669

I1=30(02.06692)=31.0035

The Integral for multiple application trapezoidal rules is,

I=h2[f(x0)+f(xn)+2i=1n1f(xi)]

Here, h is the step size, h=ban

For calculation of I2, n=2

Hence, h=3002=15

So, x0=0, x1=15 and x2=30

I2=152[02.0669+2(3.3761)]=35.1397

For calculation of I4, n=4

Hence, h=304=7.5

So, x0=0, x1=7.5, x2=15, x3=22.5, x4=30

I4=7.52[f(x0)+f(x4)+2{f(x1)+f(x2)+f(x3)}]=7.52[02.0669+2{2.4000+3.3761+3.0934}]=58.7703

For calculation of I8, n=8

h=3008=3.75

So, x0=0,x1=3.75,x2=7.5,x3=11.25

x4=15,x5=18.75,x6=22.5,x7=26.25,x8=30

Hence,

I8=3.752[f(x0)+f(x8)+2{f(x1)+f(x2)+f(x3)+f(x4)+f(x5)+f(x6)+f(x7)}]=64.9021

The complexity notation for Romberg iteration is,

O(h4)=43Ik13Ik1O(h6)=1615Ik115Ik1O(h8)=6463Ik163Ik1

An estimate of relative percentage error is,

|εa|=|O(hn+2)kO(hn)k1O(hn+2)k|100%

Setting up the table for Romberg iteration,

The first table of O(h2) is filled with the four results of trapezoidal rule obtained above, the latter tables are derived with the help of the above formula.

nO(h2)O(h4)O(h4)O(h8)131.003557.1874(εs=62.7429%)67.2777(εs=0.9461%)66.9609(εs=0.0074)235.139766.6471(εs=13.4026%)66.9659(εs=0.0297%)458.770366.9460(εs=3.1492%)864.9021

From the Romberg table of iteration, the work done is obtained to be W=66.9609 erg.

(c)

Expert Solution
Check Mark
To determine

To calculate: The work done for the given equations of F(x) and θ(x) using Gauss Quadrature.

Answer to Problem 36P

Solution: The work done using Gauss Quadrature is obtained to be 66.8129 erg.

Explanation of Solution

Given Information:

The given expressions are as follows,

F(x)=1.6x0.045x2θ(x)=0.8+0.125x0.009x2+0.0002x3

Work done in integral form (Refer Sec. 24.4)

W=x0xnF(x)dx

If the direction between the force and displacement changes between initial and final position, then the work done is written as,

W=x0xnF(x)cos[θ(x)]dx …… (1)

Here, θ(x) is the angle between force and displacement.

Formula Used:

Change of variables formula,

x=(b+a)+(ba)xd2

Gauss Quadrature formula for integral calculation,

Wc0f(x0)+c1f(x1)+c2f(x2)

Calculation:

The integral is,

W=030(1.6x0.045x2)cos(0.8+0.125x0.009x2+0.0002x3)dx

And,

f(x)=(1.6x0.045x2)cos(0.8+0.125x0.009x2+0.0002x3)

Change of variables is required so as to transform the original limits of given original integral to 1 to 1 for calculating Gauss Quadrature integral,

x=(b+a)+(ba)xd2

Substitute a=0 and b=30,

x=(30+0)+(300)xd2=15+15xd

Differentiate x,

dx=15dxd {By Chain Rule}

So, the function is,

f(x)=(1.6x0.045x2)cos(0.8+0.125x0.009x2+0.0002x3)

Substitute the value of x and dx

f(x)={1.6(15+15xd)0.045(15+15xd)2}cos{0.8+0.125(15+15xd)0.009(15+15xd)2+0.0002(15+15xd)3}

The integral becomes,

W=03015{1.6(15+15xd)0.045(15+15xd)2}cos{0.8+0.125(15+15xd)0.009(15+15xd)2+0.0002(15+15xd)3}dxd

Therefore, Integrals is suitable for Gauss Quadrature calculation.

The weighting factors for 2-point Gauss Quadrature evaluation is,

c0=1,c1=1

And,

x0=0.5773,x1=0.5773

The Integral is given by,

Wc0f(x0)+c1f(x1)

Substitute the values from above.

Wf(0.5773)+f(0.5773)34.6441+38.3001=72.9442

Three-Point Gauss Quadrature factor will be tried out to reduce the truncation error.

The weighting factors for 3-Point Gauss Quadrature evaluation is,

c0=0.5555,c1=0.8888,c2=0.5555

And,

x0=0.7745,x1=0,x2=0.7745

The Integral is given by,

Wc0f(x0)+c1f(x1)+c2f(x2)

Substitute the value from above.

W0.5555f(0.7745)+0.8888f(0)+0.5555f(0.7745)=66.8129

The obtained value is acceptable as the relative percentage error is less than1%.

Hence, the value of W is 66.8129 erg.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
1

Chapter 24 Solutions

Numerical Methods For Engineers, 7 Ed

Ch. 24 - One of your colleagues has designed a new...Ch. 24 - Video an giography is used to measure blood flow...Ch. 24 - 24.14 Perform the same computation as in Sec....Ch. 24 - Perform the same computation as in Sec. 24.2, but...Ch. 24 - 24.16 As in Sec. 24.2, compute F using the...Ch. 24 - Stream cross-sectional areas (A) are required for...Ch. 24 - 24.18 As described in Prob. 24.17, the...Ch. 24 - 24.21 A transportation engineering study requires...Ch. 24 - 24.22 A wind force distributed against the side of...Ch. 24 - 24.23 Water exerts pressure on the upstream ...Ch. 24 - 24.24 To estimate the size of a new dam, you have...Ch. 24 - The data listed in the following table gives...Ch. 24 - The heat flux q is the quantity of heat flowing...Ch. 24 - 24.27 The horizontal surface area of a lake at a...Ch. 24 - 24.28 Perform the same computation as in Sec....Ch. 24 - 24.29 Repeat Prob. 24.28, but use five...Ch. 24 - Repeat Prob. 24.28, but use Romberg integration to...Ch. 24 - Faradays law characterizes the voltage drop across...Ch. 24 - 24.32 Based on Faraday’s law (Prob. 24.31), use...Ch. 24 - Suppose that the current through a resistor is...Ch. 24 - If a capacitor initially holds no charge, the...Ch. 24 - 24.35 Perform the same computation as in Sec....Ch. 24 - 24.36 Repeat Prob. 24.35, but use (a) Simpson’s ...Ch. 24 - 24.37 Compute work as described in Sec. 24.4, but...Ch. 24 - As was done in Sec. 24.4, determine the work...Ch. 24 - 24.39 The work done on an object is equal to the...Ch. 24 - The rate of cooling of a body (Fig. P24.40) can be...Ch. 24 - 24.41 A rod subject to an axial load (Fig....Ch. 24 - If the velocity distribution of a fluid flowing...Ch. 24 - 24.43 Using the following data, calculate the work...Ch. 24 - 24.44 A jet fighter’s position on an aircraft...Ch. 24 - 24.45 Employ the multiple-application Simpson’s...Ch. 24 - The upward velocity of a rocket can be computed by...Ch. 24 - Referring to the data from Problem 20.61, find the...Ch. 24 - Fully developed flow moving through a 40-cm...Ch. 24 - Fully developed flow of a Bingham plasticfluid...Ch. 24 - 24.50 The enthalpy of a real gas is a ...Ch. 24 - Given the data below, find the isothermal work...Ch. 24 - 24.52 The Rosin-Rammler-Bennet (RRB) equation is...Ch. 24 - For fluid flow over a surface, the heat flux to...Ch. 24 - The pressure gradient for laminar flow through a...Ch. 24 - 24.55 Velocity data for air are collected at...

Additional Math Textbook Solutions

Find more solutions based on key concepts
Knowledge Booster
Background pattern image
Advanced Math
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, advanced-math and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Text book image
Trigonometry (MindTap Course List)
Trigonometry
ISBN:9781337278461
Author:Ron Larson
Publisher:Cengage Learning
Text book image
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:9781133382119
Author:Swokowski
Publisher:Cengage
Text book image
Linear Algebra: A Modern Introduction
Algebra
ISBN:9781285463247
Author:David Poole
Publisher:Cengage Learning
Text book image
College Algebra
Algebra
ISBN:9781938168383
Author:Jay Abramson
Publisher:OpenStax
Continuous Probability Distributions - Basic Introduction; Author: The Organic Chemistry Tutor;https://www.youtube.com/watch?v=QxqxdQ_g2uw;License: Standard YouTube License, CC-BY
Probability Density Function (p.d.f.) Finding k (Part 1) | ExamSolutions; Author: ExamSolutions;https://www.youtube.com/watch?v=RsuS2ehsTDM;License: Standard YouTube License, CC-BY
Find the value of k so that the Function is a Probability Density Function; Author: The Math Sorcerer;https://www.youtube.com/watch?v=QqoCZWrVnbA;License: Standard Youtube License