SOLUTION TO PROBLEM 1
a)CODE:
**********************************************************************************
syms x
c=2.5;
y=c*x^2;
dy=diff(y)
subs(dy,x,10)
************************************************
OUTPUT:
dy =
5*x
ans =
50
b)CODE:
************************************************************************
syms y(t) t
eqn=diff(y,t)==t*y;
cond=y(0)==3;
ySol(t)=dsolve(eqn,cond)
t=0:2
plot(t,ySol(t))
xlabel('t');
ylabel('y')
**************************************************
OUTPUT;
ySol(t) =
3*exp(t^2/2)
PLOT:
1. Perform the following operations in MATLAB a. Use diff to find the derivative of y...
write MATLAB scripts to solve differential equations. Computing 1: ELE1053 Project 3E:Solving Differential Equations Project Principle Objective: Write MATLAB scripts to solve differential equations. Implementation: MatLab is an ideal environment for solving differential equations. Differential equations are a vital tool used by engineers to model, study and make predictions about the behavior of complex systems. It not only allows you to solve complex equations and systems of equations it also allows you to easily present the solutions in graphical form....