📚 The CoCalc Library - books, templates and other resources
License: OTHER
Graphing Functions and Solving Equations in Sage Assignment
Question 0
Watch the lecture video here.
Did you watch the video? [Type yes or no.]
Question 1
Consider the function .
[Don't forget parentheses around the numerator and denominator.]
Part a
Graph this function in Sage with . Your graph should not be very nice. The problem is the vertical asymptotes.
Part b
Produce a new graph with and add and . You should see a much nicer graph. Remember, the vertical lines at and are not actually part of the graph of the function.
Question 2
Consider the function .
[Make sure you type correctly, especially the 0.01 at the front]
Part a
Graph this function using the default window. Notice that no roots (zeros, x-intercepts) are visible. We know from precalc that a cubic polynomial has at least one and at most three roots.
Part b
Create a new plot of with . You should see two roots.
Part c
If you remember end behavior of polynomials, then you know that the y-values should go up as the x-values get bigger. On the previous graph, the y-values are heading down. That means this curve needs to turn around eventually, and when it does it will have to cross the x-axis again. Now try to graph again with . This time, you should see the third root (but the first two may be hard to see now).
Question 3
Graph and on the same axes with and .
Use two different colors and two different line styles.
Question 4
Use the solve command to solve for :
Question 5
Use the solve command to solve for :
[Don't forget parentheses around the denominators, and declare variables.]
Question 6
Consider the equation .
Part a
Plot this equation with (remember to use two equal signs when typing the equation).
[Your graph should have only one curve.]
Part b
Adjust the plot window (zoom in) to approximate to two decimal places the x-intercept of the graph (this is the solution of the equation).
Part c
Use find_root to solve for .
Question 7
Part a
Graph both sides of the equation and adjust the window until you can clearly see two points of intersection.
[Your graph should have two curves.]
Note: e is not a variable, it is a constant (). Never declare e.
Part b
Solve this equation for using find_root (remember, there are two real solutions).
Question 8
Solve the inequality using the solve command.

licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.