Calculus Project On Matlab
Calculus Project On Matlab
Student ID:
Student Name:
Comments
In this assignment, you are requested to use MATLAB/Octave to answer all the questions. All
the used commands should be written as part of the answers.
2 ( x 2 +1 ) π
y= ,0≤x≤
√ cos 2 x 8
dy d2 y
a. Determine and .
dx d x2
dy
=2 ¿
dx
d2 y
=2 ¿
dx 2
d1 = diff(f);
d2 = diff(d1);
x=1:0.01:1.39;
f = ((2.*(x.^2 + 1))./(sqrt(cos(2.*x)))).*1i;
d1 = diff(f);
d2 = diff(d1);
plot(x,f)
c. Sketch the region bounded by the curve and the x-axis, then calculate its area.
Consider the solid obtained by revolving the curve around the x-axis
a. Sketch the obtained solid.
0.5m^2
dy 1
= x+ y+2 ,
dx e
∫ e y +2 dy =∫ e−x dx
e y+2 =−e−x +c
c. Determine the solution satisfying the initial condition y ( 0 )=0.
From initial condition
e 0+2 =−e−0 +c
c=1−e 2