1 answer

Consider the linear equation Y ′(x) = λY (x) + (1 − λ) cos(x) − (1...

Question:

Consider the linear equation
Y ′(x) = λY (x) + (1 − λ) cos(x) − (1 + λ) sin(x), quadY (0) = 1

. The true solution is Y (x) = sin(x) + cos(x). Solve this problem using Euler’s method with several values of λ and h, for 0 ≤ x ≤ 10. Comment on the results.

(a) λ = −1; h = 0.5, 0.25, 0.125 (b) λ = 1; h = 0.5,0.25,0.125

(c) λ = −5; h = 0.5, 0.25, 0.125, 0.0625 (d) λ=5;h=0.0625


Answers

(a) del, -1h=0.5 y(a) = = -1 YOU +(-1) COS(W) + -(1+61)) Biu(3) > Ya)=-461) +2 Costa) Yo1 Y=1, to=o. foc.Y) = - YOU) + 2 CUa) % Euler Method clear all clc; format short for k=1:3 lambda=-1 h=1/24k f=@(X,Y)lambda*Y+(1-lambda)*cos(x)- (1+lambda)*sin(x_Y_TrueSol = 0 1.0000 1.0000 0.5000 1.5000 1.3570 1.0000 1.6276 1.3818 1.5000 1.3541 1.0682 2.0000 0.7478 0.4932 2.5000 -0.01.5000 1.2011 1.0682 1.7500 0.9362 0.8057 2.0000 0.6130 0.4932 2.2500 0.2517 0.1499 2.5000 -0.1253 -0.2027 2.7500 -0.4946 -0.b) % Euler Method clear all clc; format short for k=1:3 lambda=1 h=1/24k f=@(X,Y)lambda*Y+(1-lambda)*cos(x)- (1+lambda)*sin(x0.5000 1.5000 1.3570 1.0000 1.7706 1.3818 1.5000 1.8144 1.0682 2.0000 1.7241 0.4932 2.5000 1.6768 -0.2027 3.0000 1.9168 -0.842.0000 1.2464 0.4932 2.2500 1.1033 0.1499 2.5000 0.9901 -0.2027 2.7500 0.9384 -0.5426 3.0000 0.9822 -0.8489 3.2500 1.1572 -1.h = 0.1250 X_Y_TrueSol = 0 1.0000 1.0000 0.1250 1.1250 1.1169 0.2500 1.2345 1.2163 0.3750 1.3269 1.2968 0.5000 1.4012 1.35704.0000 1.2562 -1.4104 4.1250 1.6024 -1.3866 4.2500 2.0108 -1.3411 4.3750 2.4859 -1.2746 4.5000 3.0325 -1.1883 4.6250 3.6560 -8.5000 182.6340 0.1965 8.6250 205.2636 0.0203 8.7500 230.7422 -0.1561 8.8750 259.4288 -0.3301 9.0000 291.7268 -0.4990 9.1250

Here I have done for 1st two cases.

Thank you so much sir

.

Similar Solved Questions

1 answer
What is the pH of a 0.720 M aqueous solution of NH4NO3? The Kb for NH3...
What is the pH of a 0.720 M aqueous solution of NH4NO3? The Kb for NH3 is 1.8 x 10-5....
4 answers
How do you simplify the following?
1) #(25^(2t))/(125^t)# 2) #(3^(x+3)-3^(x+1))/2^2#...
1 answer
Calculate the quantity (mmol) of reagents to be used in the assigned experiment. Which reagent is...
Calculate the quantity (mmol) of reagents to be used in the assigned experiment. Which reagent is the limiting reagent? Show by calculations. 8. n the reaction of vanillin with silver oxide, what gets oxidized and what gets reduced? Part B: Miniscale Hydrolysis of Methyl Salicylate To a 25-mL round...
1 answer
Question 15 (1 point) Three males with an X-linked genetic disorder have one child each. The...
Question 15 (1 point) Three males with an X-linked genetic disorder have one child each. The random variable X is the number of children among the three who inherits the X-linked genetic disorder. The probability distribution for random variable X is given below X P(X=x) O 0.4219 0.4219 0.1406 N 3 0...
1 answer
7.By measuring the equilibrium between liquid and vapor phases of a solution at 30°C at 1.00...
7.By measuring the equilibrium between liquid and vapor phases of a solution at 30°C at 1.00 atm, it was found that XA 0.220 when yA 0.314. Calculate the activities and activity coefficients of both components in this solution on the Raoult's law basis. The vapor pressures of the pure compon...
1 answer
1. Determining the Wavelength of Maximum Absorption: 2. Determining the concentration of an Unknown Solution Volume...
1. Determining the Wavelength of Maximum Absorption: 2. Determining the concentration of an Unknown Solution Volume of Stock Concentration of Soln #1 T2.001.xlon #2 5.00 2.5x loin . . x ^ 10.00 Soxom A=493.6 mm Rad y o sxlom Recorded Absorbance 0.212 0.528 0.947 1453 #4 Calibration Curve Slope of Le...
1 answer
A closed monopoly is pushed by other firms that wish to enter the market by earning...
A closed monopoly is pushed by other firms that wish to enter the market by earning normal profits the development of substitute products and challenges to any legal barriers that limit competition. the threat of closing down the free market and other firms it its industry...
1 answer
Letter answer is good ay ith(3 Final Exam Page 10 of 13 Math 128 (O)-1. What is y(6)? y(°-- : 3, and 23. Suppose y(t) is a function for which aty st, y(0) Suppose y(t) is a function for whicht, y da A...
letter answer is good ay ith(3 Final Exam Page 10 of 13 Math 128 (O)-1. What is y(6)? y(°-- : 3, and 23. Suppose y(t) is a function for which aty st, y(0) Suppose y(t) is a function for whicht, y da A. 33 B. 2 D. 5.5 24. The wait times, in minutes, to order at a local cafe are exponentially dist...
1 answer
Hi, can you check these answers? Thank you! The last four years of returns for a...
Hi, can you check these answers? Thank you! The last four years of returns for a stock are as follows: Year 3 2 28.3% Return - 4.1% 12.3% 4.3% a. What is the average annual return? b. What is the variance of the stock's returns? c. What is the standard deviation of the stock's returns? a. Wh...
1 answer
BioSTATS Sleep apnea syndrome is a sleep disorder characterized by a cessation of respiratory flow during...
BioSTATS Sleep apnea syndrome is a sleep disorder characterized by a cessation of respiratory flow during sleep. Symptoms of this syndrome include waking up (symptom A) and daytime sleepiness (symptom B). In a large clinical study, 56% of patients (group 1) had both symptoms A and B, 21% of patients...
1 answer
2. (10 points) A 2D Transform X is given below. Find the 2-stage inverse integer wavelet...
2. (10 points) A 2D Transform X is given below. Find the 2-stage inverse integer wavelet transform for X. Use (1,1) integer wavelet transform. (a) Find the matrix y4 after inverse row transform in the second stage. 2x2 (b) Find the matrix y3 after inverse column transform in the second stage. 2x2 (c...
1 answer
5) (17 points) Maintenance costs for a bridge are cyclic with the following costs occurring over...
5) (17 points) Maintenance costs for a bridge are cyclic with the following costs occurring over a 5-year period. MARR is 10% per year compounded annually. EOY 2 3 5 Maintenance S50 million $75 million $75 million $75 million $150 million Cost 1 4 a) (14 points) Compute an equivalent uniform annual ...
1 answer
Orole Company lends Riverbed industries 554000 on January 1, 2022, accepting 9-month that it will eventually...
Orole Company lends Riverbed industries 554000 on January 1, 2022, accepting 9-month that it will eventually be able to collect the debt, which of the following entries should most interest note Riverbed ly be made by Orole? shoot the note and does not pay at maturity but Oriol expects Accounts Rece...
1 answer
10. During procedures of the upper gastrointestinal tract, the operating table may be tipped into a._____________...
10. During procedures of the upper gastrointestinal tract, the operating table may be tipped into a._____________ position in order to shift the abdominal viscera away from the target tissues. During lower pelvic procedures the operating table may be tipped into b.____________ to shift the abdominal...
1 answer
Define in a paragraph the term mole, and explain how this metric unit relates to the...
Define in a paragraph the term mole, and explain how this metric unit relates to the molor Concentration of a Solution...
1 answer
19. You purchase a 5-year and 10%-coupon rate bond with face amount of $1,000 at par value. One year later, market inter...
19. You purchase a 5-year and 10%-coupon rate bond with face amount of $1,000 at par value. One year later, market interest rate increases from 10% to 20%, what is the rate of capital gain for the bond? (A) -40.3%. (B) -29.5%. (C) -25.9%. (D) -30.3%. (E) -15.9% 20.Refer to Q19, what is the rate of r...