A bunch of MATLAB code files used for solving common calculus problems.
Calculates the area between two curves and plots it in a graph.
Input
- function of the upper curve in terms of x
- function of the lower curve in terms of x
Output
- Area between the curves
- Graph representing the curves
Finds the equation of the tangent of a curve at the origin (0,0).
Input
- function of the curve in terms of x
- function of the curve in terms of x (extra input)
Output
- Equation of the tangents in functions of x
- Graph representing the curves and the tangents
Finds the points where the functions is minimum or maximum and and evaluates the function's value
Input
- function of the curve in terms of x
Output
- Displays if the critical points is a maxima or minima
- Displays the value of the maxima or minima
- Displays the point where maxima or minima occurs (value of x and y)
- Graph of the curve and its extrema
Finds the maxima and minima of functions of two variables (surface)
Input
- function of two variables (equation of surface) in terms of x and y
Output
- Displays if the critical points where the function is a maxima or minima (x,y)
- Displays the value of the maxima or minima
- Graph of the surface and the extremas
Finds the maximas and minimas of two variable functions (surfaces) using Langrange Multiplier method.
Input
- function of two variables (equation of surface) in terms of x and y
Output
- Displays if the critical points is a maxima or minima and point where it occurs (x,y)
- Displays the value of the maxima or minima
- Graph of the surface and the extremas
Finds the volume of the solid obtained by revolving a curve (one variable function) around an axis
Input
- function of two variables (equation of surface) in terms of x and y
Output
- Displays the volume obtained by revolving the curve around y-axis
- Graph of the solid whose volume was obtained
Finds the gradient of a scalar-valued function and represents it in a graph
Input
- A scalar-valued function
Output
- Displays the gradient of the scalar-valued function (vector field)
- Graph of the resulting vector field
Finds the curl of a vector field and represents it in a graph
Input
- A vector field
Output
- Displays the curl of the vector field (also a vector field)
- Graph of the vector field
Finds the divergence of a vector field and represents it in a graph
Input
- A vector field
Output
- Displays the divergence of the vector field (a scalar quantity)
- Graph of the vector field