Notes
Notes
Robert Brignall
then we say that the limit exists, and we can just write
lim f (x)
x→a
to mean “the limit of f (x) as x tends to a” (both from above and from
below). When the limit exists, we have limx→a f (x) = f (a).
(2) f (x) = x1 . Then the limit exists for all values of a except a = 0. As
x tends to 0 from below, f (x) tends to −∞, but as x tends to 0 from
above, f (x) tends to +∞. So
1
lim does not exist.
x→0 x
g(x)
Suppose we have a function f (x) = h(x) for some functions g(x) and
h(x). Observe that limx→a f (x) can only exist if
lim g(x)
x→a
exists.
1
1.2 L’Hôpital’s Rule 2
then
limx→a g(x)
lim f (x) =
x→a 0
which in general does not exist. Additionally, if limx→a g(x) exists and
6 0, then limx→a f (x) can never exist.
g(a) =
1+x2
Example 1.3. Let f (x) = x , so g(x) = 1 + x2 and h(x) = x. Then
and
lim h(x) = h(0) = 0
x→0
then
g(x) g 0 (x)
lim = lim 0 .
x→a h(x) x→a h (x)
What does this mean? We can use L’Hôpital’s Rule to find the limit of
indeterminates of the form 00 or ∞
∞.
1.2 L’Hôpital’s Rule 3
8x3 − 1 24x2
lim = lim
x→1/2 2x − 1 x→1/2 2
= lim 12x2
x→1/2
1
= 12 · = 3.
4
x2
(3) f (x) = x2 e−x . Rewrite as f (x) = ex so g(x) = x2 and h(x) = ex .
What is limx→∞ f (x)?
As x → ∞, so g(x), h(x) → ∞, and thus we have an indeterminate of
the form ∞
∞ . Using L’Hôpital:
x2 2x
lim = lim x .
x→∞ ex x→∞ e
2 Hyperbolic Functions
Definition 2.1. The two main hyperbolic functions are defined as follows:
ex − e−x
sinh x =
2
ex + e−x
cosh x =
2
Now draw two pictures!
1. cosh2 x − sinh2 x = 1,
2. cosh x + sinh x = ex ,
cos2 x + sin2 x = 1
sin(2x) = 2 sin x cos x
cos(2x) = 2 cos2 x − 1 = 1 − 2 sin2 x
2. We have
ex + e−x ex − e−x
cosh x + sinh x = +
2 2
ex + e−x + ex − e−x 2ex
= = = ex
2 2
3. Similar to 2.
4. We have
e2x − e−2x
sinh 2x =
2
e + 1 − 1 − e−2x
2x
=
2
e2x + ex e−x − ex e−x − e−2x
=
2
ex (ex + e−x ) − e−x (ex + e−x )
=
2
(ex − e−x )(ex + e−x )
= 2 = 2 sinh x cosh x
4
5. Tutorial sheet exercise.
d
dx cosh x is done similarly.
d
Now we should be able to find out what dx tanh x is. Since
sinh x
tanh x =
cosh x
we can use the quotient rule when differentiating:
d d sinh x
tanh x =
dx dx cosh x
d d
dx (sinh x) · cosh x − sinh x · dx (cosh x)
=
cosh2 x
2 2
cosh x − sinh x −1
= 2 = = −sech2 x
cosh x cosh2 x
d
Compare this to dx tan x = sec2 x without the minus sign.
Since integration is the reverse process to differentiation, we now also
know:
Z
sinh xdx = cosh x + c
Z
cosh xdx = sinh x + c
2.3 Inverses
For a function y = f (x), we wish to know whether it has an inverse function
f −1 , so that x = f −1 (y). What are the inverses of cosh x and sinh x?
If y = cosh x then x cosh−1 y is not a function unless we restrict the
values for x to x ≥ 0, hence y ≥ 1. Then we have:
ex + e−x
y =
2
⇒ 2y = ex + e−x
⇒ 2yex = e2x + 1
⇒ (ex )2 − 2yex + 1 = 0
We have two solutions, but notice that for all values of x, ex > 0 so the
negative value is impossible. Therefore
p
ex = y + y 2 − 1
and so p
x = ln(y + y 2 − 1).
p
Similarly, the inverse of sinh x is x = ln(y + y 2 + 1), left as a tutorial
exercise.
Example 3.9. From the equation in Example 3.5, lets solve the differential
equation
dS
= (1 + r)S − p
dt
subject to the initial conditions that S = S0 when t = 0.
Rearrange the equation to get
Z Z
dS
= dt
(1 + r)S − p
and integrate both sides, giving
ln |(1 + r)S − p|
= t + c.
1+r
p (1+r)c
More usefully, S = 1+r + Ae(1+r)t for constant A = e 1+r .
p
Now apply the initial conditions, S = S0 at t = 0, to get A = S0 − 1+r ,
and so the solution is
p p
S= + S0 − e(1+r)t .
1+r 1+r
When have we paid off the whole debt? Say at time t = T we have
S = 0. Then
p p
0 = + S0 − e(1+r)T
1+r 1+r
1 1
⇒ T = ln
1+r 1 − (1 + r)S0 /p
Note that if you pay back too slowly (i.e. p is small, and in particular
p < (1 + r)S0 ) then 1 − (1 + r)S0 /p < 0 and the debt will never be paid off!
then R
h0 (x) = f (x)e f (x)dx
= f (x)h(x).
Such an h(x) is called the integrating factor.
So our differential equation can be written
d R R
f (x)e f (x)dx y = g(x)e f (x)dx
dx
and integrating we get
R Z R
f (x)dx f (x)dx
yf (x)e = g(x)e dx.
Providing we can solve the integral on the right hand side, we have solved
the differential equation.
Example 3.10. Find the general solution of the differential equation
dy
− 2y = e3x .
dx
Here, our function f (x) = −2 (not really a function of x!), so the inte-
grating factor is R
h(x) = e −2dx = e−2x
and so we may write
d
ye−2x = ex .
dx
Integrating, we obtain ye−2x = ex dx = ex + c so the general solution is
R
y = e3x + ce2x .
4 Integration techniques
4.1 Integration by Parts
Suppose we have a function f (x) which is the product of two functions, i.e.
f (x) = u(x)v(x). Then, using the product rule, we may differentiate:
df (x) du(x) dv(x)
= v(x) + u(x)
dx dx dx
or, in shorthand, f (x) = [u(x)v(x)] = u (x)v(x) + u(x)v 0 (x).
0 0 0
Evaluating the first term on the right hand side gives us the standard formula
for integration by parts:
Z Z
u(x)v (x)dx = u(x)v(x) − u0 (x)v(x)dx.
0
= xex − ex + C
Note that we only need to include the constant of integration once we
have evaluated all the integrals. It is not strictly necessary to do this, as if
you forget then you will just end up with 2 (or more) constants.
4.2 Reduction Formulas 12
= ex (x2 − 2x + 2)
2. Invisible Parts: often we may be able to use parts where we set v 0 (x) =
1, which then integrates to x. For example,
Z Z
1
ln xdx = x ln x − x dx
x
= x ln x − x + C
Z
= e sin x − − e cos x + ex cos xdx
x x
Z
= e (sin x + cos x) − ex cos xdx
x
and therefore 2I(x) = ex (cos x + sin x), in which case we deduce that
ex (cos x + sin x)
Z
ex cos xdx = +C
2
and so
Z Z Z
n n n−1
sin xdx + (n − 1) sin xdx = − cos x sin x + (n − 1) sinn−2 xdx
If we let Z
In = sinn xdx
Write
1 3
I4 = − cos x sin3 x + I2
4 4
1 1 1
I2 = − cos x sin x + I0
Z2 2
I0 = dx = x + C
and so Z
1 2
sin3 xdx = − cos x sin2 x − cos x + D.
3 3
4.3 Trigonometric and Hyperbolic Substitutions 14