MATLAB can solve differential equations using the dsolve command. dsolve symbolic solution of ordinary differential equations....
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
MATLAB can solve differential equations using the dsolve command. dsolve symbolic solution of ordinary differential equations. Example: syms y(x) Dy(x) = diff(y) D2y(x) = diff(y, 2) YGS1 = dsolve (D2y+2³Dy+y==0) YGS2 = dsolve (D2y+2³Dy+y==0, y(0)=-1, y(0)==2) Problems: Solve the following differential equations, using the initial conditions when applicable 1. yı" + 8y + 16y₁ = 0, yı(0) = 1, y₁ (0) = 0 2. y2"-3y₂ + 2y2 = 0, y2(1) = 1, y₂(1) = 4 3. y3"+8y₂ + 17y3 = 0 4. y + 8y +16y4=0 5. y-729ys=0 Script 1 %Solve the given Homogeneous Differential Equations with Constant Coefficients 2 %Initialize the variables 3 4 5 %Solve the equation y"+8y'+16y=0, y(0)=1, y'(0)=0. Save your answer as y1; 6 7 %Solve the equation y"-3y¹+2y=0, y_2(1)=1, y_2¹(1)=4. Save your answer as y2; 8 9 %Solve the equation y"+8y'+17y=0. Save your answer as y3; 10 11 %Solve the equation y^{IV} + 8y" + 16y=0. Save your answer as y4; 12 13 %Solve the equation y^{VI}-729y=0. Save your answer as y1; Save C Reset MATLAB Documentation MATLAB can solve differential equations using the dsolve command. dsolve symbolic solution of ordinary differential equations. Example: syms y(x) Dy(x) = diff(y) D2y(x) = diff(y, 2) YGS1 = dsolve (D2y+2³Dy+y==0) YGS2 = dsolve (D2y+2³Dy+y==0, y(0)=-1, y(0)==2) Problems: Solve the following differential equations, using the initial conditions when applicable 1. yı" + 8y + 16y₁ = 0, yı(0) = 1, y₁ (0) = 0 2. y2"-3y₂ + 2y2 = 0, y2(1) = 1, y₂(1) = 4 3. y3"+8y₂ + 17y3 = 0 4. y + 8y +16y4=0 5. y-729ys=0 Script 1 %Solve the given Homogeneous Differential Equations with Constant Coefficients 2 %Initialize the variables 3 4 5 %Solve the equation y"+8y'+16y=0, y(0)=1, y'(0)=0. Save your answer as y1; 6 7 %Solve the equation y"-3y¹+2y=0, y_2(1)=1, y_2¹(1)=4. Save your answer as y2; 8 9 %Solve the equation y"+8y'+17y=0. Save your answer as y3; 10 11 %Solve the equation y^{IV} + 8y" + 16y=0. Save your answer as y4; 12 13 %Solve the equation y^{VI}-729y=0. Save your answer as y1; Save C Reset MATLAB Documentation
Expert Answer:
Answer rating: 100% (QA)
code to be copied Program script file clcclear all syms y... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Solve this ODE using a Symbolic software program: All initial conditions for y and its derivatives are zero. d'y dy + 16y 176 + 105y = 1 + 86y dt? dr dt di3 dt
-
Given vectors A = x2 y3 z, B = x2 y z3, and C = x4 y2 z2, show that C is perpendicular to both A and B.
-
Solve Problem using substitution y = x - 4 x + 3y = 12
-
Review Questions: 1. What is the theory on which Rockwell hardness testing is based? 2. What is the purpose of the minor load in Rockwell hardness testing? 3. What are the advantages of the Rockwell...
-
From the following balances, determine the cost of goods manufactured. Cost of Goods Sold ............ $ 3,540,000 Finished Goods Inventory, March 1 ....... 850,000 Finished Goods Inventory, March 31...
-
Rearrange the following steps in the accounting cycle in proper sequence: a. Financial statements are prepared. b. An adjusted trial balance is prepared. c. Adjustment data are assembled and...
-
Police in Albemarle County, Virginia, were on the lookout for a stolen orange and black motorcycle that had eluded them in two previous traffic incidents. Officer David Rhodes drove past the home of...
-
Data for Morton Chip Company and its industry averages follow. a. Calculate the indicated ratios for Morton. b. Construct the extended Du Pont equation for both Morton and the industry. c. Outline...
-
Consider an object falling through air, where po is the density of the object, Pair is the density of the air, m is the mass of the object, A is the effective cross-sectional area of the object, or...
-
XYZ is a calendar-year corporation that began business on January 1, 2020. For the year, it reported the following information in its current-year audited income statement. Notes with important tax...
-
A sphere of radius 10cm is heated and expands. Find its increase in volume if its radius increases by 0.1cm. Leave your answer in terms of TT.
-
Light incident on an unknown material at an angle of 35 degrees. The refracted beam travels .246 meters in 1.23 ns. What is the index of refraction for this unknown material?
-
Did CONSTELLATION BRANDS, INC the acquirer recognize any acquired contingencies for its acquisition of Svedka? If it did, how were they measured? If not, why not? Under what circumstances should a...
-
A trumpet has an air column open on both ends with the length of 134 cm. What is the wavelength of the 2nd overtone?
-
Locate a recent article (within the past 5 years) in the Journal of Accountancy regarding the significance of accounting information systems. The article can emphasize the role of the accountant,...
-
Assuming an emissivity, e = 0.85, and an area of approximately 5.3 m 2 , find the amount of thermal energy radiated by the body in 4 hr if the surface temperature is 15.0 0 C.
-
A $300,000 loan with an annual nominal loan interest rate of 5%.Compounded monthly, is amortized over 30 years of monthly payments (end-of month payments). The total dollar amount that will go...
-
Multiple Choice Questions: 1. The largest component of aggregate demand is? a. Government purchases. b. Net exports. c. Consumption. d. Investment. 2. A reduction in personal income taxes, other...
-
The computation of the Fourier series coefficients is helped by the relation between the formula for these coefficients and the Laplace transform of a period of the periodic signal. (a) A periodic...
-
The impulse response of an ideal low-pass filter is h(t) = sin(t)/t. (a) Given that the impulse response is the response of the system to an input x(t) = (t) with zero initial conditions, can an...
-
There are signals whose Fourier transforms cannot be found directly by either the integral definition or the Laplace transform. For instance, the sinc signal is one of them. (a) Let X(Ω)...
-
The plaintiff [Christine Parent] leased an automobile from Amity Autoworld, Ltd. (hereafter Amity) [in Amityville, New York] in January 2002. Amity sold all its Toyota automobile franchise assets * *...
-
PT China, LLC, joined with PT Korea, LLC, to form PT Holdings. Harrison Wang and Michael Kim, representing the two entities, were to be the managers. The agreements prohibited them from engaging in...
-
The Communications Act of 1934 established a system of limited-term broadcast licenses subject to various conditions * * * . * * * [These conditions include] the indecency banthe statutory...
Study smarter with the SolutionInn App