|
2.1 Calculus2.1.1 The differentiation rules
Let f, g, h be differentiable and suppose u = g(x) and v = h(x)
The constant rules If y = cu = cg(x) where c Î
R then
The sum rule If y = u + v = g(x) + h(x) then
The product rule / Produktregelen if y = u * v = g(x) h(x) then
The quotient rule If y = u/v = g(x) / h(x) where h(x) != 0 then
The chain rule / Kjerneregelen If y = f(u) = f(g(x)) and u = g(x) then
2.1.1.1 Some special derivatives(ln x)' = 1/x
2.1.2 The laws of logarithmsx>0, y>0 log x + log y = log(xy)
2.1.3 Newton's methodLet [a, b] be an interval containing just one solution of the equation f(x) = 0, where f ' is bounded, differentiable and positive on [a, b] and f '' is bounded and positive on [a, b]. The, for any x1Î [a, b], with f(x1) > 0, the sequence x1, g(x1), g(g(x1)),... converges to the solution of f(x) = 0 in [a, b], where g(x) = x - [ f(x) / f '(x) ] Here is a bit of code witch performs Newton's method: double x0, xp, x, e; int n; xp = x0; e = maxint; n = 1; while (e>eps & n<=nmax) { x = xp - f(xp)/Df(xp); e = abs(x-xp); n = n + 1; } P
a b
c d
e f
g h
l m
p q
³ £ |
|