In this explainer, we will learn how to find the slope and equation of the tangent and normal to a curve at a given point using derivatives.

The derivative of a curve at a point tells us the slope of the tangent line to the curve at that point and there are many different techniques for finding the derivatives of different functions. We can utilize these differentiation techniques to help us find the equation of tangent lines to various differentiable functions.

First, let us recall exactly what we mean by the tangent to a curve a point.

### Definition: The Tangent Line to a Curve at a Point

For a curve and point on the curve, we say that the line is the tangent line to the curve at the point if

- the tangent line passes through the point ;
- the curve and tangent line have the same slope at the point .

In the definition above, we state that our tangent line and curve will have the same slope at the point . This means that, around the point , the line will only touch the curve.

The equation of a straight line can be found using the value of its slope and the coordinates of a point which lies on the line. From the definition above, we know that the tangent line and the curve both pass through the point . Hence, the only missing piece of information is the slope.

We can then use differentiation to find the slope of the curve, , at this point. For a function , which is differentiable at , this slope is given by .

Let us see an example of how we can use this to find the equation of the tangent line to a curve at a point.

### Example 1: Finding the Equation of the Tangent to the Curve of a Polynomial Function at a Given Value for π₯

Find the equation of the tangent to the curve at .

### Answer

To find the equation of the tangent to a curve at a point, we need two pieces of information: the coordinates of the point and the slope of the curve at this point.

The question wants us to find the tangent when , so the -coordinate is 2. We can find the -coordinate for this value of by substituting into the equation of our curve:

This gives us the point on our curve that our tangent line must pass through.

Next, we need the slope of the curve when ; to find this we need to differentiate:

We then substitute in to find the slope of the tangent line at this point:

Now, to find the equation of our tangent line, we recall that the equation of a line of slope passing through is given by

In our case, we have

Therefore, the equation of the tangent line to our curve at is given by the equation .

This method gives us a really useful result for finding the equation of a tangent line to a curve at a point (provided the derivative of the curve exists at this point). If we have a curve and a point on our curve, then the tangent line to our curve at this point must have slope . Recall that the point-slope form of a straight line tells us the equation of a line passing through the point with slope , given by

So, if we know the slope of this tangent line and a point it passes through, this is all the information we need to find its equation.

### Definition: The Equation of a Tangent Line

The equation of the tangent line to the curve at the point is given by

This formula assumes is differentiable at . If our function is not differentiable at , then we cannot use this formula to find the equation of the tangent line at . Instead, we will need to consider the problem graphically. Consider trying to find the tangent lines to the following two curves at .

In our first graph, we can see that the curve is not defined at , which also means it is not differentiable at . If our curve is not defined at , then it cannot have a tangent line at this value of .

In our second graph, we can see that the tangent line at should be vertical. If we were to differentiate our function

We could then attempt to find the slope of our curve at :

We then see this is undefined. When is not differentiable at a point, sketching the graph can often help us determine whether this point has a vertical tangent line.

So far, we have been focused on tangent lines. However, there is another important type of line we need to consider called a normal line. A normal line to a curve at a point is very similar to the tangent line; the only difference is that the normal line will be perpendicular to the tangent line.

### Definition: The Normal Line to a Curve at a Point

For a curve and point on the curve, we say that the line is the normal line to the curve at the point if

- the point lies on our line;
- this line is perpendicular to the tangent line of our curve at this point.

It is worth pointing out that we can define the normal line based on the information that it is perpendicular to the curve at this point; however, it can be easier to think about the line being perpendicular to the tangent line.

Finding the equation of the normal line will take a little bit more work since the derivative of the function only gives us the slope of the tangent line. To find the equation of the normal to a curve at a point, we need a point on the line and its slope to find the point-slope equation.

Since we already know the normal passes through the point , we only need to find the slope of the normal line to find its point-slope equation.

We want to find an expression for the slope of our normal line in terms of the slope of the tangent line. To do this, we first note that if the tangent line is horizontal, then the normal line needs to be perpendicular, so it must be a vertical line, and the same will be true in reverse.

This means we can now assume we are dealing with a tangent line which is not horizontal or vertical. So, we can write the equation of the tangent line at the point in the form , where is not zero. We will also say that the equation of our normal line is .

To find an expression for the slope of our normal line, , we will start with a sketch.

To find an expression for the slope, , we will add in the line .

We can now see we have a triangle with a right angle at . We can find the coordinates of the vertices. We already know the coordinates of the vertex at ; we will compare the other two vertices to this point to find their coordinates.

Since we chose our vertical line to be one unit to the right of , our other two vertices will be one unit to the right. We can find the -coordinates of these two vertices by recalling that the slope of a line tells us the change in for every 1 unit change in . Since the change in is 1 unit for both vertices, the change in for the tangent line will be and the change in for the normal line will be .

The coordinates of the vertices are therefore , , and .

We can then find the lengths of each side in this triangle, by using the distance between two points formula. We will not go through the individual calculation steps, but the results are shown below.

Finally, since this is a right triangle, we can apply the Pythagorean theorem to this triangle, where the hypotenuse of this triangle is the side opposite the right angle, in this case the vertical line. In fact, because this is a vertical line, the length of this line is the difference between its -coordinates. In this case, we will use , since we do not know the sign of :

This gives us an equation to find the slope of our normal line; it is the negative of the reciprocal of the slope of the tangent line. We also know how to find the slope of the tangent by using the derivative.

This means we can use the fact that to find a formula for the equation of the normal line.

### Definition: The Equation of a Normal Line to a Curve

If , then the equation of the normal line to at the point is given by

If the slope of our curve at is zero, then the normal line at this point will be vertical, and its equation will be . If the slope of our curve is undefined at a point, there are two possibilities.

- The tangent line to the curve at this point is vertical; in this case, the normal line will be horizontal.
- The tangent line to the curve at this point does not exist; in this case, the normal line does not exist.

Let us see some examples of applying these formulae to some curves.

### Example 2: Finding the Equation of the Normal to the Curve of a Polynomial Function at a Point with the Given π₯-Coordinate

Find the equation of the normal to the curve at .

### Answer

We want to find the equation of the normal line to a curve at a point. To do this, we need to find a point on the line and its slope. We can find a point on the line by substituting into the equation of our curve:

So, the normal line passes through the point .

Next, we recall that we can find the slope of the normal line by using the slope of the tangent line.

If we let , then the tangent line will have slope :

We have shown that the tangent will have slope 4, but the slope of the normal line is the negative of the reciprocal of this value:

We know the slope of our line is and we also know it passes through . This gives us the equation

Therefore, the equation of the normal line to the curve when is given by

In our next example, we will consider how to find the points on a curve where its tangent line at that point will be parallel to a given line.

### Example 3: Finding the π₯-Coordinate of the Point on the Curve of a Quadratic Function Where the Tangent Line Is Parallel to the π₯-Axis

What is the -coordinate of the point where the tangent line to is parallel to the -axis?

### Answer

We want to find the -coordinate where the tangent line to this curve will be parallel to the -axis. We know that the -axis is horizontal, so any line parallel to this must also be horizontal; in other words, the slope of this tangent line must be equal to zero.

We also know that, for a curve , the slope of the tangent line to this curve at the point will be its derivative at that point, in this case .

Therefore, in order to solve this question, we must find the values of for which the derivative is equal to zero.

Since our function is a polynomial, we can differentiate it by using the power rule for differentiation:

By setting our derivative equal to zero, we can find the values of where the tangent line is parallel to the -axis:

Therefore, the tangent line to this curve is parallel to the -axis when .

In our next example, we will find the equation of a tangent line to a curve that makes a specific angle with the positive -axis.

### Example 4: Finding the Equation of the Tangent to the Curve of a Cubic Function given the Angle the Tangent Makes with the π₯-Axis

Find the equation of the tangent to the curve that makes an angle of with the positive -axis.

### Answer

In this question, we want to find the tangent to a curve which makes an angle of with the positive -axis. This means that to answer this question we are going to need to work out the corresponding slope for the line that makes this angle with the positive -axis.

First, if we translate a line, it will not change the angle it makes with the positive -axis. So, we can start by sketching our line passing through the origin (since this is the simplest case), making an angle of with the positive -axis. This will have the same slope as our tangent line.

We can then see that , giving us the following diagram:

There are then two ways to find the slope of this line; we can use the fact that the slope of a line is the tangent of the angle it makes with the positive -axis; in this case, ; or we could use trigonometry to find the slope of this line. In either case, we see the question wants us to find the tangent line with slope .

The slope of the tangent line at a point is the same as the derivative of the curve at that point, so we want to set the derivative equal to and solve for :

This means we want to solve

The solution is .

To find the equation of the tangent line to the curve when , we need to find the coordinates of a point on the line. We can find this by substituting into the equation for our curve:

The tangent we are looking for passes through and has a slope of .

We can use this to find the equation of the line

Therefore, the tangent to the curve which makes an angle of with the positive -axis has the equation

It is not always as simple as differentiating a polynomial to find the slope of the tangent or normal line to our curve. We will sometimes need to apply other derivative rules to help us find this value. Let us see an example of this.

### Example 5: Finding the Equation of the Normal to the Curve of a Function Involving Trigonometric Functions at a Given π₯-Coordinate

Find all points with -coordinates in where the curve has a tangent that is parallel to the line .

### Answer

First, for a line to be parallel to the line , it must have the same slope. Therefore, our tangent line must have a slope of . Recall that the slope of the tangent line to a curve at the point is . In our case, . We can differentiate this using the fact that, for any constant where is measured in radians,

Hence,

Setting the slope of our tangent line to be equal to gives us

We can then solve this for in the interval :

We can sketch this as follows.

This has solutions and . Finally, we need to find the coordinates of these points by substituting these -values into the function : giving us the coordinates and .

Hence, the coordinates of the points with -coordinates in , where the curve has a tangent that is parallel to the line , are and .

In our final example, we will determine the point of intersection between two curves where the intersection is orthogonal.

### Example 6: Finding the Point Where Two Quadratic Curves Intersect Orthogonally

The curves and intersect orthogonally at a point. What is this point?

### Answer

We say that two curves intersect orthogonally if they intersect at right angles. Equivalently, the tangent lines to both curves at the point of intersection are orthogonal (meet at right angles).

We recall that the slope of a curve at a point is given by the value of its derivative at this point. We start by finding all of the points of intersection between these two curves by setting the functions to be equal to one another and solving for :

Hence, the curves intersect when and when . We need to find the slopes of both curves at each of these -values to determine if they are orthogonal. We do this by differentiating each curve by using the power rule for differentiation. For the first curve:

We can use this to find the slope at both -values.

At ,

At ,

We can do the same with the second curve:

At ,

At ,

Since the slopes of all four lines are nonzero, for the lines to be orthogonal, their slopes must be negative reciprocals of each other. Taking the negative reciprocal of gives us which is not equal to the slope of the second curve at this point, so the tangent lines are not orthogonal.

Taking the negative reciprocal of 1 gives us which is equal to the slope of the second curve at this point. Hence, the tangent lines are orthogonal.

We can find the coordinates of this point by substituting into the equation of either curve:

Hence, the curves intersect orthogonally at the point .

Let us finish by recapping some of the things we covered when finding the equations of tangent lines and normal lines to curves.

### Key Points

- The equation of the tangent line to the curve at the point is given by
- If , then the equation of the normal line to at the point is given by
- If , then the tangent line to at the point is horizontal and has the equation
- If , the normal line to at the point is vertical and has the equation
- Two curves intersect orthogonally at the point if both curves intersect this point and the slopes of their tangents at this point are orthogonal.
- If is undefined, we may still be able to find the tangent and normal lines at . However, it is not always possible.