Skip to content

Interactive examples using MATLAB to visualize and practice integral calculus including substitution, integration by parts, and the fundamental theorem of calculus

License

Notifications You must be signed in to change notification settings

MathWorks-Teaching-Resources/Calculus-Integrals

Repository files navigation

Calculus - Integrals

View on File Exchange or Open in MATLAB Online

MATLAB Versions Tested

Curriculum Module

Created with R2024a. Compatible with R2024a 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 EndIcon.png 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 Calculus-Derivatives 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 OpenInMO.png 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 double-click 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 Add-On Explorer. To install an add-on, go to the Home tab and select AddOnsIcon.png Add-Ons > Get Add-Ons.

Products

MATLAB® is used throughout. Tools from the Symbolic Math Toolbox™ are used frequently as well.

Scripts

Topic
Full Script
Visualizations
Learning Goals
In this script, students will...
Practice
Antiderivatives
Antiderivatives.mlx
adf.png
Visualizing Antiderivatives
family.gif
$\bullet$ see a graphical presentation of the concept of general antiderivatives.
$\bullet$ develop computational fluency with the antiderivatives of powers, sines, cosines, and exponentials.
Calculate Antiderivatives
$\displaystyle {\int \sin (3z);dz=-\frac{\cos (3z)}{3}+C}$
Fundamental Theorem of Calculus
FundamentalTheorem.mlx
Ski-Area.png
Visualizing the FTC
FTC-generated.png
$\bullet$ explain the fundamental theorem of calculus.
$\bullet$ see why the Fundamental Theorem of Calculus makes sense graphically.
$\bullet$ 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
$\displaystyle {\int_1^3 \frac{1}{w^2 };dw=-\frac{1}{3}+1=\frac{2}{3}}$
Riemann Sums
Riemann.mlx
animSolar.gif
Visualizing Riemann Sums
AreaUnderCurve.png
$\bullet$ explain and apply the different approximations computed by a left-endpoint, right-endpoint, midpoint, maximum, or minimum method of selecting a height value in a Riemann sum.
$\bullet$ explain and apply the trapezoidal approximation.
$\bullet$ explain why increasing the number of intervals in an approximation will decrease the error.
$\bullet$ discuss the implications for applying calculus in applications with values that are discrete or continuous.
Substitution
Substitution.mlx
SubstIm.png
Visualizing Substitution
animSubst.gif
$\bullet$ explain what the method of substitution is and how it works.
$\bullet$ develop fluency with computing integrals of combinations of powers, sines, cosines, exponentials and logarithms that are solvable by substitution by hand.
$\bullet$ see a graphical understanding of the method of substitution.
Apply the method of substitution
$\displaystyle {\int \frac{\cos \left(\ln (t)+1\right)}{t};dt=\sin \left(\ln (t)+1\right)+C}$
Integration by Parts
ByParts.mlx
IBP.png
Visualizing Integration by Parts
ibp-generated.png
$\bullet$ explain what the method of integration by parts is and how it works.
$\bullet$ develop fluency with computing integrals involving powers, sines, cosines, exponentials and logarithms that are solvable by integration by parts by hand.
$\bullet$ see a graphical understanding of the integration by parts formula.
Apply the method of integration by parts
$\int y^2 e^y ;dy=y^2 e^y -2ye^y +2e^y +C$
                   $=(y^2 -2y+2)e^y +C$
1. Choose the type of practice.
2. Solve problems.
3. Analyze your progress.
CalcFlashcardsSettings.png
CalcFlashcardsPractice.png
CalcFlashcardsAnalysis.png

Setup To Use the Calculus Flashcards App

MATLAB Desktop

  1. Ensure that you have MATLAB R2021a or newer installed.
  2. Download CalculusFlashcards.mlapp or download and unzip the entire repository.
  3. Right-click the app in MATLAB and select run or type run("CalculusFlashcards.mlapp") in the Command Window.

MATLAB Online

  1. OpenInMO.png

License

The license for this module is available in the LICENSE.md.

Related Courseware Modules

Courseware Module
Sample Content
Available on:
Calculus: Derivatives
CalcDer.png
OpenInFX.png
OpenInMO.png
GitHub
Numerical Methods with Applications
AreaLake.png
OpenInFX.png
OpenInMO.png
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 2024 The MathWorks™, Inc

About

Interactive examples using MATLAB to visualize and practice integral calculus including substitution, integration by parts, and the fundamental theorem of calculus

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages