3 msΒ·
Thank you for explaining this! To elaborate for anyone whoβs curious: the square root function is π(π₯) = π₯^Β½, so its derivative is πβ²(π₯) = Β½π₯^-Β½ (power r
by tomstuart 5y ago
Thank you for explaining this!
To elaborate for anyone whoβs curious: the square root function is π(π₯) = π₯^Β½, so its derivative is πβ²(π₯) = Β½π₯^-Β½ (power rule) = 1 / 2π₯^Β½ = 1 / 2π(π₯).
If we know the value of π for some nearby input π, we can approximate its value at π₯ by using πβs derivative (i.e. rate of change) at π to guess how much the value of π(π) has increased or decreased by the time it becomes π(π₯). We can calculate that guess by multiplying πβ²(π) by the difference between π and π₯. Itβs only a guess because it assumes that π has a constant rate of change from π to π₯, which the square root function doesnβt (itβs a curve, not a straight line), but if π and π₯ are close together then the error isnβt too large.
e.g. π(67) β π(64) + πβ²(64) Γ (67 - 64) = 8 + (1/16) Γ 3 = 8.1875
- credit_guy 5y agoThere's a different way to get to this, without using calculus. If we call x = sqrt(67), then the first approximation is n = sqrt(64) = 8. We then use the formula for the difference of squares x^2 - n^2 = (x-n)(x+n) to get x-n = (x^2-n^2)/(x+n), or x = n + (x^2-n^2)/(n+x). In our case x = 8 + 3/(8+x). This is circular, but we can just plug in the right hand side the first approximation for x, which is 8, and we end up with 8 + 3/16. The beauty of this formula is that you can continue to iterate. Once you have x ~ 8.1875, you can plug again in the right hand side and get x ~ 8 + 3/16.1875, which is exact to the first 4 decimals. Of course, you can continue, and you end up with the (aptly named) continued fraction method for the square root [1]. [1] https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Continued_fraction_expansion https://en.wikipedia.org/wiki/Methods_of_computing_square_ro...