0% found this document useful (0 votes)
199 views6 pages

Calculus Project On Matlab

This document contains an assignment for a Calculus II course. It includes two questions to be answered using MATLAB/Octave. Question 1 involves differentiating and graphing a curve, finding the area bounded by the curve and x-axis, calculating the length of the curve, sketching the solid obtained by revolving the curve around the x-axis and calculating its volume and surface area. Question 2 involves sketching part of the slope field of a differential equation, solving the differential equation using the separable method, and determining the solution satisfying a given initial condition. The assignment is out of 20 total points and includes feedback in the comments section.

Uploaded by

humayun aziz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
199 views6 pages

Calculus Project On Matlab

This document contains an assignment for a Calculus II course. It includes two questions to be answered using MATLAB/Octave. Question 1 involves differentiating and graphing a curve, finding the area bounded by the curve and x-axis, calculating the length of the curve, sketching the solid obtained by revolving the curve around the x-axis and calculating its volume and surface area. Question 2 involves sketching part of the slope field of a differential equation, solving the differential equation using the separable method, and determining the solution satisfying a given initial condition. The assignment is out of 20 total points and includes feedback in the comments section.

Uploaded by

humayun aziz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

College of Computer Information Technology

Academic Year 2020 – 2021


Semester ☒ Fall ☐ Spring ☐ Summer
Course Code - Name MAT 200-1 – Calculus II

Instructor Dr. Nahia Mourad


Exam ☐ Midterm ☐ Final ☒ Assignment ☐Quiz
Duration
Date

Course Learning Outcomes:


1. Apply concepts of differentiation to solve real life problems.
2. Discover various techniques and applications of integration.
3. Identify solutions for linear and separable ordinary differential equations.
4. Apply a computer algebra system to calculus.

Student ID:
Student Name:

Question CLO Max Score Student Score


#1 4 14
#2 4 6
Total 20

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.

1. Consider the curve

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);

b. Use two different ways to sketch the curve.

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.

d. Calculate the length of this curve.


n = numel(f);
length = 0.0;
for i = 1:n-1
length = length + sqrt( (x(i+1)-x(i))^2 + (y(i+1)-y(i))^2 );
end

Consider the solid obtained by revolving the curve around the x-axis
a. Sketch the obtained solid.

b. Calculate its volume.


V = pi(b)∫ af ( x )2 dx
1.2m^3
c. Calculate its surface area.
V =2 pi(b)∫ af ( x ) + f ' (x) 2 dx

0.5m^2

2. Given the following differential equation

dy 1
= x+ y+2 ,
dx e

a. Sketch part of the slope field of the given differential equation.


[x,y]=meshgrid((-22:0.5:4),(-24:0.5:8));
grid on;
quiver(x,y,0.2*ones(size(x)),0.2*(exp(-x-y-2)))
axis([-23 19 -25 inf])

b. Solve the differential equation.


dy 1
= x+ y+2 ,
dx e
Solve using separable method

∫ 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

You might also like