Recall that we faced a problem, in trying to define the slope at a point.
We look at that here along with some applications. Will do some
examples tomorrow:
- Limits:2 cases
- Trivial cases, where limit as x® a, we just put x = a with no problem.
- Cases which involve division by zero, in which case factorise with the
top and then take the limit, for example limit as x to 2 of:
Check with you calculator, do get 1/3.
- The derivative: Using limits can define slope at a point:
Say x2 = x1+h and take the limit as h goes to 0, then have
|
lim
h® 0
|
|
f(x1+h)-f(x1) (x1+h) - x1
|
= |
lim
h® 0
|
|
f(x1+h)-f(x1) h
|
. |
|
This involves only one point, x1.
Using this we find that xn goes to nxn-1. For example If f(x) = x2
then
|
lim
h® 0
|
|
f(x+h)-f(x) h
|
= |
lim
h® 0
|
|
(x+h)2-x2 h
|
|
|
= |
lim
h® 0
|
|
x2+2xh+h2-x2 h
|
= |
lim
h® 0
|
|
2xh+h2 h
|
|
|
- Where increasing and decreasing, where concave up and concave down.
- Max/Min:Want to find points where slope is zero. Then check whether
the slope is increasing or decreasing to determine whether plus or negative.
- Newton-Raphson
- Algorithm to find roots of polynomials
- Will use the fact that the derivative is the slope and
that the derivative of xn is nxn-1.
- We begin by making a guess for root of f(x), which in
general not be right. Will have f(x0). Now look at the slope of the
function at x0. If m then would guess that f hits zero at
which would the case if the f was linear. This 2nd guess will also
not normally be a root but if we keep going we will find one.
So look at f(x1) and the slope at x1, use these to get x2
and so on!
- To find a root of x3-x2+x-1 = 0 we need to make an initial
guess. So I chose x0 = 0. f(x) = -1 so this is not a root. Now
using the algorithm we can determine
x0 = -1 and f(0) = -1 but we need to determine m, the slope.
The slope at x0 is given by the derivative at x0 which
is
The slope at x0 then is
and
Then x1 = 1 and f(1) = 1-1+1-1 = 0 so we have found the root already.
- Normally will not get an exact solution and we look for x where
| f(x) | < 0.001 to get close to a root.
- We only get a root this way. In order to get all of them would
divide the polynomial by (x-xroot) to get a simpler polynomial
which we would again apply the algorithm too. Depending on our
initial guess we converge to different roots.
- For tomorrow: Using help, express
in terms of sin's with mathematica.
File translated from
TEX
by
TTH,
version 2.70.
On 3 Dec 2002, 10:50.