Practice: Finding a Tangent Line

Since we went through a lot of information in this topic, let’s put it all together to find the derivative of a function and then find a tangent line. We will do this for the following five equations:

  1. f ( x ) = 2 x 4 3 x + 1

  2. f ( x ) = 3 x 2 + 1

  3. f ( x ) = e x ( 2 x 2 3 x + 2 )

  4. f ( x ) = x 2 x 2 + 2 x 4

  5. f ( x ) = ln x 4 2 x 3 + 3 x 2 x

For each function, find the derivative with respect to x , and then find the tangent line for each function that goes through x = 1 .

1. For the first function, we can find the derivative using the power rule:

f ( x ) = 8 x 3 3 x

Therefore, the slope of the tangent line is

m = f ( x = 1 ) = 8 1 3 3 1 = 5

When x = 1 , y is

f ( x = 1 ) = 2 1 4 3 1 + 1 = 0

This means that the tangent line goes through the point (1, 0). Using the point-slope formula, the equation of the tangent line is

y = 5 ( x 1 ) = 5 x 5

2. For the second function, we need to use the chain rule to find the derivative:

g ( x ) = x h ( x ) = 3 x 2 + 1

Therefore, the derivative of each function is

g ( x ) = 1 2 x h ( x ) = 6 x

Using the chain rule, the derivative of f ( x ) is

f ( x ) = h ( x ) g ( h ( x ) ) = 6 x 1 2 3 x 2 + 1 = 3 x 3 x 2 + 1

So the slope of the tangent line is

f ( x = 1 ) = 3 1 3 1 2 + 1 = 3 ( 4 ) = 3 2

We need to find the point of the tangent when x = 1 , so

f ( x = 1 ) = 3 1 2 + 1 = 4 = 2

The tangent line has a slope of 3 2   and goes through (1, 2). Thus, the equation of the tangent line is

y 2 = 3 2 ( x 1 ) y = 3 2 x + 1 2

3. We need to use the product rule for the third function. Let g and h be

g ( x ) = e x h ( x ) = 2 x 2 3 x + 2

Then the derivatives of g and h are

g ( x ) = e x h ( x ) = 4 x 3

Now we apply the product rule to find the derivative of f :

f ( x ) = g ( x ) h ( x ) + g ( x ) h ( x ) = e x ( 2 x 2 3 x + 2 ) + e x ( 4 x 3 ) = e x ( 2 x 2 + x 1 )

Therefore, the slope of the line is

m = f ( x = 1 ) = e 1 ( 2 1 2 + 1 1 ) = 2 e

The y-coordinate of the tangent point is

f ( x = 1 ) = e 1 ( 2 1 2 3 1 + 2 ) = e

The tangent line has the slope of 2 e   and goes through (1, e ):

y e = 2 e ( x 1 ) y = 2 e x e

4. The fourth function is a function divided by a function, so we need to use the quotient rule. We will set g and h to be

g ( x ) = x 2 h ( x ) = x 2 + 2 x 4

The derivatives of these two functions are

g ( x ) = 1 h ( x ) = 2 x + 2

Now we can apply the quotient rule.

f ( x ) = g ( x ) h ( x ) g ( x ) h ( x ) [ h ( x ) ] 2 = 1 ( x 2 + 2 x 4 ) ( x 2 ) ( 2 x + 2 ) ( x 2 + 2 x 4 ) 2 = ( x 2 + 2 x 4 ) ( x 2 ) ( 2 x + 2 ) ( x 2 + 2 x 4 ) 2

Even though we could simplify the derivative, we will leave it as it is since our purpose is to find the tangent line. The slope of the tangent line is

m = f ( x = 1 ) = ( 1 2 + 2 1 4 ) ( 1 2 ) ( 2 1 + 2 ) ( 1 2 + 2 1 4 ) 2 = ( 1 ) ( 1 ) ( 4 ) ( 1 ) 2 = 3 1 = 3

The y-coordinate of the tangent point is

f ( x = 1 ) = 1 2 1 2 + 2 1 4 = 1 1 = 1

Therefore, the function of the tangent line is

y 1 = 3 ( x 1 )
y = 3 x 2

5. Last but not least, we need to use the chain rule for the last function. We assign functions g and h as follows:

g ( x ) = ln x

h ( x ) = x 4 2 x 3 + 3 x 2 x

The derivative of each function is

g ( x ) = 1 x

h ( x ) = 4 x 3 6 x 2 + 6 x 1

Therefore, the derivative of the function f is

f ( x ) = h ( x ) g ( h ( x ) )
= 4 x 3 6 x 2 + 6 x 1 x 4 2 x 3 + 3 x 2 x

The slope of the tangent line is

m = f ( x = 1 ) = 4 1 3 6 1 2 + 6 1 1 1 4 2 1 3 + 3 1 2 1
= 3 1
= 3

Now the y-coordinate of the tangent point is

f ( x = 1 ) = ln ( 1 4 2 1 3 + 3 1 2 1 ) = ln 1 = 0

The equation of the tangent line with a slope of 3 that passes through the point (1, 0) is

y = 3 ( x 1 )
= 3 x 3

Want to try our built-in assessments?


Use the Request Full Access button to gain access to this assessment.