0

Take the function $f(x) = x^2$. I read that it can be written as $$f(x) \approx k_1\cdotΔx_1 + k_2\cdotΔx_2 + \dots +k_n\cdot \Delta x_n,$$ where $k_n$ is the slope of the $n$-th piecewise linear block, and $\Delta x_n$ is the $n$-th linear block.

How is this derived? Can you explain it?

al-Hwarizmi
  • 4,290
  • 2
  • 19
  • 36
spyimp
  • 177

1 Answers1

2

The graph here explains exactly your problem here >>>

As you see it is piece wise linear and the slopes you have already captured intuitively. So the smaller the $\Delta$ linear pieces (and the more of them in terms of $n$) the better the approximtaion.


From the definition of slope

$$k_i=\frac{\Delta y_i}{\Delta x_i}$$

derive $n$ pieces of lines:

$$\Delta y_i=k_i\cdot \Delta x_i$$

and sum over $n$:

$$f(x)=y\approx\sum^n_{i=1}\Delta y_i=\Delta y_1 + \Delta y_2+\dots+\Delta y_n= k_1\cdotΔx_1 + k_2\cdotΔx_2 + \dots +k_n\cdot \Delta x_n$$

so: $$f(x) \approx k_1\cdotΔx_1 + k_2\cdotΔx_2 + \dots +k_n\cdot \Delta x_n$$

al-Hwarizmi
  • 4,290
  • 2
  • 19
  • 36
  • I cannot understand why the k1Δx1 is the first line, and the k2Δx2 is the second line etc.

    I know that a line is : y=kx + b, where k is the slope. But I cannot figure out the kΔx formula!

    – spyimp Jul 25 '13 at 16:01
  • made an add above. – al-Hwarizmi Jul 25 '13 at 17:00