Question 73820
<pre><font size = 5><b>What is the definition of Difference Quotient and 
how do you arrive at an answer when you have 
f(x) = x²+3x and 
DQ = ((f(x+h)-f(x))/h

The difference quotient is defined as the slope of 
the line through the two points (x, f(x)) and 
(x+h, f(x+h))

          y<sub>2</sub> - y<sub>1</sub>
DQ = m = ---------
          x<sub>2</sub> - x<sub>1</sub>

      f(x+h) - f(x) 
DQ = --------------- 
       (x+h) - x

      f(x+h) - f(x) 
DQ = --------------- 
        x + h - x

      f(x+h) - f(x) 
DQ = --------------- 
            h

To find that for the given f(x):


      <font color = "red">f(x+h)</font> - <font color = "blue">f(x)</font> 
DQ = --------------- 
            h

First we calculate the <font color = "red">red</font> part,

<font color = "red">f(x) = x² + 3x</font>

Replace all the x's by (x+h)
<font color = "red">
f(x+h) = (x+h)² + 3(x+h)
       = (x+h)(x+h) + 3(x+h)
       = x² + 2hx + h² + 3x + 3h 
</font>
Now the <font color = "blue">blue</font> part is given as
<font color = "blue">
f(x) = x² + 3x</font>  

So in

      <font color = "red">f(x+h)</font> - <font color = "blue">f(x)</font> 
DQ = --------------- 
            h

replace the <font color = "red">red f(x+h)</font> by <font color = "red">(x²+2hx+h²+3x+3h)</font> and 
the <font color = "blue">blue f(x)</font> by <font color = "blue">(x²+3x)</font>

      <font color = "red">(x²+2hx+h²+3x+3h)</font> - <font color = "blue">(x²+3x)</font> 
DQ = ----------------------------- 
                 h

      (x²+2hx+h²+3x+3h) - (x²+3x) 
DQ = ----------------------------- 
                 h


      x² + 2hx + h² + 3x + 3h - x² - 3x 
DQ = ----------------------------------- 
                  h

Combine like terms:

      2hx + h² + 3h 
DQ = --------------- 
            h

Factor h out of the top:

      h(2x + h + 3) 
DQ = --------------- 
            h

Cancel the h's

      1
      <s>h</s>(2x + h + 3) 
DQ = --------------- 
            <s>h</s>
            1

DQ = 2x + h + 3

Edwin</pre>