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)=2x43x+1f(x)=2x43x+1

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

  3. f(x)=ex(2x23x+2)f(x)=ex(2x23x+2)

  4. f(x)=x2x2+2x4f(x)=x2x2+2x4

  5. f(x)=lnx42x3+3x2xf(x)=lnx42x3+3x2x

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

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

f(x)=8x33x

Therefore, the slope of the tangent line is

m=f(x=1)=81331=5

When x=1, y is

f(x=1)=21431+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(x1)=5x5

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

g(x)=xh(x)=3x2+1

Therefore, the derivative of each function is

g(x)=12xh(x)=6x

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

f(x)=h(x)g(h(x))=6x123x2+1=3x3x2+1

So the slope of the tangent line is

f(x=1)=31312+1=3(4)=32

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

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

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

y2=32(x1)y=32x+12

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

g(x)=exh(x)=2x23x+2

Then the derivatives of g and h are

g(x)=exh(x)=4x3

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

f(x)=g(x)h(x)+g(x)h(x)=ex(2x23x+2)+ex(4x3)=ex(2x2+x1)

Therefore, the slope of the line is

m=f(x=1)=e1(212+11)=2e

The y-coordinate of the tangent point is

f(x=1)=e1(21231+2)=e

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

ye=2e(x1)y=2exe

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)=x2h(x)=x2+2x4

The derivatives of these two functions are

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

Now we can apply the quotient rule.

f(x)=g(x)h(x)g(x)h(x)[h(x)]2=1(x2+2x4)(x2)(2x+2)(x2+2x4)2=(x2+2x4)(x2)(2x+2)(x2+2x4)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)=(12+214)(12)(21+2)(12+214)2=(1)(1)(4)(1)2=31=3

The y-coordinate of the tangent point is

f(x=1)=1212+214=11=1

Therefore, the function of the tangent line is

y1=3(x1)
y=3x2

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)=lnx

h(x)=x42x3+3x2x

The derivative of each function is

g(x)=1x

h(x)=4x36x2+6x1

Therefore, the derivative of the function f is

f(x)=h(x)g(h(x))
=4x36x2+6x1x42x3+3x2x

The slope of the tangent line is

m=f(x=1)=413612+61114213+3121
=31
=3

Now the y-coordinate of the tangent point is

f(x=1)=ln(14213+3121)=ln1=0

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

y=3(x1)
=3x3

Want to try our built-in assessments?


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