Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/main/142-Labs/Lab 02 - Review of Calculus I.ipynb
Views: 491
Lab 02 - Review of Calculus 1
Overview
In this lab, we will learn how to use SageMath to define functions, to compute limits, derivatives, and integrals, and to plot functions.
Important SageMath Commands Introduced in this Lab
ParseError: KaTeX parse error: Undefined control sequence: \hfill at position 32: …|l|l|} \hline \̲h̲f̲i̲l̲l̲ ̲\textbf{Command…Notes
Note that SageMath's command does not include any constants of integration. Whenever you evaluate an indefinite integral, do not forget to include a constant of integration (+C) in your answer.
Basic Function and Expressions: SageMath uses for , for , for , for Euler's constant, for , and for . Other basic functions can be typed in as they are but you must carefully use to group together and match up expressions as needed. You must also type when multiplication is presented. For example, you need to type in instead of and 2 * x / (x+y) for .
Related Course Material
Example 1
Use SageMath to define the following functions and find their derivative.
You can make SageMath return the output in an easier to read way by using the ParseError: KaTeX parse error: Unexpected end of input in a macro argument, expected '}' at end of input: \textbf{show(\dotsParseError: KaTeX parse error: Expected 'EOF', got '}' at position 2: )}̲ command. This command works for most outputs in SageMath.
SageMath uses to represent .
Example 2
Use SageMath to compute the first, second, third, and 100th derivative of
Example 3
Use SageMath to evaluate the following indefinite and definite integrals:
Example 4
Use SageMath to evaluate the following limits:
Note: In order to use a variable other than in SageMath, you must first declare it as a variable using the command.
Example 5
Define the function in SageMath.
Find the first and second derivatives of and assign them to the names and .
Plot the graph on the interval and estimate the invervals on which is increasing.
Plot the graph on the same interval and estimate the intervals on which is concave up.
Create a single plot containint the graphs , , and on the interval Make sure to graph each function in a different color and a different linestyle. Also, add a legend identifying each of the three graphs. Were your estimations in the previous two parts correct?