SOLUTION: What is the slope of the tangent line at x=-2 and y=x^3

Algebra ->  Length-and-distance -> SOLUTION: What is the slope of the tangent line at x=-2 and y=x^3      Log On


   



Question 1108914: What is the slope of the tangent line at x=-2 and y=x^3
Answer by Edwin McCravy(20054) About Me  (Show Source):
You can put this solution on YOUR website!

How you go about this problem depends on whether you are in 
algebra or calculus.  I'll do it both ways.  It's much, much 
easier by calculus but it can be done by algebra only.  Just 
for fun, I'll do it both ways, the hard way using algebra 
only, and the easy way with calculus.  First the hard algebra 
way:

1.  By algebra only (the hard way).

Let the tangent line have equation y = mx + b

A tangent line must touch the graph at only one point,
so the system of equations:

system%28y=x%5E3%2Cy=mx%2Bb%29

must have a double solution at x = -2, that is,
it must have multiplicity 2.

Equating the values of y

mx%2Bb=x%5E3

Substituting x=-2

m%28-2%29%2Bb=%28-2%29%5E3

-2m%2Bb=-8

b=2m-8

 Substitute for b in

mx%2Bb=x%5E3

mx%2B2m-8=x%5E3

x%5E3-mx-2m%2B8=0

Since the graph goes through the point
where x=-2. the polynomial must be divisible by
x+2.

-2 | 1  0    -m   -2m+8
   |   -2    +4    2m-8 
     1 -2  -m+4     0

So the polynomial equation factors as

%28x%2B2%29%28x%5E2-m%2B4%29=0

That has a solution of x=-2.  But since it must 
have a double solution at x=-2, x+2 must also be
a factor of x%5E2-m%2B4

-2 | 1 -2  -m+4
   |   -2     8 
     1 -4  -m+12

The remainder must equal to 0, so

-m+12 = 0
   -m = -12
    m = 12

So the slope of the tangent line at x=-2 is 12.

------------------

With calculus, it's a cinch!

y=x%5E3

%22y%27%22=3x%5E2

Substitute x=-2

%22y%27%22=3%28-2%29%5E2

%22y%27%22=12

That's the desired slope.

Edwin