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.
License: OTHER
Image: ubuntu2004

licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Prerequisites:
Intro to Sage
Graphing and Solving Equations
Limits
Local Linearity and Tangent Lines
This week we will zoom in on graphs of functions to explore the "local linearity" property. Then we will find and graph tangent lines.
Example 1
Consider the function . Here is a typical graph:
What happens when we zoom in on a particular point? What does the graph look like? For example, let's zoom in on the point .
On the first graph above, it is easy to see that the graph is not straight, but when we zoom in the curvature is much harder to see. Let's zoom in once more:
When we are this close to the graph of , it appears that the graph is a straight line. We know this is not the case, but very close to the point the graph is almost a line. This is called the local linearity property. Not every function has this property, but there are many important functions that do have this property.
Example 2
Consider the graph of near the point .
In the animation below, we will zoom in on this graph near this point. Note that both the x- and y-axes will change to maintain the scale.
It appears that the graph of has the local linearity property at .
Example 3
Now let's consider the graph of near the point .
For this function, it does not matter how much you zoom in. You will always get a sharp corner, never a straight line. This is an example of a function that does not have the local linearity property at a point. [Note: this function does have the local linearity property at every other point on the graph - it's already a straight line everywhere else.]
From what we've seen above, it's safe to conclude that graphs alone are not sufficient for determining local linearity (depending on the viewing window, the picture can look very different). We want an algebraic way of determining local linearity.
Tangent Lines
If a function has the local linearity property at a particular point , then the graph of looks like a line near that point. But which line does it look like?
The line that is "close to" at is called the "tangent line" at that point, and the point is called the "point of tangency." In order to find the equation of a line, we need two pieces of information, either two points on the line or one point on the line and the slope of the line. We know one point on the tangent line: . We don't know a second point on the tangent line, but we can find the slope of the tangent line.
First, we will approximate the slope of the tangent line by choosing a second point close to . Say the distance away from is , then the second point is . We'll find the slope of the line through these two points (called a "secant line").
Here is a sample graph.
Now we will improve our approximation by making closer and closer to , moving closer to .
This process sounds like a limit, so that's how we'll find our answer. The slope of the secant line through and is (rise over run).
We want to know what happens to this slope as approaches . In limit notation, we want to find .
If the function has the local linearity property at , then this limit will exist (and conversely). The value of this limit is the slope of the tangent line.
Now that we have a point on the line and the slope of the line, we can find the equation of the line. Remember point-slope form?
Point-Slope Form of a Line: , where is the slope and is a point on the line.
In this case, and .
Therefore, an equation for the tangent line is . Adding to both sides produces:
Equation for the Tangent Line at :
where .
This is a general formula for finding an equation for the line tangent to the graph of at the point .
Example 4
To see how secant lines approach the tangent line graphically, let's look at the animation below.
You will see secant lines for the curve through the point and , where starts at and approaches .
You can see that the secant lines (in green) approach the tangent line (in red) as approaches .
Now can also be negative, so we'll also look at secant lines when starts at and approaches .
Note: We can't start at , since that gives us , which is not in the domain.
Once again, the secant lines approach the tangent line as approaches .
Example 5
Now consider and . We'll start at and let approach .
Now we'll start at and let approach .
Whether approaches from the left or right, the secant lines approach the tangent line.
Example 6 (your assignment is like this example)
Now let's find the equation of the line tangent to the graph of at the point .
First, we need the slope. As we saw above, the slope is .
So the slope is 2.
Now use the equation of a tangent line: .
Now I'll plot the function and the tangent line.
Example 7
Now let's try to find the tangent line to at . We saw above that this function does not have the local linearity property here, so something should go wrong.
Let's try to calculate the slope: .
We find that the limit does not exist (Sage returns "und").
Notice that the one-sided limits exist but are not equal:
So the two-sided limit does not exist.
If we try to find the slope at any point other than , it works fine. Let's use .
Now we see the slope of the tangent line is , so the tangent line has equation , or .
Now I'll plot the function and the tangent line.