Calculus Integrals
Calculus  Integrals
Curriculum Module
Created with R2021b. Compatible with R2021b and later releases.
Information
This curriculum module contains interactive MATLAB® live scripts that teach fundamental concepts and basic terminology related to integral calculus. There is a focus on numerical approximation and graphical representation as tools for understanding the concepts of integral calculus.
Background
You can use these live scripts as demonstrations in lectures, class activities, or interactive assignments outside of class. Calculus  Integrals covers Riemann sum approximations to definite integrals, indefinite integrals as antiderivatives, and the fundamental theorem of calculus. It also covers the indefinite integrals of powers, exponentials, natural logarithms, sines, and cosines as well as substitution and integration by parts. Applications include area and power. In addition to the full scripts, visualizations, and practice scripts there is a Calculus Flashcards app included as well.
The instructions inside the live scripts will guide you through the exercises and activities. Get started with each live script by running it one section at a time. To stop running the script or a section midway (for example, when an animation is in progress), use the Stop button in the RUN section of the Live Editor tab in the MATLAB Toolstrip.
Looking for more? Find an issue? Have a suggestion? Please contact the MathWorks online teaching team.
Contact Us
Solutions are available upon instructor request. Contact the MathWorks teaching resources team if you would like to request solutions, provide feedback, or if you have a question.
Prerequisites
This module assumes a knowledge of functions that is standard in precalculus course materials regarding powers, exponentials, absolute values, logarithms, sines, cosines, rational functions, and asymptotes. It also assumes knowledge of basic area formulas, including the area of a trapezoid. With the exception of Riemann.mlx and RiemannViz.mlx, the scripts are written to follow CalculusDerivatives and expect basic understanding of derivatives and derivative rules. There is little expectation of familiarity with MATLAB, but you could use MATLAB Onramp as another resource to acquire familiarity with MATLAB.
Getting Started
Accessing the Module
On MATLAB Online:
Use the link to download the module. You will be prompted to log in or create a MathWorks account. The project will be loaded, and you will see an app with several navigation options to get you started.
On Desktop:
Download or clone this repository. Open MATLAB, navigate to the folder containing these scripts and doubleclick on Integrals.prj. It will add the appropriate files to your MATLAB path and open an app that asks you where you would like to start.
Ensure you have all the required products (listed below) installed. If you need to include a product, add it using the AddOn Explorer. To install an addon, go to the Home tab and select AddOns > Get AddOns.
Products
MATLAB® is used throughout. Tools from the Symbolic Math Toolbox™ are used frequently as well.
Scripts
Full Script 
Visualizations 
Learning Goals In this script, students will... 
Practice 

Antiderivatives.mlx 
Visualizing Antiderivatives 
 see a graphical presentation of the concept of general antiderivatives.  develop computational fluency with the antiderivatives of powers, sines, cosines, and exponentials. 
Calculate Antiderivatives <mathrenderer class="jsinlinemath" style="display: inline" datastaticurl="https://github.githubassets.com/static" datarunid="6fa279eb3da88c670d2261ac77d54ee5">$\displaystyle {\int \sin (3z);dz=\frac{\cos (3z)}{3}+C}$</mathrenderer> 
FundamentalTheorem.mlx 
Visualizing the FTC 
 explain the fundamental theorem of calculus.  see why the Fundamental Theorem of Calculus makes sense graphically.  develop computational fluency for definite integrals involving linear and rational combinations of powers, sines, cosines, exponentials and natural logarithms. 
Apply the Fundamental Theorem of Calculus <mathrenderer class="jsinlinemath" style="display: inline" datastaticurl="https://github.githubassets.com/static" datarunid="6fa279eb3da88c670d2261ac77d54ee5">$\displaystyle {\int_1^3 \frac{1}{w^2 };dw=\frac{1}{3}+1=\frac{2}{3}}$</mathrenderer> 
Riemann.mlx 
Visualizing Riemann Sums 
 explain and apply the different approximations computed by a leftendpoint, rightendpoint, midpoint, maximum, or minimum method of selecting a height value in a Riemann sum. 
 explain and apply the trapezoidal approximation.  explain why increasing the number of intervals in an approximation will decrease the error.  discuss the implications for applying calculus in applications with values that are discrete or continuous. 
Substitution.mlx 
Visualizing Substitution 
 explain what the method of substitution is and how it works.  develop fluency with computing integrals of combinations of powers, sines, cosines, exponentials and logarithms that are solvable by substitution by hand.  see a graphical understanding of the method of substitution. 
Apply the method of substitution <mathrenderer class="jsinlinemath" style="display: inline" datastaticurl="https://github.githubassets.com/static" datarunid="6fa279eb3da88c670d2261ac77d54ee5">$\displaystyle {\int \frac{\cos \left(\ln (t)+1\right)}{t};dt=\sin \left(\ln (t)+1\right)+C}$</mathrenderer> 
ByParts.mlx 
Visualizing Integration by Parts 
 explain what the method of integration by parts is and how it works.  develop fluency with computing integrals involving powers, sines, cosines, exponentials and logarithms that are solvable by integration by parts by hand.  see a graphical understanding of the integration by parts formula. 
Apply the method of integration by parts <mathrenderer class="jsinlinemath" style="display: inline" datastaticurl="https://github.githubassets.com/static" datarunid="6fa279eb3da88c670d2261ac77d54ee5">$\displaystyle {\int y^2 e^y ;dy=y^2 e^y 2ye^y +2e^y +C}$</mathrenderer> <mathrenderer class="jsinlinemath" style="display: inline" datastaticurl="https://github.githubassets.com/static" datarunid="6fa279eb3da88c670d2261ac77d54ee5">$\displaystyle =(y^2 2y+2)e^y +C$</mathrenderer> 
Calculus Flashcards App
1. Choose the type of practice. 
2. Solve problems. 
3. Analyze your progress. 

Setup To Use the Calculus Flashcards App
MATLAB Desktop
 Ensure that you have MATLAB R2021a or newer installed.
 Download CalculusFlashcards.mlapp or download and unzip the entire repository.
 Rightclick the app in MATLAB and select run or type run("CalculusFlashcards.mlapp") in the Command Window.
MATLAB Online
License
The license for this module is available in the LICENSE.md.
Related Courseware Modules
Courseware Module 
Sample Content 
Available on: 

Calculus: Derivatives 

GitHub 
Numerical Methods with Applications 

GitHub 
Or feel free to explore our other modular courseware content.
Educator Resources
Contribute
Looking for more? Find an issue? Have a suggestion? Please contact the MathWorks teaching resources team. If you want to contribute directly to this project, you can find information about how to do so in the CONTRIBUTING.md page on GitHub.
© Copyright 2023 The MathWorks™, Inc
Cite As
Emma Smith Zbarsky (2024). Calculus Integrals (https://github.com/MathWorksTeachingResources/CalculusIntegrals/releases/tag/v1.1.0), GitHub. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Communities
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.