Perform the same computation for the Lorenz equations in Sec. 28.2, but use (a) Euler's method, (b) Heun's method (without iterating the corrector), (c) the fourth-order RK method, and (d) the MATLAB ode45 function. In all cases use single-precision variables and a step size of 0.1 and simulate from
(a)
![Check Mark](/static/check-mark.png)
To calculate: The solution of Lorentz equation
Answer to Problem 18P
Solution:
The solution of Lorentz equations by the Euler’s method with step size 0.1 gives unstable solution.
Explanation of Solution
Given Information:
Lorentz equations,
and Initial conditions are
Formula used:
Euler’s method for
Where, h is the step size.
Calculation:
Consider the equations,
The iteration formula for Euler’s method with step size
Use excel to find all the iteration with step size
Step 1: Name the column A as t and go to column A2 and put 0 then go to column A3 and write the formula as,
=A2+0.1
Then, Press enter and drag the column up to
Step 2: Now name the column B as x-Euler and go to column B2 and write 5 and then go to the column B3 and write the formula as,
=B2+0.1*(-10*B2+10*C2)
Step 3: Press enter and drag the column up to
Step 4: Now name the column C as y-Euler and go to column C2 and write 5 and then go to the column C3 and write the formula as,
=C2+0.1*(28*B2-C2-B2*D2)
Step 5: Press enter and drag the column up to
Step 6: Now name the column D as z-Euler and go to column D2 and write 5 and then go to the column D3 and write the formula as,
=D2+0.1*(-2.666667*D2+B2*C2)
Step 7: Press enter and drag the column up to
Thus, first few iterations are as shown below,
From the above result, it is observed that the solution of Lorentz equations by the Euler’s method with step size 0.1 the values are continuously decreasing. Hence, Euler method with step size 0.1 gives unstable solution for the Lorentz equations.
(b)
![Check Mark](/static/check-mark.png)
To calculate: The solution of Lorentz equation
Answer to Problem 18P
Solution:
The solution of Lorentz equations by the Heun’s method with step size 0.1 gives unstable solution.
Explanation of Solution
Given Information:
Lorentz equations,
and Initial conditions are
Formula used:
The iteration formula for Heun’s method is,
Calculation:
Consider the equations,
The following VBA code is used to solve the Lorentz equation by Heun’s method:
Code:
Output:
To draw the graph of the above results, follow the steps in excel sheet as given below,
Step 1: Select the cell from A4 to A205 and cell B4 to B205. Then, go to the Insert and select the scatter with smooth lines from the chart.
Step 2: Select the cell from A4 to A205 and cell C4 to C205. Then, go to the Insert and select the scatter with smooth lines from the chart.
Step 2: Select the cell from A4 to A205 and cell D4 to D205. Then, go to the Insert and select the scatter with smooth lines from the chart.
Step 4: Select one of the graphs and paste it on another graph to merge the graphs.
The graph obtained is,
And, to draw the phase plane plot follow the steps as below,
Step 4: Select the column B, column C and column D. Then, go to the Insert and select the scatter with smooth lines from the chart.
The graph obtained is,
The phase plane plot is a straight line because solution of x is a constant value. The solution o0f Lorentz equation by Heun’s method with step size 0.1 is thus unstable.
(c)
![Check Mark](/static/check-mark.png)
To calculate: The solution of Lorentz equation
Answer to Problem 18P
Solution:
The first few solutions of Lorentz equation are,
t | x | y | z |
0 | 5 | 5 | 5 |
0.1 | 9.781196 | 17.07821 | 10.44315 |
0.2 | 17.69946 | 20.86553 | 35.90347 |
0.3 | 10.80352 | -2.53933 | 39.32018 |
0.4 | 0.539054 | -5.55832 | 28.10261 |
0.5 | -3.17668 | -5.85077 | 22.41242 |
0.6 | -5.5818 | -8.41419 | 19.9751 |
0.7 | -8.8743 | -12.6404 | 22.17497 |
0.8 | -11.8816 | -13.3924 | 29.76851 |
0.9 | -10.6546 | -7.2405 | 33.36662 |
1 | -6.86073 | -3.45687 | 29.32358 |
Explanation of Solution
Given Information:
Lorentz equations,
and Initial conditions are
Formula used:
The fourth-order RK method for
Where,
Calculation:
The following VBA code is used to find the solution of Lorentz equation by the fourth order RK method:
Code:
Output:
To draw the graph of the above results, follow the steps in excel sheet as given below,
Step 1: Select the cell from A4 to A205 and cell B4 to B205. Then, go to the Insert and select the scatter with smooth lines from the chart.
Step 2: Select the cell from A4 to A205 and cell C4 to C205. Then, go to the Insert and select the scatter with smooth lines from the chart.
Step 3: Select the cell from A4 to A205 and cell D4 to D205. Then, go to the Insert and select the scatter with smooth lines from the chart.
Step 4: Select one of the graphs and paste it on another graph to merge the graphs.
The graph obtained is,
And, to draw the phase plane plot follow the steps as below,
Step 4: Select the column B, column C and column D. Then, go to the Insert and select the scatter with smooth lines from the chart.
The graph obtained is,
(d)
![Check Mark](/static/check-mark.png)
The solution of Lorentz equation
Answer to Problem 18P
Solution:
The solution graph of Lorentz equation is,
Explanation of Solution
Given Information:
Lorentz equations,
and Initial conditions are
Consider the Lorentz equations,
Use MATLAB ode45 function to solve the above differential functions as below,
Code:
Output:
The graph obtained as,
Write the command as below to plot the phase-plane,
The phase plane graph obtained as,
Want to see more full solutions like this?
Chapter 28 Solutions
Numerical Methods For Engineers, 7 Ed
Additional Math Textbook Solutions
Mathematics for the Trades: A Guided Approach (11th Edition) (What's New in Trade Math)
Pathways To Math Literacy (looseleaf)
College Algebra (7th Edition)
Math in Our World
Precalculus: A Unit Circle Approach (3rd Edition)
Elementary & Intermediate Algebra
- Equilibrium Equations: Two-dimensional 2.28 Ra= Rc= 2.29 (change force to 600N) AC= AB= 2.33 CD= AC= DE= BC= Free Body Diagrams 2.34 Ax= Ay=_ Bx= By= 2.36 Ax= Ay= Bx= By= 2.37 (change middle force to 4000 lbs) Ay=_ Dx= Dy=_ 2.38 (change horizontal force to 2 kN) Ax= Ay= Bx= By=_ 2.40 Ay= By= Dx= 32% Bx= Cy= Dy=arrow_forwardEquilibrium Equations: Two-dimensional 2.28 Ra= Rc= 2.29 (change force to 600N) AC= AB= 2.33 CD= AC= DE= BC= Free Body Diagrams 2.34 Ax= Ay=_ Bx= By= 2.36 Ax= Ay= Bx= By= 2.37 (change middle force to 4000 lbs) Ay=_ Dx= Dy=_ 2.38 (change horizontal force to 2 kN) Ax= Ay= Bx= By=_ 2.40 Ay= By= Dx= 32% Bx= Cy= Dy=arrow_forwardYou can add the two forces together to get the total force at each joint.arrow_forward
- For 2.29 Find the forces in AC and CB (not AB) that are pushing on the joint C. Please also include an arrow that shows how the forces are pushing on joint C. Are they pushing on C or pulling on C. For 2.29 change force to 600N.arrow_forward1. Let n be an integer. Show that gcd (n², n² + n + 1) = 1. Note: You must justify every step of your proof using a result shown either in this course or in a previous one. Steps without a proper justification will not account for credit. 2. Express the following in base 10. Show all the necessary work to obtain your answer. (a) 12345 (b) 101012 (c) 11111 3. a) Convert the base 10 number 54321 to base 6. Show all the necessary work to obtain your answer. b) Convert the base 10 number 100 to base 2. Show all the necessary work to obtain your answer. 4. 6. For each of the following equations, find all integral solutions or show that it has none. Show all the necessary work to obtain your answer. (a) 3x+4y=10 (b) 44x-17y = 9 (c) 60x+9y= 31 (d) 16x + 24y = 44 5. What is the smallest nonzero value of X Y - where x and y are integers? Show all the necessary 136 31 work to obtain your answer. 6. Find the prime factorization of the following integers. Show all the necessary work to obtain your…arrow_forwardEquilibrium Equations: Two-dimensional 2.28 Ra= Rc= 2.29 (change force to 600N) AC= AB= 2.33 CD= AC= DE= BC= Free Body Diagrams 2.34 Ax= Ay=_ Bx= By= 2.36 Ax= Ay= Bx= By= 2.37 (change middle force to 4000 lbs) Ay=_ Dx= Dy=_ 2.38 (change horizontal force to 2 kN) Ax= Ay= Bx= By=_ 2.40 Ay= By= Dx= 32% Bx= Cy= Dy=arrow_forward
- The expression (w.wx+8) represents the number of miles Trent jogged during a race, and 5x represents the number of miles that Ling jogged during the same race, in x hours. Write and simplified expression to show how many more miles Ling jogged than Trentarrow_forwardFirm Alpha operates in a perfectly competitive market in a constant-cost industry and is earning negative economic profit. a. How does Firm Alpha determine its profit-maximizing quantity of output? Explain. b. Draw correctly labeled side-by-side graphs for Firm Alpha and the market it operates in. Label the axes and all of the following: i. Market price (PE) and market quantity (QE) ii. The firm's quantity of output (Qe) iii. The firm's average total cost (ATC) c. Completely shade the area of the firm's total cost. d. Identify whether the following increase, decrease, or remain constant as the market moves to long-run equilibrium: i. Market equilibrium quantity ii. Market equilibrium price e. Assume the product that Firm Alpha produces has a negative externality. Draw the marginal social cost (MSC) on the market graph from part (b). f. Will the unregulated market produce more or less than the socially optimal quantity? g. Label the socially optimal quantity (Qso) for the market on your…arrow_forwardGoods A, B, and C are related goods, each operating in a perfectly competitive market. a. As the price of Good A increases from $8 to $10, its quantity demanded falls from 200 units to 160 units. Calculate the price elasticity of demand for this range. b. Good A is an input for Good B. Illustrate the effect of the price change from part (a) on a fully labeled supply and demand graph for Good B. Label the equilibrium price(s) and quantity or quantities. Use arrows to indicate any shifts. c. On your graph from (b), shade the consumer surplus lost in the market for Good B as a result of the change in part (a). d. The equilibrium price for Good C is $2, and the equilibrium quantity is 60 units. The cross-price elasticity of Good C with Good A is -3. i. Are Good C and Good A normal goods, inferior goods, complementary goods, or substitute goods? ii. Calculate the new equilibrium quantity of Good C after a 25% price increase for Good A.arrow_forward
- Price (S) The graph below depicts a firm with market power. In the graph, MC represents the firm's marginal costs, ATC represents the average total costs, D represents demand, and MR represents marginal revenue. 110 70 60 50 40 30 20 MC ATC D 0 40 50 70 80 95 Quantity/Units MR a. At 60 units of output, how much would this profit-maximizing monopolist charge? b. How many units would it produce to maximize total revenue rather than total profit? c. What is the maximum quantity this firm can produce without incurring economic losses? d. Calculate the firm's profit at the profit-maximizing output and price. e. Why is this firm's marginal revenue curve below its demand curve? Explain.arrow_forwardShade the areas givenarrow_forward1. Sketch the following sets and determine which are domains: (a) |z−2+i| ≤ 1; - (c) Imz> 1; (e) 0≤ arg z≤ л/4 (z ± 0); Ans. (b), (c) are domains. (b) |2z+3| > 4; (d) Im z = 1; - (f) | z − 4| ≥ |z.arrow_forward
- Algebra & Trigonometry with Analytic GeometryAlgebraISBN:9781133382119Author:SwokowskiPublisher:Cengage