Question

Solve the initial value problem dt y+e a. Use ode45() to find the approximate values of the solution at 1-0,1,1.8,2.1 and also plot the solution. Now plot the numerical solution of several large intervals and make a guess about the nature of the solution as t b.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

PLEASE REFER BELOW CODE

close all
clear all
clc

time_period = [0 1 1.8 2.1]; %given t values
initial_y = 0.5; %initial y values

[t,y] = ode45(@(t,y) ((t - exp(-t)) / (y + exp(y))) , time_period, initial_y); %ode45 using given DE
disp([t y])
plot(t,y,'-o'); %plot the expression
xlabel('t');
ylabel('y(t)');
title('y(t) versus t');

PLEASE REFER BELOW PLOT AND OUTPUT

0 0.5000
1.0000 0.4360
1.8000 0.8044
2.1000 0.9680

>>

y(t) versus t 0.9 0.8 0.7 0.6 0.5ф 0.4 L 0.5 2.5

Add a comment
Know the answer?
Add Answer to:
Solve the initial value problem dt y+e' a. Use ode45() to find the approximate values of...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT