Calculus
Calculus
Calculus
Definition 1: lim f (x) L means that as x get closer to x0 , but the function does not
xx0
NB. f (x) should approach a value L when x approaches x0 from both sides of the point,
i.e. left and right hand limit are the same.
Example:
1. lim(x 2 1) 02 1 1. lim (x 2 1) lim (x 2 1) 1
x0 x0 x0
Properties of Limits
1. Limit of constant
If c is a constant, we have lim c c .
xx0
Page 1
Lecturer: Isaac Hui
Unit 8 Maths for Construction
Definition 2: If lim f (x) L f (x0 ) , we say that the function is continuous at
xx0
x x0
Derivatives
Let A(x0 , y0 ) be a fixed point and P(x, y) be a variable point on the curve
y y0
y f (x) as shown on about figure. Then the slope of the line AP is given by
x x0
or f (x) f (x0 ) . When the variable point P moves closer and closer to A along the
x x0
curve y f (x) , i.e. x x0 . the line AP becomes the tangent line of the curve at the
point A. Hence, the slope of the tangent line at the point A is equal to
lim f (x) f (x0 ) . This term is defined to be the derivative of f (x) at x x and
xx0 x x0 0
is usually denoted by f ' (x0 ) . The definition of derivative at any point x may be
defined as follows.
Definition Let y f (x) be a function defined on the interval a, b and
x0 a,b.
f (x) is said to be differentiable at x0 ( or have a derivative at x0 ) if
the limit lim f (x) f (x0 ) exists. This lime value is denoted by
xx0 x x0
If f (x) has a derivative at every point x in a, b, then f (x) is said
to be differentiable on a, b.
Page 2
Lecturer: Isaac Hui
Unit 8 Maths for Construction
Rules of Differentiation
1. Composite functions
d du
dx ku k dx d (u v) du dv d uv u dv v du
dx dx dx dx dx dx
v du u dv
d u
dx dx dy dy du dy 1
dx v v 2
dx du dx dx dx
dy
2. Algebraic functions
d
x k kxk 1 where k must be independent of x (usually a constant)
dx
dy 1
If y f 1 (x) then dx df ( y)
dy
4. Trigonometric functions
d d d
sin x cos x cos x sin x tan x sec2 x
dx dx dx
d d d cot x csc2 x
sec x sec x tan x csc x csc x cot x
dx dx dx
Page 3
Lecturer: Isaac Hui
Unit 8 Maths for Construction
d 1 d -1
Remark (sin 1 x) = , cos 1 x =
dx 1x 2
dx 1x2
d 1 d -1
tan1 x = , cot 1 x =
dx 1x2 dx 1x2
d sec1 x = 1 , d csc1 x = -1
dx x x 12
dx x x 2 1
5. Logarithmic functions
d d 1
e x e x ln x
dx dx x
d a x a x ln a d log x 1
a
dx dx x ln a
7. Chain Rule
If h g f , i.e. h(x) g( f (x)) and f, g are differentiable, then h' (x) g' ( f (x)) f ' (x) .
8. Higher Derivative
dx dx dx dx
(n) (n) dny
w.r.t. x is denoted by y ,f (x) or .
dx n
Page 4
Lecturer: Isaac Hui
Unit 8 Maths for Construction
Worked Examples for Differentiation of Single Variables Function
d
1. dx [x ln(1 x)]
d d d
dx [x ln(1 x)] dx (x) ln(1 x) x dx (ln(1 x))
1
ln(1 x) x 1 x (1)
x
ln(1 x) 1 x
2. y (3x 100)60
d d d
[(3x 100) 60 ] [(3x 100) 60 ] (3x 100)
dx d (3x 100) dx
60(3x 100)59 3
180(3x 100)59
x
3. y
1x2
d
d ( x ) 1 x x dx ( 1 x )
2 2
dx 1 x 2 1x2
1 x 2 x d ( 1 x 2 ) d (1 x 2 )
d (1 x )
2
dx
1x 2
Page 5
Lecturer: Isaac Hui
Unit 8 Maths for Construction
3.1.2 Partial Differentiation
From the previous section, we have learnt the basic rules and operation to find the
derivative of a single variable function. It is very common to set up a function
containing two variables in engineering problem. The following section would
introduce the basic principle of partial differentiation and its properties.
Definition
Basically, when you are asked to find the partial derivative f x (x, y) , it means you
can simply regard y as a constant in the function. On the other hand, you can
regard x as a constant in the function when you evaluate f y (x, y) . Therefore, the
basic skills in finding derivatives for single variable function still applies here.
Page 6
Lecturer: Isaac Hui
Unit 8 Maths for Construction
Example:
1. Let f (x, y) xy 3 2x 4 y 2 4x ,
x 2 y yx 2
2. Let f (x, y)
1 xy 2
(1 xy 2 ) 2
2x 2 2x 3 y 2 4x 3 y 2
(1 xy 2 )2
2x 2
2x 3 y 2
(1 xy 2 ) 2
Page 7
Lecturer: Isaac Hui
Unit 8 Maths for Construction
Class Exercise 1:
Similar to the higher order derivatives of single variable function, we can also define
higher order derivatives of multivariable function z f (x, y) :
Class Exercise 2:
From the above analysis, we note that the derivatives or differentiation has two
meanings:
Page 8
Lecturer: Isaac Hui
Unit 8 Maths for Construction
1. Geometric Meaning:
For the derivatives of a single variable function at any point, it means the slope of the
tangent line to that point. Because, by definition, derivative means:
dy f (x) f (x0 )
lim which is the ratio of the change of function over its relative
dx xx0 x x0
difference. When the distance tends to zero, the change actually resembles the slope
of the tangent line to that point graphically.
For function with multiple variables (2 unknowns) z f (x, y) , the derivatives with
respect to each variables means the slope of the tangent line of the plane in that
particular direction.
2. Physical Meaning:
For any function y=f(x), rate of change of a function within the interval [x,a] equals to
y f (x) f (a) . When x tends to a, the limit of the ratio
x xa
becomes lim y lim f (x) f (a) dy . Therefore, the derivative at point x=a,
xa a xa xa dx xa
y=f(a) can also mean the rate of change of the function at x=a. This meaning is
particular useful in using differentiation to describe rate of change/velocity problem.
Technically, for a moving object, we can record the distance it has travelled against
the time lapsed and construct a displacement function X(t). The velocity of the object
dX (T )
could be represented by ; the acceleration of the object could be represented by
dT
dV (T ) d 2 X (t) .
dT dT 2
Page 9
Lecturer: Isaac Hui
Unit 8 Maths for Construction
Class Exercise 3:
An oil tank is in the shape of a rectangular prism with a squared shape base plan, and
the height of the oil tank is 10m more than twice of its breadth. You are requested to
pump out the oil and you have ordered a pump truck with a constant pump rate of
0.5m3/min. Suppose your inspector discovered that the top oil level drops at a rate of
0.1m/min, please find out the dimension and volume of the oil tank.
Definition For any function f (x) if F(x) is the primitive function of f (x) , i.e.
F '(x) f (x) , then we define the indefinite integral of f (x) w.r.t.x as
Theorem Two function f (x) and h(x) differ by a constant if and only if they
have the same primitive function.
Standard Results
ax x x2 a2
9. a dx
x
c 10. 2
1
2 dx ln c
lna x a a
11*. c 12*.
1 x 1 1 x
2 2 dx sin1 2 dx tan1 c
2
a x a x a a a
1 x2 a2 x
13. x a
2 2 dx ln
a
c
Example:
2
1. (2x 2 8x)dx (2x 2 )dx (8x)dx 3 x3 4x 2 C
2. Evaluate:
Page 11
Lecturer: Isaac Hui
Unit 8 Maths for Construction
Example:
1 x2 a2 x
1. Prove dx ln c
x a2
2
a
sub x a tan θ
dx asec2 θ dθ
proof
1
x2 a2 dx
=
asec1θasec2θdθ
= sec θdθ
= lnsec θ tan θ c
= ln x2 a2 x c
a
2. tan θdθ
= cossin θθ dθ
cos θ
= 1 d( cos θ )
= lncos θ c
Class Exercise 4:
1. lnxx dx
2. cot θ dθ
cos x
3. 3 2sinx dx
4. x 1 x dx
2
Page 12
Lecturer: Isaac Hui
Unit 8 Maths for Construction
3.2.3 Integration by Parts
proof d uv = u dv v du
dx dx dx
u dv = d uv v du
dx dx dx
We integrate both sides with respect to x to obtain
udv = u dv dx = uv vdu
dx
Examples:
1. lnx dx
x ln x xd (ln x)
1
x ln x x x dx
x ln x dx
x ln x x C
2. x2 lnx dx
1
3 ln xd (x3 )
1
3 [x3 ln x x3 d (ln x) ]
1 1
3 [x3 ln x x3 x dx]
1
3 [x3 ln x x 2 dx]
1 1
3 [x3 ln x 3 x3 ] C
Page 13
Lecturer: Isaac Hui
Unit 8 Maths for Construction
Class Exercise 5:
1. tan1 x dx
2. (lnx)2 dx
3. x 2 cos xdx
P(x)
We resolve the rational function Q(x) by simple partial fraction for P(x),Q(x)
being poly. The integration of rational function is easily done by terms by terms
integration.
Examples:
dx
1.
x a 2 2
1
1
A B , where A and B is constant. We need
Since x 2 a 2 (x a)(x a) x a x a
to determine A and B in order to decompose the quotient of function into partial
fraction form.
RHS A B Ax Aa Bx Ba 1 LHS
xa xa (x a)(x a) (x a)(x a)
A B 0 (1)
and ( A B)a 1 (2)
1. x 1 dx
x2 1
x 3 2x2 1
2.
(x 1)(x 2)(x 3)2
dx
3.3 Definite Integration
a x0 x1 x2 xn1bfromatobintonsubintervals.(not
necessarily equal width) such that when n , the length of each subinterval will
tend to zero.
a
b
f (x) dx nlim(xi xi 1 ) f (i )
i 1
Page 15
Lecturer: Isaac Hui
Unit 8 Maths for Construction
Remark For equal width, i.e. divide [a, b] into n equal subintervals of length,
i.e. h b a ,
n
n n
ba
we have a b
f (x) dx nlim f (i )h lim
n f (i ) .
i 1 i 1 n
Choose i xi and xi a ih
n n1
ba ba
ab f (x) dx nlim f (a i) h OR ab f (x) dx nlim f (a i) h
i 1 n i 0 n
depending on its lower and upper limits only, and is independent of the
Geometrically, the absolute value of integral means the area bounded by the
function f(x), x=a, x=b and the x-axis (i.e. y=0).
Page 16
Lecturer: Isaac Hui
Unit 8 Maths for Construction
Examples:
1. 21 x 1dx
21 x 1dx
01 (1 x)dx 02 (x 1)dx
(1 x) 2 (x 1) 2
0
2
2 1
2 0
[ 1 (1 1) 2 ] [ 1 (1) 2 ]
2222
3
2
Class Exercise 7:
b x4 d
Evaluate (a) 0 x (x b) dx and (b)
4 4 4
1 sin
4
Page 17
Lecturer: Isaac Hui
Unit 8 Maths for Construction
3.4 Application of Differentiation - Stationary Point of functions
maximum
point of
inflection
There are 3 types of stationary points:
maximum points, minimum points
and points of inflection.
minimum
Page 18
Lecturer: Isaac Hui
Unit 8 Maths for Construction
Points of Inflection
gradient
2
At some points dy = 0 and d y = 0. positive
dx dx2
gradient
Two such points are shown in the sketches. gradient zero
They are called points of inflection. positive
gradient gradient zero
d2 y negative
Note that is also zero at some
dx2 gradient
maximum and minimum points.
negative
To find the type of stationary point,
consider the gradient at each side of it.
Maximum Points
Page 19
Lecturer: Isaac Hui
Unit 8 Maths for Construction
Minimum Points
Example:
x3 7
1. Find all the stationary points for the function : y f (x) 3 2 x 2 12x
1 and specify which points are maxima and minima.
Solution:
dy
x 2 7x 12 0 (x 4)(x 3) 0 x 4 or x3
dx
The stationary points would be (3,f(3)) and (4, f(4)), i.e. (3,14.5) and (4,14.33).
2 2 2
As d y2 2x 7 , d y2 2 3 7 1 and d y2 2471
dx dx x3 dx x4
Thus, point (3,14.5) is a local maximum point and (4,14.33) is a local minimum point.
Page 20
Lecturer: Isaac Hui
Unit 8 Maths for Construction
For a function with two variables:
(a,b), and both f x (a, b) and f y (a, b) exists, we have f x (a,b) f y (a,b) 0
Page 21
Lecturer: Isaac Hui
Unit 8 Maths for Construction
Class Exercise 8:
Question 1:
Page 22
Lecturer: Isaac Hui
Unit 8 Maths for Construction
Question 2:
a b
f (x) dx nlim (xi xi 1 ) f (i ) represent the area bounded by the function y=f(x),
i 1
Page 23
Lecturer: Isaac Hui
Unit 8 Maths for Construction
Example:
1. Find the area of the region bounded by the parabola y 2 4x and the line
y 2x .
Solution:
Step1: Find out the intersection point between these two curves:
C1: y 2 4x ; C2 : y 2x
2[ 2 0] 2[ 1 ]
3 2
4
1
3
Class Exercise 9:
Find the area of the region bounded by the parabola y x(2 x) and the line x 2 y .
Page 24
Lecturer: Isaac Hui
Unit 8 Maths for Construction
3.5.2 Volume of Solids
Method of Slice:
Page 25
Lecturer: Isaac Hui
Unit 8 Maths for Construction
Example:
Solution:
At each slice, the height of the slice is x and the width of the slice is 1-x by
proportionality. Therefore, the area of slice is: A(x) (1 x) 2 .
V 01 A(x) dx
01 (1 x) 2 dx
1
-0 (1 x) 2 d(1 - x)
3
0
1
3
Page 26
Lecturer: Isaac Hui
Unit 8 Maths for Construction
Solid of Revolution:
Page 27
Lecturer: Isaac Hui
Unit 8 Maths for Construction
Example:
Solution:
V 01 6 y dy
2
y 16
20
128cm 3
Page 28
Lecturer: Isaac Hui
Unit 8 Maths for Construction
Example:
Solution:
By definition, the volume formed by revolving lower region of the curve to be:
V 2 0 xf (x) dx
2[ x 4 ] 4
4 0
2 64
128 cm 3
Volume of cup = 16x16 128 128 cm3
Page 29
Lecturer: Isaac Hui