main.m
clc
clear all
close all
y = dsolve('Dy = - 2*y + 3 + 4/t', 'y(1)=0', 't')
t = linspace(1/2,2);
for i = 1:length(t)
Y_Value(i) = double(subs(y,'t',t(i)));
end
plot(t,Y_Value,'r*');
xlabel('t')
ylabel('y')
title('t vs y');
Output
y =
(4*Ei(2*t) + (3*exp(2*t))/2)/exp(2*t) - (4*Ei(2) +
(3*exp(2))/2)/exp(2*t)
Solve the initial value problem ty' + 2ty = 3t + 4, y(1)=theta and plot y...
Problem. (problem 6) Solve the initial value problem (1+ ) = 2ty, y(1) = 8.
I. Use Euler's method with step size h = 0.1 to numerically solve the initial value problem y,--2ty+y2, y(0) 1 on the interval 0 < t 2. Compare your approximations with the exact solution. I. Use Euler's method with step size h = 0.1 to numerically solve the initial value problem y,--2ty+y2, y(0) 1 on the interval 0
Solve the following initial value problem using ode45 and ode15s: y",(t) _ Зу"(t) + ty(t) _ sin2(t)-7, o s t Plot the solution for varying tolerances. Why do you believe your solution is cor- 2. 1, y(0)-0, y,(0) 1, y"(0)-0. rect? Solve the following initial value problem using ode45 and ode15s: y",(t) _ Зу"(t) + ty(t) _ sin2(t)-7, o s t Plot the solution for varying tolerances. Why do you believe your solution is cor- 2. 1, y(0)-0, y,(0) 1,...
Problem 3. Given the initial conditions, y(0) from t- 0 to 4: and y (0 0, solve the following initial-value problem d2 dt Obtain your solution with (a) Euler's method and (b) the fourth-order RK method. In both cases, use a step size of 0.1. Plot both solutions on the same graph along with the exact solution y- cos(3t). Note: show the hand calculations for t-0.1 and 0.2, for remaining work use the MATLAB files provided in the lectures Problem...
Solve the initial value problem below using the method of Laplace transforms. 2ty" - 5ty' + 5y = 20, y(0) = 4, y'0) = -3 Click here to view the table of Laplace transforms. Click here to view the table of properties of Laplace transforms. y(t) =
(1 point) Solve the initial value problem ty" - ty' y = 5, y(0) = 5, y'(0) = -1 y =
(1 point) Solve the following initial value problem: dy + 0.6ty = 3t dt with y(0) = 5. y = (1 point) Solve the following initial value problem: dy dt + 2y = 3t with y(1) = 7. y
Solve initial value problem using Laplace transform Problem 4 Solve the initial value problems given below --ез, y(0) 2. a. b. f ty 3 cos t, y(0)-
Solve the given initial value problem. x(0) = 1 dx = 4x +y- e 3t, dt dy = 2x + 3y; dt y(0) = -3 The solution is X(t) = and y(t) =
Solve the given initial value problem. dx = 3x + y - e 3t. dt x(0) = 2 dy = x + 3y; dt y(0) = - 3 The solution is x(t) = and y(t) = 0