Question 1108914
{{{drawing(200,400,-3,3,-10,2,
circle(-2,-8,.1), locate(-2,-8,"(-2,-8)"),
graph(200,400,-3,3,-10,2,x^3),line(-3,-20,-1,4) )}}}
<pre>
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(y=x^3,y=mx+b)}}}

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

Equating the values of y

{{{mx+b=x^3}}}

Substituting x=-2

{{{m(-2)+b=(-2)^3}}}

{{{-2m+b=-8}}}

{{{b=2m-8}}}

 Substitute for b in

{{{mx+b=x^3}}}

{{{mx+2m-8=x^3}}}

{{{x^3-mx-2m+8=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
   |<u>   -2    +4    2m-8</u> 
     1 -2  -m+4     0

So the polynomial equation factors as

{{{(x+2)(x^2-m+4)=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^2-m+4}}}

-2 | 1 -2  -m+4
   |<u>   -2     8</u> 
     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^3}}}

{{{"y'"=3x^2}}}

Substitute x=-2

{{{"y'"=3(-2)^2}}}

{{{"y'"=12}}}

That's the desired slope.

Edwin</pre>