SlideShare a Scribd company logo
Integration in Mathematics B
John A. Belward, Department of Mathematics
University of Queensland
e-mail: jab@maths.uq.edu.au, web: www.maths.uq.edu.au/~jab
This presentation concerns integration. I am not going to go through a long set of difficult
manipulative examples, rather I want to raise important (as I see them) points I hope this will help
people when preparing work programs and assessment instruments.
Until one does problems with applications in applied areas, the extension to topics in Mathematics
C which concern integration will most likely concern freer use of the log, exponential and
trigonometric functions, so a lot of what is here is relevant to Mathematics C too.
I want to make some points about
• indefinite integrals
• the definite integrals
• what is area
• the fundamental theorem of calculus
• simple substitution
• numerical integration
• manipulation packages
What is integration
What is it for? It enables us to navigate in space. If we know our velocity vector v at any time t
then our position vector is given by s where
d
dt
=
s
v and if we have s = s0 at t = t0 then
0
0 = ( )
t
t
t dt∫s - s v
so we just have to integrate v(t) ! To know v(t) we integrate the acceleration vector a(t) in a
similar way.
Figure 1
There are other less attention grabbing examples.
1
Indefinite integrals
The expression
( )f x dx∫
stands for the function which when differentiated gives f(x).
It is commonly known as the indefinite integral.
It is also sometimes known as the antiderivative of f(x), or even a primitive
Examples:
2 2
4
3
2 ; sin( ) cos( ) ; 2
2
u ux
x dx c t dt t c e udu e cπ π= + + = − + + = +∫ ∫ ∫
The number c can have any value, simply because the derivative of a constant is zero.
These examples are done “by inspection” which is a pompous way of saying “guess and check”.
So there is a nagging question. Since I have guessed the answer someone else might make a guess
too which can be verified, but is different from mine.
Example (esoteric)
2 2 2 2
2sec tan tan and 2sec tan secx xdx x c x xdx x c= + = +∫ ∫
because
2 2 2 2
tan 2sec tan and sec 2sec tan
d d
x x x x x
dx dx
= = x
Here the theoreticians (pure mathematicians) come to our assistance proving that if two functions
have the same derivative they differ from each other by a constant at the most.
Doing indefinite integration boils down to learning manipulative tricks.
Examples
2 3 8 3 9
27 ( 2) ( 2)x x dx x+ = + +∫ c
and
3
3 2 2 2 sin
cos cos cos (1 sin )cos cos sin cos sin
3
d d d d d
θ
θ θ θ θ θ θ θ θ θ θ θ θ θ θ= = − = − = −∫ ∫ ∫ c+∫ ∫
I’d expect that the second of these to be set only as a challenge problem.
2
Definite integration
The definite integral is denoted by
( )
b
a
f x dx∫
Its geometric interpretation is the area defined by the lines y = f(x) , y = 0, x = a and x = b,
when f(x) is positive from a to b.
Figure 2
Shaded Area = ( )
b
a
f x dx∫
There is nothing to be proved in this statement if the definition of area for sets of points enclosed by
curved lines has been made.
Defining area
Strict proofs probably belong to second year tertiary mathematics, but an intuitive idea can easily be
grasped with the use of a couple of diagrams. One of them has an immediate practical application.
This is the tiler’s problem mistakenly called the butcher’s problem.
A millionaire in Brisbane has a pool included in the back yard of his architect designed home.
Being architect designed, for aesthetic reasons the shape of the pool is random, as shown. The
millionaire is tough and has had the man screw his price right down low. Thus the area of the pool
has to be known accurately to minimise wastage. How does he find this out?
Well, he’s never done any maths save for a little geometry and arithmetic. So he gets the plans of
the back yard which show the position of the pool accurately and proceeds as follows.
He overlays a piece of squared paper on the plan and counts the number of squares inside the pool.
Subtracting this from the rectangular area he knows that the area of tiles mustn’t exceed a certain
3
amount. And he can do another sum by counting the squares that overlap the pool with part of the
square overlapping the pool. This way he finds out a total that he must exceed when placing his
order.
Figure 3a, b, c,
This is all very well but theses two areas differ by a lot. Can he do better? Yes if he overlays a grid
of smaller squares. In this way he can reduce the grid size until the over estimate and the
underestimate are near enough together.
Figure 4a, b, c
In doing this he has essentially defined what we mean by area. If it is rectangular or polygonal then
we find it by doing length times breadth and adding up a finite number of areas of pieces. If it is
enclosed by a curve we have to overlay the grid of squares reducing the grid size to determine the
limits of the inner and outer areas.
You could argue that the tiler used numerical integration for that is just what he did.
4
y
x
y
x
Figure 5a,b
From the diagrams above we observe that the area between the curve and the axis as shown in
figure 2 is greater than the sum of the areas of the rectangles on the left and less than those on the
right. By extending the horizontals and verticals it is easy to see that these areas are just the areas
of a grid of underlapping squares and overlapping squares.
This is far from rigorous, but a plausible argument to show that the definition of area and the
definition of the definite integral are one and the same thing.
We can write these areas as a summation using the sigma notation or write out the expression in full
detail, either way is complicated but hard to avoid. For the current discussion it is enough to use the
diagrams.
Nevertheless we note that
1
1 1 1
( ) ( ) ( ) ( )lim lim lim
bn n n
i i i i i i
i i i an n n
f x x f x x f t x f x d−
= = =→∞ →∞ →∞
∆ = ∆ = ∆ =∑ ∑ ∑ ∫ x
(ti is a value between xi-1 and xi )
This result is used endlessly in problems where the evaluation of some quantity (physical,
economic, etc.) is needed.
This has nothing to do with differentiation until we learn of the fundamental theorem of Calculus.
( ) ( ) ( ) where ( ) is such that '( ) ( )
b
a
f x dx F b F a F x F x f x= − =∫
There are ways of evaluating definite integrals where we do not find an antiderivative. Thus while
one often learns about integration as antidifferentiation this is not the whole story by any means and
it is not correct to think of integration as being the reverse of differentiation.
5
Demonstration of the fundamental theorem and the relation between the indefinite integral
and the definite integral
If we allow either of the limits of integration in a definite integral to vary then we will have a
function, so we can write
( ) ( )
t
a
G t f x dx= ∫
If the integral can be evaluated for all values of t greater than a then the function is defined.
From this definition we can say
( ) ( )
x
a
G x f t dt= ∫
The roles of x and t have changed above. More on this point below.
Now we can find G x as follows'
( )
( ) ( ) ( ) ( )
x x x
a a
G x x G x f t dt f t dt
+∆
+ ∆ − = −∫ ∫
and it is clear from a diagram that this is the difference of 2 areas and so itself is an area as shown
below, because G(x) = A and G(x+∆ x) = A + ∆A .
∆y
∆A
t = x
P
∆x
T
N (x+∆x, y+∆y)
y
y = f(t)
S
t
t = x+∆x
M
A
Q
B
t=a
Now
( ) ( )G x x G x A
x x
+ ∆ − ∆
=
∆ ∆
and ∆A lies between (length of PQ)∆x and (length of MN)∆x.
Now lets write this down explicitly and then divide through by ∆x to get successively
( ) (lengthPQ x A length MN x)∆ < ∆ < ∆
and
( ) (
A
lengthPQ length MN
x
)
∆
< <
∆
6
Finally, as ∆ x goes to zero (lengthMN) becomes (lengthPQ) which is f(x) and so we’ve shown
that
'( ) ( )
As 0, ( ) in other words ( ) so ( ) ( )
A G x x G x
x f x f x G x f x
x x
∆ + ∆ −
∆ → → → =
∆ ∆
Some notation. Which is a constant and which is a variable.
Because we can add and subtract areas,
if then but the integral on the
right hand side of this last equation is independent of x so G′ (x) = F′ (x).
( ) ( ) , and G( ) ( ) ,
x x
a b
F x f t dt x f t dt= =∫ ∫ ( ) ( ) G( )
b
a
F x f t dt x= +∫
So now we can bring together the notation for definite and indefinite integrals, thus
( ) ( ) where is arbitrary
x
a
f x dx f t dt a=∫ ∫ .
Thus it appears that a takes the part of the arbitrary constant. In fact a is almost arbitrary,
because it must be in the range of f(x) .
Please note also that
( ) ( ) = ( ) = ( )
x t x x
a t a a
f x dx f t dt f t dt f d
=
=
=∫ ∫ ∫ ∫ i i
and indeed
( ) = ( ) = ( ) ( ) = ( ) ( )= ( ) ( )
b b b b b
a a a a a
f x dx f t dt f cows d cows f horses d horses f elephants d elephants∫ ∫ ∫ ∫ ∫ .
These statements underline the fact that the variable of integration is irrelevant as far as the value of
the definite integral is concerned. The value of the integral depends on the function, f , and the
interval [a, b]. Indeed in many advanced texts you will just see
b
a
f∫ .
Substitution
The example
2 2
2u u
e udu e c= +∫
is of the form
'
( ( )) ( )f g u g u du∫ .
We recognize that had we differentiated
2
u
y e= we would have done so by putting z = u2
then y = ez
and we work out and
dz dy
du dz
and apply
dy dy dz
du dz du
= . As said before, this is just
a “guess and check” example.
7
If you put z = g(u) and '( )
dz
g u
du
= then you can put
'
( ( )) ( ) ( ) ( )
dz
f g u g u du f z du f z dz
du
= =∫ ∫ ∫
2
=
.
In these manipulations we have “cancelled” du and dz ; these formal operations have to be
legitimised, fortunately the pure mathematicians have done this for us.
There is a very compact way of viewing the “guess and check” structure, it is to see that we can
express the integral as
2 2
2 ( ) ( )
2 ( ) and we apply ( ) puttingu u
e udu e d u e d e c u= = +∫ ∫ ∫
i i
i i
Apply the same reasoning to 2 7
( 5)x xdx+∫ , observing that a “fudge factor” of 2 (legitimate here)
needs to be introduced inside and outside the integral, in the denominator and numerator
respectively.
The reasons for pointing out these interpretations are two-fold. First to reduce the amount of detail,
which for some will reduce the possibility of an arithmetic or algebraic blunder, and also because
this way we see structure and gain some insight into what is a function. Ask the students whether
they think that sin(x) , sin(w) and sin(x2
) are the same functions.
My understanding of the Mathematics B syllabus is that integration by substitution is only to be
done on examples which can be done by guess and check.
Certainly, applying substitution in the reverse direction where we do
'
( ) with ( ) so that ( ) ( ( )) ( )
dz
f z dz z g u f z du f g u g u du
du
= =∫ ∫ ∫
and thus get a more tractable integral in terms of u is not in the syllabus.
Numerical integration
To get an idea of the accuracy of the trapezoidal rule some examples should be done in which the
exact value is known. The error can be plotted and the dependence on the number of intervals
investigated. Further, since the rule is obtained by integrating a piecewise linear approximation to
the integrand by plotting the function and the piecewise linear approximation an understanding of
the error behaviour can be obtained.
For example with we get the following results( ) sin(3 ) for the interval [0,4]f x x=
no of intervals approximate
value
exact value absolute error relative error
4 .00554 .052045 .04651 .894
8 .04190 .052045 .01014 .195
16 .04959 .052045 .00246 .047
32 .05144 .052045 .00061 .012
Table 1 Results for the Trapezoidal rule with ( ) sin(3 ) for the interval [0,4]f x x=
Plotting the function and the approximations for 4 and 8 intervals we get the following diagrams
8
0 0.5 1 1.5 2 2.5 3 3.5 4
-1
-0.8
-0.6
-0.4
-0.2
0
0.2
0.4
0.6
0.8
1
0 0.5 1 1.5 2 2.5 3 3.5 4
-1
-0.8
-0.6
-0.4
-0.2
0
0.2
0.4
0.6
0.8
1
you can see that until we put in enough points to follow the function we will have little chance of
getting an accurate answer.
Using Mathematical Software
I assume that everyone uses calculators to compute integrals using the trapezoidal rule. The areas
that featured in earlier sections in the definition of the definite integral can be calculated easily for
simple functions with very similar keystrokes or code. A spread sheet can also be used for these
purposes. I use Matlab because it is accessible and I am familiar with how it works.
Using symbolic manipulation packages is not yet established as an element of first year courses at
the University of Queensland. I would always use a package – demonstrate and use it in a lecture -
if it is available, but I prefer to present the package as a resource which can support the course
rather than be an integral part of it. The problem is the communications interface. Interpretation of
the output and a realization of what to expect from the package are crucial elements in their use.
These are not simple tasks to master.
I have learned from experience not to face a class without having gone through the steps ahead of
time.
9
One day in a lecture I typed into Maple:
> int(1/(x^2-1),x);
and was returned
-arctanh(x)
I had to do some talking! Of course I expected to get a logarithm as the answer.
So I then did
> int(1/((x-1)*(x+1)),x);
and got
1/2 ln(x - 1) - 1/2 ln(x + 1)
which was what I wanted. But since I wanted the students to learn that the first thing to do is to
factor the expression, Maple had not helped me at all.
Here are some more examples which I found ‘interesting’ when doing solutions to some of the
revision chapters in our book
The example was “Find the derivative of 3
( 2)y x= + ”
I entered :
>diff(sqrt((x+2)^3),x);
and was returned
2
3
3 ( 2)
2 ( 2)
x
x
+
+
I was not impressed with that answer and had to enter
> diff((x+2)^(3/2),x);
to get
3
2
2
x +
After getting
2
3
3 ( 2)
2 ( 2)
x
x
+
+
I later found that I could have used
>simplify(“);
Simplify does not always get you what you want, here’s another sequence:
10
> diff((x+2)^3*((x-1)^7),x);
2 3
3 ( 2) ( - 1) 7( 2) ( - 1)x x x x+ + + 6
6
> simplify("); “ stands for the last expression
9 8 7 6 5 4 3 2
10 - 9 - 72 105 126 - 315 84 207 180 44x x x x x x x x x+ + + + − +
> collect("",x); “” stands for the second last expression
9 8 7 6 5 4 3 2
10 - 9 - 72 105 126 - 315 84 207 180 44x x x x x x x x x+ + + + − + you don’t always get what
you want!
- 180 x + 44
> factor("""); “””stands for the third last expression !
2
(10 11)( 2) -1( )x x x+ + at last!
Finally, I wanted to do 2 3
6 (3 2)x x +∫ dx , expecting 2 41
(3 2)
4
x c+ + . Here’s what I got:
>int((6*x)*(3*x*x+2)^3,x);
8 6 481
54 54 4
4
2
x x x+ + + x Well that’s not what I expected, but I can factorise it into the
form I want, so I did
> factor("); and got
2 2 4 23
(3 4)(9 12 8)
4
x x x x+ + + That’s not what I wanted! Then I realized the trouble
was with the non-existent arbitrary constant and so I could fudge it!
> factor(""+4);
2 41
(3 2)
4
x +
Conclusion There is a lot of craft needed when using manipulation packages.
11

More Related Content

PPTX
Calculus Homework Help
PPT
Integration
PDF
Week 6
PPTX
Calculus Homework Help
PDF
Math lecture 10 (Introduction to Integration)
PPTX
Calculus Homework Help
PDF
Numeros reales y_plano_numerico1.1_compressed
PPTX
Calculus Assignment Help
Calculus Homework Help
Integration
Week 6
Calculus Homework Help
Math lecture 10 (Introduction to Integration)
Calculus Homework Help
Numeros reales y_plano_numerico1.1_compressed
Calculus Assignment Help

What's hot (19)

PPTX
5 4 equations that may be reduced to quadratics
PPTX
Difference quotient algebra
PPTX
Integration presentation
PDF
Chapter 12 vectors and the geometry of space merged
PDF
Stability criterion of periodic oscillations in a (9)
PDF
13 1 basics_integration
PPTX
5 3 the graphs of quadratic equations
PPTX
Logistics Management Assignment Help
PPT
Solution 3
PPT
optimal graph realization
PPT
PDF
Introduction to Real Analysis 4th Edition Bartle Solutions Manual
DOCX
Linear ineqns. and statistics
PPTX
Pure Mathematics 1- Functions
PDF
Module 4 quadratic functions
PPT
Solution 3
PPT
9 determinant and cross product
PDF
Module 2 exponential functions
PDF
Module 1 linear functions
5 4 equations that may be reduced to quadratics
Difference quotient algebra
Integration presentation
Chapter 12 vectors and the geometry of space merged
Stability criterion of periodic oscillations in a (9)
13 1 basics_integration
5 3 the graphs of quadratic equations
Logistics Management Assignment Help
Solution 3
optimal graph realization
Introduction to Real Analysis 4th Edition Bartle Solutions Manual
Linear ineqns. and statistics
Pure Mathematics 1- Functions
Module 4 quadratic functions
Solution 3
9 determinant and cross product
Module 2 exponential functions
Module 1 linear functions
Ad

Viewers also liked (11)

PDF
G S Ajay Kumar
DOCX
PathOfMostResistance
PDF
PDF
MKTG 341 Plans Book Finished
PPTX
Discover Your HP
PDF
The Williams Group 2015 Transit Quals1
PDF
O ctober december issue final
PPTX
MIS - Web 2.0 Review
PDF
G S Ajay Kumar
PathOfMostResistance
MKTG 341 Plans Book Finished
Discover Your HP
The Williams Group 2015 Transit Quals1
O ctober december issue final
MIS - Web 2.0 Review
Ad

Similar to 1543 integration in mathematics b (20)

PDF
Calculus - Functions Review
PDF
Understanding the "Chain Rule" for Derivatives by Deriving Your Own Version
PPT
Calc 7.1a
PDF
The Fundamental theorem of calculus
DOCX
Based on the readings and content for this course.docxBased on.docx
PDF
1.1_The_Definite_Integral.pdf odjoqwddoio
PPT
Developing Expert Voices
PDF
8.further calculus Further Mathematics Zimbabwe Zimsec Cambridge
PDF
PPTX
Calculus Assignment Help
DOCX
continued fractions, over decimal system and ancient Indian Mathematics
PDF
Optimization
PDF
Week 7
PDF
Conjugate Gradient Methods
PPTX
Project in Calcu
PPTX
Differential Equations Assignment Help
PPTX
Calculus Assignment Help
PPTX
1.6 all notes
PPTX
Calculus Assignment Help
Calculus - Functions Review
Understanding the "Chain Rule" for Derivatives by Deriving Your Own Version
Calc 7.1a
The Fundamental theorem of calculus
Based on the readings and content for this course.docxBased on.docx
1.1_The_Definite_Integral.pdf odjoqwddoio
Developing Expert Voices
8.further calculus Further Mathematics Zimbabwe Zimsec Cambridge
Calculus Assignment Help
continued fractions, over decimal system and ancient Indian Mathematics
Optimization
Week 7
Conjugate Gradient Methods
Project in Calcu
Differential Equations Assignment Help
Calculus Assignment Help
1.6 all notes
Calculus Assignment Help

More from Dr Fereidoun Dejahang (20)

DOCX
27 j20 my news punch -dr f dejahang 27-01-2020
DOCX
28 dej my news punch rev 28-12-2019
DOCX
16 fd my news punch rev 16-12-2019
PPT
029 fast-tracking projects
PPT
028 fast-tracking projects &amp; cost overrun
PPT
027 fast-tracked projects-materials
PPT
026 fast react-productivity improvement
PPT
025 enterprise resources management
PPT
022 b construction productivity-write
PPT
022 a construction productivity (2)
PPT
021 construction productivity (1)
PPTX
019 competencies-managers
PPT
018 company productivity
PPT
017 communication
PPT
016 communication in construction sector
PPTX
015 changes-process model
PPTX
014 changes-cost overrun measurement
PPTX
013 changes in construction projects
PPT
012 bussiness planning process
PPT
011 business performance management
27 j20 my news punch -dr f dejahang 27-01-2020
28 dej my news punch rev 28-12-2019
16 fd my news punch rev 16-12-2019
029 fast-tracking projects
028 fast-tracking projects &amp; cost overrun
027 fast-tracked projects-materials
026 fast react-productivity improvement
025 enterprise resources management
022 b construction productivity-write
022 a construction productivity (2)
021 construction productivity (1)
019 competencies-managers
018 company productivity
017 communication
016 communication in construction sector
015 changes-process model
014 changes-cost overrun measurement
013 changes in construction projects
012 bussiness planning process
011 business performance management

Recently uploaded (20)

PDF
Basic Mud Logging Guide for educational purpose
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Cell Structure & Organelles in detailed.
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
Pharma ospi slides which help in ospi learning
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PDF
Pre independence Education in Inndia.pdf
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Classroom Observation Tools for Teachers
PPTX
Institutional Correction lecture only . . .
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
GDM (1) (1).pptx small presentation for students
Basic Mud Logging Guide for educational purpose
102 student loan defaulters named and shamed – Is someone you know on the list?
Cell Structure & Organelles in detailed.
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Microbial diseases, their pathogenesis and prophylaxis
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Pharma ospi slides which help in ospi learning
STATICS OF THE RIGID BODIES Hibbelers.pdf
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
Pre independence Education in Inndia.pdf
O5-L3 Freight Transport Ops (International) V1.pdf
PPH.pptx obstetrics and gynecology in nursing
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
human mycosis Human fungal infections are called human mycosis..pptx
Classroom Observation Tools for Teachers
Institutional Correction lecture only . . .
Renaissance Architecture: A Journey from Faith to Humanism
VCE English Exam - Section C Student Revision Booklet
GDM (1) (1).pptx small presentation for students

1543 integration in mathematics b

  • 1. Integration in Mathematics B John A. Belward, Department of Mathematics University of Queensland e-mail: jab@maths.uq.edu.au, web: www.maths.uq.edu.au/~jab This presentation concerns integration. I am not going to go through a long set of difficult manipulative examples, rather I want to raise important (as I see them) points I hope this will help people when preparing work programs and assessment instruments. Until one does problems with applications in applied areas, the extension to topics in Mathematics C which concern integration will most likely concern freer use of the log, exponential and trigonometric functions, so a lot of what is here is relevant to Mathematics C too. I want to make some points about • indefinite integrals • the definite integrals • what is area • the fundamental theorem of calculus • simple substitution • numerical integration • manipulation packages What is integration What is it for? It enables us to navigate in space. If we know our velocity vector v at any time t then our position vector is given by s where d dt = s v and if we have s = s0 at t = t0 then 0 0 = ( ) t t t dt∫s - s v so we just have to integrate v(t) ! To know v(t) we integrate the acceleration vector a(t) in a similar way. Figure 1 There are other less attention grabbing examples. 1
  • 2. Indefinite integrals The expression ( )f x dx∫ stands for the function which when differentiated gives f(x). It is commonly known as the indefinite integral. It is also sometimes known as the antiderivative of f(x), or even a primitive Examples: 2 2 4 3 2 ; sin( ) cos( ) ; 2 2 u ux x dx c t dt t c e udu e cπ π= + + = − + + = +∫ ∫ ∫ The number c can have any value, simply because the derivative of a constant is zero. These examples are done “by inspection” which is a pompous way of saying “guess and check”. So there is a nagging question. Since I have guessed the answer someone else might make a guess too which can be verified, but is different from mine. Example (esoteric) 2 2 2 2 2sec tan tan and 2sec tan secx xdx x c x xdx x c= + = +∫ ∫ because 2 2 2 2 tan 2sec tan and sec 2sec tan d d x x x x x dx dx = = x Here the theoreticians (pure mathematicians) come to our assistance proving that if two functions have the same derivative they differ from each other by a constant at the most. Doing indefinite integration boils down to learning manipulative tricks. Examples 2 3 8 3 9 27 ( 2) ( 2)x x dx x+ = + +∫ c and 3 3 2 2 2 sin cos cos cos (1 sin )cos cos sin cos sin 3 d d d d d θ θ θ θ θ θ θ θ θ θ θ θ θ θ θ= = − = − = −∫ ∫ ∫ c+∫ ∫ I’d expect that the second of these to be set only as a challenge problem. 2
  • 3. Definite integration The definite integral is denoted by ( ) b a f x dx∫ Its geometric interpretation is the area defined by the lines y = f(x) , y = 0, x = a and x = b, when f(x) is positive from a to b. Figure 2 Shaded Area = ( ) b a f x dx∫ There is nothing to be proved in this statement if the definition of area for sets of points enclosed by curved lines has been made. Defining area Strict proofs probably belong to second year tertiary mathematics, but an intuitive idea can easily be grasped with the use of a couple of diagrams. One of them has an immediate practical application. This is the tiler’s problem mistakenly called the butcher’s problem. A millionaire in Brisbane has a pool included in the back yard of his architect designed home. Being architect designed, for aesthetic reasons the shape of the pool is random, as shown. The millionaire is tough and has had the man screw his price right down low. Thus the area of the pool has to be known accurately to minimise wastage. How does he find this out? Well, he’s never done any maths save for a little geometry and arithmetic. So he gets the plans of the back yard which show the position of the pool accurately and proceeds as follows. He overlays a piece of squared paper on the plan and counts the number of squares inside the pool. Subtracting this from the rectangular area he knows that the area of tiles mustn’t exceed a certain 3
  • 4. amount. And he can do another sum by counting the squares that overlap the pool with part of the square overlapping the pool. This way he finds out a total that he must exceed when placing his order. Figure 3a, b, c, This is all very well but theses two areas differ by a lot. Can he do better? Yes if he overlays a grid of smaller squares. In this way he can reduce the grid size until the over estimate and the underestimate are near enough together. Figure 4a, b, c In doing this he has essentially defined what we mean by area. If it is rectangular or polygonal then we find it by doing length times breadth and adding up a finite number of areas of pieces. If it is enclosed by a curve we have to overlay the grid of squares reducing the grid size to determine the limits of the inner and outer areas. You could argue that the tiler used numerical integration for that is just what he did. 4
  • 5. y x y x Figure 5a,b From the diagrams above we observe that the area between the curve and the axis as shown in figure 2 is greater than the sum of the areas of the rectangles on the left and less than those on the right. By extending the horizontals and verticals it is easy to see that these areas are just the areas of a grid of underlapping squares and overlapping squares. This is far from rigorous, but a plausible argument to show that the definition of area and the definition of the definite integral are one and the same thing. We can write these areas as a summation using the sigma notation or write out the expression in full detail, either way is complicated but hard to avoid. For the current discussion it is enough to use the diagrams. Nevertheless we note that 1 1 1 1 ( ) ( ) ( ) ( )lim lim lim bn n n i i i i i i i i i an n n f x x f x x f t x f x d− = = =→∞ →∞ →∞ ∆ = ∆ = ∆ =∑ ∑ ∑ ∫ x (ti is a value between xi-1 and xi ) This result is used endlessly in problems where the evaluation of some quantity (physical, economic, etc.) is needed. This has nothing to do with differentiation until we learn of the fundamental theorem of Calculus. ( ) ( ) ( ) where ( ) is such that '( ) ( ) b a f x dx F b F a F x F x f x= − =∫ There are ways of evaluating definite integrals where we do not find an antiderivative. Thus while one often learns about integration as antidifferentiation this is not the whole story by any means and it is not correct to think of integration as being the reverse of differentiation. 5
  • 6. Demonstration of the fundamental theorem and the relation between the indefinite integral and the definite integral If we allow either of the limits of integration in a definite integral to vary then we will have a function, so we can write ( ) ( ) t a G t f x dx= ∫ If the integral can be evaluated for all values of t greater than a then the function is defined. From this definition we can say ( ) ( ) x a G x f t dt= ∫ The roles of x and t have changed above. More on this point below. Now we can find G x as follows' ( ) ( ) ( ) ( ) ( ) x x x a a G x x G x f t dt f t dt +∆ + ∆ − = −∫ ∫ and it is clear from a diagram that this is the difference of 2 areas and so itself is an area as shown below, because G(x) = A and G(x+∆ x) = A + ∆A . ∆y ∆A t = x P ∆x T N (x+∆x, y+∆y) y y = f(t) S t t = x+∆x M A Q B t=a Now ( ) ( )G x x G x A x x + ∆ − ∆ = ∆ ∆ and ∆A lies between (length of PQ)∆x and (length of MN)∆x. Now lets write this down explicitly and then divide through by ∆x to get successively ( ) (lengthPQ x A length MN x)∆ < ∆ < ∆ and ( ) ( A lengthPQ length MN x ) ∆ < < ∆ 6
  • 7. Finally, as ∆ x goes to zero (lengthMN) becomes (lengthPQ) which is f(x) and so we’ve shown that '( ) ( ) As 0, ( ) in other words ( ) so ( ) ( ) A G x x G x x f x f x G x f x x x ∆ + ∆ − ∆ → → → = ∆ ∆ Some notation. Which is a constant and which is a variable. Because we can add and subtract areas, if then but the integral on the right hand side of this last equation is independent of x so G′ (x) = F′ (x). ( ) ( ) , and G( ) ( ) , x x a b F x f t dt x f t dt= =∫ ∫ ( ) ( ) G( ) b a F x f t dt x= +∫ So now we can bring together the notation for definite and indefinite integrals, thus ( ) ( ) where is arbitrary x a f x dx f t dt a=∫ ∫ . Thus it appears that a takes the part of the arbitrary constant. In fact a is almost arbitrary, because it must be in the range of f(x) . Please note also that ( ) ( ) = ( ) = ( ) x t x x a t a a f x dx f t dt f t dt f d = = =∫ ∫ ∫ ∫ i i and indeed ( ) = ( ) = ( ) ( ) = ( ) ( )= ( ) ( ) b b b b b a a a a a f x dx f t dt f cows d cows f horses d horses f elephants d elephants∫ ∫ ∫ ∫ ∫ . These statements underline the fact that the variable of integration is irrelevant as far as the value of the definite integral is concerned. The value of the integral depends on the function, f , and the interval [a, b]. Indeed in many advanced texts you will just see b a f∫ . Substitution The example 2 2 2u u e udu e c= +∫ is of the form ' ( ( )) ( )f g u g u du∫ . We recognize that had we differentiated 2 u y e= we would have done so by putting z = u2 then y = ez and we work out and dz dy du dz and apply dy dy dz du dz du = . As said before, this is just a “guess and check” example. 7
  • 8. If you put z = g(u) and '( ) dz g u du = then you can put ' ( ( )) ( ) ( ) ( ) dz f g u g u du f z du f z dz du = =∫ ∫ ∫ 2 = . In these manipulations we have “cancelled” du and dz ; these formal operations have to be legitimised, fortunately the pure mathematicians have done this for us. There is a very compact way of viewing the “guess and check” structure, it is to see that we can express the integral as 2 2 2 ( ) ( ) 2 ( ) and we apply ( ) puttingu u e udu e d u e d e c u= = +∫ ∫ ∫ i i i i Apply the same reasoning to 2 7 ( 5)x xdx+∫ , observing that a “fudge factor” of 2 (legitimate here) needs to be introduced inside and outside the integral, in the denominator and numerator respectively. The reasons for pointing out these interpretations are two-fold. First to reduce the amount of detail, which for some will reduce the possibility of an arithmetic or algebraic blunder, and also because this way we see structure and gain some insight into what is a function. Ask the students whether they think that sin(x) , sin(w) and sin(x2 ) are the same functions. My understanding of the Mathematics B syllabus is that integration by substitution is only to be done on examples which can be done by guess and check. Certainly, applying substitution in the reverse direction where we do ' ( ) with ( ) so that ( ) ( ( )) ( ) dz f z dz z g u f z du f g u g u du du = =∫ ∫ ∫ and thus get a more tractable integral in terms of u is not in the syllabus. Numerical integration To get an idea of the accuracy of the trapezoidal rule some examples should be done in which the exact value is known. The error can be plotted and the dependence on the number of intervals investigated. Further, since the rule is obtained by integrating a piecewise linear approximation to the integrand by plotting the function and the piecewise linear approximation an understanding of the error behaviour can be obtained. For example with we get the following results( ) sin(3 ) for the interval [0,4]f x x= no of intervals approximate value exact value absolute error relative error 4 .00554 .052045 .04651 .894 8 .04190 .052045 .01014 .195 16 .04959 .052045 .00246 .047 32 .05144 .052045 .00061 .012 Table 1 Results for the Trapezoidal rule with ( ) sin(3 ) for the interval [0,4]f x x= Plotting the function and the approximations for 4 and 8 intervals we get the following diagrams 8
  • 9. 0 0.5 1 1.5 2 2.5 3 3.5 4 -1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1 0 0.5 1 1.5 2 2.5 3 3.5 4 -1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1 you can see that until we put in enough points to follow the function we will have little chance of getting an accurate answer. Using Mathematical Software I assume that everyone uses calculators to compute integrals using the trapezoidal rule. The areas that featured in earlier sections in the definition of the definite integral can be calculated easily for simple functions with very similar keystrokes or code. A spread sheet can also be used for these purposes. I use Matlab because it is accessible and I am familiar with how it works. Using symbolic manipulation packages is not yet established as an element of first year courses at the University of Queensland. I would always use a package – demonstrate and use it in a lecture - if it is available, but I prefer to present the package as a resource which can support the course rather than be an integral part of it. The problem is the communications interface. Interpretation of the output and a realization of what to expect from the package are crucial elements in their use. These are not simple tasks to master. I have learned from experience not to face a class without having gone through the steps ahead of time. 9
  • 10. One day in a lecture I typed into Maple: > int(1/(x^2-1),x); and was returned -arctanh(x) I had to do some talking! Of course I expected to get a logarithm as the answer. So I then did > int(1/((x-1)*(x+1)),x); and got 1/2 ln(x - 1) - 1/2 ln(x + 1) which was what I wanted. But since I wanted the students to learn that the first thing to do is to factor the expression, Maple had not helped me at all. Here are some more examples which I found ‘interesting’ when doing solutions to some of the revision chapters in our book The example was “Find the derivative of 3 ( 2)y x= + ” I entered : >diff(sqrt((x+2)^3),x); and was returned 2 3 3 ( 2) 2 ( 2) x x + + I was not impressed with that answer and had to enter > diff((x+2)^(3/2),x); to get 3 2 2 x + After getting 2 3 3 ( 2) 2 ( 2) x x + + I later found that I could have used >simplify(“); Simplify does not always get you what you want, here’s another sequence: 10
  • 11. > diff((x+2)^3*((x-1)^7),x); 2 3 3 ( 2) ( - 1) 7( 2) ( - 1)x x x x+ + + 6 6 > simplify("); “ stands for the last expression 9 8 7 6 5 4 3 2 10 - 9 - 72 105 126 - 315 84 207 180 44x x x x x x x x x+ + + + − + > collect("",x); “” stands for the second last expression 9 8 7 6 5 4 3 2 10 - 9 - 72 105 126 - 315 84 207 180 44x x x x x x x x x+ + + + − + you don’t always get what you want! - 180 x + 44 > factor("""); “””stands for the third last expression ! 2 (10 11)( 2) -1( )x x x+ + at last! Finally, I wanted to do 2 3 6 (3 2)x x +∫ dx , expecting 2 41 (3 2) 4 x c+ + . Here’s what I got: >int((6*x)*(3*x*x+2)^3,x); 8 6 481 54 54 4 4 2 x x x+ + + x Well that’s not what I expected, but I can factorise it into the form I want, so I did > factor("); and got 2 2 4 23 (3 4)(9 12 8) 4 x x x x+ + + That’s not what I wanted! Then I realized the trouble was with the non-existent arbitrary constant and so I could fudge it! > factor(""+4); 2 41 (3 2) 4 x + Conclusion There is a lot of craft needed when using manipulation packages. 11