Numerical Methods for Engineers
Numerical Methods for Engineers
7th Edition
ISBN: 9780073397924
Author: Steven C. Chapra Dr., Raymond P. Canale
Publisher: McGraw-Hill Education
bartleby

Concept explainers

bartleby

Videos

Textbook Question
Book Icon
Chapter 8, Problem 23P

Many fields of engineering require accurate population estimates. For example, transportation engineers might find it necessary to determine separately the population growth trends of a city and adjacent suburb. The population of the urban area is declining with time according to

P u ( t ) = P u , max e k n t + P u , min

while the suburban population is growing, as in

P s ( t ) = P s , max 1 + [ P s , m a x / P 0 1 ] e k s t

where P s ,  max , k u , P s ,  max , P 0 ,  and  k s = empirically derived parameters. Determine the time and corresponding values of p u ( t )  and  p s ( t ) when the suburbs are 20% larger than the city. The parameter values are P u ,  max = 75 , 000 , k u = 0.045 /yr, P u , min = 100 , 000  people, P s , m a x = 300 , 000  people,  P 0 = 10 , 000  people,  k s = 0.8 /yr . To obtain your solutions. Use (a) graphical, (b) false-position, and (c) modified secant methods.

(a)

Expert Solution
Check Mark
To determine

To calculate: The values of the urban and sub-urban population and the corresponding time where the urban population is given by the formula Pu(t)=Pu,maxekut+Pu,min and the sub-urban population is given by the formula Ps(t)=Ps,max1+[Ps,maxP01]ekst for the parameters Pu,max=75000, Pu,min=100000, ku=0.045, ks=0.08, PS,max=300000, and P0=10000 using the graphical method and with the additional information that at time t, the suburbs are 20% larger than the city.

Answer to Problem 23P

Solution: After 40 years, the suburban population would be 1.2 times the urban population with the populations of the suburban and urban areas being 137482 and 112487, respectively.

Explanation of Solution

Given Information:

The expression, Pu(t)=Pu,maxekut+Pu,min and Ps(t)=Ps,max1+[Ps,maxP01]ekst

for the parameters Pu,max=75000, Pu,min=100000, ku=0.045, ks=0.08, PS,max=300000, and P0=10000 where the suburbs are 20% larger than the city at time t.

Calculation:

Substitute 75000 for Pu,max, 100000 for Pu,min, and 0.045 for ku in the formula for the urban population to obtain,

Pu(t)=75000e0.045t+100000 …… (1)

Substitute 300000 for Ps,max, 10000 for P0 and 0.08 for ks in the formula for the suburban population to obtain,

Ps(t)=3000001+[300000100001]e0.08t

Ps(t)=3000001+29e0.08t …… (2)

It has been provided that at time t, the suburban population is 20% larger than the urban population, that is, 1.2 times the urban population. Thus, from equation (1) and equation (2),

1.2(75000e0.045t+100000)=3000001+29e0.08t

This equation can be rewritten in the form of a following function whose zero corresponds with the root of the equation,

f(t)=1.2(75000e0.045t+100000)3000001+29e0.08t

The desired value of t can be found by plotting the function f with respect to t and then computing the value at which the function crosses the x-axis.

Use the following MATLAB code to plot the function f(t) with respect to t.

clear;clc;

% Create a discrete space for t

t=linspace(0, 100);

% Enter the function

f=1.2*(75000*exp(-0.045*t)+100000)-(300000./(1+29*exp(-0.08*t)));

% Plot the function w.r.t t and locate the value of y where t=0.

plot(t, f);

xlabel('t');ylabel('f(t)');grid;

Execute the above code to obtain the plot as,

Numerical Methods for Engineers, Chapter 8, Problem 23P

From the graph, the curve crosses horizontal axis through the origin at approximately 40; thus, it can be concluded that after 40 years, the suburban population is 1.2 times the urban population.

Substitute 40 for t in the formula for the urban population to get,

Pu(t)=75000e0.045(40)+100000112397

Hence, the urban population after 40 years is 112397.

Substitute 40 for t in the formula for the suburban population to get,

Ps(t)=3000001+29e0.08(40)137482

Hence, the suburban population after 40 years is 137482.

(b)

Expert Solution
Check Mark
To determine

To calculate: The values of the urban and sub-urban population and the time where the urban population is given by the formula Pu(t)=Pu,maxekut+Pu,min and the sub-urban population is given by the formula Ps(t)=Ps,max1+[Ps,maxP01]ekst for the parameters, Pu,max=75000, Pu,min=100000, ku=0.045, ks=0.08, PS,max=300000, and P0=10000 using the false-position method with the additional information that at time t, the suburbs are 20% larger than the city.

Answer to Problem 23P

Solution: After 39.6068 years, the suburban population would be 1.2 times the urban population with the populations of the suburban and urban areas being 13 5142.5 and 112 618.7, respectively.

Explanation of Solution

Given Information:

The expressions, Pu(t)=Pu,maxekut+Pu,min and Ps(t)=Ps,max1+[Ps,maxP01]ekst for the parameters Pu,max=75000, Pu,min=100000, ku=0.045,ks=0.08,PS,max=300000, and P0=10000 where the suburbs are 20% larger than the city at time t.

Formula used:

An equation f(x)=0 can be solved by the false position method over the interval [a,b] as follows,

Step 1- Compute x1 from the formula x1=f(a)(ba)f(a)f(b)f(a).

Step 2- If f(a)f(x1)<0, replace b by x1 or else, replace a by x1.

Step 3- Proceed with the same procedure till εa<εs.

Calculation:

Substitute 75000 for Pu,max, 100000 for Pu,min, and 0.045 for ku in the formula for the urban population to obtain,

Pu(t)=75000e0.045t+100000

Substitute 300000 for Ps,max, 10000 for P0, and 0.08 for ks in the formula for the suburban population to obtain,

Ps(t)=3000001+[300000100001]e0.08tPs(t)=3000001+29e0.08t

It has been provided that at time t, the suburban population is 20% larger than the urban population or 1.2 times the urban population. Thus,

1.2(75000e0.045t+100000)=3000001+29e0.08t

The above equation can be rewritten in the form of a following function whose zero corresponds with the root of the equation,

f(t)=1.2(75000e0.045t+100000)3000001+29e0.08t

The desired value of t can be found using the false position method.

Let the initial interval be [0,100].

Then,

f(0)=1.2(75000e0.045(0)+100000)3000001+29e0.08(0)=200000f(100)=1.2(75000e0.045(100)+100000)3000001+29e0.08(100)=176110

As f(0)f(100)<0, the root lies in the interval.

Now proceed with the first iteration as follows,

x1=f(0)(1000)f(100)f(100)f(0)=53.1760

Further,

f(53.1760)=1.2(75000e0.045(53.1760)+100000)3000001+29e0.08(53.1760)=84245

As f(0)f(53.1760)<0, the root lies in the interval.

Now proceed with the second iteration as follows,

x2=f(0)(53.17600)f(53.1760)f(53.1760)f(0)=37.4156

The relative approximate percentage error is,

εa=(|x2x1|x2×100)%=42.123%

Continue with the same process till the relative approximate percentage error is less that 0.1%.

Use the following MATLAB code to implement false-position method and solve for the roots iteratively as,

% Q 8-23P part (b)

functionfalse_posn()

% Upper bound

t1=100;

f1=myfunc(t1);

% Lower bound

t2=0;

f2=myfunc(t2);

% Starting error could be anything

err=1;

% Introduce the tolerace provided as 0.01%

tol=1e-4;

while err>tol

fori=1:5

% The formula for the secant rule

tr(i)=t2-f2*(t1-t2)/(f1-f2);

fr(i)=myfunc(tr(i));

% Changing interval

if sign(fr(i))==sign(f1)

t1=tr(i);

f1=fr(i);

else t2=tr(i);

f2=fr(i);

end

end

fori=1:4

% Error bound

err(i)=abs((tr(i+1)-tr(i))/tr(i+1));

end

end

tr

err

t1

t2

end

function out=myfunc(t)

out=1.2*(75000*exp(-0.045*t)+100000)-300000/(1+29*exp(-0.08*t));

end

Execute the above code to obtain the solutions tabulated as,

iabxiεa1010053.1762053.17637.415642.123%337.415653.17639.72215.807%437.415639.722139.60630.292%539.606339.722139.60680.001%

The process is stopped at the fifth iteration where the relative approximate percentage error is less than 0.1%. This gives the value of t as 39.6068 years.

Substitute 39.6068 for t in the formula for the urban population to get,

Pu(t)=75000e0.045(39.6068)+100000112,618.7

Hence, the urban population after 39.6068 years is 112618.7.

Substitute 39.6068 for t in the formula for the suburban population to get,

Ps(t)=3000001+29e0.08(39.6068)135142.5

Hence, the suburban population after 39.6068 years is 135142.5.

(c)

Expert Solution
Check Mark
To determine

To calculate: The values of the urban and sub-urban population and the time where the urban population is given by the formula Pu(t)=Pu,maxekut+Pu,min and the sub-urban population is given by the formula Ps(t)=Ps,max1+[Ps,maxP01]ekst for the parameters Pu,max=75000, Pu,min=100000, ku=0.045,ks=0.08,PS,max=300000, and P0=10000 using the modified secant method with the additional information that at time t, the suburbs are 20% larger than the city.

Answer to Problem 23P

Solution: After 39.6068 years, the suburban population would be 1.2 times the urban population with the populations of the suburban and urban areas being 13 5142.5 and 112 618.7, respectively.

Explanation of Solution

Given Information:

The expression, Pu(t)=Pu,maxekut+Pu,min and Ps(t)=Ps,max1+[Ps,maxP01]ekst for the parameters Pu,max=75000, Pu,min=100000, ku=0.045, ks=0.08, PS,max=300000, and P0=10000 where the suburbs are 20% larger than the city at time t.

Formula used:

An equation f(x)=0 can be solved by the modified scant method over the interval [a,b] using the iterative formula,

Step 1: Let x0=a+b2.

Step 2: Compute xi+1=xif(xi)f'(xi) where f'(xi)=f(xi+xih)f(xi)xih.

Step 3: Proceed with the same process till εa<εs.

Calculation:

Substitute 75000 for Pu,max, 100000 for Pu,min, and 0.045 for ku in the formula for the urban population to obtain,

Pu(t)=75000e0.045t+100000

Substitute 300000 for Ps,max, 10000 for P0, and 0.08 for ks in the formula for the suburban population to obtain,

Ps(t)=3000001+[300000100001]e0.08tPs(t)=3000001+29e0.08t

It has been provided that at time t, the suburban population is 20% larger than the urban population, that is, 1.2 times the urban population. Thus,

1.2(75000e0.045t+100000)=3000001+29e0.08t

The above equation can be rewritten in the form of a following function whose zero corresponds with the root of the equation.

f(t)=1.2(75000e0.045t+100000)3000001+29e0.08t

The desired value of t can be found using the modified secant method.

Let the initial guess be 50 and the value of h be 0.01.

Then,

f(50)=1.2(75000e0.045(50)+100000)3000001+29e0.08(50)=66444.8f(50+0.0150)=1.2(75000e0.045(50.5)+100000)3000001+29e0.08(50.5)f(50.5)=69357.6

And,

f'(50)=f(50.5)f(50)0.5=5825.72

Now proceed with the first iteration as follows:

x1=50f(50)f'(50)=38.5946

Further,

f(38.5946)=1.2(75000e0.045(38.5946)+100000)3000001+29e0.08(38.5946)=6692.132f(38.5946+0.0138.5946)=1.2(75000e0.045(38.98053)+100000)3000001+29e0.08(38.98053)f(38.98053)=4143.604

And,

f'(38.5946)=f(38.98053)f(3835946)0.38595=6603.33

Now proceed with the second iteration as follows:

x2=38.5946f(38.5946)f'(38.5946)=39.6080

The relative approximate percentage error is,

εa=(|x2x1|x2×100)%=29.552%

Continue with the same process till the relative approximate percentage error is less that 0.1%.

Use the following MATLAB code to implement modified secant method and solve for the roots iteratively as,

% Q 8-23P (c)

function[xr, approx_err]=secant(xr, tol, h, maxit)

% Set the values

ifnargin<5, maxit=50;end

ifnargin<4, tol=0.001;end

iteration=0;

while (1)

% Formula for modified secant method

xrnew=xr-h*xr*g(xr)/((g(xr+h*xr)-g(xr)));

iteration=iteration+1;

ifxrnew~=0

% Calculate the error

ea=abs((xrnew-xr)/xrnew)*100;

end

approx_err(iteration)=ea;

% Break the program if error exceeds tolerance or maximum iterations

% are reached

ifea<=tol||iteration>=maxit

break;

end

xrold=xr;

xr=xrnew;

end

end

% Define the equation

function out=g(t)

out=1.2*(75000*exp(-0.045*t)+100000)-300000/(1+29*exp(-0.08*t));

end

Execute the above code to obtain the solutions tabulated as,

itiεa050138.594629.552%239.60802.559%339.60680.003%

The process is stopped at the third iteration where the relative approximate percentage error is less that 0.1%. This gives the value of t as 39.6068 years.

Substitute 39.6068 for t in the formula for the urban population to get,

Pu(t)=75000e0.045(39.6068)+100000112,618.7

Hence, the urban population after 39.6068 years is 112618.7.

Substitute 39.6068 for t in the formula for the suburban population to get:

Ps(t)=3000001+29e0.08(39.6068)135142.5

Hence, the suburban population after 39.6068 years is 135142.5.

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!

Chapter 8 Solutions

Numerical Methods for Engineers

Ch. 8 - 8.11 The operation of a constant density plug flow...Ch. 8 - 8.12 The Ergun equation, shown below, is used to...Ch. 8 - The pressure drop in a section of pipe can be...Ch. 8 - 8.14 In structural engineering, the secant formula...Ch. 8 - 8.15 In environmental engineering (a specialty...Ch. 8 - 8.16 The concentration of pollutant bacteria c in...Ch. 8 - A catenary cable is one that is hung between two...Ch. 8 - 8.18 Figure P8.18a shows a uniform beam subject to...Ch. 8 - 8.19 The displacement of a structure is defined by...Ch. 8 - 8.20 The Manning equation can be written for a...Ch. 8 - In ocean engineering, the equation for a reflected...Ch. 8 - 8.22 You buy a $20,000 piece of equipment for...Ch. 8 - Many fields of engineering require accurate...Ch. 8 - 8.24 A simply supported beam is loaded as shown in...Ch. 8 - 8.25 Using the simply supported beam from Prob....Ch. 8 - Using the simply supported beam from Prob. 8.24,...Ch. 8 - Using the simply supported beam from Prob. 8.24,...Ch. 8 - 8.28 Although we did not mention it in Sec. 8.2,...Ch. 8 - 8.29 Perform the same computation as in Sec. 8.3,...Ch. 8 - An oscillating current in an electric circuit is...Ch. 8 - Prob. 31PCh. 8 - 8.32 A total charge Q is uniformly distributed...Ch. 8 - 8.33 Figure P8.33 shows a circuit with a resistor,...Ch. 8 - Beyond the Colebrook equation, other...Ch. 8 - Real mechanical systems may involve the deflection...Ch. 8 - Mechanical engineers, as well as most other...Ch. 8 - Aerospace engineers sometimes compute the...Ch. 8 - The general form for a three-dimensional stress...Ch. 8 - The upward velocity of a rocket can be computed by...Ch. 8 - The phase angle between the forced vibration...Ch. 8 - Two fluids at different temperatures enter a mixer...Ch. 8 - A compressor is operating at compression ratio Rc...Ch. 8 - In the thermos shown in Fig. P8.43, the innermost...Ch. 8 - 8.44 Figure P8.44 shows three reservoirs connected...Ch. 8 - A fluid is pumped into the network of pipes...Ch. 8 - 8.46 Repeat Prob. 8.45, but incorporate the fact...Ch. 8 - The space shuttle, at lift-off from the launch...Ch. 8 - 8.48 Determining the velocity of particles...

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
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
Algebra and Trigonometry (MindTap Course List)
Algebra
ISBN:9781305071742
Author:James Stewart, Lothar Redlin, Saleem Watson
Publisher:Cengage Learning
Use of ALGEBRA in REAL LIFE; Author: Fast and Easy Maths !;https://www.youtube.com/watch?v=9_PbWFpvkDc;License: Standard YouTube License, CC-BY
Compound Interest Formula Explained, Investment, Monthly & Continuously, Word Problems, Algebra; Author: The Organic Chemistry Tutor;https://www.youtube.com/watch?v=P182Abv3fOk;License: Standard YouTube License, CC-BY
Applications of Algebra (Digit, Age, Work, Clock, Mixture and Rate Problems); Author: EngineerProf PH;https://www.youtube.com/watch?v=Y8aJ_wYCS2g;License: Standard YouTube License, CC-BY