Professional Documents
Culture Documents
-1
O
domain of f
1 x
exp(x)
1 O
Exponential function is denoted by f (x) = ex for all real x.
2
or
exp x
It may also be written as an innite series exp x = ex = 1 + x + Two important properties are as x +, as x , exp x + (ex +) exp x 0 (ex 0). x2 x3 x4 + + + . 2! 3! 4!
Note that exp(x) > 0 for all real x and ea+b = eaeb (ea)b = eab
Some key facts about these hyperbolic functions are: cosh(x) = cosh x and sinh(x) = sinh x: as x +, cosh x + and sinh x +. as x , cosh x + and sinh x . cosh2 x sinh2 x = 1.
4
sinh x . cosh x
-1 -3 -2 -1 0 x 1 2 3
Consider a curve y = f (x). The slope of the tangent at any point is the derivative of the function f (x) denoted by f (x) or df dx
7
slope of chord is
f(x 0+h)-f(x 0) h
O
x0 x 0 +h
As h 0, In other words
d sin x = cos x dx
d cos x = sin x dx
d x e = ex dx
1 d ln x = dx x
9
Example:
Example:
Example:
Here f = sin x and g = x (vii) Composition: function of a function If f (x) = F (u(x)) then dF du df = dx du dx
Example: dierentiate f (x) = cos(x2) Here u(x) = x2 and F (u) = cos u so that f (x) = F (u(x)) = cos(x2) Thus df = sin u 2x = 2x sin(x2) dx
11
Example: dierentiate ln(cos x) Here u(x) = cos x and F (u) = ln u Thus df 1 sin x = ( sin x) = = tan x dx u cos x
Example: dierentiate sin 3x Here u(x) = 3x and F (u) = sin u Thus df = cos u 3 = 3 cos 3x dx
12
f(a)=0
x=a
When these occur the slope of the tangent to the curve is zero, f (x) = 0. The condition f (x) = 0 alone however does not guarantee a minimum or a maximum. In general we say that if f (a) = 0 then x = a is a stationary point. We classify them into the most common types, maxima, minima and points of inection.
13
local maximum f decreases as x moves away from x = a, so f (x) f (a) for all x near a.
f(a)=0
f(x)>0
x=a
f(x)<0
local minimum f increases as x moves away from x = a, so f (x) f (a) for all x near a.
f(x)<0
x=a
f(x)>0
f(a)=0
Here f (x) is an increasing function of x. Therefore f (a) = 0 and f (a) > 0 implies that x = a is a local minimum.
15
point of inection
x=a f(x)>0
f (x) steadily increases (or decreases) as x passes through the stationary point.
f(x)>0
f(a)=0
OR
f(x)<0 x=a f(a)=0
f(x)<0
Example
Find and classify the stationary points of the function f (x) = 4x3 x4
Find stationary points: f (x) = 12x2 4x3 = 4x2(3 x) so f (x) = 0 when x=0 or x=3
and these are the stationary points. Classify stationary points: f (x) = 24x 12x2 f (3) = 36 < 0, so x = 3 is a local maximum. , so we need f (0) in this case. f (0) = 0 f (x) = 24 24x f (0) = 24 = 0 and so x = 0 is point of inection.
17
Calculate complicated functions using only simple arithmetic operations (addition, multiplication etc.), useful in numerical work.
Find useful analytical approximations which work for x near a given value (for example, ex 1 + x for x near 0). Understand the behaviour of a function near a stationary point.
18
4.5.1 Strategy
Suppose we know information about f (x) only at the point x = 0. How can we nd out about f for other values of x? Could try approximating the function by polynomials and match f (0), f (0), f (0) etc. Note: f (x) is the second derivative of f , i.e., d2f (x) d df (x) = f (x) = dx2 dx dx
19
Example
For x near 0, approximate f (x) = cos x by a quadratic g ( x ) = a 0 + a 1 x + a 2 x2 .
y
f (0) = 1
g (0) = 1
a0 = 1
Match f (0) = g (0): f (0) = cos 0 = 1 g (0) = 1 1 a2 = 2 because g (x) = 2a2 So for x near 0, 1 cos x 1 x2 2 where means is approximately equal to. Check x 0.4 0.2 0.1 cos x 0.921061 0.980066 0.995004
2 11 2x
n! = n factorial = n(n 1)(n 2) . . . 3.2.1 Expect series to be useful when x is small in magnitude. Often successive terms in series decrease rapidly. For practical purposes we use only a nite number of terms in the series.
22
We may expand about any point x = a to give a Taylor series f (x) = f (a) + (x a)f (a) 1 + (x a )2 f (a ) 2! 1 + (x a )3 f (a ) 3! 1 + + (x a)nf (n)(a) + , n! a generalisation of a Maclaurin series. An alternative form of Taylor series is given by setting x = a + h (with h small) f (a + h) = f (a) + hf (a) + + + 1 2 h f (a ) 2!
1 n (n) h f (a ) + n!
23
4.5.3 Example
Find the Taylor series of f (x) = cos x about x = /2. Take a = 2 in general formula.
f ( 2) = 0 f ( 2) = 1
f ( 2 ) = 1
f ( 2) = 0
24
4.5.4 Example
Find the Taylor series for ex about the point: (a) x = 0 (a) a0 = f (0) = e0 = 1 a1 = f (0) = e0 = 1
1 0 1 a2 = 1 2 f (0) = 2 e = 2 1 0 1 a3 = 1 6 f (0) = 6 e = 6
(b) x = 1.
25
(b) f (x) = ex = f (1) + (x 1)f (1) 1 + (x 1)2f (1) 2 1 + (x 1)3f (1) + 6 Since all derivatives of exp x are exp x itself, f (1) = e1 = e and 1 f (x) = e + (x 1)e + (x 1)2e 2 1 + (x 1)3e + 6 1 = e 1 + (x 1) + (x 1)2 2 1 + (x 1)3 + 6
26
f (1) = e1 = e, etc
27
4.6 Limits
Consider the function f (x) = 1 x1 for x = 1
f(x) -> + oo
f(x)
f (x) is not dened at x = 1, but it clearly tends to as x approaches the value 1 from below, and + as x approaches the value 1 from above.
28
as x 1 as x 1+
lim f (x) =
and
x1+
lim f (x) = +
29
4.6.1 Example
Even when the function is well behaved, it may not be possible simply to insert the value of x into the formula given for f (x). Consider the example f (x) = sin x . x
sin 0 sin x is meaningless, but we can nd (on a calculator) for 0 x nonzero values of x that approach 0: Clearly x 0.1 0.01 0.001 sin x x 0.998 . . . 0.99998 . . . 0.9999998 . . .
30
It appears that
We get the same result if x approaches 0 from the negative side (or from below). Where the limits from above and below are the same we write simply sin x = 1. x0 x lim
31
sin x is provided by x
If f (x) = L, xa g (x) lim where L is any real number or , then f (x) = L. xa g (x) lim
32
4.6.3 Examples
(i) Find lim sin x x0 x
x0 x0
Here f (x) = sin x, g (x) = x and a = 0. Since lim f (x) = lim g (x) = 0, we can apply lH opitals rule. This says that if we can nd L = lim then f (x) =L x0 g (x) lim Here f (x) = cos x and g (x) = 1 and so L = lim sin x =1 x0 x
33
f (x) x0 g (x)
cos x 1 = =1 x0 1 1
Therefore lim
sin x x x0 x3
Here f (x) = sin x x and g (x) = x3, which both tend to 0 as x 0 Calculating f (x) g (x) for small x gives: x 0.1 0.01 0.001 Since f (x) = cos x 1 then, by lH opitals rule, L = lim cos x 1 x0 3x2
34
g (x) = 3x2
But lim cos x 1 = 0 and lim 3x2 = 0, so we must apply lH opitals rule again, to give
x0 x0
L = lim
x0
sin x 6x
Again,
x0
lim sin x = 0
and
x0
lim 6x = 0
cos x 1 = 6 6
approaches
f (a ) as x approaches a. g (a )
36
6. See if there are any simple symmetries. For example, if f (x) is an even function of x (so that f (x) = f (x)), then (x, y ) lies on the curve whenever (x, y ) does. In this case the sketch should be symmetric about the y -axis. Similarly, if f (x) is an odd function of x (so that f (x) = f (x)), then (x, y ) lies on the curve whenever (x, y ) does. In this case the sketch should centro-symmetric, i.e., symmetric with respect to reection through the origin.
38
4.7.2 Example
Sketch the curve y = x4 2x2 1. Special values. y (0) = 0 so the curve goes through the origin. 2. Stationary points. f (x) = 4x3 4x = 4x(x2 1) = 0 when x = 0 or x = 1, so these are the stationary points. f (x) = 12x2 4 is negative when x = 0, so this is a local maximum, and positive when x = 1, so these are minima. The coordinates in the x y plane of these stationary points are maximum: (0, 0) minima: (1, 1).
39
3. Limiting behaviour as x y = x4 2x2 x4 4. Vertical asymptotes There are none in this case. 5. Regions where curve is not dened. There are no really obvious excluded regions in this case although completing the square x4 2x2 = x4 2x2 + 1 1 = (x2 1)2 1 does show that the value of the function cannot fall below y = 1. 6. Symmetries The function f (x) = x4 2x2 is even, so the graph is symmetric with respect to reection about the y axis.
40
as x .
Result:
(0,0)
(1,1)
(1,1)
41
y=x
y=cos x
x
42
f(x)
X
f (x) = x cos x
As a rst guess at X try x0 = 0.7. Since f (0.7) = 0.0648 0, this is a reasonable guess. To improve on this, suppose X = x0 + , where is small.
43
Then, using Taylors series: 1 f (X ) = f (x0) + f (x0) + 2f (x0) + 2 0 f (x0) + f (x0) f (x0 ) f (x0 ) f (x 0 ) X x0 f ( x0 ) So we should expect x1 = x 0 f ( x0 ) f (x0 )
to be a better approximation to X than x0. We nd x1 = 0 . 7 0.7 cos 0.7 = 0.7394. 1 + sin 0.7
4.8.1 Example
Obtain the roots of x = 2 sin 2x
y 2 y=x
/4 -X X
/2 x
y=2sin2x
Clearly x = 0 is a root, and there are roots at X , with Take f (x) = x 2 sin 2x, so f (X ) = 0. Step 1 Since X 1, take x0 = 1 as initial guess. f (x0) = 0.8.
<X< . 4 2
46
Step 2 Use the NewtonRaphson iteration step xn+1 = xn Here f (x) = 1 4 cos 2x. Then xn+1 = xn n 0 1 2 3 4 5 xn 1 1.30721 . . . 1.23967 . . . 1.2372917 . . . 1.2372884 . . . 1.2372884 . . . f (x n ) 0.818 . . . 0.301 . . . 0.0098 . . . 0.000013 . . . 0.27 1010 0.1 1021 xn 2 sin 2xn 1 4 cos 2xn f (xn ) 2.664 . . . 4.457 . . . 4.154 . . . 4.143 . . . 4.143 . . . f (x n ) f ( xn )
X = 1.2373(4DP)
Step 3 By recording values of f (xn) in the table we can check f (xn) 0. Roots of x = 2 sin 2x are thus x = 0, x = 1.2373 (4DP) and x = 1.2373 (4DP).
47
4.9 Integration
Integration and dierentiation are inverse operations, i.e., one undoes the other. The indenite integral of a function f (x) is denoted by f (x) d x This should satisfy d dx Note: for any constant c, d dx f (x) d x + c f (x) d x = f (x)
x
or by
f (t) dt
d dx d = dx = f (x) =
f (x) dx + f (x) dx
d (c) dx
Therefore indenite integrals always include an arbitrary constant of integration. Conversely df dx = f (x) + c dx
48
4.9.1 Examples
ex dx = ex + c (since sin x dx = cos x + c (since 1 = ln x + c x (since d 1 ln x = ). dx x
49
d x e = ex). dx
g (x) d x
If g (x) = then
b a b df a dx
df dx
g (x) dx =
dx = f (b) f (a)
50
4.9.3 Examples
1 0 1
ex dx =
1 d 0 dx
Therefore
0
ex dx = e 1
/2 0
cos x dx =
/2 d
/2
Therefore
0
cos x dx = 1
51
2 dx 1 2 dx 1
1 dx = [ln x]2 1 = ln 2 ln 1 = ln 2
2 d
(ln x) dx
Therefore
= ln 2
52
x1/2 dx =
4 0
2 3/2 +c x 3
x1/2 dx =
2 3/2 4 x 3 0 2 3/2 = 0 4 3 16 2 8= = 3 3
53
y y=f(x)
y=f(x)
A = f (xn)xn
xn x n
f (xn)xn.
As the rectangles get more numerous and more narrow, the area of the step curve approaches the area under the smooth curve.
54
f (xn)xn
b a
f (x) dx.
This explains the notation used for integrals. We can see why the area is an integral as follows. Let F (x) = area under curve between a and x.
y=f(x)
F (x + x) F (x) f (x)x.
x x+x
The derivative of the area is f (x) and therefore the integral of f (x) is the area.
55
Remarks Area is counted as positive above the x-axis and negative below. Variables of denite integration are arbitrary:
b a
f (x) dx =
b a
f (t) dt =
b a
f ( ) d
56
4.10.1 Example
Q A
-2 1 x
-2 y=f1 (x)
57
First nd the crossing points P and Q. The curves cross when f 1 (x) = f 2 (x) i.e., when x = 2 x2 x = 1 or 2
(f1(x) f2(x)) dx 2 x2 x dx
1 1 1 2x x3 x2 3 2 2 1 1 8 4 = 2 4 + 3 2 3 2 9 = 2
58
y 2dx
60
4.11.2 Example
Find y such that dy = ky, dx where k is a constant. Rearranging gives 1 dy = y kdx + c
61
4.11.3 Example
Find y such that dy + xy 2 = 0. dx Rearranging gives dy = xy 2 dx 1 dy = y2 xdx + c
1 1 = x2 + c y 2
4.11.4 Example
Solve dy + xy 2 = 0. dx y (1) = 1. Depending on the physical context, such a condition might be termed a boundary condition or an initial condition. We know from the previous example that the general solution satises 2 y= 2 x +A We now choose A so that the condition y (1) = 1 holds. 2 =1 1+A and 2 . y= 2 x +1
63
subject to
A=1
4.11.5 Example
Newtons law of cooling states that the rate at which the temperature of a cooling object falls is proportional to dierence in temperature between the object and the surrounding environment. That is, dT = k(T T0). dt Let u = T T0. Then du = ku. dt 1 du = u kdt + c
Rearranging gives
65
The method of substitution gives us a systematic way of trying to reverse the chain rule when we have a function of a function in an integral.
66
4.12.1 Example
Find I= Step 1 Let w(x) = 5x 1 Step 2 Then dw =5 dx and so 1 5 dw = dx Step 3 The integral is then I= Step 4 Finally I= (5x 1)4 +c 20
67
(5x 1)3 dx
w3
1 1 4 1 1 dw = w4 + c = w +c 5 5 4 20
4.12.2 Example
Find I= Step 1 Let w(x) = sin x + 1 Step 2 Then dw = cos x dx and so dw = cos x dx Step 3 The integral is now I = = w dw = w1/2 dw cos x sin x + 1 dx
2 3/2 +c w 3
Step 4 Finally, I =
2 (sin x + 1)3/2 + c 3
68
4.12.3 Example
Find I=
/2 0
cos x
sin x + 1 dx
Thus I=
2 1
w dw =
2 3/2 2 2 3/2 w = 2 1 3 3 1
( 1.219)
69
4.12.4 Example
Find I= Step 1 Let w = 1 + x2 Step 2 Then dw = 2x dx because dw = 2x, dx i.e., 1 dw = x dx 2 dw 1 = ln |w| + c w 2 x dx 1 + x2
1 2
4.12.5 Example
Find I= Use the previous example. w(x) = 1 + x2 and so x = 1 corresponds to w = 2 x = 2 corresponds to w = 5 x dx 1 1 + x2
2
Thus I=
5 1 ln w 2 2 2w 2 1 1 = ln 5 ln 2 2 2 1 5 ln = 2 2 5 dw
71
4.12.6 Example
Find I=
1 0
(1 x2) dx
/2 0 /2
(1 sin2 w) cos w dw
cos2 w dw
73
b du dv dx = [uv ]b v dx a dx a dx
74
4.13.1 Example
1
Find
0
xex dx
dv = e x dx v = ex
xex dx =
0 0 1 1 = xex ex 0 0 1 1 = e (e 1)
xex
(ex) dx
= 1 2e1 0.2642
75
4.13.2 Example
Find I = Use u with ln x dx dv dx = uv dx u du v dx dx
dv = ln x dx du 1 dv = 1. Then = and v = x and so Set u = ln x and dx dx x 1 I = x ln x x dx + const x = x ln x dx + const = x ln x x + const Finally ln x dx = x(ln x 1) + const (Check by dierentiating.)
76
4.13.3 Example
Find I (x) = Choose u = ex I= ex sin x dx. du dv = sin x so that = ex and v = cos x dx dx ex cos x dx
and
ex sin x dx = ex cos x +
Using integration by parts again we set u = ex so that du = ex and v = sin x dx I = I = 2I = I = ex cos x + ex sin x ex(sin x cos x) I + c ex(sin x cos x) + c 1 x e (sin x cos x) + c1 2 ex sin x dx and dv = cos x dx
77
4.13.4 Example
Find I = x2 cos 4x dx dv du 1 = cos 4x so that = 2x and v = sin 4x. dx dx 4
Set u = x2 and
(4.1)
x sin 4x dx. Use integration by parts again: now u=x and dv = sin 4x dx
so that
x 1 x sin 4x dx = cos 4x + 1 cos 4x dx 4 4 1 x sin 4x + c = cos 4x + 4 16 By substituting (4.2) into (4.1) we nd I to be x2 1 1 x sin 4x sin 4x + c cos 4x + 4 2 4 16 or x 1 x2 sin 4x + cos 4x sin 4x + c1 4 8 32
(4.2)
79