0% found this document useful (0 votes)
6 views1 page

Tasks - Matlab - Project - Calculus II - Spring - 23

Uploaded by

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

Tasks - Matlab - Project - Calculus II - Spring - 23

Uploaded by

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

Project- Calculus II

Spring 2023

Please complete the following tasks and submit your results in a report to: [email protected]

The deadline is Tuesday May 23, 2023.

Task 1. Area between two curves

Consider the graphs of the functions 𝑓(𝑥) = 2𝑚 − 𝑥 and 𝑔(𝑥) = 2𝑥 2 − 𝑛 where 𝑚 and 𝑛
are the maximum and mean values of the digits in your student-ID number.

a) Create a vector v whose elements are the digits of your student-ID number.
b) Create a variable m and assign the maximum digit in v to it.
c) Create a variable n and assign the mean value of the digits in v to it.
d) Define the function f(𝑥) and g(𝑥) above as anonymous functions.
e) Plot the graphs of f(𝑥) and g(𝑥) on the same figure using the MATLAB function
ezplot.
f) Find the exact values of the 𝑥-coordinates of the intersection points between the two
graphs using the MATLAB function solve.
g) Find the area bounded by the two graphs.

Task 2. Solids of revolution


Consider the graphs of the function
𝑛 𝑚
ℎ(𝑥) = 3 + sin ( 𝑥) + cos ( 𝑥),
2 2

where 𝑚 and 𝑛 are the maximum and mean values of the digits in your student-ID number.

a) Define the function h(𝑥) as an anonymous function.


b) Plot the graph of the function in the interval [−𝜋, 𝜋] using the MATLAB function
ezplot.
c) Find the derivative of h(𝑥) using the MATLAB function diff.
d) Evaluate the surface area of the solid of revolution generated by revolving the graph of
h(𝑥) around the 𝑥-axis between 0 and 2𝜋.
e) Evaluate the volume of the solid of revolution generated by revolving the graph of
h(𝑥) around the 𝑥-axis between −2𝜋 and 2𝜋.

You might also like