Understanding Engineering Mathematics
Understanding Engineering Mathematics
Bill Cox
OXFORD
AUCKLAND BOSTON
JOHAN...
613 downloads
2888 Views
7MB Size
Report
This content was uploaded by our users and we assume good faith they have the permission to share this book. If you own the copyright to this book and it is wrongfully on our website, we offer a simple DMCA procedure to remove your content from our site. Start by pressing the button below!
Report copyright / DMCA form
Understanding Engineering Mathematics
Understanding Engineering Mathematics
Bill Cox
OXFORD
AUCKLAND BOSTON
JOHANNESBURG
MELBOURNE
NEW DELHI
Newnes An imprint of Butterworth-Heinemann Linacre House, Jordan Hill, Oxford OX2 8DP 225 Wildwood Avenue, Woburn, MA 01801-2041 A division of Reed Educational and Professional Publishing Ltd A member of the Reed Elsevier plc group
First published 2001 Bill Cox 2001
All rights reserved. No part of this publication may be reproduced in any material form (including photocopying or storing in any medium by electronic means and whether or not transiently or incidentally to some other use of this publication) without the written permission of the copyright holder except in accordance with the provisions of the Copyright, Designs and Patents Act 1988 or under the terms of a licence issued by the Copyright Licensing Agency Ltd, 90 Tottenham Court Road, London, England W1P 0LP. Applications for the copyright holder’s written permission to reproduce any part of this publication should be addressed to the publishers. British Library Cataloguing in Publication Data A catalogue record for this book is available from the British Library ISBN 0 7506 5098 2
Typeset by Laser Words Private Limited, Chennai, India Printed in Great Britain by MPG Books Ltd. Bodmin, Cornwall
Contents
Preface
ix
To the Student
xi
1 Number and Arithmetic 1.1 1.2 1.3 1.4
Review Revision Reinforcement Applications Answers to reinforcement exercises
2 Algebra 2.1 2.2 2.3 2.4
Review Revision Reinforcement Applications Answers to reinforcement exercises
3 Functions and Series 3.1 3.2 3.3 3.4
Review Revision Reinforcement Applications Answers to reinforcement exercises
4 Exponential and Logarithm Functions 4.1 4.2 4.3 4.4
1 2 5 27 31 32 37 38 40 73 79 81 87 88 90 107 110 112 118
Review Revision Reinforcement Applications Answers to reinforcement exercises
119 120 136 138 139
5 Geometry of Lines, Triangles and Circles
142
5.1 5.2 5.3 5.4
Review Revision Reinforcement Applications Answers to reinforcement exercises
143 147 160 165 167 v
C o n t e n t s
6 Trigonometry 6.1 6.2 6.3 6.4
Review Revision Reinforcement Applications Answers to reinforcement exercises
7 Coordinate Geometry 7.1 7.2 7.3 7.4
Review Revision Reinforcement Applications Answers to reinforcement exercises
8 Techniques of Differentiation 8.1 8.2 8.3 8.4
Review Revision Reinforcement Applications Answers to reinforcement exercises
9 Techniques of Integration 9.1 9.2 9.3 9.4
Review Revision Reinforcement Applications Answers to reinforcement exercises
10 Applications of Differentiation and Integration 10.1 10.2 10.3 10.4
Review Revision Reinforcement Applications Answers to reinforcement exercises
11 Vectors 11.1 11.2 11.3 11.4 11.5 11.6 11.7 11.8 11.9 11.10 11.11 vi
170 171 173 194 197 198 203 204 205 220 223 224 227 228 230 243 245 247 250 251 253 280 285 286 290 291 292 309 311 314 317
Introduction – representation of a vector quantity Vectors as arrows Addition and subtraction of vectors Rectangular Cartesian coordinates in three dimensions Distance in Cartesian coordinates Direction cosines and ratios Angle between two lines through the origin Basis vectors Properties of vectors The scalar product of two vectors The vector product of two vectors
318 319 321 323 324 325 327 328 330 333 336
C o n t e n t s
11.12 11.13 11.14 11.15 11.16
Vector functions Differentiation of vector functions Reinforcement Applications Answers to reinforcement exercises
12 Complex Numbers 12.1 12.2 12.3 12.4 12.5 12.6 12.7 12.8 12.9 12.10 12.11
What are complex numbers? The algebra of complex numbers Complex variables and the Argand plane Multiplication in polar form Division in polar form Exponential form of a complex number De Moivre’s theorem for integer powers De Moivre’s theorem for fractional powers Reinforcement Applications Answers to reinforcement exercises
13 Matrices and Determinants 13.1 An overview of matrices and determinants 13.2 Definition of a matrix and its elements 13.3 Adding and multiplying matrices 13.4 Determinants 13.5 Cramer’s rule for solving a system of linear equations 13.6 The inverse matrix 13.7 Eigenvalues and eigenvectors 13.8 Reinforcement 13.9 Applications 13.10 Answers to reinforcement exercises 14 Analysis for Engineers – Limits, Sequences, Iteration, Series and All That 14.1 Continuity and irrational numbers 14.2 Limits 14.3 Some important limits 14.4 Continuity 14.5 The slope of a curve 14.6 Introduction to infinite series 14.7 Infinite sequences 14.8 Iteration 14.9 Infinite series 14.10 Tests for convergence 14.11 Infinite power series 14.12 Reinforcement 14.13 Applications 14.14 Answers to reinforcement exercises
339 340 344 347 348 351 352 353 355 357 360 361 362 363 366 370 373 377 378 378 381 386 391 393 397 400 403 405
409 410 412 416 418 421 422 424 426 428 430 434 438 441 442 vii
C o n t e n t s
15 Ordinary Differential Equations 15.1 15.2 15.3
445
Introduction Definitions First order equations – direct integration and separation of variables Linear equations and integrating factors Second order linear homogeneous differential equations The inhomogeneous equation Reinforcement Applications Answers to reinforcement exercises
452 458 462 468 475 476 480
16 Functions of More than One Variable – Partial Differentiation
483
15.4 15.5 15.6 15.7 15.8 15.9
16.1 16.2 16.3 16.4 16.5 16.6 16.7 16.8
Introduction Function of two variables Partial differentiation Higher order derivatives The total differential Reinforcement Applications Answers to reinforcement exercises
17 An Appreciation of Transform Methods 17.1 Introduction 17.2 The Laplace transform 17.3 Laplace transforms of the elementary functions 17.4 Properties of the Laplace transform 17.5 The inverse Laplace transform 17.6 Solution of initial value problems by Laplace transform 17.7 Linear systems and the principle of superposition 17.8 Orthogonality relations for trigonometric functions 17.9 The Fourier series expansion 17.10 The Fourier coefficients 17.11 Reinforcement 17.12 Applications 17.13 Answers to reinforcement exercises Index
viii
446 448
484 484 487 489 490 494 495 496 500 500 501 504 509 512 513 515 516 517 520 523 524 527 529
Preface
This book contains most of the material covered in a typical first year mathematics course in an engineering or science programme. It devotes Chapters 1–10 to consolidating the foundations of basic algebra, elementary functions and calculus. Chapters 11–17 cover the range of more advanced topics that are normally treated in the first year, such as vectors and matrices, differential equations, partial differentiation and transform methods. With widening participation in higher education, broader school curricula and the wide range of engineering programmes available, the challenges for both teachers and learners in engineering mathematics are now considerable. As a result, a substantial part of many first year engineering programmes is dedicated to consolidation of the basic mathematics material covered at pre-university level. However, individual students have widely varying backgrounds in mathematics and it is difficult for a single mathematics course to address everyone’s needs. This book is designed to help with this by covering the basics in a way that enables students and teachers to quickly identify the strengths and weaknesses of individual students and ‘top up’ where necessary. The structure of the book is therefore somewhat different to the conventional textbook, and ‘To the student’ provides some suggestions on how to use it. Throughout, emphasis is on the key mathematical techniques, covered largely in isolation from the applications to avoid cluttering up the explanations. When you teach someone to drive it is best to find a quiet road somewhere for them to learn the basic techniques before launching them out onto the High Street! In this book the mathematical techniques are motivated by explaining where you may need them, and each chapter has a short section giving typical applications. More motivational material will also be available on the book web-site. Rigorous proof for its own sake is avoided, but most things are explained sufficiently to give an understanding that the educated engineer should appreciate. Even though you may use mathematics as a tool, it usually helps to have an idea of how and why the tool works. As the book progresses through the more advanced first year material there is an increasing expectation on the student to learn independently and ‘fill in the gaps’ for themselves – possibly with the teacher’s help. This is designed to help the student to develop a mature, self-disciplined approach as they move from the supportive environment of pre-university to the more independent university environment. In addition the book web-site (www.bh.com/companions/0750650982) will provide a developing resource to supplement the book and to focus on specific engineering disciplines where appropriate. In the years that this book has been in development I have benefited from advice and help from too many people to list. The following deserve special mention however. Dave Hatter for having faith in the original idea and combining drink and incisive comment well mixed in the local pub. Peter Jack for many useful discussions and for the best part of the S(ketch) GRAPH acronym (I just supplied the humps and hollows). Val Tyas for typing ix
P r e f a c e
much of the manuscript, exploring the limits of RSI in the process, and coping cheerfully with my continual changes. The late Lynn Burton for initial work on the manuscript and diagrams. She was still fiddling with the diagrams only weeks before she succumbed to cancer after a long and spirited fight. I am especially indebted to her for her friendship and inspiration – she would chuckle at that. I also benefited from an anonymous reviewer who went far beyond the call of duty in providing meticulous, invaluable comment – It’s clear that (s)he is a good teacher. Of course, any remaining errors are my responsibility. The team at Butterworth-Heinemann did a wonderful job in dealing with a complicated manuscript – sense of humour essential! Last but not least I must mention the hundreds of students who have kept me in line over the years. I have tried to write the book that would help most of them. I hope they, and their successors, will be pleased with it. Bill Cox, June 2001
x
To the Student
Whatever your previous background in mathematics, it is likely that when you begin your engineering studies at university you will need to consolidate your mathematical skills before moving on to new material. The first ten chapters of this book are designed to help with this ‘transition’ by providing you with individual pathways to quickly review your current skills and understanding, then revise and reinforce where necessary. Chapters 1–10 have a three-part structure by which you: • • •
Review your present knowledge and skills, with a review test on key topics Revise as you need to Reinforce the essential skills that you will need for your particular programme, so that they are there when you need them.
The three sections are linked, so that you can choose your own pathway through the material and focus on your specific needs. In the review test the single arrows forward you to the corresponding revision section and the review question solution, while the double arrows fast forward you to the reinforcement exercises. Some suggestions for working through these chapters may help: • • • • •
Use the lists of prerequisites and objectives to get an overview of the chapter – what have you seen before, what needs a reminder, what is completely new? Use the review test to establish your current understanding of the various topics. Where you are confident you may still be able to learn something from the revision section or polish your skills by working through the reinforcement questions. Where you are unsure and need a reminder, go to the relevant revise section for some hints before trying the review question, then consolidate your skills with the reinforcement exercises. Where the topic is perhaps new to you, start with the revision section, using the review questions as worked examples and the reinforcement exercises as further practice.
The remaining chapters (11–17), covering material appropriate to typical first-year courses in engineering mathematics, are designed to support you in developing independent learning skills for more advanced study. The order of material and the structure of these chapters are at first supportive with many examples, then gradually progress to a more concise and mature format. The focus is on the key material, and the text contains leading xi
T o t h e S t u d e n t
problems that encourage you to develop ideas for yourself. The structure of the book is therefore designed not only to ease the transition to university, but also to develop your independent learning skills and prepare you for the style of more advanced textbooks. Each chapter has a number of ‘Applications’ exercises that provide illustrations of typical engineering applications, bring together the different topics of the chapter, or prepare the way for later material. Some are simple, while others provide significant and challenging projects. The book is the core of a larger educational resource of web-based material enabling you to broaden and deepen your studies. The book web-site (www.bh.com/companions/0750650982) provides advice on learning mathematics, solutions to all of the reinforcement and applications exercises, develops some topics more thoroughly, and provides relevant examples and illustrations from different engineering disciplines.
xii
1
Number and Arithmetic In this chapter we review the key features of elementary numbers and arithmetic. The topics covered are those found to be most useful later on.
Prerequisites It will be helpful if you know something about: • • • • •
simple types of numbers such as integers, fractions, negative numbers, decimals the concepts of ‘greater than’ and ‘less than’ elementary arithmetic: addition, subtraction, multiplication and division powers and indices notation, 23 = 2 × 2 × 2, for example how to convert a simple fraction to a decimal and vice versa
Objectives In this chapter you will find: • • • • • • • • •
different types of numbers and their properties (particularly zero) the use of inequality signs highest common factors and lowest common denominators manipulation of numbers (BODMAS) handling fractions n n factorial (n!) and combinatorial Cr or notation r powers and indices decimal notation estimation of numerical expressions
Motivation You may need the material of this chapter for: • • • • •
numerical manipulation and calculation in engineering applications checking and using scientific formulae illustrating and checking results used later in mathematics statistical calculations numerical estimation and ‘back of an envelope’ calculations
1
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
A note about calculators Calculators obviously have their place, particularly in applied mathematics, numerical methods and statistics. However, they are very rarely needed in this chapter, and the skills it aims to develop are better learnt without them.
1.1 Review ➤5
1.1.1 Types of numbers
27 ➤➤
A. For each number choose one or more descriptions from the following: (a) integer, (b) negative, (c) rational number (fraction), (d) real, (e) irrational, (f) decimal, (g) prime. (i) is done as an example 1 2 23 (v) 5
(i) −1 (a, b, c, d)
(ii)
(iv) 7 (vii) 0.73 √ (x) 2
(iii) 0 (vi) −
(viii) 11
3 4
(ix) 8
(xi) −0.49
(xii) π
B. Which of the following descriptions apply to the expressions in (i)–(x) below? (a) infinite
(b) does not exist
(c) negative
(d) zero
(e) finite
(f) non-zero
(i) 0 × 1 (d, e)
(ii) 0 + 1
(iii)
(v) 02
(vi) 0 − 1
(iv) 2 − 0 0 0 2 (x) 2
(viii) 3 × 0 +
(vii)
3 0
(ix)
1 0
03 0
1.1.2 Use of inequality signs Express symbolically: (i) (ii) (iii) (iv) (v) 2
x is a positive, non-zero, number (x > 0) x lies strictly between 1 and 2 x lies strictly between −1 and 3 x is equal to or greater than −2 and is less than 2 The absolute value of x is less than 2.
➤7
27 ➤➤
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
1.1.3 Highest common factor and lowest common multiple ➤8
28 ➤➤
A. Express in terms of prime factors (i) 15 (= 3 × 5) (iv) 121
(ii) 21
(iii) 60
(v) 405
(vi) 1024
(vii) 221 B. Find the highest common factor (HCF) of each of the following sets of numbers (i) 24, 30 (6) (iv) 12, 54, 78
(ii) 27, 99
(iii) 28, 98
(v) 3, 6, 15, 27
C. Find the lowest common multiple (LCM) of each of the following sets of numbers (i) 3, 7 (21)
(ii) 3, 9
(iv) 3, 5, 9
(iii) 12, 18
(v) 2, 4, 6 ➤ 10
1.1.4 Manipulation of numbers
28 ➤➤
Evaluate (i) 2 + 3 − 7 (= −2)
(ii) 4 × 3 ÷ 2
(iii) 3 + 2 × 5
(iv) (3 + 2) × 5
(v) 3 + (2 × 5)
(vi) 18 ÷ 2 × 3
(vii) 18 ÷ (2 × 3)
(viii) −2 − (4 − 5)
(ix) (4 ÷ (−2)) × 3 − 4
(x) (3 + 7) ÷ 5 + (7 − 3) × (2 − 4) ➤ 12
1.1.5 Handling fractions
28 ➤➤
A. Simplify (i)
4 6
=
2 3
3 7 × 5 14 1 1 (vii) − 2 3 2 3 1 − + (x) 3 4 8 (iv)
(ii)
18 9
3 4 ÷ 4 5 4 7 (viii) − 15 3 (v)
(iii)
7 4 × 3 7
1 1 + 2 3 1 1 (ix) 1 + + 2 3 (vi)
B. If the numbers a and b are in the ratio a : b = 3 : 2 and a = 6, what is b? 3
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
1.1.6 Factorial and combinatorial notation – permutations ➤ 16 and combinations
29 ➤➤
A. Evaluate (i) 3! (= 6)
(ii) 6!
(iii)
24! 23!
12! 9! 3!
(iv)
B. (i) Evaluate (a) 3 C2 (= 3) (b) 6 C4 (c) 6 P3 (ii) In how many ways can two distinct letters be chosen from ABCD? (iii) How many permutations of the letters ABCDE are there? ➤ 18
1.1.7 Powers and indices
29 ➤➤
A. Reduce to simplest power form. (i) 23 24 (= 27 )
(ii) 34 /33
(iv) (3 × 4)4 /(9 × 23 )
B. Express in terms of simple surds such as √
√ 50 (= 5 2) √ √ 2 2 3 (iv) 4
(vii)
31/3 91/3 27
3 (vi) (−6)2 − 32
(v) 162 /44 −3 (viii) 22 12
(vii) (−ab2 )3 /a 2 b
(i)
(iii) (52 )3
(ii)
√
√
72 −
2, √
√
3, etc. √ (iii) ( 27)3
8
√ √ 3 7 (v) √ 84
√ 3+2 2 √ √ 3− 2
√ (vi)
2
➤ 22
1.1.8 Decimal notation
30 ➤➤
A. Express in decimal form (a)
1 2
(b) − 32
(c)
(b) 0.67
(c) 0.6˙
1 3
(d)
1 7
B. Express as fractions (a) 0.3
(d) 3.142
C. Write the following numbers in scientific notation, stating the mantissa and exponent. (i) 11.00132
(ii) 1.56
(iii) 203.45
D. Write the numbers in C to three significant figures. 4
(iv) 0.0000321
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
➤ 25
1.1.9 Estimation
31 ➤➤
Estimate the approximate value of each of 4.5 × 105 × 2.0012 (i) 8.892 × 104
√
(ii)
254 × 104 + 28764.5 2.01 × 10 − 254 × 10−6
1.2 Revision ➤
1.2.1 Types of numbers
2
27 ➤
Numbers can be classified into different types: • • • • • • • •
natural numbers zero directed numbers integers rational numbers (fractions) irrational numbers real numbers complex numbers (➤ Chapter 12).
The counting numbers 1, 2, 3, 4, . . . are called natural numbers. Zero, 0, is really in a class of its own – we always have to be careful with it. It is an integer and also, of course, a real number. Essentially, zero enables us to define negative numbers. Thus, the negative of 3 is the number denoted n = −3 satisfying 3+n=0 This enables us to ‘count in opposite directions’ using directed or negative numbers − 1, −2, −3, −4, . . . The full set of numbers {. . . − 4, −3, −2, −1, 0, 1, 2, 3, 4, . . .} is called the set of integers. Numbers that can be written in the form: integer 3 −1 e.g. , non-zero integer 4 2 6 including integers, such as 6 = 1 5
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
are called rational numbers or fractions. All measurements of a physical nature (length, time, voltage, etc.) can only be expressed in terms of such numbers. Numbers which are not rational, and √ cannot be expressed as ratios√of integers, are called irrational numbers. Examples are 2 and π. We will prove that 2 is irrational in Chapter 14. The set of all numbers: integers, rational and irrationals is called the set of real numbers. It can be shown that together these numbers can be used to ‘label’ every point on a continuous infinite line – the real line. So called ‘complex numbers’ are really equivalent to pairs of real numbers. They are studied in Chapter 12, and an introduction is provided in the Applications section of Chapter 2. Note that zero, 0, is an exceptional number in that one cannot divide by it. It is not that 1/0 is ‘infinity’, but simply that it does not exist at all. Infinity, denoted ∞, is not really a number. It is a concept that indicates that no matter what positive (negative) number you choose, you can always find another positive (negative) number greater (less) than it. Crudely, ∞ denotes a ‘number’ that is as large as we wish. Solution to review question 1.1.1
A. All numbers here are real, so d applies to them all. (i) −1 is a negative natural number, i.e. an integer; (a, b, c, d) (ii)
1 2
is a ratio of integers and is therefore rational; (c, d)
(iii) 0 is an integer – the only one that is its own negative; (a, c, d) (iv) 7 is a natural number and an integer. It is in fact also a prime number – that is, only divisible by itself or 1 (Section 1.2.3). It is also an odd number (cannot be exactly divided by 2); (a, c, d, g) (v)
23 is a rational number – actually an improper fraction 5 (Section 1.2.5); (c, d)
(vi) − 34 is a rational number – a proper fraction (Section 1.2.5); (b, c, d) (vii) 0.73 is actually a decimal representation of a rational number 0.73 =
73 100
sometimes called a decimal fraction, but usually simply a decimal (Section 1.2.8); (c, d, f) (viii) 11 is a natural number and an integer – like 7 it is also prime, and is also odd as any prime greater than 2 must be; (a, c, d, g) (ix) 8 is another natural number and integer – but it is not prime, since it can be written as 2 × 2 × 2 = 23 (Section 1.2.7). It is also an even number; √ (a, c, d) (x) The square root of 2, 2, is not a rational number. This can be shown by assuming that √
6
2=
m n
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
√ where m and n are two integers and deriving a contradiction. 2 is irrational and is a real number. Such numbers, square roots of prime numbers, are called surds (Section 1.2.7); (d, e) (xi) −0.49 is a decimal representation (Section 1.2.8) of the negative rational number −
49 100
(b, c, d, f) (xii) π, the ratio of the circumference of a circle to its diameter, is not a rational number – it is an irrational number. That is, it cannot be written as a fraction. 22/7, for example, is just an approximation to π; (d, e) B.
(i) 0 × 1 = 0, i.e. zero – which of course is also finite (d, e). (ii) 0 + 1 = 1, finite, non-zero (e, f). (iii)
1 0
does not exist – it is not infinite, negative, zero, finite or nonzero – it just does not exist (b).
(iv) 2 − 0 = 2, finite and non-zero (e, f). (v) 02 = 0 × 0 = 0, zero and finite (d, e). (vi) 0 − 1 = −1, negative, finite, non-zero (c, e, f). (vii)
0 0
does not exist (you can’t ‘cancel’ the zeros!). It is not infinite, negative, zero, finite or non-zero – it just does not exist (b).
(viii) Because of the (ix)
3 0
the expression 3 × 0 +
3 0
does not exist (b).
03 again, does not exist (b). 0
(x) 22 = 1 – no problem here, finite and non-zero (e, f). Note that none of the numbers in B is referred to as ‘infinite’. ➤
1.2.2 Use of inequality signs
2
27 ➤
The real numbers are ordered. That is, we can always say whether one number a is less than, equal to, or greater than another given number b. To denote this we use the ‘comparator’ symbols or inequalities, < and ≤, > and ≥. a > b means a is greater than b; a < b means a is less than b. Thus 6 > 5, 4 < 5. a ≥ b means a is greater than or equal to b, and similarly a ≤ b means a is less than or equal to b. Be very careful to distinguish between, for example a > b and a ≥ b. Sometimes it is also useful to use the ‘not equal to’ symbol, =. Care is needed when changing signs and forming reciprocals with inequalities. For 1 1 example, if a > b > 0, then −a < −b and < . However, if a > 0 > b then −a < −b a b 1 1 is still true, but > . Try a few numerical examples to check these statements. Most a b 7
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
of us find inequalities difficult to handle and they require a lot of practice. However, in this book we will need only the basic properties of inequalities. We will say more about inequalities in Section 3.2.6. Often we wish to refer to the positive or absolute value of a number x (for example in a rectified sine wave). We denote this by the modulus of x, |x|. For example | − 4| = 4 By definition |x| is never negative, so |x| ≥ 0. Also, note that |x| < a means −a < x < a. For example: |x| < 3 means
−3 < x < 3
Solution to review question 1.1.2
(i) (ii) (iii) (iv)
‘x is a positive non-zero number’ is expressed by x > 0 ‘x lies strictly between 1 and 2’ is expressed by 1 < x < 2 ‘x lies strictly between −1 and 3’ is expressed by −1 < x < 3 ‘x is equal to or greater than −2 and is less than 2’ is expressed by −2 ≤ x < 2 (v) If the absolute value of x is less than 2 then this means that if x is positive then 0 ≤ x < 2, but if x is negative then we must have −2 < x ≤ 0. So, combining these we must have −2 < x < 2. This can also be expressed in terms of the modulus as |x| < 2.
➤
1.2.3 Highest common factor and lowest common multiple
3
28 ➤
A prime number is a positive integer which cannot be expressed as a product of two or more smaller distinct positive integers. That is, a prime number cannot be divided exactly by any integer other than 1 or itself. From the definition, 1 is not a prime number. 6, for example, is not a prime, since it can be written as 2 × 3. The numbers 2 and 3 are called its (prime) factors. Another way of defining a prime number is to say that it is has no integer factors other than 1 and itself. There are an infinite number of prime numbers: 2, 3, 5, 7, 11, 13, . . . but no formula for the nth prime has been discovered. Prime numbers are very important in the theory of codes and cryptography. They are also the ‘building blocks’ of numbers, since any given integer can be written uniquely as a product of primes: 12 = 2 × 2 × 3 = 22 3 This is called factorising the integer into its prime factors. It is an important operation, for example, in combining fractions. 8
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
The highest common factor (HCF) of a set of integers is the largest integer which is a factor of all numbers of the set. For small numbers we can find the HCF ‘by inspection’ – splitting the numbers into prime factors and constructing products of these primes that divide each number of the set, choosing the largest such product. The lowest common multiple (LCM) of a set of integers is the smallest integer which is a multiple of all integers in the set. It can again be found by prime factorisation of the numbers. In this book you will only need to use the LCM in combining fractions and only for small, manageable numbers, so the LCM will usually be obvious ‘by inspection’. In such cases one can normally guess the answer by looking at the prime factors of the numbers, and then check that each number divides the guess exactly. Solution to review question 1.1.3
15 = 3 × 5 21 = 3 × 7 60 = 3 × 20 = 3 × 4 × 5 = 2 × 2 × 3 × 5 = 22 × 3 × 5 121 = 11 × 11 405 = 5 × 81 = 5 × 9 × 9 = 5 × 3 × 3 × 3 × 3 = 34 × 5 1024 = 4 × 256 = 4 × 16 × 16 =4×4×4×4×4=2×2×2×2×2×2×2 ×2×2×2 = 210 (or, anticipating the rules of indices = 45 = (22 )5 = 210 ) (vii) 221 = 13 × 17 Notice that there may be more than one way of factorising, but that the final result is always the same. You may also have noticed that it gets increasingly difficult to factorise, compared to multiplying – thus in (vii), it is so much easier to multiply 13 × 17 than to discover these factors from 221. This fact is actually the key idea behind many powerful coding systems – the trap-door principle – in some cases it is much easier doing a mathematical operation than undoing it! B. (i) 24, 30. In this case it is clear that the largest integer that exactly divides these two is 6 and so the HCF of 24 and 30 is 6. (ii) 27, 99. Again the fairly obvious answer here is 9. (iii) 28, 98. Perhaps not so obvious, so split each into prime factors: A. (i) (ii) (iii) (iv) (v) (vi)
28 = 4 × 7 = 2 × 2 × 7 98 = 2 × 49 = 2 × 7 × 7 from which we see that the HCF is 2 × 7 = 14. (iv) 12, 54, 78. Splitting into prime factors will again give the answer here, but notice a short cut: 2 clearly divides them all, leaving 6, 27, 39. 3 divides all of these leaving 2, 9, 13. These clearly have no factors in common (except 1) and so we are done, and the HCF is 2 × 3 = 6. 9
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(v) 3, 6, 15, 27. Here 3 is the only number that divides them all and is the HCF in this case. C. (i) Since 3, 7 are both primes, the LCM is simply their product, 21. (ii) 9 = 3 × 3, so 3 and 9 both divide 9 and there is no smaller number that does so. The LCM is thus 9. (iii) Since 3 × 12 = 36 and 2 × 18 = 36, we see directly that the LCM is 36. (iv) We have to deal with 3, 5, and 9 = 32 . The LCM must contain at least two factors of 3 and one of 5. So the LCM is 5 × 32 = 45. (v) 2, 4, 6. 2 divides 4, so we must have a factor of 4 in the LCM. Also, 4 and 6 both divide 12, but no smaller number and so the LCM is 12. ➤
1.2.4 Manipulation of numbers
3
28 ➤
Much of arithmetic is based on just a few operations: addition, subtraction, multiplication and division, satisfying a small number of rules. The extension of these rules to include symbols as well as numbers leads us on to algebra (Chapter 2). Addition, denoted +, produces the sum of two numbers: 6+3=9=3+6
(addition is ‘commutative’)
Subtraction, denoted −, produces the difference of two numbers: 6 − 3 = 3 = −(3 − 6) (minus sign changes signs in brackets) Multiplication, denoted by a × b or simply as ab in algebra, produces the product of two numbers: 6 × 3 = (6)(3) = 18 = 3 × 6
(multiplication is commutative)
a · b is sometimes used to denote the product but can be confused with decimal notation in arithmetic. a Division, denoted by a ÷ b or a/b or, better, , produces the quotient of two numbers: b 6 ÷ 3 = 6/3 =
6 3
=2
(of course, 6 ÷ 3 = 3 ÷ 6!)
Note that ÷ and / are very rarely used in written calculations, where we use the form unless we need to call into play ÷ or / because we have a large number of divisions. Also notice how we have simplified the quotient to 2. We always simplify such fractions to lowest form whenever we can (➤ 12). The way the above and other arithmetic operations are combined is according to a set of conventional precedences – the rules of arithmetic. Thus we always perform multiplication before addition, so: 6 3
2 × 3 + 5 = 6 + 5 = 11 10
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Brackets can be used if we want to override such rules. For example: 2 × (3 + 5) = 2 × 8 = 16 In general, an arithmetic expression, containing numbers, ( ), x, ÷, +, −, must be evaluated according to the following priorities: BODMAS Brackets ( )
first
Of (as in ‘fraction of’ − rarely used these days) Division ÷ Multiplication × Addition + third Subtraction −
second
If an expression contains only multiplication and division we work from left to right. If it contains only addition and subtraction we again work from left to right. If an expression contains powers or indices (Section 1.2.7) then these are evaluated after any brackets. Products and quotients of negative numbers can be obtained using the following rules: (+1)(+1) = +1 (+1)(−1) = −1 (−1)(+1) = −1 (−1)(−1) = +1 1 = −1 (−1) For example (−2)(−3) = (−1)(−1)6 = 6 Note that if you evaluate expressions on your calculator, it may not follow the BODMAS order, simply because of the way your calculator operates. However, BODMAS is the universal convention in Western mathematics and applies equally well to algebra, as we will see in Chapter 2. Solution to review question 1.1.4
Following the BODMAS rule 2 + 3 − 7 = 5 − 7 = −2 4 × 3 ÷ 2 = 12 ÷ 2 = 6 3 + 2 × 5 = 3 + 10 = 13 (3 + 2) × 5 = 5 × 5 = 25 3 + (2 × 5) = 3 + 10 = 13. In this case the brackets are actually unnecessary, since the BODMAS rules tell us to evaluate the multiplication first. (vi) 18 ÷ 2 × 3 = 9 × 3 = 27 following the convention of working from left to right. (vii) 18 ÷ (2 × 3) = 18 ÷ 6 = 3 because the brackets override the left to right rule. (i) (ii) (iii) (iv) (v)
11
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(viii) −2 − (4 − 5) = −2 − (−1) = −2 + 1 = −1 4 (ix) (4 ÷ (−2)) × 3 − 4 = ×3−4 −2 = (−2) × 3 − 4 = −6 − 4 = −10 (x) (3 + 7) ÷ 5 + (7 − 3) × (2 − 4) = 10 ÷ 5 + (4) × (−2) =2−8 = −6 Notice the care taken in these examples, spelling out each step. This may seem to be a bit laboured, but I would encourage you to take similar care, particularly when we come to algebra. Slips with brackets and signs crop up frequently in most people’s calculations (mine included!). Whereas this may only lose you one or two marks in an exam, in real life, an error in sign can convert a stable control system into an unstable one, or a healthy bank balance into an overdraft. ➤
1.2.5 Handling fractions
3
28 ➤
A fraction or rational number is any quantity of the form m n
n = 0
where m, n are integers but n is not equal to 0. It is of course essential that n = 0, because as noted in Section 1.2.1 division by zero is not defined. m is called the numerator n is the denominator If m ≥ n the fraction is said to be improper, and if m < n it is proper. A number expressed in the form 2 12 (meaning 2 + 12 ) is called a mixed fraction. In mathematical expressions it is best to avoid this form altogether and write it as a vulgar fraction, 52 , instead, otherwise it might be mistaken for ‘2 × 12 = 1’, and it is also more difficult to do calculations such as multiplication and division using mixed fractions. The numerator and denominator of a fraction may have common factors. These may be cancelled to reduce the fraction to its simplest or ‘lowest’ form: 6 2×3 2 1×2 1 = = = = 12 3×4 4 2×2 2 Each of these forms are equivalent fractions, but clearly the last one is the simplest. However, sometimes one of the other forms may be convenient for particular purposes, such as adding fractions. A very common fraction where we tend not to cancel down in 12
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
this way is the percentage. Thus we usually express 32/100 as ‘32 percent’ rather than as its equivalent, ‘8 out of 25’! Fractions are multiplied ‘top by top and bottom by bottom’ as you might expect: mp m p × = n q nq
(n, q = 0)
e.g.
3 5 15 × = 2 11 22
with p and q also any integers. There may, of course, be common factors to cancel down, as for example in 3 6 9 × = 2 7 7 The inverse or reciprocal of a fraction is obtained by turning it upside down: m 3 2 n e.g. 1 1 = = n m 2 3 where both m and n must be non-zero. So dividing by a vulgar fraction is done by inverting it and multiplying: p m p m p n np ÷ = = × = q n q n q m mq e.g.
7 14 7 6 3 ÷ = × = 2 6 2 14 2
Multiplication and division of fractions are therefore quite simple. Addition and subtraction are less so. Two fractions with the same denominator are easily added or subtracted: m p m±p ± = n n n
e.g.
3 1 3−1 2 − = = =1 2 2 2 2
So to add and subtract fractions in general we rewrite them all with the same common denominator, which is the lowest common multiple of all the denominators. For example 3×3 4×4 9 − 16 7 3 4 − = − = =− 4 3 12 12 12 12 In the example, 12 is the LCM of 3 and 4.
An electrical example – resistances in parallel Three resistances R1 , R2 , R3 connected in parallel are equivalent to a single resistance R given by 1 1 1 1 + + = R R1 R2 R3 So, for example if R1 = 2, R2 = 12 , R3 = 32 then 1 2 1 = + 2 + (units of inverse ohms) R 2 3 13
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
or, with 6 the LCM of 2 and 3 =
3 12 4 19 + + = (−1 ) 6 6 6 6
and so the equivalent resistance is 6 19
R=
Finally, on fractions, recall the ideas of ratio and proportion. These are met early in our mathematical education, yet often continue to confuse us later in life. Specifically, it is not uncommon to see someone make errors such as: ‘ a = 1 means a = 1 and b = 3’ b 3 so it is worth having a quick review of this topic. The notation a : b is used to indicate that the numbers a and b are in a certain ratio or proportionality to each other. a:b=1:3 simply means that 1 a = b 3 and this most certainly does not mean a = 1 and b = 3. For example 3 : 9 = 2 : 6 = 7 : 21 = 1 : 3 All a : b = 1 : 3 means is that a=
b 3
i.e. a is a third of b. If we are given a (or b) then we can find b (or a). The review question illustrates this. In general, if we can write a = kb where k is some given constant then we say ‘a is proportional to b’ and write this as a ∝ b. a and b are then in the ratio a : b = 1 : k. On the other hand if we can write a = k/b then we say ‘a is inversely proportional to b’ and write a ∝ 1/b. Solution to review question 1.1.5
A.
14
2×2 2 4 = = 6 2×3 3 9×2 18 = =2 (ii) 9 9 (i)
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
7 4 4 × = 3 7 3 7 3 1 3 (iv) × = × 5 14 5 2 (cancelling 7 from top and bottom, as in (iii))
(iii)
1×3 3 = 5×2 10 3 4 3 5 15 ÷ = × = 4 5 4 4 16 1 1 3 2 + = + 2 3 2×3 2×3 on multiplying top and bottom appropriately to get the common denominator in both fractions, 3 2 3+2 5 = + = = 6 6 6 6 1 1 3 2 − = − 2 3 6 6 1 3−2 = = 6 6 4 7 4 5×7 − = − 15 3 15 15 4 − 35 = 15 31 =− 15 6 3 2 1 1 1+ + = + + 2 3 6 6 6 11 = 6 Here we found the LCM of 2 and 3 (6) and put everything over this, including the 1. =
(v) (vi)
(vii)
(viii)
(ix)
(x)
2 3 1 − + 3 4 8 We want the LCM of 3, 4, 8. This is 24, so 2 3 1 2×8 3×6 3 − + = − + 3 4 8 24 24 24 16 − 18 + 3 = 24 1 = 24 15
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
a 3 2a B. If a : b = 3 : 2 then = so b = . So, if a = 6 then b = b 2 3 2×6 = 4. 3
➤
1.2.6 Factorial and combinatorial notation – permutations and combinations
4
29 ➤
The factorial notation is a shorthand for a commonly-occurring expression involving positive integers. It provides some nice practice in manipulation of numbers and fractions, and gently introduces algebraic ideas. If n is some positive integer ≥1 then we write n! = n(n − 1)(n − 2) . . . 2 × 1 read as ‘n factorial’. For example 5! = 5 × 4 × 3 × 2 × 1 = 120 Notice that the factorial expression yields large values very quickly, that is n! increases rapidly with n. In calculations involving factorials it is often useful to remember such results as 10! = 10 × 9 × 8 × 7! i.e. we can pick out a lower factorial if this is convenient, and this often helps with cancellations in expressions containing factorials. Note that 1! = 1. Also, while the above definition does not define 0!, the convention is adopted that 0! = 1 The factorial notation is useful in the binomial theorem (➤ 71) and in statistics. It can be used to count the number permutations of n objects, i.e. the number of ways of arranging n objects in a given order: First object can be chosen in n ways Second object can be chosen in (n − 1) ways Third object can be chosen in (n − 2) ways .. . Last object can only be chosen in 1 way. So the total number of permutations of n objects is n × (n − 1) × (n − 2) . . . 2 × 1 = n! Note that n! = n × (n − 1)! For 3 objects A, B, C, for example, there are 3! = 6 permutations, which are: ABC, ACB, BAC, BCA, CAB, CBA. 16
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Each of these is the same combination of the objects A, B, C – that is a selection of three objects in which order is not important. Now suppose we select just r objects from the n. Each such selection is a different combination of r objects from n. An obvious question is how many different permutations of r objects chosen from n can be formed in this way? This number is denoted by n Pr . It may be evaluated by repeating the previous counting procedure, but only until we have chosen r objects: The first may be chosen in n ways The second may be chosen in (n − 1) ways The third may be chosen in (n − 2) ways .. . The rth may be chosen in (n − (r − 1)) ways So the total number of permutations will be n
Pr = n × (n − 1) × (n − 2) × . . . × (n − r + 1) =
n(n − 1)(n − 2) . . . (n − r + 1)(n − r)(n − r − 1) . . . 2 × 1 (n − r)(n − r − 1) . . . 2 × 1
=
n! (n − r)!
For example the number of ways that we can permute 3 objects chosen from 5 distinct objects is 5
P3 = 5 × 4 × 3 =
5! 5×4×3×2×1 = = 60 2×1 (5 − 3)!
Since the order does not matter in a combination, n Pr will include r! permutations of the same combinations of r different objects. So the number of combinations of r objects chosen from n is n! 1n Pr = r! (n − r)!r! n This is usually denoted by Cr (called the ‘n − C − r’ notation) or – ‘choose r r objects from n’: n
n
Cr =
n! n = r (n − r)!r!
e.g. 5 C3 =
5! 5 = = 10 3 (5 − 3)!3!
which is very useful in binomial expansions (see Section 2.2.13) and other areas, simply as a notation, regardless of its ‘counting’ significance. 17
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Solution to review question 1.1.6
A. (i) 3! = 3(3 − 1)(3 − 2) = 3 × 2 × 1 = 6 (ii) 6! = 6 × 5 × 4 × 3 × 2 × 1 = 720 24! 24 × 23! = = 24 23! 23! 12! 12 × 11 × 10 × 9! 12 × 11 × 10 (iv) = = = 220 9!3! 9!3! 6 3! 3! B. (i) (a) 3 C2 = = =3 (3 − 2)!2! 1!2! (iii)
(b) 6 C4 =
6 × 5 × 4! 6! = = 15 (6 − 4)!4! 2!4!
6! = 6 × 5 × 4 = 120 3! (ii) Two letters can be chosen from ABCD in (c) 6 P3 =
4
C2 =
4! = 6 ways 2!2!
(iii) There are 5! = 120 permutations of five different letters. ➤
1.2.7 Powers and indices
4
29 ➤
Powers, or indices, provide, in the first instance, a shorthand notation for multiplying a number by itself a given number of times: 2 × 2 = 22 2 × 2 × 2 = 23 2 × 2 × 2 × 2 = 24 etc. For a given number a we have a n = a × a × a × . . . × a n times a is called the base, n the power or index. a 1 is simply a. By convention we take a 0 = 1 1 1 1 (a = 0). We introduce a −1 to denote the reciprocal , since then 1 = a × = a 1 × = a a a 1 a 1 × a −1 = a 1−1 = a 0 follows. In general, a −n = n . From these definitions we can derive a the rules of indices: a m × a n = a m+n 18
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
am = a m−n an (a m )n = a mn (ab)n = a n bn Note that for any index n, 1n = 1.
Examples
23 × 24 = 23+4 = 27 35 × 30 = 35 (52 )3 = 56 (22 )0 = 20 = 1 43 /22 = (22 )3 /22 = 26 /22 = 24
A square root of √ a positive number a, is any number that, when squared, yields the number a. We use a to denote the positive value of the square root (although the notation has to be stretched when we get to complex numbers). For example 2=
√
4 since 22 = 4
√ √ Since −2 = −√ 4 also satisfies (−2)2 = 4, − 4 is also a square root of 4. So the square roots of 4 are ± 4 = ±2. We can similarly have √ cube roots of a number a, which yield a when they are cubed. If a is positive then 3 a denotes the positive value of the cube root. For example 2=
√ 3
because 23 = 8
8
In the case of taking an odd root √ of a negative number the convention is to let denote the negative root value, as in 3 −8 = −2, for example. The corresponding nth root of a number a is denoted in general by √ n
a
√
(also called a radical)
√ If n is even then a must be positive to yield a real root ( −1 is an imaginary number, forming the basis of complex numbers, see Chapter 12). In this case, because (−1)2 = 1, there will√be at least two values for the root differing only by sign. √ If n is odd then the 3 values of a, as in −8 = −2 above. nth root n a exists for both positive and negative √ If a is a prime number such as 2, then a is an irrational number, i.e. it can’t be expressed √ in rational form as a ratio of integers (6 ). This is not just a mathematical nicety. 2 for example, is the diagonal of the unit square, and yet because √ it is irrational, it can never be written down exactly as√ a rational number or fraction ( 2 = 1.4142 is, for example, only an approximation to 2 to four decimal places). In terms of indices, roots are represented by fractional indices, for example: ➤
√
1
a = a2
19
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
and in general √ n
1
a = an
This fits in with the rules of indices, since n 1 1 an = a n ×n = a 1 = a Fractional powers satisfy the same rules of indices as integer powers – but there are some new features: multiplicity of roots: 22 = (−2)2 = 4 √ non-existence of certain roots of negative numbers: −1 is not a real number √ • irrational values for roots of primes and their multiples: 2 cannot be expressed as a fraction √ √ Quantities such as 2, 3, . . . containing square roots of primes, are called surds. The term originates from the Greek word for mute, referring to a number that cannot ‘speak’ its value – because its decimal part never ends (see Section 1.2.8). In mathematical manipulation surds are always best left as they are – retaining √ the root sign. Any decimal form for them will simply be an approximation as noted for 2 above. Usually we try to manipulate surds so that the result is the simplest form, and none remain in denominators (although 1 we would normally write, for example, sin 45° = √ ). To do this we can use the rules of 2 indices, and also a process known as rationalisation, in which surds in denominators are moved to the numerator. The ideas are illustrated in the solution to the review question. • •
Solution to review question 1.1.7
A.
(i) 23 24 = 23+4 = 27 (leave it as a power, like this) (ii)
34 = 34−3 = 31 = 3 33
(iii) (52 )3 = 52×3 = 56 (iv)
34 44 (3 × 4)4 = (note both 3 and 4 are raised to the power 4) (9 × 23 ) 9 × 23 Note that 9 = 32 , 4 = 22 , so we can write, =
34 (22 )4 34 28 = 32 23 32 23
= 34−2 28−3 = 32 25 (v)
20
162 (42 )2 44 = = =1 44 44 44
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
3 3 33 (vi) (−6) − = (−1)2 62 (−1)3 3 2 2 2
=−
62 33 23
on using (−1)2 = 1, (−1)3 = −1 (2 × 3)2 33 22 32 33 = − 23 23 35 =− 2 (vii) If it helps, just think of a and b as given numbers: =−
(−ab2 )3 (−1)3 a 3 b6 = a2b a2b
(viii) 2
2 1 −3 2
= −ab5 = 22 (2−1 )−3 = 22 23 = 25
The steps to watch out for in such problems are the handling of the minus signs and brackets, and dealing with the negative powers and reciprocals. Don’t forget that a n , n ≥ 0, is not defined√for a = 0. √ √ B. We can get a long way simply by using ab = a b √ √ √ √ √ (i) 50 = 25 × 2 = 52 2 = 5 2 √ √ √ √ √ √ √ (ii) 72 − 8 = 36 × 2 − 4 × 2 = 6 2 − 2 2 = 4 2 √ √ √ √ √ √ (iii) ( 27)3 = (3 3)3 = 33 ( 3)3 = 33 3 3 = 34 3 = 81 3 √ √ 2 √ 2 2 3 3 3 3 (iv) √ = = = 4 4×2 8 2 2 √ √ √ √ 1 3 7 21 21 = √ = =√ (v) √ 2 4 × 21 84 2 21 √ √ 3+2 2 (vi) To simplify √ √ we rationalise it by removing all surds 3− 2 from the denominator. To do this we use the algebraic identity: (a − b)(a + b) ≡ a 2 − b2 (see 2.2.1) and the removal of surds by squaring. √ √a √ For √ Section 3 − 2 on the bottom we multiply top and bottom by 3 + 2, using: √ √ √ √ √ √ ( 3 − 2)( 3 + 2) = ( 3)2 − ( 2)2 = 3 − 2 = 1 21
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Thus:
√
√ √ √ 3+2 2 3+ 2
√ √ √ × √ 3+ 2 3− 2
√ √ √ √ 3+2 2 3+ 2 = √ √ √ √ 3− 2 3+ 2
√ 2
√ 2 √ √ 3 +3 2 3+2 2 =
√ 2 √ 2 3 − 2 √ √ 3+3 2 3+4 = 3−2 √ =7+3 6
A similar ploy is used in the rationalisation or division of complex numbers (➤ 355) 1/3 1/3 2 1/3 2/3 2 2 2 1 3 9 3 3 3 1 = = = = (viii) 27 27 27 9 81 This topic, powers and indices, often gives beginners a lot of trouble. If you are still the slightest bit unsure, go to the reinforcement exercises for more practice – there is no other way. This is, literally, power training!
➤
1.2.8 Decimal notation
4
30 ➤
You probably know that 12 may be represented by the decimal 0.5, 14 by 0.25 and so on. In fact any real number, a, 0 ≤ a < 1, has a decimal representation, written a = 0.d1 d2 d3 . . . where each di is one of the digits 0, 1, 2, . . . , 9, and the sequence may not terminate (see below). The term decimal actually refers to the base 10 and represents the fact that: a = d1 × 10−1 + d2 × 10−2 + d3 × 10−3 . . . Note the importance of ‘place value’ here – the value of each of the digits depends on its place in the decimal. Any real number can be represented by an integer part and such a decimal part. If, from some point on the decimal consists of a repeating string of one or more digits, then the decimal is said to be a repeating or recurring decimal. All rational numbers can be represented by a finite decimal representation or a recurring one. Irrational numbers cannot be represented in this way as a terminating or recurring decimal – thus the decimal 22
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
representation of √
√
2 is non-terminating:
2 = 1.4142135623 . . .
that is, the decimal part goes on forever. All quantities measured in scientific or engineering experiments will have a finite decimal – every human observation of any kind is subject to a limited accuracy and so to a limited number of decimal places. Similarly any mechanical or electronic device can only yield a terminating decimal representation with a finite number of decimal places. In particular any number that you output on your calculator must represent a finite or recurring decimal – a rational√number. So, for example no calculator or computer could ever yield the exact value of 2 or π. In practice even the most finicky engineer has limited need for decimal places – it can be shown that to measure the circumference of a circle girdling the known universe with an error no greater than the radius of a hydrogen atom requires the value of π to only 39 decimal places. π is actually √ √known to many millions of decimal places. Nevertheless, irrational numbers such as 2, 3 actually occur frequently √ in engineering calculations, so we have to learn to handle them. 1/ 2 occurs for example in the rms value of an alternating current. A useful way of expressing numerical value is by specifying a certain number of significant digits. To discuss these we need to be clear about zeros in numbers and what they represent. Some zeros are needed in a number simply as place holders – i.e. to tell us whether we are dealing with units, tens, hundreds, or tenths, hundredths, etc. For example in 1500, 0.00230, 2.1030 the bold zeros are essential to hold place value – the only way to avoid them is to write the number in scientific notation (see below). The underlined zeros in these numbers are not strictly necessary and should only be included if they are significant – i.e. they represent a level of accuracy. For example if the number 1.24 is only accurate to the three ‘significant figures’ given then it could lie between 1.235 and 1.245. But if we write 1.240 then we are saying that there are four significant figures of accuracy and the number must lie between 1.2395 and 1.2405. The two end zeros in 1500 may or may not represent an accuracy to four figures – we have no way of knowing without further information. Therefore unless you are given further information, such zeros are assumed to be not significant. Similarly, the two first zeros in 0.002320 are assumed to be not significant – they are just place holders. To count the number of significant figures in a number, start from the first non-zero digit on the left and count all digits (zero or not) to the right, counting final zeros if they are to the right of the decimal point, but not otherwise. Final zeros to the left of the decimal point are assumed not significant unless more information is given.
Examples 3.214 (4 sf), 2.041 (4 sf), 12.03500 (7 sf), 420 (2 sf), 0.003 (1 sf), 0.0801 (3 sf), 2.030 (4 sf), 500.00 (5 sf) Sometimes numbers are approximated by terminating the digits after a given number of digits and replacing them with zeros. If this is done with no regard to the size of the removed digits, then we say the number has been ‘chopped’ or ‘truncated’. For example 324829.1 chopped to 3 significant figures is 324000. Another, more accurate, method of approximation is ‘rounding’, in which we take account of the size of the removed digits. 23
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
When we ‘round’ a number we change the last non-zero digit not removed according to the size of the digits dropped. Specifically: • • •
If the digit to be removed is >5 then the immediately preceding digit is increased by 1 If the digit to be removed is <5 the immediately preceding digit is left unchanged If the digit to be removed is equal to 5 then you may round up or down – one ‘fair’ way to do this is to round up if the previous digit is odd and down otherwise, for example.
Although ‘chopping’ may seem to give bigger errors because, for example, 324829.1 is closer to 325000 than 324000, it is usually the preferred method in computer arithmetic because it is much quicker than the more accurate ‘rounding’.
Examples 213.457 chopped/rounded to 4 sf is 213.4/213.5, 56.0011 chopped/rounded to 4 sf is 56.00/56.00 We often need to convert between fractions and decimal representations. We can go from fraction to decimal by ordinary division. Conversely, we can convert a terminating decimal to the corresponding rational number by multiplying top and bottom by an appropriate factor as in, for example 0.625 =
25 5 625 = = 1000 40 8
Any decimal number can be written as a decimal number between 1 and 10 (the mantissa) multiplied by an appropriate power (the exponent) of 10. For example: 74.932 = 7.4932 × 10 mantissa = 7.4932 exponent = 1 The purpose of such representation, called scientific notation, is to reduce very large and very small numbers to manageable form. For example 573000000000000000 = 5.73 × 1017 0.0000000000000000000137 = 1.37 × 10−20 In engineering there is a variation on scientific notation that uses only multiples of 3 as exponents, i.e. as powers of 10. This is so that we can use the standard prefixes kilo, mega, micro, nano, etc. Solution to review question 1.1.8
A. (i) (a)
24
= 0.5 (b) − 32 = −1.5 (c) 13 = 0.3˙ where the dot above the final 3 denotes that this repeats forever: 0.3333. . . All the results in (a), (b), (c) are exact. 1 2
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(d) By long division we find: 1 7
˙ = 0.142857142857 . . . = 0.14285 7˙
and the string of digits 142857 recur indefinitely as denoted by the over dots at the ends of the sequence. To six decimal places we can write 1 7
B. (ii) (a) 0.3 =
3 10
0.142857 (b) 0.67 =
(c) 0.6˙ = 0.6666 . . . =
67 100
2 3
To see this, let x = 0.6666 . . . then 10x = 6.6666 . . . and subtracting gives 9x = 6 so
x=
6 9
=
2 3
3142 1000 C. (i) 11.00132 = 1.100132 × 10 mantissa = 1.100132 exponent = 1 (ii) 1.56 = 1.56 × 100 mantissa = 1.56 exponent = 0 (iii) 203.45 = 2.0345 × 102 mantissa = 2.0345 exponent = 2 (iv) 0.0000321 = 3.21 × 10−5 mantissa = 3.21 exponent = −5 D. To three significant figures we have (i) 11.00132 = 11.0 (ii) 1.56 (iii) 203.45 = 203 (iv) 0.000321 = 0.000321 (d) 3.142 =
➤
1.2.9 Estimation
5
31 ➤
With the availability of calculators we are now used to having enormous number crunching capability at our fingertips. But there are occasions when we don’t have our hands on a 25
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
calculator, or we need to get a rough order of magnitude check on a messy calculation. In such situations the engineer’s most powerful tool has always been an ability to mentally estimate quantities and perform quick ‘back of the envelope’ (we still have them, despite email!) calculations. The trick is to approximate the numbers you are dealing with so that the calculations become simple, yet some sort of rough accuracy is retained. It is a matter of judgement and practice. Absolute values of numbers are less important than their relative values – for example 1021 is significant in 3 × 1021 + 40 × 234 but is relatively insignificant in 1021 − 103372415 10 So, inspect all the numbers occurring in an expression and approximate them each to an appropriate order of magnitude, rounding as necessary, then perform the (hopefully) simplified calculation with the results.
Solution to review question 1.1.9
(i)
4.5 × 105 × 2.0012 4.5 × 105 × 2 8.892 × 104 9 × 104
105 10 104 So if your calculator gave you 101.2753 . . . then you know you have slipped up on a decimal point. √ √ 254 × 104 + 28764.5 254 × 104 + 3 × 104 (ii) 2.01 × 10 − 2.54 × 10−6 2 × 10
neglecting 2.54 × 10−6 in comparison with 2.01 × 10 √ √ 257 × 104 256 × 104 = 2 × 10 2 × 10 √ 162 × 104 = 2 × 10 on replacing 257 by 256 for easy square rooting: =
16 × 102 = 80 2 × 10
The answer to two decimal places is in fact 79.74. 26
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
1.3 Reinforcement 2
5
➤
2
7
➤
➤➤
1.3.1 Types of numbers
A. Say what you can about the type and nature of the following numbers: (i) 2
(ii) −3
(iii) 11
(iv) 21
(v) −0
(vi)
5 2 18 (x) 9
(viii) 1
(vii)
2 5
(ix) −
(xi) 0.0
(xiii) −0.31
(xiv) 6.3
(xvi) 3π √ (xix) − 2
(xvii) e
2 3 3 7
(xii) 0.2 (xv)
√ 3
(xviii) e2
(xx) −1.371
(e is the base of natural logs – see Chapter 4) B. Say all you can about the following expressions 2 0 0+2 (v) 0
(iv)
0 −1
(vii) 0 ×
(iii) 0 − 2
(ii)
1 0
(viii) −1 × 0 +
(x) 40
(vi) 04 0 2
(xi) 0!
3×0 0 4! (xii) 0! (ix)
➤➤
(i) 0 × 3
1.3.2 Use of inequality signs A. Using inequality signs, order all of the numbers in Q1.3.1A. B. Suppose a, b and c are three non-zero positive numbers satisfying a
1 1 1 , , a b c √ √ √ a, b, c? (v)
(ii)
(iii) a + b, 2c
27
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
8
➤
10
➤
➤➤
1.3.3 Highest common factor and lowest common multiple
3
A. Express in terms of prime factors (i) 2
(ii) −6
(iii) 21
(iv) 24
(v) −72
(vi) 81
27 14
(viii) 143
(vii)
(ix) 391
(x) 205 B. Determine the highest common factor of each of the following sets of numbers (i) 11, 88 (iv) 20, 45, 90
(ii) 28, 40
(iii) 25, 1001
(v) 14, 63, 95
(vi) 24, 72, 96
(vii) 36, 42, 54 C. Find the lowest common multiple of each of the following sets of numbers
(iv) 6, 9, 27
(ii) 5, 8
(iii) 12, 15
(v) 12, 42, 60, 70
(vi) 66, 144
1.3.4 Manipulation of numbers
➤➤
(i) 2, 4
3
A. Evaluate (i) 3 − 6 × 7 (iv) 6 − (3 − 6) × 4
(ii) 3(4 − 1) − 2
(iii) (4 − 1) ÷ (6 − 3)
(v) 24 ÷ (6 ÷ 2)
(vi) (24 ÷ 6) ÷ 2
(vii) (2 × (3 − 1)) ÷ (7 − 2(3 − 1)) B. Evaluate (i) 10 − (2 − 3 × 42 )
(ii) 100 − 3(7 − 10)3
(iv) −3(2 − (3 + 1)(−4 + 2) + 4 × 3)
(iii) −((−(−((−1))))) (v) 1 − 4(−2)
C. Evaluate 4 + 5 × 23 in its conventional meaning. Without these conventions how many pairs of brackets would be needed to make the meaning of the expression clear? Now insert one pair of brackets in as many different non-trivial ways as possible and evaluate the resulting expressions (retaining the other usual conventions). Can any other results be obtained by the insertion of a second pair of brackets?
28
➤➤
A. Find in simplest form as a fraction
3
12
➤
1.3.5 Handling fractions
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
10 12 14 5 ÷ (iv) 15 7 21 7 (vii) − 5 10 3 2 1 1 (x) ÷ − − 7 9 5 2
36 9 1 1 (v) + 2 4 1 1 (viii) 1 − + 2 3 12 (xi) 1/2
(i)
(ii)
7 2 × 3 5 1 1 (vi) − 3 7 3 1 1 (ix) − + 5 2 6
(iii)
B. (a) If a : b = 7 : 3 determine a for the following values of b: (i) 4, (ii) 3, (iii) −7, (iv) 15. (b) Repeat for b with the same values for a. C. If a : b = 5 : 2 evaluate as fractions a b a b (v) + b a (i)
a a+b a b (vi) − a+b a−b
b a+b a+b a−b (vii) + a−b a+b
(ii)
(iii)
a−b a+b
(iv)
D. If a is proportional to b and a = 6 when b = 4, what are the values of the following a b + b a
(iii)
a−b a+b
(iv) b when a = 21
1.3.6 Factorial and combinatorial notation – permutations and combinations
4
16
18
➤
(ii)
➤
(i) a when b = 3
➤➤
A. Evaluate (i) 5! (iv)
(ii) 10!
18!6! 16!
(vii) 10! + 11!
14! (7!)2 13
(v)
301! 300! 10! (vi) 4!6!
(iii)
8! 9! − 6!3! 5!4!
(viii)
B. Evaluate (i)
9
C2
(iv)
10
(vii)
6
C4
(ii)
9
(v)
100
C7 C100
(iii)
11
(vi)
7
C4
P3
6
P3 C3
C. How many combinations of 4 different letters can be chosen from ABCDEFG? ➤➤
1.3.7 Powers and indices
4
A. Evaluate in terms of powers of primes 29
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(ii) 34 /32
(iii) 63 × 32 /4
(iv) 62 2−2 32
(v) 22 × 4 × 25
(vi) 56 /104
(vii) 34 22 3−1
(viii) 49 × 7/212
(i) 22 23
B. Simplify (write as simplest products of powers of primes) (i) 34 36 32 (iv) (4 × 6)6 /(32 × 42 ) 32 46 3−3 2−1
(vii)
62 23 34 9 22 33
(ii) 23 42 /25
(iii)
(v) 275 /95
(vi) (−4)3 /(−12)4
(viii)
81/3 27 32 23
C. Show that the following are all the same number √
√ 2 7 √ , 3 5
√
28 45
14 √ , 3 35
,
√ 2 35 , 15
2 3
7 , 5
√
√ 2 7 √ , 45
28 √ , 3 5
28 45
D. Express in terms of simplest surds (i) (v)
√ √
18
(ii)
512
(vi)
√ √
20
(iii)
396
(vii)
√ √
32
(iv)
108
(viii)
√ √
52 63
E. Rationalize (iii) √
(vii)
1
(iv)
2−1 1 1 1 + + 2 4 8
4−
➤➤
1.3.8 Decimal notation
1 √
4
A. Express in decimal form, to four decimal places in each case (i) − 12 (v)
0 6
(ii)
7 2
(vi)
1 8
(iii)
2 3
(iv) − 29
B. Express as fractions (i) 0.25 (v) 0.17 30
(ii) 0.125
(iii) 72.45
(iv) −0.312
10
22
➤
1 1 (ii) − √ (i) √ 7 3 √ √ √ 5+1 2−2 3 (v) √ (vi) √ √ 5−1 2+ 3 √ √ √ (viii) 512 + 128 + 32
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
C. Write the following numbers in scientific notation stating the mantissa and exponent (i) 21.3241
(ii) 429.003
(v) 1,000,100
(vi) 300491.2
(iii) −0.000321
(iv) 0.00301
D. Write the numbers in C to (a) 3, (b) 6 significant figures. 5
25
➤
➤➤
1.3.9 Estimation A. Assuming at π 3.142 and e 2.718 give approximate values for (i) π 2
(ii) e3
(iii) π −2
(iv) e−3
B. Estimate the values of (i) (iii)
0.0003 × 3.1 × 106 9050
(ii)
2.01 + 403 2.1 × 10−3 − 29.9
6 × 105 + 1001e3 3.109 − 3.009
(iv)
3π 2 e3 63
1.4 Applications 1. An electrical circuit comprised of resistors only is illustrated in Figure 1.1
R1 R2
R1
R3
R1 R2 R3
Figure 1.1
The equivalent resistance, R, of two resistors R1 and R2 in series is the sum of their resistances: R = R1 + R2 31
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
The reciprocal of the equivalent resistance of two resistors in parallel is equal to the sum of their reciprocals: 1 1 1 + = R R1 R2 (see Section 1.2.5) (a) If, in the circuit of Figure 1.1, R1 = 1, R2 = 2, R3 = 3 determine the overall equivalent resistance of the circuit, working entirely with fractions. (b) Repeat the calculation using three decimal places accuracy and compare your result with (a). (c) Suppose now that R2 is not fixed, but can vary. Obtain the equivalent resistance in terms of R2 using exact fractions. (d) Using the result of (c), plot a graph of the equivalent resistance R for integer values of R2 from 1 to 10. (e) Discuss the calculations and results of (c), (d) in the light of the need to plot a useful graph. (f) If we wish to increase slightly the equivalent resistance above that when R2 = 2 what should we do with R2 , increase or decrease it? 2. Using the expressions for n Cr try a selection of values of n and r to investigate whether the following relations might be true. (i)
n
Cr + n Cn−r = r Cn
(iii)
n
Cr = n Cn−r
(ii)
n−1
Cr + n−1 Cn−r = n Cr
Prove any result that you suspect is true.
Answers to reinforcement exercises 1.3.1 Types of numbers A.
(i) 2 is a positive prime and even integer. (ii) −3 is a negative integer. (iii) 11 – integer, positive, prime, odd. (iv) 21 – integer, positive, odd, composite (3 × 7). (v) −0 – zero, both positive and negative. (vi)
2 3
– proper fraction, rational number, positive.
(vii)
5 2
– improper fraction, positive, rational.
(viii) (ix) 32
1 25 is − 37 –
a positive mixed fraction expressible as the improper fraction 72 . negative proper fraction.
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(x)
18 – improper fraction which can be cancelled down to lowest terms as an 9 integer 2.
(xi) 0.0 – decimal representation, to one decimal place, of zero. 1 2 = . 10 5 (xiii) −0.31 is a negative decimal fraction expressible as the negative proper 31 fraction − . 100 3 or (xiv) 6.3 is a positive decimal number, expressible as the mixed fraction 6 10 63 . the improper fraction 10 √ (xv) 3 is a positive irrational number. (xii) 0.2 is a decimal fraction expressible as the proper fraction
(xvi) 3π – irrational. (xvii) e – irrational. (xviii) e2 – irrational. √ (xix) − 2 is a negative, irrational number. (xx) −1.371 is a negative decimal fraction expressible as the negative improper 1371 fraction − . 1000 B.
(i) zero
(ii) not defined
(iii) negative integer
(iv) zero
(v) not defined
(vi) zero
(vii) not defined (x) 4 = 1 0
(viii) zero (xi) 0! = 1
(ix) not defined (xii) 24
1.3.2 Use of inequality signs 5 A. 21 > 11 > 3π > e2 > 6.3 > e > > 2 2 2 2 18 √ > 3 > 1 > > 0.2 > 0.0 = 9 5 3 √ 3 = −0 > −0.31 > − > − 2 > −1.371 > −3 7 B. (i) a 2 < b2 ≤ c2 (iv) −c ≤ −b < −a
1 1 1 > ≥ a b c √ √ √ (v) a< b≤ c
(ii)
(iii) a + b < 2c
1.3.3 Highest common factor and lowest common multiple A.
(i) 2 is already prime
(ii) −6 = −1 × 2 × 3
(iii) 21 = 3 × 7 33
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(iv) 24 = 23 × 3
(v) −72 = −1 × 23 × 32
(vii) 2−1 × 33 × 7−1
(vi) 81 = 34
(viii) 11 × 13
(ix) 17 × 23
(x) 5 × 41 B. (i) 11 (iv) 5
(ii) 4
(iii) 1
(v) 1
(vi) 24
(ii) 40
(iii) 60
(v) 420
(vi) 1584
(vii) 6 C. (i) 4 (iv) 54
1.3.4 Manipulation of numbers A. (i) −39
(ii) 7
(iii) 1
(iv) 18
(v) 8
(vi) 2
(ii) 181
(iii) 1
4 3
(vii)
B. (i) 56 (iv) −66
(v) 9
44; 2 pairs of brackets, 4 + (5 × (23 )) With one pair we can get 72, 1004, 2744 With two pairs we could also get 183
C.
1.3.5 Handling fractions A.
5 6 98 (iv) 75 7 (vii) 2 130 (x) − 189 (i)
3 4 5 (viii) 6 (xi) 24
28 3 12 (b) (i) 7
34
5 2
(iii)
(v)
B. (a) (i)
C. (i)
14 15 4 (vi) 21 4 (ix) 15
(ii) 4
(iii) −
(ii) 7
(ii)
5 7
(ii)
9 7
(iii)
2 7
49 7
(iv) 35
(iii) −3 (iv)
3 7
(v)
(iv) 29 10
(vi)
1 21
45 7 (vii)
58 21
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
9 2
D. (i)
(ii)
13 6
(iii)
2 5
(iv) 14
1.3.6 Factorial and combinatorial notation A.
(i) 120 (iv) 220320 (vii) 43545600
B.
(ii) 3628800
(iii) 301
(v) 264
(vi) 210
(viii) 70
(i) 36
(ii) 36
(iii) 330
(iv) 210
(v) 1
(vi) 210
(vii) 2400 C. 35
1.3.7 Powers and indices A.
(i) 25
(v) 29
(vi) 52 2−4
(i) 312
(ii) 22
(iii) 23 35
(iv) 214 34
(v) 35
(vi) −2−2 3−4
(viii) 2−2 3 =
(vii) 213 35 D.
(iv) 34
(viii) 7 × 3−2
(vii) 22 33 B.
(iii) 2 × 35
(ii) 32
√ (i) 3 2 √ (iv) 2 13 √ (vii) 6 3 √
E. (i) (iv)
7 7
4+
√
10
6 √ 1 (vii) (2 + 3 2) 4
3 4
√ (ii) 2 5 √ (v) 16 2 √ (viii) 3 7 √ 3 (ii) − 3 √ 3+ 5 (v) 2 √ (viii) 28 2
√ (iii) 2 2 √ (vi) 6 11
(iii)
√
2+1
√ (vi) 3 6 − 8
1.3.8 Decimal notation A. (i) −0.5000
(ii) 3.5000
(iii) 0.6667
(iv) −0.2222
(v) 0.0000
(vi) 0.1250
B. (i)
1 4
(ii)
1 8
(iii)
1449 20 35
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(iv) −
39 125
(v)
17 100
C.
(i) (ii) (iii) (iv) (v) (vi)
Given
Scientific Notation
Mantissa
Exponent
21.3241 429.003 −0.000321 0.00301 1,000,100 300491.2
2.13241 × 10 4.29003 × 102 −3.21 × 10−4 3.01 × 10−3 1.0001 × 106 3.004912 × 105
2.13241 4.29003 −3.21 3.01 1.0001 3.004912
1 2 −4 −3 6 5
D. (a) (i) 21.3
(ii) 429
(iii) −0.000321 (iv) 0.00301
(v) 1,000,000
(vi) 300,000 (b) (i) 21.3241 (ii) 429.003 (iii) −0.000321 (iv) 0.003010 (v) 1,000,100 (vi) 300491
1.3.9 Estimation A. (i) 10
(ii) 20
B. (i) 0.1
(ii) −13
36
(iii)
1 10
(iii) 62 × 105
(iv)
1 20
(iv) 10
2
Algebra In this chapter we review the basic principles of algebra in some detail and introduce some more advanced topics. There is a lot of work in this chapter, reflecting the importance of algebra, but don’t feel you have to do it all at once. Some topics, such as the binomial theorem, you may like to leave until you need them.
Prerequisites It will be helpful if you know something about: ➤ ➤
the rules of arithmetic (10 ) the properties of zero (6 ) algebraic manipulation of symbols powers and indices (18 ) factorial notation (16 ) ➤ ➤
• • • • •
Objectives In this chapter you will find: • • • • • • • • • • • • •
multiplication of linear expressions addition and multiplication of simple polynomials factorisation of polynomials by inspection simultaneous linear equations definition and use of identities factors and roots of a polynomial and use of the factor theorem rational functions and their properties addition and multiplication of rational functions division of polynomial expressions and use of the remainder theorem partial fractions properties of quadratic expressions and equations powers and indices for algebraic expressions the use of the binomial expansions of (a + b)n and (1 + x)n for positive integer n
Motivation You may need the material in this chapter for: • manipulation of mathematical expressions of scientific and engineering relationships 37
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
• further mathematical topics and techniques such as integration, coordinate geometry, Laplace transforms • solving systems of linear equations occurring in electrical circuits, chemical reactions, etc. • solving differential equations • numerical methods and statistics
2.1 Review ➤ 40
2.1.1 Multiplication of linear expressions
73 ➤➤
Expand the brackets in the following expressions (i) −(x − 3)
(ii) 2x(x − 1)
(iv) (t − 3)(t + 3)
(iii) (a − 3)(2a − 4)
(v) (u − 2)
2
2.1.2 Polynomials
➤ 43
74 ➤➤
➤ 45
75 ➤➤
Expand and simplify into polynomial form (i) x 3 − 2x + 1 + 3(x 4 + 2x 3 − 4x 2 − x − 1) (ii) (x − 2)(x + 3) (iii) (x − 1)2 (x + 1) (iv) (2x − 1)(x 2 + x + 1)
2.1.3 Factorisation of polynomials by inspection A. Factorise
(i) 3x 2 + 6x
(ii) u2 − 16
B. Factorise
(i) x 2 − x − 2
(ii) x 3 − 2x 2 − x + 2
(iii) 3x 2 + 5x − 2
2.1.4 Simultaneous equations
➤ 48
75 ➤➤
➤ 50
76 ➤➤
Solve the simultaneous equations 2x − y = 1 x + 2y = 2
2.1.5 Equalities and identities Determine A and B if A(x − 3) + B(x + 2) ≡ 4 38
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
➤ 52
2.1.6 Roots and factors of a polynomial
76 ➤➤
A. Referring to 2.1.2(iii), what are the (i) factors and (ii) roots of the polynomial x 3 − x 2 − x + 1? What are the solutions of the equation x 3 − x 2 − x + 1 = 0? B. Determine the factors of x 3 + 2x 2 − 5x − 6. ➤ 54
2.1.7 Rational functions
76 ➤➤
Which of the following are rational functions? x−1 x2 + 1 x−1 (iv) x+1 (i)
(ii)
√
1 x+√ x
(iii)
x2
x−1 +x+1
2.1.8 Algebra of rational functions
➤ 56
76 ➤➤
➤ 60
77 ➤➤
Put the following over a common denominator 2 3 − x+1 x−2 1 1 1 + − (ii) x−1 x+1 x+2 (i)
2.1.9 Division and the remainder theorem
A. Divide 2x 3 + x 2 − 6x + 9 by x + 2. B. Use the remainder theorem to find the remainder when 4x 3 − 2x 2 + 3x − 1 is divided by x − 2.
2.1.10 Partial fractions
➤ 62
77 ➤➤
➤ 64
78 ➤➤
Split into partial fractions x+1 (x − 1)(x + 3)
2.1.11 Properties of quadratic expressions and equations A. Solve the quadratic equations (i) x 2 − 3x = 0 (ii) x 2 − 5x + 6 = 0 (iii) 2x 2 + 3x − 2 = 0 B. Complete the square for the quadratic x 2 + x + 1 and hence determine its minimum value. C. What is the (i) sum (ii) product of the roots of the quadratic x 2 + 2x + 3? 39
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
2.1.12 Powers and indices for algebraic expressions
➤ 70
78 ➤➤
➤ 71
79 ➤➤
Simplify the following (i)
a 2 c4 a −3 b2 c
(ii) 1
(iii)
(3x)3 (2y)−1 (x 2 y)−1
1
(x − 1) 4 (16x + 16) 4 3
(x + 1)(x 2 − 1)− 4
2.1.13 The binomial theorem Expand (2 − x)5 by the binomial theorem.
2.2 Revision ➤
2.2.1 Multiplication of linear expressions
38
73 ➤
Algebra is the branch of mathematics that generalises arithmetic by using symbols as well as numbers. Symbols, such as x, y, a, b, may represent any numbers, but there are certain conventions used which are useful to know: letters from the beginning of the alphabet: a, b, c, . . . usually represent constants – quantities having a fixed value; letters from the middle of the alphabet . . . l, m, n, . . . usually represent whole numbers or integers; letters from the end of the alphabet . . . x, y, z usually represent variables, which may take a range of values. As mathematics becomes more advanced we need more symbols and the Greek alphabet is pressed into service – you have already seen an example in π, the Greek p. An algebraic expression is any quantity built up from such a finite number of symbols using only the arithmetic operations of addition, subtraction, multiplication or division. This includes integer √ powers which are simply successive multiplication, and roots of variables, such as x.
Examples x + y,
a + 2b , a−b
x 2 + 2x + 3,
√
t+√
1 t −1
are all algebraic expressions, in the symbols indicated. Be careful to distinguish between an algebraic expression, such as x 2 − 1, and an algebraic equation such as x 2 − 1 = 0. An expression tells you nothing about the variables involved, it stands alone, whereas an equation can fix the values of the variables. Most of the expressions we will deal with in fact contain just one variable – called functions of a single variable – which is traditionally, but not exclusively, denoted by x. The simplest example is the linear expression in x such as 2x + 3 (called linear because its graph is a straight line (➤ 212), or in general ax + b where a and b are given constants. If the use of symbols a, b to represent constants worries you, just think of them as numbers such as 2, 3, etc. 40
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Another important example is a quadratic expression in x such as 2x 2 + 7x − 4, of general form ax 2 + bx + c where a, b, c are again ‘constants’, independent of x. In order to use algebra for more advanced topics such as factorisation or partial fractions, we need to be able to perform multiplication of simple algebraic expressions quickly and accurately. The key to this is dealing with multiplication of bracket expressions such as (a + b)(c + d). All you need for this is to know that the expression a(c + d) is ‘expanded’ by multiplying c and d by a: a(c + d) = ac + ad This is called the distributive rule: we say ‘multiplication distributes over addition’. Real numbers also satisfy the associative rule a(bc) = (ab)c and the commutative rule ab = ba. Another useful property of real numbers is that if ab = 0 then one or both of a, b must be zero. Note that these statements are rules of algebra, which will not necessarily hold for algebras not based on the real numbers – for example the commutative law does not hold in matrix algebra, the subject of Chapter 13. However, given these rules we can use them to handle more complicated expressions. For example, we can now expand out any number of bracket expressions.
Examples
(a + b)(c + d) = (a + b)c + (a + b)d = ac + bc + ad + bd (3x + 2)(x − 1) = (3x + 2)x + (3x + 2)(−1) = 3x 2 + 2x − 3x − 2 = 3x 2 − x − 2
Note the collection of the ‘like’ terms, 2x − 3x = −x. You should always tidy up calculations in this way. Always be careful with the treatment of signs and brackets, particularly when they are mixed. If in doubt leave minus signs bracketed: (−1)(x − 1) = (−1)x − (−1)1 = −x + 1 Never omit brackets out of laziness. Later you will need to reverse some of the above operations. For example, you could be given ac + bc + ad + bd and asked to ‘factorise’ it – that is, convert it to the form (a + b)(c + d). This is much easier to do if you are highly proficient at multiplying such expressions in the first place – to do something ‘standing on your head’ it helps if you can do it the right way up first!! There is only one way to achieve this proficiency – practice, so try the reinforcement exercises until you are confident.
41
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Two very important special cases of products of linear expressions are (a − b)(a + b) = a 2 − b2 (a + b)2 = a 2 + 2ab + b2 You should know these backwards – literally, given either side you should immediately be able to write down the other side.
Examples Fill in the blanks: (x − 3)(x + 3) =
(expanding)
(x + 2)2 =
(expanding)
= x − 4x + 4
(factorising)
= x 2 − 16
(factorising)
2
Solution to review question 2.1.1
(i) You just need to be careful with signs here. Take your time until you are fully confident: −(x − 3) = (−1)(x − 3) = (−1)x − (−1)3 = −x + 3 (ii) 2x(x − 1) = 2x × x − 2x = 2x 2 − 2x (iii) Here you have to remember to collect terms together at the end. We have (a − 3)(2a − 4) = a(2a − 4) − 3(2a − 4) = 2a 2 − 4a − 6a + 12 = 2a 2 − 10a + 12 (iv) (t − 3)(t + 3) = t 2 + 3t − 3t − 32 = t2 − 9 This is just the difference of two squares result. Practice this until you can miss out the intermediate step. (v) (u − 2)2 = (u + (−2))2 = u2 + 2(−2)u + (−2)2 = u2 − 4u + 4 Again, this square of a linear term is so important that you should practice it until you are able to jump the intermediate steps and able to go from ‘right to left’ just as proficiently.
42
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
➤
2.2.2 Polynomials
38
74 ➤
A monomial is an algebraic expression consisting of a single term, such as 3x, while a binomial consists of a sum of two terms, such as x + 3y. A polynomial is an algebraic expression consisting of a sum of terms each of which is a product of a constant and one or more variables raised to a non-negative integer power. An example with a single variable, x, is x 3 − 2x 2 + x + 4 and the general form of a polynomial in x is written: pn (x) = an x n + an−1 x n−1 + an−2 x n−2 + · · · + a1 x + a0 where the ai , i = 0, 1, . . . , n are given numbers called the coefficients of the polynomial. We use pn (x) to denote a polynomial in x of degree n. The notation ai is often used when we have a list of quantities to describe – i is called the subscript. If n is the highest power that occurs, as in the above, and if an = 0, then we say that the polynomial is of nth degree. An important property of a polynomial in x is that it exists (i.e. has a definite value) for every possible value of x. A polynomial of degree zero is simply a constant: p0 (x) = a0 A polynomial of degree one: p1 (x) = a1 x + a0 is a linear polynomial, or linear function. A polynomial of degree two: p2 (x) = a2 x 2 + a1 x + a0 is a quadratic polynomial, or quadratic function. Similarly for cubic (degree 3), quartic (degree 4), quintic (degree 5), . . . , etc. An equation of the form pn (x) = an x n + an−1 x n−1 + · · · + a1 x + a0 = 0 is a polynomial equation in x of degree n.
Examples (i) (ii)
p(x) = 2x + 1 is a linear polynomial or function, while 2x + 1 = 0 is a linear equation, which gives x = − 12 p(x) = x 2 − 3x + 2 is a quadratic function. x 2 − 3x + 2 = 0 is a quadratic equation, which can be solved by factorising (see Section 2.2.3): x 2 − 3x + 2 = (x − 1)(x − 2) = 0 43
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
This can only be true if either x − 1 = 0 or x − 2 = 0, yielding two possible values of x: x = 1, 2 Such solutions of a polynomial equation are called the roots or zeros of the corresponding polynomial (➤ 52). Some polynomials do not have roots that are real numbers – for example there are no real numbers that satisfy x2 + 1 = 0 However, if we allow the possibility of complex roots (complex numbers are considered in Chapter 12), then there is a famous theorem of algebra (the fundamental theorem of algebra) which states that a polynomial of nth degree has exactly n roots – which may be real, equal or complex. Polynomials may be added and multiplied to produce other polynomials. In doing so remember to gather like terms, and take care with signs.
Examples
(2x + 1) + (x 3 − 2x 2 − 3x − 7) = x 3 − 2x 2 + (2x − 3x) + (1 − 7) = x 3 − 2x 2 − x − 6 (2x 2 + x − 1)(x 2 − 2) = 2x 2 x 2 + 2x 2 (−2) + xx 2 + x(−2) − 1x 2 − 1(−2) = 2x 4 − 4x 2 + x 3 − 2x − x 2 + 2 = 2x 4 + x 3 − 5x 2 − 2x + 2
Solution to review question 2.1.2
(i) We must gather together all terms of the same degree: x 3 − 2x + 1 + 3(x 4 + 2x 3 − 4x 2 − x − 1) = x 3 − 2x + 1 + 3x 4 + 6x 3 − 12x 2 − 3x − 3 = 3x 4 + 7x 3 − 12x 2 − 5x − 2 (ii) Expanding the brackets: (x − 2)(x + 3) = x(x + 3) − 2(x + 3) = x 2 + 3x − 2x − 6 = x2 + x − 6 (iii) This example illustrates how good facility with elementary results can save you work. Thus, one way to expand in this case is: (x − 1)2 (x + 1) = (x 2 − 2x + 1)(x + 1) = x 3 − 2x 2 + x + x 2 − 2x + 1 = x3 − x2 − x + 1 44
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
This is fine, but it is much quicker if you notice that pairing off one of the (x − 1) factors with the (x + 1) gives x 2 − 1 and: (x − 1)2 (x + 1) = (x − 1)(x 2 − 1) = x3 − x2 − x + 1 is obtained directly. (iv) No tricks here, just a careful plod: (2x − 1)(x 2 + x + 1) = 2x 3 + 2x 2 + 2x − x 2 − x − 1 = 2x 3 + x 2 + x − 1 Note that in each of the above examples, we can always check our results by substituting ‘obvious’ values of x in the result. x = 0 is often a good start, whereas x = ±1 can be used in (iii), the point being that your calculated results must vanish for these values. x = 12 will do a similar (but messy) job in (iv). ➤
2.2.3 Factorisation of polynomials by inspection
38
75 ➤
As mentioned in Section 2.2.1 it is sometimes necessary to reverse the multiplication of polynomials or brackets to split an expression into factors of a particular type. This process is called factorising. It is useful in solving algebraic equations, or determining their properties. Usually we try to factorise into ‘linear’ factors of the form x − a.
Example You can confirm that x 2 + 2x + 1 = (x + 1)2 . This tells us that the quadratic equation x 2 + 2x + 1 = 0 has two equal roots x = −1. It also makes clear that x 2 + 2x + 1 is always positive whatever the value of x. In general, factorising can be difficult. It pays to take it slowly and build up confidence with simple expressions.
Example To factorise x 2 + 2x note that x is a common factor of each of the terms in the polynomial. We can therefore ‘take it out’ and write x 2 + 2x = x(x + 2) The approach in general is to inspect each term of an expression and check whether there are factors common to each. All we are really doing is reversing the distributive rule stated in Section 2.2.1.
Example
8x 2 − 2x 4 = 4(2x 2 ) − (2x 2 )x 2 = 2x 2 (4 − x 2 ) = 2x 2 (2 − x)(2 + x)
by using the difference of two squares (see Section 2.2.1). 45
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
When factorising more complicated polynomials it pays to remember that this is not always possible. For example, we cannot factorise x 2 + 1 in terms of real factors, and it must therefore be left as it is. In any event, factorisation is rarely easy, and by far the most potent weapon in factorising is a high degree of skill in multiplying out brackets. The result for the difference of two squares, and the square of a linear factor (Section 2.2.1) are particularly useful here. In the latter case try to learn to recognise that, provided the coefficient of x 2 is 1, the constant term in (x + a)2 = x 2 + 2ax + a 2 (i.e. independent of x) is the square of half of the coefficient of the linear term in x. Expressions can sometimes be factorised by looking for like terms and combining them, or for terms with common factors.
Example
2ac + ad − 6bc − 3bd
‘By inspection’ we notice that a may be taken out of the first two terms to give a(2c + d). We then look at the last two terms to see if they conceal a 2c + d – sure enough they may be written −6bc − 3bd = −3b(2c + d). So we have 2ac + ad − 6bc − 3bd = a(2c + d) − 3b(2c + d) and taking out the common factor 2c + d finally gives the factorised form (a − 3b)(2c + d) Note that this required some inspired guesswork and trial and error. Solution to review question 2.1.3
A. (i) To factorise 3x 2 + 6x examine each term and find factors common to them. In this case both terms contain an x and a 3, from which 3x 2 + 6x = (3x)x + (3x)(2) = 3x(x + 2) This done you could, for practise, check the result by expanding out again, to go from right to left. (ii) Know your difference of two squares backwards! u2 − 16 = u2 − 42 = (u − 4)(u + 4) B. (i) In factorising something like x 2 − x − 2 most of us use a sort of inspired trial and error. And the better you are at multiplying pairs of brackets, the easier the trial will be. We look at the −2. This can only come from multiplying something like (x ± 1) and (x ∓ 2) together. Whichever of these we choose must combine to give us the −x. All you have to do therefore is multiply such pairs of brackets and check which gives the right result. If your expansion 46
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
of brackets is good, then you’ll be able to do this mentally: (x − 1)(x + 2) = x 2 + x − 2 (x + 1)(x − 2) = x − x − 2 2
× √
So the factors are (x + 1)(x − 2) If you want a more formal approach, note that (x + a)(x + b) = x 2 + (a + b)x + ab So, to factorise x 2 − x − 2 we need to find a and b such that ab = −2 and a + b = −1, which is then done ‘by inspection’ (i.e. trial and error!) to give the result obtained above. (ii) There is a routine device for factorising polynomials such as x 3 − 2x 2 − x + 2 or higher degree, based on the factor theorem (see Section 2.2.6). This only works if the roots of the polynomial are easy to spot. This example shows what can be done by looking at the terms and picking factors out directly. In this case a couple of elementary factorisations reveals that x 3 − 2x 2 − x + 2 = x 2 (x − 2) − (x − 2) We continue by taking out the (x − 2) factor now common to the two terms = (x 2 − 1)(x − 2) and finish by factorising the x 2 − 1 = (x − 1)(x + 1)(x − 2) This example nicely illustrates how one often has to piece together elementary results and ideas to solve problems. (iii) For 3x 2 + 5x − 2 we have to deal with the 3, the coefficient of x. Because of this we guess that the factors are going to be something like (3x + a)(x + b), with ab = −2, and a + 3b = 5. Trial and error (which can be systematised, but is hardly worth the effort) soon reveals that b = 2 and a = −1 works and we can then quickly check that (3x − 1)(x + 2) = 3x 2 + 5x − 2. Note that in these solutions we don’t want to give the impression that factorisation is an haphazard, hit and miss process – there are systematic routines, including symbolic computer algebra packages – we simply want to indicate what can be achieved with a good facility in simple algebra. 47
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
➤
2.2.4 Simultaneous equations
38
75 ➤
We will say more about solving equations in Section 13.5, but here we need to cover some simple examples that we will use in subsequent sections. A simple linear equation in one variable, of the form ax + b = 0
(a = 0)
where a, b are given constants, is easy to solve: ax = −b and so x = −
b a
Often we have to deal with equations involving two variables, such as ax + by = e cx + dy = f where a, b, c, d, e, f are all given constants. This is referred to as a system of simultaneous linear equations in the two variables x and y. Such a system can be solved by ‘eliminating’ one of the variables, say y, and hence determining the other.
Example
x−y =1 x + 2y = −1
In this case it is actually easier to eliminate x first, because we notice that by subtracting the equations (i.e. doing the same subtraction on each side of the equation) we obtain (x − y) − (x + 2y) = 1 − (−1) x − y − x − 2y = 1 + 1 = 2 −3y = 2
So
y = − 23
and therefore We can now obtain x from the first equation: x =1+y =1−
2 3
=
1 3
So the solution is x = 13 ,
y = − 23
which you should check in the original equations. Note that the answers are left as fractions rather than converting to decimals. Any decimal form of the solutions is likely to be an approximation and therefore incur errors, which may have serious consequences in an actual engineering application. 48
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Complications can arise with such systems of equations, depending on the coefficients a, b, c, d, e, f . For example consider the system x+y =1 2x + 2y = 3 This system has no solutions for x and y because whereas the left-hand sides are related by a factor of two, the right-hand sides are not – we say that the equations are incompatible. To see the nonsense they lead to, subtract twice the first from the second to give ‘0 = 2x + 2y − 2(x + y) = 3 − 2 = 1 Therefore 0 = 1’ An uncomfortable conclusion! Now consider the pair x+y =1 2x + 2y = 2 These are not really two different equations – the second is just twice the first. In this case we can find any number of solutions to the system – just fix a value for, say, y and then determine the required value of x. The following is an example of another important type of system x+y =0 2x + y = 0 Because of the zeros on the right-hand side such a system is said to be homogeneous. We will have a lot to say about them in Chapter 13, but for now convince yourself that the only possible solution of this system is x = y = 0, a so-called ‘trivial’ solution. In general, show that for the system ax + by = 0 cx + dy = 0 to have a ‘non-trivial’ solution (i.e. x, y not both zero) for non-zero coefficients a, b, c, d we must have ad = bc. The sorts of complications we have pointed to are really the concern of more advanced mathematics. For the moment all we need to be able to do is solve a given system by elimination, when no complications arise. Graphically, equations of the form ax + by = c represent straight lines in a plane and systems of simultaneous equations of this type represent sets of such lines that may or may not intersect. We will say more about this in Chapter 7. Solution to review question 2.1.4
2x − y = 1
(i)
x + 2y = 2
(ii) 49
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
No simple cancellation jumps out at us here. If we want to eliminate y, say, then the easiest way is to multiply (i) by 2 to get 4x − 2y = 2 and add this result to (ii) to obtain 4x − 2y + x + 2y = 5x = 2 + 2 = 4 So x = 4/5. Now substitute back in (i) to find y y = 2x − 1 =
8 5
−1=
3 5
The solution is therefore y=
3 5
2.2.5 Equalities and identities
➤
x = 45 ,
38
76 ➤
You might not have noticed but so far we have used the equals sign, =, in two distinct contexts. Look at the two ‘equations’: 3x + 6 = 12 (x − 1)(x + 1) = x 2 − 1
(i) (ii)
The first is the usual sort of equation. It only holds for a particular value of x – i.e. x = 6. The equality in (i) enables us to determine x. The second ‘equation’ actually tells us nothing about x – it is true for any value of x. We call this an identity. The expressions on either side of the equals sign are merely alternative forms of each other. To distinguish such identities from ordinary equalities we use the symbol ≡ (a ‘stronger’ form of equals!) and write (x − 1)(x + 1) ≡ x 2 − 1 ≡ is read as ‘is equivalent to’, or ‘is identical to’. The powerful thing about an identity in x is that it must be true for all values of x . We can sometimes use this to gain useful information (a particularly important application occurs in partial fractions – see Section 2.2.10).
Example Suppose we are given x 2 − 3x + 2 ≡ Ax 2 + Bx + C 50
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
where the A, B, C are ‘unknown’. In fact, the only way the left- and right-hand sides can be identical is if the coefficients of corresponding powers are the same, i.e. A = 1,
B = −3,
C=2
Another way of looking at this is to say that since the identity must hold true for all values of x, we can determine the A, B, C by substituting ‘useful’ values of x. For example x = 0 gives C = 2 immediately. Choosing any two other values for x will give two equations for A and B. In this case we may notice that the roots of the quadratic are 1 and 2 and so taking these values of x give x = 1,
A+B +2=0
x = 2,
4A + 2B + 2 = 0
Solving these simultaneous equations gives A = 1,
B = −3, as before.
Solution to review question 2.1.5
To determine A and B in A(x − 3) + B(x + 2) ≡ 4 use the fact that this must be true for all values of x. In particular it must hold if x = 3, giving A(0) + B(5) = 4 or
B=
4 5
Similarly, putting x = −2 gives A(−5) = 4 or
A = − 45
An alternative (longer) approach is to rewrite the identity as (A + B)x + (−3A + 2B) = 4 and equate coefficients on each side to give A+B =0 −3A + 2B = 4 Now solve these to give the previous results. 51
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
➤
2.2.6 Roots and factors of a polynomial
39
76 ➤
Shortly, we will be looking at more powerful methods for factorising polynomials. First, I want to clarify something that often confuses those new to algebra. This is the distinction between factors, roots and solutions of polynomials or polynomial equations. Remember the difference between an algebraic expression and an algebraic equation referred to in Section 2.2.1? In particular, a polynomial is an expression such as x2 + x − 2 whereas the corresponding polynomial equation would be x2 + x − 2 = 0 Now if we proceed to solve this equation by factorising: x 2 + x − 2 ≡ (x − 1)(x + 2) the expressions x − 1, x + 2 are factors of the polynomial expression alone, independently of the equation. The last identity is simply an alternative way of writing x 2 + x − 2 in terms of these factors. This is of course helpful in solving the corresponding polynomial equation: x 2 + x − 2 ≡ (x − 1)(x + 2) = 0 ➤
Remembering that for real numbers ab = 0 means one or both of a, b must be zero (41 ), this factorised form tells us that the solutions to the equation can be obtained by putting the factors x − 1, x + 2 equal to zero. This leads to the solutions of the equation x = 1,
x = −2
These values of x, which make the polynomial x 2 + x − 2 zero, are called the roots or zeros of the polynomial. So, if x − 1 is a factor of the quadratic expression x 2 + x − 2 then x = 1 is a solution of the quadratic equation x 2 + x − 2 = 0. In general, if x − a is a factor of a polynomial pn (x) then x = a will be a solution of the polynomial equation pn (x) = 0. The solution x = a is often referred to as a root of the polynomial. This idea is the basis of the factor theorem: If p(x) is a polynomial and if x = a is a root of the polynomial, i.e. p(a) = 0, then x − a is a factor of p(x). On the other hand, if x − a is a factor of p(x) then clearly p(a) = 0. This result is fairly obvious from the fact that if p(x) has a factor x − a then it can be written as p(x) = (x − a)q(x) where q(x) is another polynomial. Then clearly p(a) = 0. We can use the factor theorem in factorising more complicated polynomials. While we know from the example x 2 + 1 that not all polynomials can be factorised into linear factors x − a, it can be shown that any polynomial with real coefficients can always be factorised into linear and/or quadratic factors with real coefficients. It may then be possible to find the linear factors by trial and error using the factor theorem, if the roots are simple numbers, easy to spot. Another useful result is that if the coefficient of the term of highest degree is unity the roots of a polynomial may be factors of the constant term, which gives us some clues about what the factors might be. 52
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Example
p(x) ≡ x 4 + 2x 3 − x − 2
The roots must be factors of −2 and so the only integer roots are likely to be ±1 or ±2. We find by trial that p(1) = 0 giving a factor x − 1 p(−2) = 0 giving a factor x + 2 However, −1 and 2 are not roots, so we have probably exhausted all possible real factors (although there may be repeated roots, see below). To find the quadratic factor remaining we write x 4 + 2x 3 − x − 2 ≡ (x − 1)(x + 2)(x 2 + ax + b) ≡ (x 2 + x − 2)(x 2 + ax + b) and find, on multiplying out the right-hand side and equating coefficients in the resulting identity −2b = −2, b − 2a = −1,
so b = 1
(constant term)
so a = 1 (coefficient of x)
So the factorised form is p(x) = (x − 1)(x + 2)(x 2 + x + 1) The quadratic x 2 + x + 1 does not factor further into real factors – it is said to be irreducible. It may not always be clear whether or not there are repeated factors in a polynomial. This does not really matter much since any repeated factors will become apparent from the remaining quadratic factor for simple cases. There is a result that if x − a is a repeated factor of a polynomial p(x) then it is also a factor of the derivative p (x), but this is rarely worth using. Solution to review question 2.1.6
A. From Review Question 2.1.2(iii) we have x 3 − x 2 − x + 1 = (x − 1)2 (x + 1) (i) The factors are therefore (x − 1) (twice) and x + 1. (ii) The roots are the values which make the polynomial vanish, which from the factors are x = 1 (twice) and x = −1. Note that a factor is an expression containing x while a root is a particular value of x. The solutions of the equation x3 − x2 − x + 1 = 0 53
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
are, of course, simply the roots of the polynomial on the left-hand side, by definition, and so the solutions are x = 1 (twice) and x = −1. B. No obvious factors present themselves in p(x) = x 3 + 2x 2 − 5x − 6. The best approach here is to use the factor theorem. We know that any linear factor of the form x − a must be such that a is a factor of −6. Also, by the factor theorem, if x − a is a factor of the polynomial p(x), then p(a) = 0. All this suggests that we look for roots of the polynomial amongst the factors of −6, by substituting these in the polynomial. Trying x = 1: p(1) = 13 + 2 × 12 − 5 × 1 − 6 = −8 = 0 So (x − 1) is not a factor. But x = −1 gives (−1)3 + 2(−1)2 − 5(−1) − 6 = 0 So (x − (−1)) = (x + 1) is a factor. Similarly, you can check that x = −2, x = 3 are not roots, but x = 2 and x = −3 are, giving the final factorisation as (x + 1)(x − 2)(x + 3) NB. By far the most common mistake in this topic is to think that if x = a is a root then x + a is the corresponding factor. This error is particularly easily made if a is negative. Remember, the correct factor is x − a. ➤
2.2.7 Rational functions
39
76 ➤
In writing down a polynomial we need only addition (or subtraction) and multiplication. The next step is to consider algebraic fractions, involving the division of polynomials. The simplest example is 1 x This already gives us new problems. Whereas a polynomial in x exists for every value of x – that is, plug in a value of x and you will get out a value for the polynomial – the 1 above fraction does not exist for x = 0. That is, there is no such number as . As noted in 0 1 Section 1.2.1 it simply does not exist – we say is not defined at x = 0. By this we mean x that we are not allowed to put x = 0 in this expression. For this reason we should really write 1 x
x = 0
but the ‘x = 0’ is often omitted, so long as it is clearly understood. 54
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
You may think that the fraction x x does exist, and that it is equal to 1, on cancellation of the x. But again this is only true if x = 0. The expression is not defined for x = 0, that is, there is no number equal to 00 . In general then, algebraic fractions are not defined for those values of x which make their denominator vanish.
Examples
1 is not defined at x = 1 x−1 x−2 is not defined at x = 2 x−2 x+1 is not defined at x = −1 and x = 3 (why?) 2 x − 2x − 3
Just as an arithmetic fraction such as function of the form:
2 3
is called a rational number, a general algebraic
Polynomial Polynomial is called a rational function. The polynomial on the top is the numerator that on the bottom the denominator in analogy with numerical fractions.
Examples
x+1 , x+2
x 2 + 2x − 3 x 2 + 4x + 2
are rational functions, whereas √ x+1 x 2 + 3x − 4 √ , x+2 x+ x are not because neither of
√
x + 1 or x +
√
x are polynomials.
Solution to review question 2.1.7
(i)
x−1 x−1 and (iii) 2 are both of the form x2 + 1 x +x+1 polynomial polynomial
and are therefore rational functions. √ 1 x−1 (ii) x + √ and (iv) are not rational functions because of the x+1 x square roots. 55
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
➤
2.2.8 Algebra of rational functions
39
76 ➤
Rational functions often cause a lot of problems for beginners in mathematics. There are some common errors that occur frequently, such as 1 ’ ‘1 1 + = a b a+b To clear these up we will approach the algebra of rational functions gradually and systematically. First, to avoid such errors as that above, it may be helpful for you to get into the habit of checking such results numerically. For example, putting a = b = 1 in the above gives the nonsense 1 1’ ‘1 1 + =1+1=2= = 1 1 1+1 2 Algebraic fractions behave much like numerical fractions. For example, multiplication is straightforward: a c ac × = b d bd where a, b, c, d may be any polynomials. Dividing by a rational function requires a little care, but essentially depends on the fact that 1 =a 1/a
(a = 0)
– the reciprocal of the reciprocal undoes the reciprocal – as can be seen by multiplying top and bottom on the left-hand side by a. In general, division is carried out by inverting a c a d ad the dividing fraction and multiplying, thus: = × = . Again, this can be b d b c bc d seen by multiplying top and bottom of the left-hand expression by . c
Example Multiply and divide the functions x + 1, permissible. We can have the product (x + 1) × For division we can have:
1 , stating when the corresponding operations are x
1 x+1 1 = =1+ x x x
for x = 0.
1 x+1 = (x + 1) × = (x + 1) × x 1/x 1/x = x(x + 1) or 56
for x = 0
1/x 1 1 1 = × = x+1 x x +1 x(x + 1)
for x = 0 or − 1
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Just as we can simplify the fraction 24 to its ‘lowest’ form 12 , so we may be able to ‘cancel down’ algebraic fractions – but with slightly more care. For example on cancelling the x on top and bottom you may be happy with x(x + 1) =x+1 x but remember that the functions on each side are not the same for all values of x. Whereas the right-hand side exists for all values of x, the left-hand side is not defined for x = 0. Provided you are careful about such things, algebraic cancellations present little difficulty.
Examples
x2 − x x(x − 1) = = x (x = 1) x −1 x−1 3x − 6 3(x − 2) 3 = = x2 − x − 2 (x + 1)(x − 2) x +1
(x = −1, 2)
In algebraic fractions it is perhaps not so much what you can do that needs emphasising, x +1 , you cannot but what you can’t do. For example, presented with something like x +2 ‘cancel’ the x’s as follows: 1+1 x+1 2’ ‘x + 1 = = = x+2 1+2 3 x+2 x+1 cannot be ‘simplified’ further – leave it as it is. Tread warily with x+2 algebraic fractions – check each step, with numerical examples if need be. We now consider addition and subtraction of rational functions. First, get used to adding fractions with the same denominator: The fact is that
b a+b a + = c c c This is the only way you can add fractions directly – when the denominators are the same (13 ). ➤
Example
3 7 3−7 −4 − = = x−1 x−1 x−1 x−1
To add fractions with different denominators we have to make each denominator the same by multiplying top and bottom by an appropriate factor. We use the result for constructing equivalent fractions: 1 1 b b = × = a a b ab
(a, b = 0)
e.g.
1 5 = 3 15 57
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
So, for example, b a b+a a+b 1 1 + = + = = a b ab ab ab ab This is called putting the fractions over a common denominator. It is what we did with numerical fractions in Section 1.2.5. Note that the restrictions a = 0 and b = 0 are necessary for the left-hand end to exist, and are all that is needed to convert to the final result.
Examples 1 x +1 1 x +1+1 x+2 = + = = x+1 x +1 x+1 x+1 x+1 1 1 (x − 1) x 1 1 + ≡ × + × (ii) x x−1 x (x − 1) x (x − 1) (i) 1 +
(iii)
=
x x−1 + x(x − 1) x(x − 1)
=
x−1+x x(x − 1)
=
2x − 1 x(x − 1)
2 3 2 (x + 2) 3 (x + 1) − = × − × x+1 x+2 x + 1 (x + 2) (x + 2) (x + 1) =
2(x + 2) 3(x + 1) − (x + 1)(x + 2) (x + 1)(x + 2)
=
2x + 4 − 3x − 3 (x + 1)(x + 2)
=
1−x −x + 1 = (x + 1)(x + 2) (x + 1)(x + 2)
In the above examples it has been pretty clear what the ‘common denominator’ should be. Consider the example x2
3 2x − 1 + − 1 (x + 1)2
In this case, you might be tempted to put both fractions over (x 2 − 1)(x + 1)2 . But of course this ignores the fact that both x 2 − 1 = (x − 1)(x + 1) and (x + 1)2 have a factor x + 1 in common. The lowest common denominator in this case is thus (x 2 − 1)(x + 1) = (x − 1)(x + 1)2 and we write: x2
2x − 1 2x − 1 3 3 + + = 2 − 1 (x + 1) (x − 1)(x + 1) (x + 1)2 =
58
3(x + 1) (2x − 1)(x − 1) + 2 (x − 1)(x + 1) (x − 1)(x + 1)2
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
=
3(x + 1) + (2x − 1)(x − 1) (x − 1)(x + 1)2
=
3x + 3 + 2x 2 − 3x + 1 (x − 1)(x + 1)2
=
2x 2 + 4 (x − 1)(x + 1)2
Here we have really used the LCM of the denominators. Solution to review question 2.18
(i) We first of all express each fraction over a common denominator and then combine the numerators. The common denominator in this case is simply the product of the denominators and we write 2 3 2(x − 2) 3(x + 1) − ≡ − x+1 x−2 (x + 1)(x − 2) (x + 1)(x − 2) where the factors shown are introduced on top and bottom – essentially we are multiplying by 1 in each case. ≡
2(x − 2) − 3(x + 1) (x + 1)(x − 2)
=
−x − 7 (x + 1)(x − 2)
This approach extends naturally to three or more fractions as shown in the next solution. (ii) The common denominator in this case is (x − 1)(x + 1)(x + 2) and we have 1 1 1 (x + 1)(x + 2) + − ≡ x−1 x+1 x+2 (x − 1)(x + 1)(x + 2) +
(x − 1)(x + 1) (x − 1)(x + 2) − (x − 1)(x + 1)(x + 2) (x − 1)(x + 1)(x + 2)
≡
(x + 1)(x + 2) + (x − 1)(x + 2) − (x − 1)(x + 1) (x − 1)(x + 1)(x + 2)
≡
x 2 + 3x + 2 + x 2 + x − 2 − (x 2 − 1) (x 2 − 1)(x + 2)
≡
x 2 + 4x + 1 (x 2 − 1)(x + 2) 59
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
If you really know your difference of two squares then you might spot a short cut here: 1 1 2x 1 1 + − = 2 − x−1 x+1 x+2 x −1 x+2
2.2.9 Division and the remainder theorem
2x(x + 2) − (x 2 − 1) , etc. (x 2 − 1)(x + 2) ➤
=
39
77 ➤
Consider the sum x+1+
3 x−1
Putting this over a common denominator gives x+1+
3 (x + 1)(x − 1) + 3 = x−1 x−1 =
x2 − 1 + 3 x−1
=
x2 + 2 x−1
So adding polynomials to fractions presents few problems it is analogous to, say, 2 + 12 = 5 . But what if we want to go the other way – that is, divide x − 1 into x 2 + 2 to reproduce 2 the original sum? This is called long division. There is a routine algorithmic (i.e. step by step) procedure for such division, but usually one can get away with a simplified procedure which relies on repeatedly pulling out from the numerator terms that contain the denominator. Our numerical example illustrates this:
4+1 2×2+1 2×2 1 5 = = = + 2 2 2 2 2 1 =2+ 2 This approach requires only that we are good at spotting factors. So for example: x2 + 2 x2 − 1 + 3 (x − 1)(x + 1) + 3 = = x−1 x−1 x−1 (x − 1)(x + 1) 3 = + x −1 x−1 3 =x+1+ x−1 This does require some algebraic intuition and clever grouping of terms, but can be very quick. 60
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
In this example division by x − 1 resulted in a remainder of 3/(x − 1). In general, when a polynomial p(x) is divided by a linear factor x − a the remainder can be found directly by the remainder theorem: The remainder when a polynomial p(x) is divided by x − a is given by r p(x) = q(x) + x−a x−a where r = p(a) and q(x) is a polynomial of degree less than that of p(x). We can see this by re-writing the above result as p(x) = (x − a)q(x) + r and putting x = a to give p(a) = r For example, the remainder when x 2 + 2 is divided by x − 1 is 12 + 2 = 3, as found above. Solution to review question 2.1.9
A. We proceed by repeatedly adding and subtracting terms in the numerator to give us factors containing the denominator, like so: 2x 3 + x 2 − 6x + 9 2x 3 + 4x 2 − 4x 2 + x 2 − 6x + 9 ≡ x+2 x +2 ≡
2x 3 (x + 2) − 3x 2 − 6x + 9 x+2
3x 2 + 6x − 9 x+2 3x(x − 2) − 9 ≡ 2x 3 − x+2 9 ≡ 2x 3 − 3x + x+2 ≡ 2x 3 −
as above. This method gives you lots of practice in finding factors! B. From the remainder theorem, the remainder when p(x) = 4x 3 − 2x 2 + 3x − 1 is divided by x − 2 is the value of p(x) when x = 2, i.e. r = 4.23 − 2.22 + 3.2 − 1 = 29 That is, we can write 29 4x 3 − 2x 2 + 3x − 1 ≡ polynomial of degree 2 + x−2 x−2 61
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
➤
2.2.10 Partial fractions
39
77 ➤
Often we have to reverse the process of taking the common denominator, i.e. split an expression of the form px + q (x − a)(x − b)
(p, q numbers)
into its partial fractions B A + x−a x−b The expression is easier to differentiate and integrate in this form, for example. The method used is best illustrated by an example. We effectively have to reverse the process of taking the common denominator. But this is an example of a mathematical process that is much easier to do than it is to undo! Consider x+1 A B ≡ + (x − 1)(x − 2) x−1 x−2 where the object is to determine A and B on the right-hand side. There are a number of ways of doing this, but they all implicitly depend on combining the right-hand side over a common denominator and insisting that the numerators be identical on both sides: A B A(x − 2) + B(x − 1) + ≡ x−1 x−2 (x − 1)(x − 2) ≡
x+1 (x − 1)(x − 2)
This implies
There are now two ways to go, both relying on the fact that the result is an identity (50 and must therefore be true for all values of x. In particular, it is true for
(1) ➤
A(x − 2) + B(x − 1) ≡ x + 1
)
x = 1, which gives A = −2 and So
x = 2, which gives B = 3 x+1 3 2 ≡ − (x − 1)(x − 2) x −2 x−1
NB. Checking such results by recombining the right-hand side to confirm that you do indeed get the left-hand side will help you to develop your algebraic skills. Another means of finding A and B is to rewrite the identity (1) as (A + B)x − (2A + B) ≡ x + 1 62
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
and use the fact that this must be an identity to get relations between A and B: A+B =1 −(2A + B) = 1 the solution of which reproduces A = −2, B = 3. There is a short cut to all this, called the cover-up rule. Many teachers frown on such ‘tricks’ because they can be used blindly without real understanding. I certainly don’t advocate that. Rather, they should be evidence of your mastery of the material, enabling you to save time. In this case the trick is really a mental implementation of the first method described above. We write x+1 ≡ (x − 1)(x − 2) x−1
x−2
1 term is the value of x−1 the left-hand side obtained by ‘covering up’, or ignoring, the x − 1 factor and putting x − 1 = 0, i.e. x = 1 in the remaining expression. This gives and fill in the numerators as follows. The numerator of the
x+1 = –2 (x – 1)(x – 2) x = 1 as found for A. Similarly, for B we get
B =
x+1 =3 (x – 1)(x – 2) x = 2
as before. With practice this may be done mentally and the result −2 3 x+1 ≡ + (x − 1)(x − 2) x−1 x−2 written down immediately. More complicated rational functions may be similarly decomposed in terms of partial fractions, but the cover up rule may not apply, and we may have to resort to a combination of methods. The general forms for such partial fractions are: p(x) A B C ≡ + + (x − a)(x − b)(x − c) x−a x−b x−c A Bx + C p(x) ≡ + 2 2 (x − a)(x + b) x−a x +b B C A D p(x) + + ≡ + (x − a)(x − b)3 x−a x − b (x − b)2 (x − b)3 with obvious generalisations. p(x) is any polynomial of degree at least one less than the denominator. Note that the number of constants A, B, . . . to determine on the right-hand 63
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
side is always the same as the total degree of the original denominator. In the above the cover-up rule may be used for A, B, C in the first result, for A in the second and for A and D in the third. There are many examples of the more complicated types in the reinforcement exercises, but the simplest case of linear factors should cover most of your needs. Solution to review question 2.1.10
Write
A B x +1 ≡ + (x − 1)(x + 3) x−1 x+3 ≡
so
A(x + 3) + B(x − 1) (x − 1)(x + 3)
A(x + 3) + B(x − 1) ≡ x + 1
You can now determine A and B from this identity by substituting x = 1 to give A = 12 and x = −3 to give B = 12 . Or, equate coefficients and solve the equations A+B =1 3A − B = 1 Check these results by using the ‘cover-up rule’. We finally get x +1 1 1 ≡ + (x − 1)(x + 3) 2(x − 1) 2(x + 3) ➤
2.2.11 Properties of quadratic expressions and equations
39
78 ➤
So far, we have dealt mainly with algebraic expressions and rearranging them – now we turn to solving simple algebraic equations. We will only be considering solution by exact rather than numerical means here. The first point to emphasise is that an equation is a precise statement involving an equality, and any solution must reflect that precision, or else it is only an approximate solution. Consider for example the simple equation 3x − 2 = 0 The precise solution is x=
2 3
If you now use your calculator to give you the approximation x = 0.666666667, then this is not a solution of the equation. It is simply an approximation to it and you should write your answer as x 0.666666667. You may feel that this is nit-picking, with no real practical importance, since we are always using approximations in engineering and science. However, small errors can often assume serious significance in engineering systems, and 64
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
in any event it only requires care to use = and appropriately. In algebra we consider only exact solutions, always use = and avoid decimals wherever possible. The simplest equation is of course x=α where α is a given number. Here the solution is trivial and immediate. Writing the equation in the form x−α =0 is only a small disguise, and it is often convenient to write equations in this way, with an algebraic expression equated to zero. The most general form of such a linear equation in x is ax + b = 0 b where a, b are given constants and a = 0. The solution is of course x = − , as noted in a Section 2.2.4. The solution of more complicated polynomial equations, such as quadratics, usually amounts to trying to pick out such linear factors which can be solved separately, as above. This is most easily seen with quadratic equations in the case when they can be factorised. The most general quadratic equation in x is ax 2 + bx + c = 0 where a( = 0), b, c are given numbers. If the left-hand side factorises then this gives us two linear equations to solve.
Example Solve the equation 3x 2 + 5x − 2 = 0 Factorising, we have 3x 2 + 5x − 2 ≡ (3x − 1)(x + 2) = 0 So the left-hand side can only be zero if 3x − 1 = 0 whence x = or
1 3
x + 2 = 0 whence x = −2
Notice the use of a key property of real numbers – if ab = 0 then one or both of a, b is zero – this property does not hold, for example, for matrices (Chapter 13). So the two solutions are x = −2, 13 . A quadratic equation must of course always have two solutions, although these may be equal, or complex (Chapter 12).
Example Solve x 2 + 4x + 4 = 0 x 2 + 4x + 4 ≡ (x + 2)2 = 0 giving two identical solutions x = −2. 65
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
The problem with a quadratic equation occurs when it won’t factorise. But in all cases we can use the following formula for the solution of the quadratic ax 2 + bx + c = 0 √ b ± b2 − 4ac x=− 2a We will derive this formula below – for now we look at its properties and how to apply it. First notice that the division by a is permissible – if a were zero then we wouldn’t have a quadratic. Next notice that the nature of the solutions depends on what is under the square root, i.e. on the object = b2 − 4ac which is called the discriminant of the quadratic. There are three cases: > 0, then b2 − 4ac is a real number and we have two different real roots. = 0, then b2 − 4ac = 0 and we have two equal real roots. < 0, then b2 − 4ac is a complex number and we have two different complex (conjugate) roots (see Chapter 12). In this chapter we are concerned only with the first two cases.
Example In the equation 3x 2 + 5x − 2 = 0 we have a = 3, b = 5, c = −2 (always remember to include signs). So the solutions are −5 ± 52 − 4 × 3 × (−2) x= 2×3 √ −5 ± 25 + 24 = 6 2 12 −5 ± 7 = or − = 6 6 6 i.e. x = 13 or −2 as before. To see where the formula for the solution of a quadratic equation comes from we complete the square of the quadratic expression. This procedure has many applications in elementary and further mathematics and gives good practice in algebraic manipulation. Basically, it is a technique for expressing the quadratic as a sum or difference of two squares, and it relies on the key result (42 ) ➤
(x + a)2 = x 2 + 2ax + a 2 66
(i)
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
We will do a numerical example in parallel with the symbolic form as a concrete illustration. We start with the general quadratic and factor out the a: b 5 c 2 3x 2 + 5x − 2 ≡ 3 x 2 + x − ax 2 + bx + c ≡ a x 2 + x + a a 3 3 b x into a complete square by adding and subtracting (i.e. adding zero) a the square of half the coefficient of x(b/2a):
Now make x 2 +
b 2a
2
−
b 2a
2
2 2 5 5 − 6 6
so that the quadratic becomes
2 2 b c b b − + ≡ a x2 + x + a 2a 2a a
5 3 x2 + x + 3
2 2 2 5 5 − − 6 6 3
Now note that x2 +
2 b b 2 b = x+ x+ a 2a 2a
giving for the original quadratic
b 2 ≡a x+ + 2a
b 2 ≡a x+ + 2a
b 2 ≡a x+ − 2a
c − a
b 2a
4ac − b2 (2a)2 (2a)2
2
2 5 5 2 5 x2 + x + = x+ 3 6 6
2
25 24 − 3 − 36 36
5 2 49 3 x+ − 6 36 5 x+ 6
where is the discriminant referred to above. /(2a)2 will be either a positive, negative or zero number, so we can always write the final result in the form
2 2 b 2 5 7 a x+ ± p2 3 x+ − 2a 6 6 where p is some real number. Note how the a (3 in the example) is retained throughout the calculation, right to the end. It is a common mistake to drop such factors. Completing the square in this way gives us the formula for the solution of the quadratic:
b 2 b2 − 4ac 2 ax + bx + c = a x + − =0 2a (2a)2 67
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Since a = 0 this gives b 2 b2 − 4ac x+ = 2a (2a)2
Hence
√ b2 − 4ac b =± x+ 2a 2a √ b b2 − 4ac so x=− ± 2a 2a √ 2 −b ± b − 4ac = 2a
Also, once the square is completed for a quadratic it becomes clear what its maximum or minimum values are as x varies. This is because x only occurs under a square, which is always positive. Looking at the general form:
b 2 b2 − 4ac − a x+ 2a (2a)2
we have two cases:
a positive .a > 0/ As x varies, the quadratic will go through a minimum value when x + this yields the smallest value within the square brackets.
b = 0, because 2a
a negative .a < 0/ As x varies, the quadratic goes through a maximum value when x +
b = 0. 2a
Example For the minimum value of 3x 2 + 5x − 2 we have 3x 2 + 5x − 2 ≡ 3
x+
5 2 6
−
7 2 6
5 7 2 This has a minimum value (3 is positive) when x = − . The minimum value is 3 − 6 6 49 =− . 12 There is a useful relationship between the roots of a quadratic equation and its coefficients. Thus, suppose α, β are the roots of the quadratic x 2 + ax + b. Then x − α, x − β 68
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
are factors and we have (x − α)(x − β) ≡ x 2 + ax + b Expanding the left-hand side gives x 2 − (α + β)x + αβ ≡ x 2 + ax + b So
b = product of roots = αβ a = −sum of roots = −(α + β)
Solution to review question 2.1.11
A. (i) You may have jumped straight in to the formula here. But, in fact, all we have to do is take out an x to give x 2 − 3x = x(x − 3) = 0 The only possible solutions are then x = 0 and x = 3 (don’t forget the zero solution!) i.e.
x = 0 or 3
(ii) A routine factorisation gives x 2 − 5x + 6 = (x − 3)(x − 2) = 0 so
x = 2 or 3
(iii) This sort of problem, with a coefficient of x 2 that is not one sometimes gives problems when it comes to using factorisation. We have to try factors of both the 2 and the −2. Some trial and error leads to 2x 2 + 3x − 2 ≡ (2x − 1)(x + 2) = 0 So we get solutions x = 12 , −2 If you do get stuck on the factorisation then use the formula – but be careful in handling the coefficient of x 2 . The solution of ax 2 + bx + c = 0 is x=
−b ±
√
b2 − 4ac 2a 69
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
so in this case we get
32 − 4 × 2 × (−2) 2×2 √ −3 ± 5 −3 ± 25 = = 4 4
x=
=
−3 ±
1 2
or − 2, as above
B. To complete the square we proceed as follows (see text above): • • • • •
if necessary factor out the coefficient of x 2 take half the coefficient of x square it add and subtract the result to the quadratic expression use the result (x + a)2 = x 2 + 2ax + a 2 with the added bit
In other words ‘add and subtract (half of the coefficient of x)2 ’. This does not change the value of the expression, because we are simply adding zero, but it sets up the expression for us to use the result (x + a)2 = x 2 + 2ax + a 2 . Thus we have 2 2 x 2 + x + 1 ≡ x 2 + x + 1 + 12 − 12 2 ≡ x 2 + x + 12 + 34 2 = x + 12 + 34
This form of the expression makes it clear that its minimum value must be 34 , which must occur when x + 12 = 0, i.e. x = − 12 . C. If α, β are the roots of the quadratic x 2 + 2x + 3 then their sum is the negative of the coefficient of x, while their product is the constant term (including sign). So, we have α + β = −2 αβ = 3 ➤
2.2.12 Powers and indices for algebraic expressions
40
78 ➤
We introduced powers and indices in Section 1.2.7, mainly for numbers. We will extend them here to algebraic symbols. The rules, reproduced here, are exactly the same for algebraic functions: a m a n = a m+n am = a m−n an (a m )n = a mn 70
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(ab)n = a n bn a0 = 1 where a, b are algebraic functions, m, n need not be integers, but care is needed when √ 2 + 1 exists for all values of x, since x 2 + 1 is positive, but x they are not. For example √ x 2 − 1 only exists (as a real number) if x 2 ≥ 1, i.e. x ≥ 1 or x ≤ −1. As always we need to be careful when brackets and signs are involved, for example (−2x)3 = (−1)3 23 x 3 = −8x 3 . Solution to review question 2.1.12
(i)
a 2 c4 = a 2 c4 (a −3 )−1 b−2 c−1 = a 2 a 3 b−2 c4 c−1 a −3 b2 c = a 5 b−2 c3
(3x)3 (2y)−1 = 33 x 3 2−1 y −1 x 2 y (x 2 y)−1 27 5 = x 2 (iii) Here, treat the algebraic expressions under the indices as single objects. (ii)
1
1
(x − 1) 4 (16x + 16) 4 3
(x + 1)(x 2 − 1)− 4
1
1
3
1
3
(x − 1) 4 (16(x + 1)) 4 (x 2 − 1) 4 = (x + 1) 1
1
16 4 (x − 1) 4 (x + 1) 4 (x 2 − 1) 4 = x+1 1
1
3
16 4 (x 2 − 1) 4 (x 2 − 1) 4 = x+1 1
16 4 (x 2 − 1) = x+1 = 2(x − 1) Note that in these formal manipulations using the rules of indices we have to remember that for real quantities throughout we must have x > 1. ➤
2.2.13 Binomial theorem
40
79 ➤
There are many occasions in applied mathematics when we need to expand expressions such as (a + b)6 . Very simple examples can be done long hand: (a + b)2 = a 2 + 2ab + b2 (a + b)3 = (a 2 + 2ab + b2 )(a + b) = a 3 + 3a 2 b + 3ab2 + b3 71
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
but this soon becomes tedious. Fortunately there is a well established routine method for expanding such expressions. Since a + b is a binomial this method is called the binomial theorem. The binomial theorem deals with expanding expressions such as (a + b)n or (1 + x)n . Here we will restrict n to be a positive integer, but it works equally well for other values (leading to infinite series). This is perhaps a place where ‘in at the deep end’ is the best policy and so here it is, the binomial theorem: n(n − 1) n−2 2 a b + ··· 2! n(n − 1) . . . (n − r + 1) n−r r a b + · · · + bn + r!
(a + b)n = a n + na n−1 b +
or, using the combinatorial notation n Cr (Section 1.2.6 ➤) (a + b)n = a n + n C1 a n−1 b + n C2 a n−2 b2 + · · · + n Cr a n−r br + · · · + bn You have two problems (at least!) here – remembering the result and understanding where it comes from. Memorising it is helped by noting the patterns: • • • •
Example
terms are of the form a n−r br , i.e. n quantities multiplied together n(n − 1) . . . (n − r + 1) n! = the coefficient of a n−r br is n Cr = (n − r)!r! r! n−r r there is symmetry – for example terms of the form a b and a r bn−r are symmetrically placed, as are the coefficients, since n Cr = n Cn−r the coefficient of a n−r br has r! in the denominator and n(n − 1) . . . (n − r + 1) in the numerator. The latter is perhaps best remembered by starting at the second term with n and reducing n in successive terms. 6.5 4 2 6.5.4 3 3 a b + a b 2! 3! 6.5.4.3 2 4 6.5.4.3.2 5 6! 6 a b + ab + b + 4! 5! 6!
(a + b)6 = a 6 + 6a 5 b +
= a 6 + 6a 5 b + 15a 4 b2 + 20a 3 b3 + 15a 2 b4 + 6ab5 + b6 Your second problem, understanding where the binomial expansion comes from, is best approached by noticing that in (a + b)n = (a + b) × (a + b) × · · · × (a + b) n factors
we can form terms of the form a n−r br by choosing, say, b in r ways from n different brackets – there are n Cr ways to do this, giving n Cr such terms in all, contributing n Cr a n−r br to the expansion. 72
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
The expansion for (1 + x)n is now easily obtained from the above by putting a = 1, b = x to get (1 + x)n = 1 + nx +
n(n − 1) 2 n(n − 1)(n − 2) 3 x + x + · · · + xn 2! 3!
= 1 + n C1 x + n C2 x 2 + n C3 x 3 + · · · + x n You may have previously seen the binomial theorem treated by Pascal’s triangle. While this is fine for expanding small powers such as (1 + x)4 , it is cumbersome for increasingly higher powers and less useful for more advanced theory and use of the binomial theorem, as for example in determining a required coefficient in the expansion. Note also that while here we have taken n to be a positive integer, it is possible to extend the theorem to the cases of n negative or a fraction. In such cases the above series expansion never terminates (➤ 106). Solution to review question 2.1.13
The sign needs care here: 5×4 3 2 (−x)2 2! 5×4×3 2 5×4×3×2 + 2 (−x)3 + 2(−x)4 3! 4! 5×4×3×2×1 + (−x)5 5!
(2 − x)5 = 25 + 5 × 24 (−x) +
= 32 − 5 × 16x + 10 × 8x 2 − 10 × 4x 3 + 10x 4 − x 5 = 32 − 80x + 80x 2 − 40x 3 + 10x 4 − x 5 You may have obtained the coefficients in a different way – say by Pascal’s triangle, or, you may have factored out the 2 and used the expansions of (1 + x)n instead of arriving directly at the penultimate line. In any event a steady hand is required to avoid losing signs or factors of 2. Finally notice a simple check for your result, by putting x = 1 in both sides. When x = 1, (2 − x)5 = 15 = 1, while the expanded result gives 32 − 80 + 80 − 40 + 10 − 1 = 1 which checks.
2.3 Reinforcement 38
40
➤
➤➤
2.3.1 Multiplication of linear expressions
A. Identify which of the following are algebraic expressions in the variables involved: (i) 14 (iii) 2t + 1 = 0
(ii) x − 3 (iv) 2x + y 73
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(vi) ex + e−x √ (viii) 2 x − x 2
(v) x 3 − 2x 2 + x − 1 (vii) x 2 − 3x + 2 = 0 2 (ix) x+1 (xi)
1 s3
(x) sin x − 3 cos x 4x + 1 x 2 − 2x + 4 (xiv) u2 + 2uv − 3v
− 2s 2 + s = 0
(xii)
(xiii) 2 cos x = 1 x−y =0 (xv) x+y
(xvi) x ln x + x 2 = 0
B. Identify the algebraic equations in A. C. For each of the pair of expressions, insert brackets in the one on the left to make it identically equal to the one on the right: (i) (ii) (iii) (iv) (v) (vi)
a + bc + d a + bc + d a + bc + d a − bc + d a − bc − d a − bc + d
a + bc + bd ac + bc + d ac + bc + ad + bd a − bc − bd ac − bc − d ac − bc + d
(vii) (viii) (ix) (x) (xi) (xii)
x 2 − 3x + 4 a + bc + bd a + bc + bd a − bc − d a − bc − d x 2 − 3x + 4
x 2 − 3x − 12 a + bc + b2 d ad + bcd + bd ac − bc − ad + bd a − bc + bd x 3 − 3x + 4
D. Remove the brackets in the following expressions: (i) 2(x + 2) (iii) 3t (t − 1)
(ii) 3(x − 1) − (x − 4) (iv) (s − t)(s + 2t)
(v) a 2 (a − 3)
(vi) (x 2 + 2x − 1)(x − 1)
(vii) −2u(u2 + 3)
(viii) 9(x 2 − 3) − 2(x + 4)
(ix) (a 2 − 1)(a + 2) − 3(a − 3)
(x) x(x − 1)(x + 2) − 3x 2
(xi) −(x − x 2 )(x − 2)
(xii) −[(x 2 − 1)(x − 2) − (x − 3)(x + 2)]
(xiii) (1 − t)(1 − s)(1 − u)
(xiv) (a − 2b)2 − (a + 2b)2
(xv) (x − y)2 + (x + y)2 E. Factorise each of your answers to Question D as far as possible. 38
43
➤
➤➤
2.3.2 Polynomials
A. Which of the following are polynomials? For those that are give the degree and list the coefficients. (i) t 2 − t + 4 (iv) 7t 3 − 2t + 1 x 3 + 2x x √ (x) x 2 y + y
(vii)
74
(ii) 0
(iii)
(v) 4x 4 − 2x 3 + 3x − (viii) x +
√
x
1 x
u+1 u−1
(vi) 27x 4 − 3x 2 + 1 (ix) 3x 2 + t 3
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
B. Expand the following expressions, collecting like terms: (i) (x − 1)(x + 2)
(ii) (x − 1)(x + 2)(x + 4)
(iii) (x − 1)(x + 1)
(iv) (x − 2)(x − 3)(x + 1)(x + 2)
2
(v) (u − 1) (u + 1) 2
(vi) (x − 1)3 (x + 2)
2
(vii) (t + 1)(t − 2)(t + 2)
(viii) (u − 2)(u + 3)(u − 3)
(ix) (s − 2)
(x) (x − 1)(x + 2)(x − 3)(x + 4)
4
(xi) (x + 2) (x − 3) 2
(xii) (2t + 1)(3t − 4)
2
(xiii) (3s − 1)(s + 2)(4s + 3)
(xiv) (3x + 2)2 (2x − 1)(x + 2)
(xv) (3x + 1)(3x − 1)(x + 3) Check each expansion with suitable numerical values. 38
45
➤
➤➤
2.3.3 Factorisation of polynomials by inspection A. Factorise the following, retaining only real coefficients: (i) x 2 + x (iv) t 4 − 3t 3 + t 2 (vii) s 24 − 16s 22
(ii) 3x 3 − 2x 2
(iii) −7x 2 + 42x 4
(v) u2 − 9
(vi) t 2 − 121
(viii) 4x 12 − 64x 8
B. Factorise the following polynomial expressions (hint: look back at Q2.3.2B): (i) t 2 + 5t + 6
(ii) t 3 + t 2 − 4t − 4
(iii) y 4 − 2y 3 − 7y 2 + 8y + 12
(iv) 9x 3 + 27x 2 − x − 3 38
48
➤
➤➤
2.3.4 Simultaneous equations
A. Solve the following systems of linear equations, verifying your solution by back substitution in each case. (i) x − y = 1 x + 2y = 0 (iv) 3x + 2y = 2 −2x + 3y = 1
(ii) A + B = 0 3A − B = 1 (v) u + 4v = 1 u−v =2
(iii) s + 3t = 1 s − 2t = 1 (vi) 7x1 − 2x2 = 1 3x1 − 2x2 = 0
B. Comment on the following systems of equations: (i) x + y = 1
(ii) 2x − y = 3
(iii) x + y = 0
3x + 3y = 3
4x − 2y = 1
x−y =0
(iv) 2A + B = 1
(v) u + v = −1
(vi) x + y = 0
4A + 2B = −1
3u + 3v = −3
x2 − y2 = 1 75
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
38
50
➤
➤➤ ➤➤
39
52
➤
➤➤
39
54
➤
56
➤
2.3.5 Equalities and identities A. Determine the real values of A, B, C, D in the following identities: (i) (s − 1)(s + 2) ≡ As 2 + Bs + C (ii) (x − 1)3 = Ax 3 + 2Bx 2 − 3Cx + D (iii) (x − A)(x + B) ≡ x 2 − 4 (iv) (x + 2)(x − 3)(2x − 1) ≡ A(x − 1)2 + Bx + Cx 3 − Dx 2 (v) A(x − 1) + B(x + 2) ≡ x − 3 (vi) (x + A)2 + B 2 ≡ x 2 − 2x + 5 B. Given that A(x − a) + B(x − b) ≡ ax + b
determine expressions for A, B in terms of a, b by two different methods.
2.3.6 Roots and factors of a polynomial Use the factor theorem to factorise the following polynomials: (i) u3 − u2 − 4u + 4
(ii) x 3 + 4x 2 + x − 6
(iii) t 4 − t 3 − 7t 2 + t + 6
(iv) x 3 − x 2 − x + 1
(v) x 3 + 3x 2 − 10x − 24
2.3.7 Rational functions
A. Identify the rational functions and state (a) the denominator, (b) the numerator. √ √ x+ 2 x+1 x+3 (ii) (iii) (i) x−1 x2 − 1 x 3 − 2x + 1 2x 4 − 1 x 3 + 2x − 1 (v) (iv) 4 x − 2x + 3 x4 + 1 1 1 − exist? x−1 x−1 ➤➤
B. For what values of x does
2.3.8 Algebra of rational functions
39
A. Put the following over a common denominator and check your results with x = 0 and one other appropriate value. 2 3 − x+2 x−1 2 3 (iii) − x+3 x−2 1 1 1 + + (v) x−1 x−2 x−3 (i)
76
1 2 − x+3 x−4 2 3 (iv) + x−2 x−3 3 3 4 (vi) − − x+2 x+3 x−1 (ii)
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
x 1 + x2 − 1 x − 1 2 3 + 2 (ix) 2 x +1 x +2
1 2 + x+1 x+2 2 3 (x) 2x − 1 + − x −1 x +2
(viii) x −
(vii)
B. Put over a common denominator: 3 2 + x−4 x−1 x−1 3 (iii) + (x − 2)2 x−1 3 (v) 1 + x−2
4 2 − x−4 x−4 2x − 1 4 (iv) − x2 + 1 x−2 (ii)
39
60
39
62
➤
➤➤
2.3.9 Division and the remainder theorem
➤
(i)
A. Perform the following divisions, whenever permissible: (i)
x2 x2
(ii)
x 4 − 2x 3 + 4x − 1 x−3 2 2x − 3x + 4 (v) x2 − 1
x 2 − 2x + 2 (x − 1)2
x3 + 1 x +1 x4 − y4 (vi) x2 + y2
(iii)
(iv)
B. Find the remainders when the following polynomials are divided by: (a) x − 1
(b) x + 2
(i) 3x 3 + 2x − 1
(ii) x 5 − 2x 2 + 2x − 1 (iv) 2x 7 − 3x 5 + 4x 3 − 2x 2 + 1 ➤➤
(iii) x 4 − x 2
(c) x
2.3.10 Partial fractions
A. For Q2.3.8A, B check your results by reversing the operation and resolving your answer into partial fractions. Usually, the answers should of course be what you started with in those questions. There are however a couple of cases where this is not so – explain these cases. B. Split into partial fractions: x−1 (x + 2)(x − 3) 2x + 1 (iv) (x − 1)2 (x + 2) x+1 (vii) (x − 1)(x + 3)(x − 4) (i)
(ii) (v)
x2
4 −1
(x 2
3 + 1)(x + 1)
x+1 x(x − 3) 5x − 4 (vi) 2 (x + 4)(x − 2)2
(iii)
77
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
39
64
➤
➤➤
2.3.11 Properties of quadratic expressions and equations A. Factorise the quadratics: (i) x 2 + x − 2
(ii) x 2 + 6x + 9
(iii) x 2 − 81
(iv) 2x 2 + 5x − 3
(v) 2x 2 − 8x B. Solve the quadratic equations obtained by equating the expressions in A to zero. C. Complete the square: (i) x 2 + 2x + 2
(ii) x 2 − 6x + 13
(iii) 4x 2 + 4x − 8
(iv) 4x 2 − 4x
D. By completing the square determine the maximum or minimum values (as appropriate) of the following quadratics, and the values of x at which they occur. (i) x 2 + 2x + 4
(ii) 16 − 4x − 4x 2
E. Solve the following equations by both factorisation and formula. (i) x 2 + 3x + 2 = 0
(ii) 2x 2 − 5x + 2 = 0
(iii) 3x 2 − 11x + 6 = 0
(iv) x 2 + 10x + 16 = 0
(v) x 2 + 2x − 8 = 0
(vi) 9x 2 + 6x − 3 = 0
F. Evaluate the following exactly with as little labour as possible and without a calculator. 8(23.7)2 − 10(23.7)(45.4) + 3(45.4)2 4(23.7) − 3(45.4) G. For Q2.3.11E confirm your results by calculating the (a) sum and (b) product of the roots. 40
➤➤
A. Express in the form a n (i) a 2 a 4 (iv) a 7 a 3 /a 2 (vii) a 5 /a −3
(ii) a 3 a 2 a
(iii) aa 2 a −1
(v) (a 3 )2 a −2 a 3
(vi) a −21 a 2 (a 3 )6
(viii) (a 2 )3 /(a 3 )2
B. Express in the form a 2n , stating the value of n. (i) a 9 a 17 (iv) a 27 a −3 /a 2 78
(ii) (a 40 )1/4
(iii) a 3 ((a 3 )6 a 7 a 5 )1/2
70
➤
2.3.12 Powers and indices for algebraic expressions
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
C. Reduce to simplest form (i) (iv)
a 2 b3 c2 abc
(ii)
(a 2 )3 c12 ab2
(iii)
ba 12 b7 c4 (a 2 b4 c6 )1/2
(a 3 )4 c12 b−3 c10 a −1 b2
D. Simplify the following expressions (i) b2 a 2 b3 ab3
t 3 xy x 2 yt
(x 2 )4 y 7/2 √ (x 6 )1/3 y ➤➤
2.3.13 The binomial theorem
40
71
➤
(iii)
(ii)
A. Write down the coefficients of x 4 in the following expansions (ii) (1 + 3x)6
(i) (1 + x)7 (iv) (3 − 2x)8
(iii) (1 − 2x)5
(v) (3x + 2y)6
B. Expand by the binomial theorem (i) (1 − 2x)7
(ii) (a + b)6
(iv) (2 − 3x)6
(iii) (2x + 3y)5
(v) (3s − 2t)5
C. Evaluate, without using a calculator: (i) (1 +
√
2)3 + (1 −
√
2)3
(ii) (2 +
√
3)4 + (2 −
√
3)4
D. Use the binomial theorem to evaluate to three decimal places: (i) (1.01)10
(ii) (0.998)8
Hint: write 1.01 = 1 + 0.01 and 0.998 = 1 − 0.002.
2.4 Applications 1. The time behaviour of a source free resistor (R)-inductor (L)-capacitor (C) series circuit can be described by a particular differential equation: d 2V R dV 1 + + V =0 2 dt L dt LC 79
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
where V is the capacitor voltage. Such equations will be solved in Chapter 15, but for now note that in doing so it is necessary to solve the associated quadratic auxiliary equation λ2 +
R 1 λ+ =0 L LC
for the quantity λ, Greek ‘lambda’. Write down the solutions to this quadratic for general values of R, L, C. Solve the quadratic for the following values of these parameters: (i) R = 10(, C = 1/9F , and L = 1H
(ii) R = 6(, C = 1/9F , and L = 1H
(iii) R = 2(, C = 1/9F , and L = 1H In the case of (iii) you will obtain complex roots – such numbers are studied in Chapter 12, but the next application gives you a preview. 2. A complex number is one of the form z = a + j b where √ a and b are ordinary, real numbers and j is a symbol for the ‘imaginary number’ −1 . All you need to know is that j 2 = −1 and that otherwise the normal rules of algebra apply. Investigate the ‘algebra’ of complex numbers, that is the rules for adding, subtracting, multiplying and dividing complex numbers. You will see this in Chapter 12, and as a taster you can try to derive the results: (i) (a + j b)(c + j d) = ac − bd + j (bc + ad) (ii)
a + jb bc − ad ac + bd +j 2 = 2 c + jd c + d2 c + d2
In (ii) multiply top and bottom of the left-hand side by c − j d. 3. Emperor Yang Sun (ninth century CE) had to choose between two equally qualified clerks for a promotion, He set them the following problem to decide between them. A man walking in the woods heard thieves arguing over the division of rolls of cloth which they had stolen. They said that if each took six rolls there would be five left over; but if each took seven rolls, they would be eight short. How many thieves were there, and how many rolls of cloth? The candidates performed the calculation in the ancient Chinese way, by using bamboo rods on the tiled floor. This technique led to the early development of adding and subtracting rows and columns of arrays to solve linear equations. Would you get the job? 4. An open box is made from a 12 cm square card by cutting squares of equal size from the four corners and folding the edges up. Calculate the size of the squares to be cut to yield the box with the largest volume. 5. Vapour deposition methods are often used for thin film layers in the fabrication of semiconductor devices. Such methods involve exposing a semiconductor wafer to a mixture of gases in a heated vacuum chamber. The chemical composition of the surface layer, and the deposition time depend on the relative concentrations of the vapours in the chamber. If three gases A, B, C are to be combined to form a number of overlayers of new molecules ABC then the time dependence of the deposition of the new molecules 80
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
is described by the differential equation dx = k(x − a)(x − b)(x − c) dt where x is the number of ABC molecules and a, b, c are the initial concentrations of the A, B, C gases respectively. k is a constant depending on the rate of the chemical reaction. Such equations are typical of a chemical reaction. In such a tri-molecular first order reaction the x − a factor, for example, models the fact that the rate of production of the new molecule is proportional (14 ) to the current amount of each component substance available. As x approaches the smallest of the a, b, c values the rate of the reaction will slow down, until it stops completely when there is no more of that constituent left. The differential equation will be solved in Chapter 15 (➤ 477) and a crucial step in the solution is the splitting of ➤
1 (x − a)(x − b)(x − c) into partial fractions. Do this for the case of a = 1, b = 2, c = 3. Obtain an expression for the partial fractions in the case when a, b, c have general values. 6. In the toss of a fair coin the probability of a head is 12 and the same for a tail. Suppose we toss such a coin three times. We can get 3H, 2H1T, 1H2T, and 3T. Write down the probability of each possibility. Show that the sum of these probabilities can be written 1 1 3 +2 2 i.e. as a binomial expansion. In general, if we have n independent ‘trials’, each resulting in a ‘success’ with probability p and a ‘failure’ with probability q = 1 − p then the probability of s ‘successes’ is given by the binomial term p(s) = n Cs p s (1 − p)n−s Use the binomial theorem to show that the sum of all these probabilities, for all possibilities, is 1. p(s) defines the binomial distribution, one of the most important in statistics.
Answers to reinforcement exercises 2.3.1 Multiplication of linear expressions A. (i), (ii), (iv), (v), (viii), (ix), (xii), (xiv) are algebraic expressions, the rest are either not algebraic, such as sin x − 3 cos x, or are equations such as 2t + 1 = 0 rather than expressions. B. (iii), (vii), (xi), (xv) are algebraic equations. C.
(i) a + b(c + d)
(ii) (a + b)c + d
(iii) (a + b)(c + d)
(iv) a − b(c + d)
(v) (a − b)c − d
(vi) (a − b)c + d
(vii) x − 3(x + 4)
(viii) a + b(c + bd)
(ix) (a + bc + b)d
(xi) a − b(c − d)
(xii) (x 2 − 3)x + 4
2
(x) (a − b)(c − d)
81
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
D.
(i) 2x + 4 (iv) s 2 + st − 2t 2 (vii) −2u3 − 6u
(ii) 2x + 1
(iii) 3t 2 − 3t
(v) a 3 − 3a 2
(vi) x 3 + x 2 − 3x + 1
(viii) 9x 2 − 2x − 35
(x) x 3 − 2x 2 − 2x
(ix) a 3 + 2a 2 − 4a + 7
(xi) x 3 − 3x 2 + 2x
(xii) −x 3 + 3x 2 − 8
(xiii) 1 − s − t − u + st + su + tu − sut (xv) 2x + 2y 2
(xiv) −8ab
2
E. In cases (i), (iii), (iv), (v), (vi), (vii), (xi), (xiii) you should retrieve the original question. (ii), (viii), (ix) do not factorise further with simple integer roots. (x) becomes x(x 2 − 2x − 2), (xii) can be written −(x 3 − 3x 2 + 8) but does not easily factorise further. (xiv) is already factorised! (xv) can be written 2(x 2 + y 2 ).
2.3.2 Polynomials A. (i) (ii) (iii) (iv) (v) (vi) (vii) (viii) (ix)
Polynomial?
Degree
Yes Yes No Yes No Yes No No Yes (in x and t)
2 0
1, −1, 4 0
3
7, 0, −2, 1
4
27, 0, −3, 0, 1
3
Coefficients all zero except of x 2 (3) and t 3 (1)
(x)
B.
Coefficients
No
(i) x 2 + x − 2
(ii) x 3 + 5x 2 + 2x − 8
(iii) x 3 + x 2 − x − 1
(iv) x 4 − 2x 3 − 7x 2 + 8x + 12
(v) u4 − 2u2 + 1
(vi) x 4 − x 3 − 3x 2 + 5x − 2
(vii) t 3 + t 2 − 4t − 4
(viii) u3 − 2u2 − 9u + 18
(ix) s 4 − 8s 3 + 24s 2 − 32s + 16
(x) x 4 + 2x 3 − 13x 2 − 14x + 24
(xi) x 4 − 2x 3 − 11x 2 + 12x + 36
(xii) 6t 2 − 5t − 4
(xiii) 12s 3 + 29s 2 + 7s − 6
(xiv) 9x 3 + 27x 2 − x − 3
2.3.3 Factorisation of polynomials by inspection A.
(i) x(x + 1) (iv) t 2 (t 2 − 3t + 1) (vii) s (s − 4)(s + 4) 22
82
(ii) x 2 (3x − 2)
√ √ (iii) 7x 2 ( 6x − 1)( 6x + 1)
(v) (u − 3)(u + 3)
(vi) (t − 11)(t + 11)
(viii) 4x (x − 2)(x + 2)(x 2 + 4) 8
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
B. (i) (t + 2)(t + 3)
(ii) (t + 1)(t − 2)(t + 2) (See Q2.3.2B(vii))
(iii) (y − 2)(y − 3)(y + 1)(y + 2) (See Q2.3.2B(iv)) (iv) (3x − 1)(3x + 1)(x + 3) (See Q2.3.2B(xv))
2.3.4 Simultaneous equations B. (i) Infinite number of solutions x = 1 − s, y = s (ii) No solutions (iii) Trivial solution x = y = 0 (iv) No solutions (v) Infinity of solutions u = −(1 + s), u = s (vi) No solutions
2.3.5 Equalities and identities A. (i) A = 1, B = 1, C = −2 (ii) A = 1, B = − 32 , C = −1, D = −1 (iii) A = 4 and B = 4 or A = −4 and B = 4 (iv) A = 6, B = 1, C = 2, D = 9 (v) A = 53 , B = − 23 (vi) A = −1 and B = ±2 B. A =
(a + 1)b b−a
B=
a2 + b a−b
2.3.6 Roots and factors of a polynomial (i) (u − 1)(u + 2)(u − 2)
(ii) (x − 1)(x + 2)(x + 3)
(iii) (t − 1)(t + 1)(t + 2)(t − 3)
(iv) (x − 1)2 (x + 1)
(v) (x + 2)(x − 3)(x + 4)
2.3.7 Rational functions A.
Rational function?
(a) denominator
(b) numerator
Yes Yes No Yes Yes
x−1 x2 − 1
x +√1 x+ 2
x 4 − 2x + 3 x4 + 1
x 3 + 2x − 1 2x 4 − 1
(i) (ii) (iii) (iv) (v) B. All values except x = 1.
83
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
2.3.8 Algebra of rational functions A.
(i)
−x − 8 (x + 2)(x − 1)
(ii)
−x − 10 (x + 3)(x − 4)
(iii)
−x − 13 (x + 3)(x − 2)
(iv)
5x − 12 (x − 2)(x − 3)
(v)
3x 2 − 12x + 11 (x − 1)(x − 2)(x − 3)
(vi)
−4x 2 − 17x − 27 (x + 2)(x + 3)(x − 1)
(vii)
2x + 1 x2 − 1
x 3 + 3x 2 + 3x (x + 1)(x + 2)
(ix)
5x 2 + 8 (x 2 + 1)(x 2 + 2)
(x)
B. (i) (iv)
(viii)
2x 3 + x 2 − 6x + 9 (x − 1)(x + 2) 5x − 14 (x − 1)(x + 2)
(ii)
2 x−4
−2x 2 − 5x − 2 (x 2 + 1)(x − 2)
(v)
x+1 x−2
(iii)
4x 2 − 14x + 13 (x − 1)(x − 2)2
2.3.9 Division and the remainder theorem A. (i) 1,
x = 0
(iii) x 3 + x 2 + 3x + 13 +
38 x−3
(ii) 1 +
1 (x − 1)2
x = 1
(v) 2 −
3(x − 2) x2 − 1
x = ±1
x = 3
(iv) x 2 − x + 1 x = −1 (vi) x 2 − y 2 B. (i) (a) 4
(b) −29
(c) −1
(ii) (a) 0
(b) −45
(c) −1
(iii) (a) 0
(b) 28
(c) 0
(iv) (a) 0
(b) −199
(c) 1
2.3.10 Partial fractions A. For answers see Q2.3.8A, B. B.
(i) (iii) (v) (vi) (vii)
84
3 2 + 5(x + 2) 5(x − 3) 4 1 − 3(x − 3) 3x 3 (x − 1) 3 − 2(x + 1) 2 x 2 + 1 1 (x + 5) 1 3 + + 2 4(x − 2) 4(x − 2) 4 x2 + 4 1 1 5 − − + 6(x − 1) 14(x + 3) 28(x − 4)
2 2 − x−1 x+1 1 1 3 − (iv) − 2 (x − 1) x−1 x+2 (ii)
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
2.3.11 Properties of quadratic expressions and equations A. (i) (x − 1)(x + 2)
(ii) (x + 3)2
(iv) (x + 3)(2x − 1)
(v) 2x(x − 4)
B. (i) 1, −2 (iv) −3,
(iii) (x − 9)(x + 9)
(ii) −3 (2×)
1 2
(iii) ±9
(v) 0, 4
C. (i) (x + 1)2 + 1 2 (iv) 4 x − 12 − 1
(ii) (x − 3)2 + 22
2 (iii) 4 x + 12 − 32
D. (i) Minimum of 3 when x = −1 (ii) Maximum of 17 when x = − 12 E. (i) −1, −2
(ii) 2,
(iv) −2, −8
1 2
2 3,
(iii)
(v) 2, −4
3
(vi) −1,
1 3
F. 2 5 (b) 1 2 (v) (a) −2 (b) −8
G. (i) (a) −3 (b) 2
(ii) (a)
(iv) (a) −10 (b) 16
(iii) (a)
11 3
(vi) (a)
2 3
(b) 2 (b) − 13
2.3.12 Powers and indices for algebraic expressions A. (i) a 6
(ii) a 6
(iii) a 2
B. (i) 13 (ii) 5 (iii) 9 C. (i) ab2 c
(ii) a 5 b−2 c12
D. (i) a 3 b8
(ii)
(iv) a 8
(v) a 7
(vi) a −1
(vii) a 8
(viii) 1
(iv) 11
t2 = t 2 x −1 x
(iii) a 11 b6 c
(iv) a 13 bc2
(iii) x 6 y 3
2.3.13 The binomial theorem A. (i) 35 (iv) 90720
(ii) 1215
(iii) 80
(v) 4860
B. (i) 1 − 14x + 84x 2 − 280x 3 + 560x 4 − 672x 5 + 448x 6 − 128x 7 (ii) a 6 + 6a 5 b + 15a 4 b2 + 20a 3 b3 + 15a 2 b4 + 6ab5 + b6 (iii) 32x 5 + 240x 4 y + 720x 3 y 2 + 1080x 2 y 3 + 810xy 4 + 243y 5 85
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(iv) 64 − 576x + 2160x 2 − 4320x 3 + 19440x 4 − 2916x 5 + 729x 6 (v) 243s 5 − 810s 4 t + 1080s 3 t 2 − 720s 2 t 3 + 240st 4 − 32t 5 C. (i) 14 D. (i) 1.105
86
(ii) 226 (ii) 0.984
3
Functions and Series This chapter gathers together a range of topics relating to functions and their general properties. Some elementary work on series is also included here, because they most often arise in the context of expressing or approximating functions.
Prerequisites It will be helpful if you know something about: function notation plotting graphs use of formulae inequalities (7 ) sequences and series binomial theorem for the case of positive integer power (71 ➤
➤
• • • • • •
)
Objectives In this chapter you will find: • • • • • • • • • • •
function notation and its use plotting the graph of a function changing the subject in a formula odd and even functions the composition of two or more functions the use of inequalities definition and evaluation of the inverse of a function definition and use of sigma notation summation of a finite geometric series summation of an infinite geometric series the binomial theorem for negative and fractional exponents
Motivation You may need the topics of this chapter for: • using formulae in your engineering subjects • sketching graphs of simple functions (Chapter 10)
87
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
• • • • • •
use of inequalities in such topics as linear programming manipulation of functions in other maths topics such as calculus summation and use of series in approximations and statistics iteration in numerical methods infinite series expansions for functions approximations using the binomial expansion
A note about rigour An engineer will probably be more concerned about using mathematics, rather than proof and rigour. However, this chapter contains some topics that do really need careful treatment even to use them. I have tried to make such things as palatable as possible!
3.1 Review 3.1.1 Definition of a function If f (x) =
x+1 evaluate (i) f (0) x2 + 2
➤ 90
107 ➤➤
➤ 91
108 ➤➤
(ii) f (−1)
3.1.2 Plotting the graph of a function
Choosing perpendicular x-, y-axes and suitable scales plot the graph of the function y = x 2 − 2x − 3 for integer values of x in −2 ≤ x ≤ 4. Describe the shape of the function and discuss the points where it crosses the axes, and the minimum point. ➤ 93
3.1.3 Formulae
108 ➤➤
The focal length f of a mirror is given by 1 1 1 = + f u v where u is the lens-object distance and v the lens-image distance. Express v as a function of u and f . ➤ 94
3.1.4 Odd and even functions Classify the following functions as odd, even or neither. (i) 3x 3 − x
88
(ii)
x2 1 + x2
(iii)
2x 2 x −1
(iv)
x2 x+1
108 ➤➤
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
3.1.5 Composition of functions If f (x) = x + 1 and g(x) =
➤ 97
108 ➤➤
➤ 97
109 ➤➤
1 express in their simplest form: x−1
(i) f (g(x))
(ii) g(f (x))
3.1.6 Inequalities Find the range of values of x for which 1 < 4x − 3 < 4
3.1.7 Inverse of a function
➤ 100 109 ➤➤
Find the inverse function of the function f (x) =
x x−1
x = 1
3.1.8 Series and sigma notation
➤ 102 109 ➤➤
Write out the following series in full 6 r=1
r r +1
3.1.9 Finite series
➤ 103 109 ➤➤
Sum the finite geometric series 1 1 1 1 1 + 2+ 3+ 4+ 5 2 2 2 2 2
3.1.10 Infinite series
➤ 105 110 ➤➤
Sum the infinite geometric series 1 1 1 + 2 + 3 + ··· 2 2 2
3.1.11 Infinite binomial series
➤ 106 110 ➤➤
Find the first four terms of the binomial expansion of (1 + 3x)−2 . 89
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
3.2 Revision ➤
3.2.1 Definition of a function
88
107 ➤
A function is a relation which expresses how the value of one quantity, the dependent variable, depends on the value of another, the independent variable. Formally, this is usually expressed y = f (x) ↑ independent dependent ↑ variable variable where x is some quantity in a particular set of numbers which, when substituted into the function f , produces the quantity y, which may be in a completely different set of numbers.
Example Suppose x = n is a non-zero integer, then the reciprocal function is defined by: y = f (x) = f (n) =
1 n
n = 0
and y can be a rational number of magnitude less than one. The important point about a function is that it must have a single unique value, y, for every value, x, for which the function is defined. x is also called the argument of the function f (x). The set X of all values for which the function f is defined is called its domain. The set of all corresponding values of y = f (x), Y , is called the range of f (x). We sometimes express a function as a mapping between the sets X, Y denoted f : X → Y . The value of a particular function for a particular value of x, say x = a, is called the image of a under f , denoted f (a).
Examples (i) y = f (x) = x 2 + 1 is defined for all values of x, and for all such values y is greater than or equal to 1. The image of −1 for this function is f (−1) = (−1)2 + 1 = 2 3 is defined for all x except x = 1, and y can vary over all real x−1 3 = −3. non-zero numbers. The image of x = 0 for example is g(0) = 0−1
(ii) y = g(x) =
We have already met the common algebraic functions in Chapter 2:
90
Linear:
f (x) = ax + b
Quadratic:
f (x) = ax 2 + bx + c
Cubic:
f (x) = ax + bx + cx + d 3
(defined for all x) (all x) (all x)
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Polynomial: f (x) = an x n + an−1 x n−1 + · · · + a1 x + a0 Reciprocal: f (x) =
1 x
(all x)
x = 0
Rational function – for example: f (x) =
x+1 (x − 1)(x + 2)
x = 1, −2
Here the coefficients, a, b, c, d, an , . . . etc. are constants, or more strictly independent of x. Such algebraic functions occur frequently in mechanics and electrical circuits, for example. Rational functions are particularly important in control theory, where the roots of the denominators (the so-called poles) have physical meaning for the stability of a system. The other standard functions – exponential and trigonometric – will be studied later. They all reflect some important characteristic physical behaviour – for example the exponential function represents the ‘law of natural growth’ whereby a quantity increases at a rate proportional to the amount present. The trigonometric functions sin x and cosine x describe wavelike behaviour such as occurs in an oscillating electrical circuit. The form y = f (x) defines an explicit form of a function of x. It is sometimes convenient to define a function implicitly. For example the reciprocal y = 1/x may be defined implicitly as xy = 1. Another form of representation of a function is by means of a parameter in terms of which both x and y are expressed – this is called a parametric representation. For example the position (x, y) of a projectile in a plane at time t may be expressed by x = 3 + 2t, y = 4 + 2t − t 2 . Solution to review question 3.1.1
(i)
x+1 then x2 + 2
f (0) =
(ii) f (−1) =
1 0+1 = 02 + 2 2 −1 + 1 =0 (−1)2 + 1
3.2.2 Plotting the graph of a function
➤
If f (x) =
88
108 ➤
We can learn a lot about a function y = f (x) from its graph plotted against x-, y-axes, in a plane Cartesian coordinate system. We choose an appropriate sequence of values of x and calculate the corresponding values of y and plot the resulting x , y coordinates against the axes. We may then be able to draw a continuous curve through the points. Figure 3.1 illustrates this for the straight line graph of the linear function y = 2x + 1. For this we only need two points, say (0, 1) and (1, 3), to define the resulting straight line graph. 91
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
y
y = 2x + 1
4
3
(1,3)
2
1
−4
−3
−2
−1
(0,1)
0
1
2
3
4
x
−1 −2 −3 −4
Figure 3.1 The graph of y = 2x + 1.
Like the linear function all the common functions have characteristic graphs. Some are given in the reinforcement exercises and others you will meet as they arise in the book. One important point to note is that here we are talking about plotting rather than sketching a graph (see Chapter 10). Solution to review question 3.1.2
Evaluating the function y = x 2 − 2x − 3 at the given values of x yields the coordinates: x
−2
−1
0
1
2
3
4
y
5
0
−3
−4
−3
0
5
The graph drawn through these points is shown in Figure 3.2. Remember to label your axes! This is a quadratic function. It crosses the x-axis where x 2 − 2x − 3 = 0. We can solve this quadratic equation by factorisation: x 2 − 2x − 3 = (x − 3)(x + 1) = 0 92
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
y 6 (−2,5)
(4,5)
5
4
y = x 2 −2x − 3 3
2
1 (3,0)
(−1,0) −4
−3
−2
−1
0
1
2
3
x
4
−1 −2 −3 −4
(0,−3)
(2,−3)
(1,−4)
−5
Figure 3.2 The graph of y = x2 − 2x − 3.
to give x = 3 and x = −1 as the crossing points (‘gateways’ through the x-axis), as we observe from the graph. Also, we can complete the square to get: x 2 − 2x − 3 = (x − 1)2 − 4 which tells us that the minimum value is −4 and occurs at x = 1. Again, we see this from the graph. (Note that any quadratic curve – or parabola – is symmetric about its minimum or maximum point.)
➤
3.2.3 Formulae
88
108 ➤
Perhaps the most common way you have been exposed to functions before is in the use of formulae to express the value of some variable in terms of other given quantities. For example for an ideal gas pressure P can be expressed in terms of the volume V and 93
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
temperature T by the ideal gas law: P =
nRT V
where nR is a constant dependent on the gas. If T is fixed then we can regard this formula as expressing P as a function f , say, of V : P = f (V ) If V is fixed then P can be regarded as a (different) function, g, of T : P = g(T ) If V and T can vary then we can regard P as a function, F , of the two variables T and V (we study such functions in Chapter 16): P = F (T , V ) So the term function is really a precise formulation of the idea of a formula. In the above examples it may, for example, be that P and T are known and it is required to find V . We do this by rearranging or transposing the formula to give V as a function of P and T – in this case: V =
nRT P
We say this is making V the subject of the formula. Solution to review question 3.1.3
Given that 1 1 1 = + f u v then if we know u and f we can obtain v as follows: 1 1 u−f 1 = − = v f u uf So v=
uf u−f
making v the subject of the formula. ➤
3.2.4 Odd and even functions
88
108 ➤
An even function is one which is unchanged when the sign of its argument changes, f (−x) = f (x) 94
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Examples include: f (x) = 5x 2 ,
3x 4 + x 2
i.e. polynomials with only even powers of x. An odd function changes sign with its argument f (−x) = −f (x) Examples are f (x) = 3x, 2x 3 − x, i.e. polynomials with only odd powers of x. The trig function cos x, studied in Chapter 6 is even: cos(−x) = cos x On the other hand sin x is odd: sin(−x) = − sin x The graph of an even function is symmetric about the y-axis, while the graph of an odd function is unchanged under a rotation of 180° – see Figure 3.3. y
y y = x4 y = x3
0
x
Even
0
x
Odd
Figure 3.3 Even and odd functions.
Any function f (x) for which f (−x) exists can be expressed as the sum of an even and an odd function: f (x) =
f (x) − f (−x) f (x) + f (−x) + 2 2 even odd
note the ‘something for nothing’ trick of adding zero in the form 0=
f (−x) f (−x) − 2 2 95
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
➤ ➤
We did a similar thing in completing the square (66 ). The modulus function f (x) = |x| is defined by (8 ) |x| = x if x ≥ 0 = −x if x < 0 Its graph is shown in Figure 3.4 and it is clearly even. y
y = x
0
x
Figure 3.4 The modulus function y = |x|. Solution to review question 3.1.4
f (x) = 3x 3 − x we have f (−x) = 3(−x)3 − (−x) = −3x 3 + x = −(3x 3 − x) = −f (x) So 3x 3 − x is an odd function. x2 (ii) For f (x) = 1 + x2 (i) For
(−x)2 x2 = = f (x) 1 + (−x)2 1 + x2 so this is even. 2x then (iii) If f (x) = 2 x −1 2(−x) 2x f (−x) = =− 2 = −f (x) 2 (−x) − 1 x −1 so f (x) is odd. f (−x) =
(iv) If f (x) =
x2 we have x+1
x2 (−x)2 = −x + 1 1−x This is not equal to f (x) or −f (x) and so this function is neither odd nor even. f (−x) =
96
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
➤
3.2.5 Composition of functions
89
108 ➤
Often we need to combine functions. For example in differentiating a function such as 1 it is useful to regard it as a function (the reciprocal) of a function (x 2 + 1) 2 x +1 (Chapter 8). More specifically, if f (x) and g(x) are functions with appropriate domains and ranges we can define their composition f (g(x)) which is the result of evaluating f at the values given by g(x) for each value of x. Note that f (g(x)) and g(f (x)) are different in general.
Example f (x) = x 2 + 1,
g(x) =
1 . x
2 1 1 +1= 2 +1 f (g(x)) = x x
while g(f (x)) =
1 1 = 2 f (x) x +1
Solution to review question 3.1.5
1 x +1= . x−1 x −1 1 1 1 = = . (ii) g(f (x)) = f (x) − 1 x+1−1 x (i) f (g(x)) = g(x) + 1 =
Remember to tidy up your result at the end. ➤
3.2.6 Inequalities
89
109 ➤
We introduced inequalities in Section 1.2.2. Their basic properties are the following: •
If a < b and c < d then a + c < b + d
That is, if a is less than b and c is less than d then the sum of a and c will be less than the sum of b and d. This is a fairly obvious property of numbers in general, whether positive or negative. •
If a < b and c > d then a − c < b − d
Perhaps the easiest way to see this is to plot the numbers a, b, c, d satisfying the above conditions, on the real line. Then, a − c is the ‘distance’ between a and c and b − d is the ‘distance’ between b and d, and it is then pictorially obvious that the former is less than the latter. Or, since a < b we can write a = b − p where p is a positive number and we can similarly write c = d + q where q is another positive number. Then a − c = b − p − (d + q) = b − d − (p + q) from which, since p + q is positive, it follows that a − c < b − d, as required. •
If a < b and b < c then a < c 97
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
This property is another fairly obvious one for real numbers – if Jack is shorter than Jill and Jill is shorter than John then Jack is shorter than John! •
If a < b then a + c < b + c
Again fairly obvious – Jack doesn’t become any taller than Jill if they both stand on the same chair. •
If a < b and c > 0 then ac < bc
This just says that if you multiply two numbers a, b by a positive number c then the order relation is unchanged – if you look at Jack and Jill through the same telescope, Jack is still shorter than Jill. •
If a < b and c < 0 then ac > bc
This is usually where our troubles start with inequalities, when we bring in negative multipliers. This property says that changing the sign throughout reverses the inequality. It is pretty obvious if you just think of an example: 4 > 3, but −4 < −3 and −8 < −6, and plotting a, b, −a and −b on the real line may make it clear generally. Jack and Jill can help by hanging from the ceiling – Jack is now ‘higher than Jill’! More rigorously, note that we can write b = a + p where p is a positive number and so if c is a negative number then bc = ac + pc, so ac = bc − pc. But if p is positive and c is negative, −pc is positive, from which it follows that ac > bc. •
If a < b and ab > 0 then
1 1 > a b
Our troubles are mounting now – reciprocals and inequalities cause problems for most of us. Again it helps to think of numbers: 2 < 3, and 12 > 13 but while −2 < 3, 1 = − 12 < 13 . So the difference in sign affects the inequality when we take reciprocals. −2 The condition ab > 0 is included to make sure that a and b have the same sign, both positive, or both negative. Only then does the inequality reverse if we take the reciprocals. The contortions that Jack and Jill have to get up to to convince you of this don’t bear thinking about. Perhaps it’s best if you simply satisfy yourself with a few examples! Most of the above results may be extended, with care, to ≤ and ≥. Inequalities can be used to specify intervals of numbers, for which a special notation is sometimes used. Specifically, [a, b] denotes the closed interval a ≤ x ≤ b and (a, b) denotes the open interval a < x < b. Sometimes we have a problem in which we need to find values of x such that a given function f (x) satisfies an inequality such as f (x) < 0 We call this solving the inequality. In such problems we may have to combine algebra, knowledge of the function, and properties of inequalities. It is a common error to try to solve such an inequality by considering the equality f (x) = 0 instead. Whilst doing this may be useful, remember that it will only give the boundaries of the inequality region, and extra work is needed to define the entire region.
98
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
An inequality in which f (x) is a linear (quadratic) function is called a linear (quadratic) inequality, for example: ax + b > 0 ax 2 + bx + c > 0
linear inequality quadratic inequality
Example If
1 < 3x + 2 < 4
then subtracting 2 from each term gives −1 − 2 = −3 < 3x < 4 − 2 = 2 So
− 3 < 3x < 2
and so, dividing by the positive quantity 3, we obtain −1<x <
2 3
Example Find the range of values of x for which 2x 2 − 3x − 2 > 0. It helps to factorise if we can, or find the roots of the quadratic: (x − 2)(2x + 1) > 0 This will be true if either:
or if
x − 2 > 0 and 2x + 1 > 0,
i.e. x > 2
x − 2 < 0 and 2x + 1 < 0,
i.e. x < − 12
So 2x 2 − 3x − 2 > 0 for x < − 12 and x > 2. You can also see this from the graph of the function (➤RE (Reinforcement exercise) 3.3.2B), and graphical considerations often help in dealing with inequalities generally. However, it is important that you gain practice in the manipulation of inequalities, and the associated algebra. Care is needed for inequalities involving the modulus. For example, suppose |x − 3| < 2 Then this means that − 2 < (x − 3) < 2 or − 2 + 3 = 1 < x < 2 + 3 = 5 so
1<x<5
99
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Solution to review question 3.1.6
If 1 < 4x − 3 < 4 then adding 3 throughout gives 1 + 3 < 4x < 4 + 3 or 4 < 4x < 7 so 1 < x <
7 4
➤
3.2.7 Inverse of a function
89
109 ➤
Suppose we are given some function y = f (x). Then given a value of x we can evaluate, in principle, the corresponding value of y. But often we are given the reverse problem – we know y and want to find the value of x. What we have in fact is an equation for x which we have to solve. We call this inverting the function f and we write x = f −1 (y) The inverse of a function f is the function f −1 such that f −1 (f (x)) = x i.e.
f −1 ‘undoes’ f
It is important to note that the inverse of a function only exists if the function is ‘one-toone’ that is, each value of x gives one value of y and each value of y gives one value of x. Sometimes this means that we have to be careful with the domains of our functions. For example, the function y = x 2 is only ‘one-to-one’ if, say, √ we restrict x to the domain √ x > 0. Then the inverse function is x = y or f −1 (x) = x.
Example y = f (x) = If y = 4, find x. We have 4= so
(x = 2)
1 x−2
4(x − 2) = 1 = 4x − 8
and therefore 4x = 9 and x= 100
1 x−2
9 4
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
In fact we can do this generally for any value of y by finding the inverse function of f : y = f (x) =
1 x−2
Multiplying through by x − 2 gives y(x − 2) = 1 = yx − 2y and so
yx = 1 + 2y
and solving for x we obtain x=
1 + 2y y
But if y = f (x) then by definition x = f −1 (y) so 1 + 2y x = f −1 (y) = y 1 + 2x , with x = 0 of course. We may also write this as f −1 (x) = x We can now check the numerical example given above f −1 (4) =
9 1+2×4 = 4 4
as we found previously. The inverse of a function is often as important as the function itself. For example the inverse of the exponential function is the logarithm function (Chapter 4). Graphically, the graph of the inverse function can be obtained by reflecting the graph of the function in the straight line y = x. Note that the −1 in f −1 (x) does not mean forming the reciprocal – i.e. f −1 (x) = 1/f (x). Solution to review question 3.1.7
If y = f (x) = So, writing
x , then the inverse of f (x) is given by x = f −1 (y). x−1
y=
x x−1
we have y(x − 1) = x or (y − 1)x = y. So y x= = f −1 (y) y−1 Hence
f −1 (x) =
x x−1
x = 1
101
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Here the inverse function is exactly the same as the original function. There is nothing strange about this, but it does emphasise the fact that the inverse of a function is not the same thing as the reciprocal of a function! ➤
3.2.8 Series and sigma notation
89
109 ➤
We will say more about series (particularly infinite series) in Chapter 14. Here we want to introduce the basic ideas by looking at two types of infinite series, the geometric and the binomial. In fact, these two are extremely important, in both the principles and practice of series, and they occur frequently in applications in science and engineering. A series is a sum of a sequence (i.e. a list) of terms which may be finite or infinite in number, for example 2 + 4 + 8 + 16 + 32 ≡ 2 + 22 + 23 + 24 + 25 is a finite series. Dealing with finite series is essentially algebra. Infinite series are usually implicitly defined by indicating that the series continues in a particular way, for example: 1+
1 1 1 1 1 1 + + + + + · · · + n−1 + · · · 2 4 8 16 32 2 ↑ nth term
A useful shorthand for writing such series is the sigma notation. The Greek capital letter sigma denotes summation. Thus, if ar (‘a subscript r’) denotes some mathematical object, such as a number or algebraic expression, then the expression n
ar = am + am+1 + · · · + an−1 + an
r=m
is ‘the sum of all ar as r goes from m to n’. The letter r is called the index of the summation, while m, n are called the lower and upper limits of summation respectively. Note that the letter r is in fact a dummy index – it can be replaced by any other: n r=m
ar =
n
ai
i=m
for example, in this respect r is similar to the integration variable in definite integration (Chapter 9): a
102
b
b
f (x) dx =
f (t) dt a
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Example ➤
The general nth degree polynomial (43
) may be written in sigma notation as:
an x n + an−1 x n−1 + · · · + a1 x + a0 =
n
ar x r
r=0
Solution to review question 3.1.8
The series in full is: 6 r=1
r 1 2 3 4 5 6 = + + + + + r +1 1+1 2+1 3+1 4+1 5+1 6+1 =
1 2 3 4 5 6 + + + + + 2 3 4 5 6 7
Note that such series can be represented in many different ways in terms of the sigma notation. For example the above series could be written just as well as 5 r +1 r +2 r=0 ➤
3.2.9 Finite series
89
109 ➤
The sigma notation can be used to write series, as for example in Section 3.2.8: 7 1 1 1 1 1 1 1 1 = 0+ 1+ 2+ 3+ 4+ 5+ 6 r−1 2 2 2 2 2 2 2 2 r=1
=1+
1 1 1 1 1 + + + + 2 4 8 16 32
The most well known and useful elementary series is the sum of a geometric progression (GP): a, ar, ar 2 , ar 3 , . . . , ar n−1 , . . . where a is the first term and r the common ratio. Notice that the nth term is ar n−1 . Summing a finite geometric progression uses a nice argument. Let Sn = a + ar + ar 2 + · · · + ar n−1 be the sum to n terms of such a GP. Now multiply the series through by r to get rSn = ar + ar 2 + ar 3 + · · · + ar n Then on subtracting the two series we obtain Sn − rSn = (1 − r)Sn = ar − ar n 103
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
because all terms but the first and last cancel out. So Sn =
a(1 − r n ) 1−r
Example For the series
a = 1,
5 1 1 1 1 1 =1+ + + + r−1 3 3 9 27 81 r=1 5 1 1 1− 3 1 121 r = , S5 = = 1 3 81 1− 3
You can practice your skills in handling fractions by checking this directly. Another interesting series is the arithmetic series S = a + (a + d) + (a + 2d) . . . where each successive term is formed by adding a ‘common difference’ d, so that the nth term is a + (n − 1)d. In this case we have Sn = a + (a + d) + (a + 2d) + · · · + (a + (n − 1)d) and a neat way to sum this is to reverse the series and add corresponding terms of the two results: Sn = a + (a + d) + (a + 2d) + · · · + (a + (n − 1)d) = (a + (n − 1)d) + (a + (n − 2)d) + · · · + a So 2Sn = (2a + (n − 1)d) + (2a + (n − 1)d) + · · · + (2a + (n − 1)d) = n(2a + (n − 1)d) and therefore Sn = 12 n(2a + (n − 1)d) for the arithmetic series. Solution to review question 3.1.9
The sum to n terms of the finite geometric series with common ratio r, first term a is Sn =
104
a(1 − r n ) 1−r
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
So, for the series 1 1 1 1 1 + 2+ 3+ 4+ 5 2 2 2 2 2 we have a =
1 2
and n = 5, and therefore the sum is
5 1 1 1− 5 2 2 1 1 31 S5 = =1− =1− = 1 2 32 32 1− 2 ➤
3.2.10 Infinite series
89
110 ➤
Merely the mention of the term ‘infinite’ sets alarm bells ringing with many of us. An infinite series is one whose terms continue forever, or indefinitely. We tend to indicate this by such notation as S∞ = 1 +
1 1 1 + + + ··· 3 9 27
where the dots (technically called an ellipsis – a set of three dots indicating an omission of something understood) infer that the terms continue forever following the same pattern, n−1 which it is hoped you have spotted. In this case we see that the nth term is 13 . Of course, if we are adding up an infinite number of terms we might expect that the sum would yield an infinite amount (i.e. a number as large as we please). This would certainly be the case for 1 + 1 + 1 + · · · for example. Maybe if the terms get smaller and smaller this would not be so? Maybe, for example, the series 1+
1 2
+
1 3
+
1 4
+···
‘converges’ to a finite total? After all, the terms seem to fade away to zero ‘eventually’. In fact the answer is no – it in fact adds up to an infinite amount, as we shall see in Chapter 14, by one of the prettiest proofs of elementary mathematics. In fact the question of the ‘convergence’ of such infinite series is a very difficult topic belonging to an area of mathematics called analysis. We will leave such questions until Chapter 14. For the moment we will take the pragmatic view that if we can find an expression for the sum of a series by fair means then that series converges and we can use the sum with safety. In particular, we can sum a GP to infinity provided that the common ratio, r, satisfies |r| < 1. We have for the infinite GP: S∞ = a + ar + ar + ar + · · · = 2
3
∞
ar n−1
n=1
The sum of the first n terms of this is, from Section 3.2.9 Sn =
a ar n a(1 − r n ) = − 1−r 1−r 1−r 105
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
The only place n occurs here is in the r n . Now, if |r| < 1, then r n ‘tends to’ zero as n gets larger and larger, i.e. r n tends to zero as n tends to infinity, or in symbols, r n → 0 as n → ∞ if |r| < 1. We will look further into such ‘limits’ in Chapter 14. So as n tends to infinity the second term in expression for the sum Sn goes to zero and the sum to infinity is S∞ =
a 1−r
Note that if r ≥ 1 then the series will not converge to a finite quantity because r n increases indefinitely in value as n increases if |r| > 1, while a/(1 − r) does not exist at all if r = 1.
Example Consider the series we started with: S∞ = 1 +
1 1 1 1 + + + ··· = 1 + + 3 9 27 3
2 3 1 1 + + ··· 3 3
Here the first term is 1 and the common ratio is 13 : a = 1, so S∞ =
r= 1 1−
1 3
1 3
=
3 2
Solution to review question 3.1.10
Using the result that S∞ = a/(1 − r), for the sum of an infinite GP with first term a = 12 and common ratio r = 12 we have 1 2
1−
1 2
=1
3.2.11 Infinite binomial series
➤
S∞ =
89
110 ➤
Another important type of infinite series is that obtained by applying the binomial theorem with negative or fractional power. Referring back to Section 2.2.13 we can write for the binomial expansion for n an integer n(n − 1) 2 n(n − 1)(n − 2) 3 x + x 2! 3! n(n − 1) . . . (n − r + 1) r + ··· + x + ··· r!
(1 + x)n = 1 + nx + · · · +
Now we have certainly not proved that this holds if n is not an integer. For example if n is a negative integer, or a fraction, then it is by no means obvious that the result will still hold. However, it can be shown that it does hold, but there is one dramatic difference if n is not a positive integer. In this case the series will never terminate because only positive 106
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
integers are subtracted from n and n − r + 1 will never become zero because r is an integer whereas n is not. So the expansion becomes an infinite series. In such cases it is called an infinite power series in x. Such series can be used to express functions in a convenient form for calculation, and we return to them in Chapter 14. For now, just accept the formal generalisation to non-integer values of n. It can be shown that the resulting infinite series converges if |x| < 1, diverges if |x| > 1 and if |x| = 1 it may diverge or converge.
Example 1 = (1 − x)−1 = 1 + x + x 2 + x 3 + · · · 1−x
provided |x| < 1
In this case it is obvious that the series will diverge for |x| ≥ 1. This series is a standard result of such importance that you should memorise it. This is not too difficult – it is in fact the sum of an infinite GP with common ratio x. It is useful in making approximations such as 1 1 + x for x very small 1−x Solution to review question 3.1.11
Applying the binomial expansion n(n − 1) 2 n(n − 1)(n − 2) 3 x + x 2! 3! n(n − 1) . . . (n − r + 1) r +··· + x + ··· r!
(1 + x)n = 1 + nx + · · · +
we have (−2)(−3) (3x)2 2! (−2)(−3)(−4) (3x)3 + · · · + 3!
(1 + 3x)−2 = 1 + (−2)(3x) +
Note the careful treatment of the signs and the 3x – it is usually a good policy to keep such things in brackets until the final stages of the calculation. Tidying up the results we find for the first four terms (1 + 3x)−2 = 1 − 6x + 27x 2 − 108x 3 + · · ·
3.3 Reinforcement 88
90
➤
➤➤
3.3.1 Definition of a function
A. Find the values of the following functions at the points (a) −1, (b) 0, (c) 3 (d) − 13 . (i) f (x) = 2x
(ii) f (x) = 3x 2 − 1 107
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(v) f (x) =
x = −
1 2
1 x+2
x2 − 1 obtain expressions for x+2 (ii) f (t + 1)
(i) f (u) (iv) f (a + h)
(iii) f
x = −2
s
t
(v) f (x + δx)
➤➤
B. If f (x) =
3x − 1 2x + 1
(iv) f (x) =
3.3.2 Plotting the graph of a function
88
91
➤
(iii) f (x) = 2x 2 − x + 1
A. Plot the graphs of the following functions over the ranges indicated: (i) 2x 3
−3≤x ≤3
(ii)
3 x
−6≤x ≤6
(iii) 2x
−4≤x ≤4
B. Plot the graph of the function f (x) = 2x 2 − 3x − 2 and confirm the statement made in Section 3.3.6 about the range of values of x for which this function is positive. 88
93
➤
➤➤
3.3.3 Formulae
The following are examples of standard formulae occurring in engineering, with standard notation. In each case define the variables, explain what the formula tells us, and describe the type of function that the left-hand side is of the bracketed variables. Make the indicated variable the subject of the formula.
(t)
(c) 88
94
➤➤
3.3.4 Odd and even functions
89
97
➤
(v) E = mc
(iv) s = ut +
(v)
(R) 1 2 2 at
➤➤
(iii) E =
1 2 2 mv 2
(ii) P = I 2 R
(R)
➤
(i) V = I R
State whether the following functions are even, odd or neither. (ii) 3x 2 − 1
(i) 2x (iii) 2x 3 − x
(iv) x 2 + 2x + 1 (vi) x 4 + 2x 2 + 1
(v) cos x
(viii) ex
(vii) sin x
3.3.5 Composition of functions If g(x) = x 2 + 1, f (x) = 108
x determine the compositions f (g(x)) and g(f (x)). x−1
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
➤➤
89
97
➤
➤➤
89
100
➤
3.3.6 Inequalities Find the ranges of values of x for which the following are satisfied: (i) 2x − 3 > 2 (iii) x 2 − x + 1 ≥ 3 (v) |2x − 1| ≤ 2 (vii)
2x <1 x−3 (iv) x 2 + 2x + 2 < 5 2 <4 (vi) |x − 4| (ii)
1 < −3 x−1
3.3.7 Inverse of a function
Find the inverse functions for each of the following functions, specifying the values for which they exist. (i) 2x + 1
x −1 x +2
x = −2
x≥0 89
102
103
➤
➤➤
3.3.8 Series and sigma notation
➤
(iii) x 2 + 1,
(ii)
A. Write the following in sigma notation: (i) 1 + 8 + 27 + 64 + 125 1 1 1 1 1 + + + + ··· + (iii) 2 3 4 5 50
(ii) 3 + 6 + 9 + 12 + 15 + · · · + 99 1 1 1 (iv) 1 − + − + ··· 3 9 27
B. Write down the first four terms in the series:
(iii)
∞ 1 r=1 ∞ r=1
r
(ii)
20
r!
r=0
1 r(r + 1) ➤➤
(i)
3.3.9 Finite series
89
Sum the geometric series: (i) 1 + (iii)
8
1 1 1 1 + + + ··· + 2 4 8 32
(ii)
2n
(iv)
n=1
6
(0.1)n
n=1 4 n=1
1 3
n
(v) 1 + 0.1 + 0.01 + 0.001 + 0.0001 109
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
89
105
➤
➤➤
3.3.10 Infinite series A. Identify which are geometric sequences, and sum them to infinity. (ii) −1, 3, 5, 9, . . .
(i) 1, 2, 3, 4, . . . (iii) 1, 1, 1, 1, . . . 1 1 1 (v) 1, , , , . . . 3 9 27 (vii) 2, −4, 8, −16, . . .
(iv)
1 1 1 1 2, 3, 4, 5, . . .
(vi) 0.1, 0.3, 0.5, 0.7, . . . (viii) 0.2, 0.04, 0.008, 0.0016, . . .
B. Find the sum of the infinite geometric series with first terms and common ratios given respectively by (ii) 2, 12
(iii) −1, 1
(iv) 1, 13 ➤➤
3.3.11 Infinite binomial series
89
106
➤
(i) 1, 2
Find the first four terms of the binomial expansion of the following: (i) (1 + x)−1
(ii) (1 − 3x)−1 1
(iii) (1 + 4x)−2
(iv) (1 − x) 2
3.4 Applications 1. For each of the following functions, obtain simplest forms of the expressions for (a) f (a + h) − f (a) (i) 2x
f (a + h) − f (a) h (ii) x 2 (b)
(iii) 4x 3 − 6x 2 + 3x − 1
In each case give the result when you let h tend to zero. These sorts of calculations are required in differentiation from first principles (Chapter 8). 2. In statistics the mean, x, ¯ and variance, σ 2 , of a set of n numbers x1 , x2 , . . . , xn are defined by n n 1 1 x¯ = xi σ2 = (xi − x) ¯ 2 n i=1 n i=1 respectively. Show that σ 2 may be alternatively written as n 1 σ2 = x 2 − nx¯ 2 n i=1 i 110
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
3. The following summation is used in the multiplication of matrices (see Chapter 13): n
aik bkj
k=1
where aik , bkj , are elements of a matrix. Write out the summations in full in the following cases. (i) n = 2 (iii) n = 4,
i = 3, j = 3
(ii) n = 3,
i = 1, j = 2
(iv) n = 4,
i = 2, j = 4
Repeat the exercise for n
ail blj
l=1
with k replaced by l. 4. A spring vibrates 50 mm in the first oscillation and subsequently 85% of its previous value in each succeeding oscillation. How many complete oscillations will occur before the vibration is less than 10 mm and how far will the spring have travelled in this time? Assuming that the spring can perform an infinite sequence of oscillations, how far does it move before finally stopping? Repeat these calculations with 85% replaced by a general factor of k% and various initial and final conditions. 5. The emitter efficiency, γ , in an n-p diode is given by γ =
In In + Ip
where Ip is the hole current and In is the electron current crossing the emitter-base junction. In practice, Ip is made much smaller than In . Show that in this case γ 1−
Ip In
6. In the next chapter we will meet the exponential function. The definition of this important function is perhaps a little more sophisticated than you are used to, either by a limit or by a series. The connection between these definitions relies on a use of a binomial expansion of a particular kind. Show that if n is an integer (➤ 126): 1 1 2 1 1 1 − 1 − 1 −
x n n 2 n n 3 1+ =1+x+ x + x + ··· n 2! 3! By letting n ‘go to infinity’ – i.e. letting n become as large as we like – obtain a series expression for the limit
x n lim 1 + n→∞ n This is in fact the definition of the exponential function ex . 111
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Answers to reinforcement exercises 3.3.1 Definition of a function (a) −2
(b) 0
(c) 6
(d) − 23
(ii)
(a) 2
(b) −1
(c) 26
(iii)
(a) 2
(b) 1
(c) 16
(iv)
(a) 1
(b)
1 2
(d) − 23 14 (d) 9 (d) 35
(v)
(a) 4
(b) −1
A. (i)
(c) (c)
1 5 8 7
(d) −6
t (t + 2) t +3 x 2 + 2xδx + (δx)2 − 1 (v) x + δx + 2
u2 − 1 u+2 a 2 + 2ah + h2 − 1 (iv) a+h+2
(ii)
B. (i)
(iii)
3.3.2 Plotting the graph of a function A. (i) y 60 50
y = 2x 3
40 30 20 10
−3
−2
−1
0 −10 −20 −30 −40 −50 −60
112
1
2
3
x
s2 − t 2 t (s + 2t)
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(ii) y
y =3 x
3
2
1
−6 −5 −4 −3 −2 −1 0
1
2
3
4
5
6x
−1
−2
−3
−4
(iii) y 20
15
y = 2x 10
5
−4
−3
−2
−1
0
1
2
3
4
x
113
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
B. y 25 20
y = 2x 2 − 3x − 2 > 0 for x > 2 and x < − 12
15 10 5
−3
−2
−1
0
1
2
3
4
x
−5 −10
3.3.3 Formulae (i) Ohm’s law; V = voltage, I = current, R = resistance. V is a linear function of R – in fact it is proportional to R. R=
V I
(ii) Electrical power P , resistance R, current I . P is proportional to R. R=
P I2
(iii) Kinetic Energy E, m = mass, v = velocity. E is a quadratic function of v. 2E v=± m (iv) Distance – time function; s = distance, t = time, u = initial velocity, a = acceleration. s is a quadratic function of t. √ −u ± u2 + 2as t= a (v) Einstein’s mass – energy formula; E = energy, m = mass, c = speed of light (positive!). E is proportional to c2 . E c= m 114
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
3.3.4 Odd and even functions (i) odd
(ii) even
(iii) odd
(v) even
(vi) even
(iv) neither (vii) odd
(viii) neither
3.3.5 Composition of functions x2 + 1 x2 + 1 = (x 2 + 1) − 1 x2 2 2x 2 − 2x + 1 x g(f (x)) = +1= x−1 (x − 1)2 f (g(x)) =
3.3.6 Inequalities (i) x >
(ii) −3 < x < 3
5 2
(iv) −3 < x < 1 (vii)
2 3
(v)
− 12
≤x≤
3 2
(iii) x ≥ 2, x ≤ −1 (vi) x > 92 , x <
7 2
<x<1
3.3.7 Inverse of a function x−1 domain: all values; range: all values 2 1 + 2x (ii) domain: all values =1; range: all values = −2 1−x √ (iii) x − 1 domain: any value ≥1; range: any value ≥0 (i)
3.3.8 Series and sigma notation A. (i)
5
n3
(ii)
n=1
(iv)
∞ n=0
33 n=1
(−1)n
3n
(iii)
50 1 n n=2
1 3n
Note that alternative forms are permissible – for example an equally acceptable answer 49 1 . to (iii) is n + 1 n=1 1 1 1 + + 2 3 4 1 1 1 1 + + + (iii) 2 6 12 20
B. (i) 1 +
(ii) 1 + 1 + 2 + 6 (note 0! = 1)
115
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
3.3.9 Finite series (i) a = 1, (ii) a = 0.1, (iii) a = 2, (iv) a =
1 , 3
(v) a = 1,
1 63 S6 = 2 1 − 6 = 2 32 1 1 S6 = 1 − 6 = 0.1111111 9 10
1 r= 2 r = 0.1 r=2 r=
S8 = 2(28 − 1) = 510 1 1 40 1− 4 = S4 = 2 3 81 10 1 S5 = 1 − 5 = 1.1111 9 10
1 3
r = 0.1
3.3.10 Infinite series A. S∞ =
a 1−r
(i) No (ii) No (iii) Yes, diverges to ∞ (iv) No
(v) Yes a = 1, r = 13 S∞ =
3 2
(vi) No (vii) Yes (a = 2, r = −2) diverges (viii) Yes (a = 0.2, r = 0.2)S∞ = B. (i) ∞ (iv)
(ii) 4
1 4
(iii) diverges to −∞
3 2
3.3.11 Infinite binomial series (i) 1 + (−1)x +
(−1)(−2)(−3)(x)3 (−1)(−2)(x)2 + 2! 3!
= 1 − x + x2 − x3 (ii) 1 + (−1)(−3x) +
(−1)(−2)(−3x)2 +(−1)(−2)(−3)(−3x)3 2! 3!
= 1 + 3x + 9x 2 + 27x 3
116
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(iii) 1 + (−2)(4x) +
(−2)(−3)(−4)(4x)3 (−2)(−3)(4x)2 + 2! 3!
= 1 − 8x + 48x 2 − 256x 3 1 1 3 1 1 − (−x)2 − − (−x)3 1 2 2 2 2 2 + (iv) 1 + (−x) + 2 2! 3! =1−
x2 x3 x − − 2 8 16
117
4
Exponential and Logarithm Functions The exponential function is one of the most important in engineering. It describes behaviour that is of a rapidly increasing or decreasing nature – for example bacterial growth or radioactive decay. Yet the exponential function is found to be one of the most troublesome for newcomers to engineering mathematics. This chapter therefore introduces the key ideas quite gently.
Prerequisites It will be helpful if you know something about: ➤
powers and indices (70 ) plotting graphs (91 ) irrational numbers (6 ) binomial theorem (106 ) inverse of a function (100 ) ➤
➤ ➤ ➤
• • • • •
Objectives In this chapter you will find • • • • • • •
functions of the form y = a n where a is given and n is an integer the general exponential function a x the natural exponential function ex manipulation of the exponential function logarithms to general base a manipulation of logarithms some applications of logarithms
Motivation You may need the topics of this chapter for: • the exponential form of complex numbers (Chapter 12) • solving differential equations (Chapter 15) • modelling engineering, scientific and other situations where some quantity grows or decays very rapidly – ‘exponentially’ • converting power laws to linear form
118
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
4.1 Review ➤ 120 136 ➤➤
4.1.1 y = an, n = an integer
(i) Plot the values of 2n for n = −4, −3, −2, −1, 0, 1, 2, 3, 4 using rectangular Cartesian axes with n on the horizontal axis and 2n on the vertical axis. n (ii) Repeat (i) with 12 = 2−n and compare the results. (iii) Sketch the graph of (a) y = 2x , (b) y = 2−x , (c) y = 3x , (d) y = 3−x on rectangular x-, y-axes. ➤ 121 136 ➤➤
4.1.2 The general exponential function ax
A. Use the laws of indices to show that if f (x) = a x , where a is a positive constant, then f (x) · f (y) = f (x + y) What isf (x − y)? B. Simplify the following (a > 0) (i) a x a −x (iii)
(a x )3 a −2x x a4
(v)
2x 16−3x 42x 8−x+1
(ii)
a 3x a x a 2x
(iv)
a x a −2x a (x−1)2 2
➤ 124 136 ➤➤
4.1.3 The natural exponential function ex
A. Define the base of natural logarithms, e. Write down the value of e to 3 decimal places. Can you write down the exact value of e? B. Given that ex = 2, evaluate (i) e2x (iii) e3x
(ii) e−x (iv) e4x − 4e2x
C. Plot the graphs of y = ex , e−x , e2x , e−3x on the same axes.
4.1.4 Manipulation of the exponential function
➤ 129 136 ➤➤
A. Express each of the following as a single exponential (i) eA eB (iv)
eA e2B e−C e2A eB eC
(ii) eA /e−B
(iii) e2B (e3B )2
(v) e−B e−C eB
(vi) (eA )3 e−2A
119
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
B. Express in simplest form e2A − e2B eA + eB e2A + 1 (iii) 2A e + e−2A + 2
(ii) (eA − e−A )(eA + e−A )
(i)
(iv) (eA + e−A )2 − (eA − e−A )2 ➤ 130 137 ➤➤
4.1.5 Logarithms to general base Evaluate (ln denotes logs to base e) (i) log10 1 (iv) log2 14 (vii) log3 1 (x) ln e
(ii) log2 2
(iii) log3 27 4
(v) loga (a ) (viii) ln e
2
(vi) loga (a x ) √ (ix) ln e
(xi) ln 1 ➤ 131 137 ➤➤
4.1.6 Manipulation of logarithms
A. Express each of the following as a single logarithm (ln x is to base e, loga x to base a) (i) ln x + 2 ln y (iii) 2 ln x − 3 ln(2x) + 4 ln x
(ii) 3 ln x − 4 ln y 3
(iv) 3 loga x + 2 loga x 2
(v) a loga x + 3 loga (ax) B. If log2 x = 6, what is log8 x? C. If ln y = 2 ln x −1 + ln(x − 1) + ln(x + 1) obtain an expression for y explicitly in terms of x, stating any conditions required on x, y.
4.1.7 Some applications of logarithms
➤ 134 138 ➤➤
A. Solve the equation 2x+1 = 5 giving x to three decimal places. B. By making an appropriate transformation of the variables convert the equation y = 3x 6 to one which has the forms of a straight line – i.e. a linear form. What is the gradient and the intercept of the line?
4.2 Revise ➤
4.2.1 y = an, n = an integer
119 136 ➤
The exponential function is essentially a power function in which the exponent is the variable. As such it obeys all the usual rules of indices. We can get some idea of the 120
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
behaviour of the exponential function by looking at the behaviour of the power function for different values of the index, as shown in the review question. Solution to review question 4.1.1
(i) If you have done RE 3.3.2A(iii) then you have already met this. The values of y = 2n are: −4,
n 2n
1 16
−3
−2
1 8
−1
1 4
1 2
0 1
1 2
2 4
3 8
4 16
The corresponding graph (Figure 4.1) rises very steeply (note that the scales on the axes differ). (ii) The graph for y = 2−n is also shown in Figure 4.1.
y
y = 3 −x
y = 3x 15
y = 2 −x
y = 2x 10
5 1 −4
−3
−2
−1
0
1
2
3
4
x
Figure 4.1 Graphs of exponential functions e2x , e3x , e−2x , e−3x .
(iii) Drawing a smooth curve through the points for y = 2n gives the curve for y = 2x . Similarly for y = 2−x . y = 3x (3−x ) will be similar but will increase (decrease) more rapidly (see Figure 4.1). ➤
4.2.2 The general exponential function ax
119 136 ➤
In Section 2.2.12 we covered the laws of indices, including such things as a m × a n = a m+n . Although it was not the intention, it was perhaps easy to get the impression that the indices 121
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
m, n are ‘constant’ and to think in terms of a power function x n , etc. where the base, x, is variable and n is given. However, it is just as possible to let the base be fixed and let the power be any variable. This gives a function of the form f (x) = a x
a = 0
where the base a is now regarded as constant, and the exponent x can vary. Such a function is called exponential. But of course x is still just an index, and obeys all the usual rules of indices (70 ). One important point to note at this stage is that since x can take fractional values it is essential that a be positive to deliver real values of the function for all values of x. x itself can of course be positive or negative. The results of Section 4.2.1 give us a feel for the shape of the graph of exponential functions. Basically such graphs can take three different forms: ➤
• • •
base a > 1, the graph increases steadily from left to right. We say a x increases monotonically with x; a < 1 the graph decreases steadily from left to right −a x decreases monotonically with x; if a = 1 we get the straight line y = 1.
These results are illustrated in the graphs of Figure 4.2. y
x
a
y=
y=
ax
a<1
1
0
a>1
y = ax
a=1 x
Figure 4.2 The exponential functions ax , a−x .
The exponential function satisfies all the usual laws of indices, which are worth repeating here in the new notation: a x a y = a x+y ax = a x−y ay (a x )y = a xy (ab)x = a x bx a −x = 122
1 ax
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
We need to say something about the definition of a x for different values of x, building on the work in Section 1.2.7. If x = n is a positive integer, then for any real number a we know that we can define a x = a n ≡ a × a × · · · × a n factors
simply in terms of elementary algebraic operations. Similarly, if x = −n is a negative integer then we can define a x = a −n = (a −1 )n = a −1 × a −1 × · · · × a −1 n factors
And of course, by definition a0 = 1 In these definitions there is no need for any qualification on the real number a – it can be positive, negative, rational, irrational. We can extend the definition of a x to the case when x is a fraction or rational number 1
by defining a q , where q is an integer, as the positive real number such that when raised to the power q it yields a: 1
(a q )q ≡ a 1 √ We say a q is the qth root of a, sometimes written q a. However, complications arise if a is negative, so henceforth we insist that a is positive, then a x will always be a real function. For x = p/q a rational number we can now define a x by p
1
a x = a q = (a q )p So, provided x is a rational number, and a > 0, the exponential function, a x , is a well defined function of x. The extension to the case when x is an irrational number is not a trivial step, but we will assume that it can be done and therefore that a x is in fact defined for all real values of x, rational or irrational, provided a is positive. Solution to review question 4.1.2
A. If f (x) = a x then f (y) = a y and so f (x)f (y) = a x a y = a x+y = f (x + y) f (x − y) = a x−y = a x /a y = f (x)/f (y) B. We simply apply the rules of indices but with the indices as functions of x. (i) a x a −x = a x−x = a 0 = 1 123
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(ii)
a 3x a x = a 3x+x−2x = a 2x a 2x
(iii)
(a x )3 a −2x a 3x a −2x = = a −3x 4 x (a ) a 4x
a x a −2x 2 2 (iv) (x−1)2 = a x −2x−(x−1) = a −1 using a bit of elementary algebra a 2
2x 16−3x = 2x 2−12x 2−4x 23x−3 = 2−12x−3 42x 8−x+1
4.2.3 The natural exponential function ex
➤
(v)
119 136 ➤
The most commonly used exponential function – usually referred to as the exponential function – is ex , where e is a number whose value to 16 decimal places (!) is e 2.7182818284590452. e is called the base of natural logarithms. It is an irrational number. Like π, it cannot be expressed as a fraction, or as a terminating or repeating decimal. Its decimal part goes on indefinitely. There are a number of equivalent definitions we could give for ex , but it has to be said that none of them is easy to appreciate at the elementary level. Below we will study in detail perhaps the most natural derivation of an expression for ex , by considering compound interest. For now, accept the following definitions as a general introduction to the properties of the exponential function. We will see later that the particular exponential function ex can be defined by its infinite series ex = 1 + x +
x2 x3 + + ··· 2! 3!
Using this form, if you know some elementary differentiation, then you can discover for yourself why the exponential function is so important:
Problem 1 Differentiate the series for e x term by term – what do you get? You may assume d n .x / = nx n −1 dx You should find you get the same series – i.e. dex = ex dx So the derivative of the exponential function is the function itself. This explains the special role played by ex and its importance in, for example, differential equations (Chapter 15). There are many situations where rate of change is proportional to amount present – e.g. bacterial growth, radioactive decay (e−x is the relevant function in the latter case). 124
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
One rigorous method of defining the exponential function ex is by means of a limit. This is quite an advanced concept that we only address in Chapter 14 and there is a temptation to gloss over the idea here. However, the work is so important (and not without interest!) that we will give it a try – don’t worry if it is too much for you at this stage, you should be able to handle the exponential function well enough without studying the next couple of pages. However, if you can find your way through this work it will be of great benefit to you, as well as providing practice in some techniques of algebra. We are going to approach the limit involved in the exponential function by considering a limiting process arising in the study of compound interest. You can try to work out some of the details yourself.
Problem 2 Suppose you borrow £C at an interest of I % compounded monthly, so I that the interest added at the end of each month is at %, and you do 12 not pay off any of the loan until after a year How much debt do you have at the end of the year? At the end of the first month you owe I C I = £C 1 + £ C+ 12 100 1200 At the end of the second month you owe 2 I I I 1+ = £C 1 + £C 1 + 1200 1200 1200 and so on. So after 12 months you owe 12 I £C 1 + 1200 Now suppose the terms were changed and interest was compounded daily. Then at the end of a non-leap year you would owe 365 I £C 1 + 36500 By the hour: £C 1 +
I 876000
8760
and I will leave you to give the result if interest is calculated by the minute, or second (RE 4.3.3A). In general, if the interest is compounded at a constant rate over each of n equal time intervals in the year, then the amount owing at the end of the year will be n I £C 1 + 100n 125
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
This is all very well – but how do we actually calculate this? As n gets larger and larger it gets more and more difficult. In particular, what would happen if n became infinitely large – equivalently, interest is being added continuously. In this case the result can be expressed as a limit: £ lim C 1 + n→∞
Putting x =
I 100n
n
I and dropping the constant factor C this shows that a limit of the form 100 x n lim 1 + n→∞ n
is very important. This limit is a function of x (because the n disappears on taking the limit), and is in fact a definition of e x : x n ex = lim 1 + n→∞ n
(4.1)
This may seem an unusual way to define a function, but it does show how ex is intimately related to an important process of accumulating compound interest and natural growth and decay in general. In fact it can be shown that ex defined in this way as a limit does indeed satisfy all the laws of indices (see Section 4.2.4 below). We therefore take the limit (Equation 4.1) as our definition of the exponential function ex , which is also written exp(x). This definition can in fact be used to obtain the infinite series for ex . You can try this yourself, using the binomial theorem:
Problem 3 Show that 1 1 2 1 1 1 − 1 − 1 − x n n n n 1Y =1Yx Y x2 Y x3 Y · · · n 2! 3! ➤
By the binomial theorem (106, 111
):
n(n − 1) x 2 n(n − 1) . . . (n − 2) x 3 x n x 1+ =1+n + + + ··· n n 2! n 3! n 1 1 2 1· 1− 1− 1− n 2 n n 3 =1+x+ x + x + ··· 2! 3!
Problem 4 Hence deduce that e x can be represented by the infinite series ex = 1 Y x Y 126
x2 xr x3 Y Y···Y Y··· 2! 3! r!
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
All we need here is to note that such things as 1/n, 2/n, . . . . ‘tend to’ zero as n ‘tends to’ infinity, i.e. gets infinitely large. So: x n ex = lim 1 + n→∞ n 1 1 2 1 1− 1 1− 1− n 2 n n 3 x x + ··· = lim 1 + x + + n→∞ 2! 3! 1 r −1 ... 1 − 1 1− n n + x r + · · · r!
=1+x+
x2 x3 xr + + ··· + +··· 2! 3! r!
On letting all the terms with 1/n, 2/n, . . . tend to zero. Hence we obtain the series form for ex from the limit definition: ex = 1 + x + =
x2 x3 xr + + ··· + +··· 2! 3! r!
∞ xr r=0
r!
In particular, we now have for e = e1 : e =1+1+
1 1 1 + + ··· + + ··· 2! 3! r!
We can calculate the value of e to any required accuracy by taking a sufficient number of terms of this series. For example, summing the first 11 terms of the above series (i.e. r = 10) gives e as 2.71828 to 5 decimal places. As noted earlier e is an irrational number. When your calculator gives you a ‘value’ for e, it is only an approximation to the available number of decimal places – to give the exact value of e it would need to have a display of infinite length. The graph of an exponential function is very simple, see Figure 4.3. In view of the way we have derived ex – by considering the growth of debt, it should now be no surprise to you that the function y = ex is often described as representing the law of natural growth. For example, it might describe unrestrained bacterial growth. The function y = e−x = (e−1 )x on the other hand defines the law of natural decay. For example it describes the decrease in mass of a radioactive element over time. Its graph is also shown in Figure 4.3.
127
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Solution to review question 4.1.3
A.
We may define e by the limit 1 n e = lim 1 + n→∞ n but it is more easily evaluated from the equivalent series 1 1 1 1 + + + ··· + 2! 3! 4! r! x + · · · (e with x = 1)
e =1+1+
To 3 decimal places e = 2.718. We cannot write down the exact numerical value of e, since it is an irrational number (6 ). Its decimal never terminates or recurs. B. (i) We only have to remember that the exponential function behaves like any other power (18 ). We have ➤
➤
e2x = (ex )2 = (2)2 = 4 (ii) e−x = (ex )−1 = (2)−1 = (iii) e3x = (ex )3 = (2)3 = 8 (iv) We only need (i) now:
1 2
e4x − 4e2x = (e2x )2 − 4e2x = (4)2 − 4 × 4 = 0 C.
Since e > 1, y = ex is an increasing function of x and e−x is a decreasing function. Similarly, y = e2x is increasing, y = e−3x is decreasing. The graphs are illustrated in Figure 4.3. y
y = ex y=e
−x
y = e −3x
y = e 2x
1 0
Figure 4.3 The exponential functions ex , e−x , e2x , e−3x .
128
x
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
➤
4.2.4 Manipulation of the exponential function
119 136 ➤
As noted earlier, any exponential function, including ex , satisfies the usual rules of indices (18 ): ➤
ex ey = ex+y ex = ex−y ey (ex )y = exy e−x =
1 ex
e0 = 1 You need to be very proficient at using these rules. You will frequently need to manipulate functions of exponential functions, whatever area of engineering you enter. Perhaps the most important thing to remember about the exponential function is that eA+B is not equal to eA + eB . This is an error made by many beginners. The correct result is of course eA+B = eA eB Solution to review question 4.1.4
(ii) eA /e−B = eA eB = eA+B
A. (i) eA eB = eA+B (iii) e2B (e3B )2 = e2B e6B = e8B
eA e2B e−C = e−A eB e−2C = e−A+B−2C e2A eB eC (v) e−B e−C eB = e−C using e−B eB = 1
(iv)
(vi) (eA )3 e−2A = e3A e−2A = eA B. (i)
e2A − e2B (eA )2 − (eB )2 = eA + eB eA + eB =
(eA − eB )(eA + eB ) eA + eB
= eA − eB (ii) (eA − e−A )(eA + e−A ) = (eA )2 − (e−A )2 = e2A − e−2A (iii)
e2A + 1 e2A + 1 = e2A + e−2A + 2 (eA )2 + 2 + (e−A )2 =
e2A + 1 + e−A )2
(eA
129
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
eA (eA + e−A ) (eA + e−A )2
= =
eA
eA e2A = 2A −A +e e +1
(iv) (eA + e−A )2 − (eA − e−A )2 = (eA )2 + 2eA e−A + (e−A )2 − ((eA )2 − 2eA e−A + (e−A )2 ) = 4eA e−A = 4 ➤
4.2.5 Logarithms to general base ➤
What about the inverse function (100
120 137 ➤
) of the exponential function? That is, if
y = ax then what is x in terms of y? By definition, we call the inverse of the exponential function the logarithm to base a and write x = loga y Note that a must be positive if we are to avoid complex numbers and it must not be equal to unity, since 1 raised to any power will again be 1. In the special case of the exponential ex , we call the inverse the natural logarithm, denoted ln. Thus if y = ex , then x = loge y = ln y An equivalent definition of the logarithm of a number x to base a is as that power to which the base must be raised to give x. That is, x = a loga x In particular x = eln x Note that since a x can never be negative, then loga y is only defined for positive values of y. This is sometimes emphasised by writing loga |y|, although often we omit the modulus signs and simply take it for granted that all real quantities under a logarithm are to be assumed positive. From the definition of loga x it also follows that x = loga a x and in particular x = ln ex 130
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
The two results x = eln x and x = ln ex expressing the fact that the exponential and the log are inverse functions of each other are extremely important in advanced mathematics and are used repeatedly in, for example, the solution of differential equations (Chapter 15). Solution to review question 4.1.5
It is perhaps easiest to think of loga x as the power to which a must be raised to give x – then if we can express x in the form a y , y will be the value we want. (i) log10 1 = log10 100 = 0 In fact, log of 1 to any base (except 1!) is zero (ii) log2 2 = log2 21 = 1 (iii) log3 27 = log3 33 = 3 (iv) log2 14 = log2 (2−2 ) = −2 Note that we can have negative logs – we just can’t take the log of a negative number and expect a real number. (v) (vi) (vii) (viii)
loga (a 4 ) = 4 loga (a x ) = x log3 1 = log3 30 = 0 ln e = loge e = 1
Of course, e is no different to any other log base in this respect. 1 √ (ix) ln e = ln e 2 = 12 (x) ln e2 = 2 (xi) ln 1 = 0 ➤
4.2.6 Manipulation of logarithms
120 137 ➤
Since the log is basically just an index or power, the properties of logs can be deduced from the laws of indices. We find, for any base a (positive and not equal 1): •
log 1 = 0 because a 0 = 1
•
log(xy) = log x + log y Put x = a s , y = a t so s = log x and t = log y then xy = a s+t so s + t = log x + log y = log(xy)
•
log(x/y) = log x − log y Put x = a s , y = a t so s = log x and t = log y then x/y = a s−t so s − t = log x − log y = log(x/y) 131
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
•
log x α = α log x Put x = a s , so s = log x, then x α = (a s )α = a sα = a αs and so αs = log x α = α log x
The last result holds for any real number α, positive or negative, rational or irrational. Sometimes we need to change the base of a logarithm. Thus, suppose we have loga x and we wish to convert this to a form involving logb x, b = a, we have y = loga x x = ay
so
(4.2)
and therefore logb x = logb a y = y logb a = loga x logb a So
logb x logb a
loga x =
In particular, if x = b this gives 1 logb a
loga b =
For completeness we will anticipate Chapter 8 here and mention that the derivative of the natural log function is simply the reciprocal: d 1 (ln x) = dx x Equations of the form ax = b occur frequently in engineering applications and may be solved by using logs. Thus, taking logs to base a we have loga (a x ) = loga b = x loga a = x So
x = loga b
The graph of the logarithm function follows easily from that of the exponential function, its inverse, by reflecting the latter in the line y = x (101 ). This is shown in Figure 4.4. ➤
132
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
y
=
y = ax
x
y
y=
log a
x
(0,1)
0
(1,0)
x
Figure 4.4 The exponential and logarithm functions.
Note that as observed above, loga x does not exist for negative values of x. Solution to review question 4.1.6
A. We simply apply the laws of logarithms given above: (i) ln x + 2 ln y = ln x + ln y 2 = ln(xy 2 ) (ii) 3 ln x − 4 ln y = ln x 3 − ln y 4 = ln(x 3 /y 4 ) (iii) 2 ln x − 3 ln(2x) + 4 ln x 3 = ln x 2 − ln(8x 3 ) + ln x 12 2 12 11 x ·x x = ln = ln 8x 3 8 2 3 (iv) 3 loga x + 2 loga x = loga x + loga x 4 = loga (x 3 × x 4 ) = loga x 7 (v) a loga x + 3 loga (ax) = loga x a + loga (ax)3 = loga x a + loga (a 3 x 3 ) = loga (x a a 3 x 3 ) = loga (a 3 x 3+a ) 133
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
B. If log2 x = 6 then from the change of base formula loga x =
logb x logb a
log8 x =
log2 x log2 x 6 = = =2 log2 8 3 3
we have
Alternatively, if log2 x = 6 then x = 26 = (23 )2 = 82 , so log8 x = 2, as above. C. ln y = 2 ln x −1 + ln(x − 1) + ln(x + 1) = ln x −2 + ln(x − 1) + ln(x + 1) = ln(x −2 (x − 1)(x + 1)) 2 x −1 = ln x2 x2 − 1 So y = x2 ➤
4.2.7 Some applications of logarithms
120 138 ➤
When an unknown occurs in an index in an equation, as for example in ax = b then we may be able to solve the equation by taking logs. If the base a happened to be e then, of course, the ‘natural’ thing to do would be to take natural logs, but we can use the same idea whatever the base. Thus, taking natural logs we obtain ln(a x ) = x ln a = ln b so x=
ln b ln a
Conversely, if an unknown occurs in a logarithm, then we can sometimes solve by taking an exponential. For example, the equation log2 (x + 1) = 3 + log2 x can be solved by first gathering the logs together to give x+1 =3 log2 (x + 1) − log2 x = log2 x We can now remove the log by exponentiating with 2 – i.e. raising 2 to the power of each side to give (2 to the power of log2 x is x) x+1 = 23 = 8 x from which we find x = 17 . 134
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Logs can also be used to simplify graphical representation of certain functions. Thus, given any function of the form y = kx α We can take logs to any base and obtain log y = log(kx α ) = log k + α log x If we now put X = log x
Y = log y
then we obtain the equation: Y = αX + log k If Y is plotted against X on rectangular Cartesian axes, as in Section 3.2.2, then this is a straight line. As we will see in Section 7.2.4 this line has gradient, or slope, α and an intercept on the y axis of log k. Solution to review question 4.1.7
A. If 2x+1 = 5 then taking natural logs of both sides gives ln(2x+1 ) = (x + 1) ln 2 = ln 5 So x +1=
ln 5 = 2.322 ln 2
to three decimal places, so x = 1.322 B. If y = 3x 6 then taking logs to any convenient base a we have loga y = loga (3x 6 ) = loga (x 6 ) + loga 3 = 6 loga x + loga 3 Put
X = loga x
Y = loga y
to get the form of a straight line equation: Y = 6X + loga 3 The gradient of this line is 6 and its intercept on the y-axis is loga 3 (➤ 212). 135
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
4.3 Reinforcement 119 120
➤
➤➤
4.3.1 y = an, n = an integer
A. Plot the values of 3n for n = −2, −1, 0, 1, 2, using Cartesian axes with n on the horizontal axis and 3n on the vertical axis. B. Plot the graphs of y = 3x and y = 4x on the same axes. Sketch the graph of y = π x . ➤➤
119 121
➤
➤➤
119 124
➤
4.3.2 The general exponential function ax Simplify
1
(iii)
(v) (vii)
(ii)
6 2 × 12x+1 × 27− 2 x
32 2
2
1
x− 3 y− 3
1
2
2
2
a 3 a −(x+1) a −x 2 a −2x
2
(vi)
ex−1 e(x+1) 2 a cos 2x a − cos x a 3−sin
1
x 2 (x 2 + 1)− 2 − (x 2 + 1) 2 (iv) x2
(x 2 y 4 )− 6 ex e−x
x
x
8x × 23x (i) 43x
x
4.3.3 The natural exponential function ex
A. Referring to the ‘interesting’ Problem 2 in Section 4.2.3, determine the debt owing if interest is reckoned by the (i) minute (ii) second. B. Use the series for ex to evaluate to 4 decimal places (i) e, (ii) e0.1 , (iii) e2 . C. Sketch the curves (ii) y = 1 − e−x
(i) y = ex − 1 D. Solve the equation e2x − 2ex + 1 = 0
119 129
➤➤
Simplify (i) eA (eB )2 e3C (iv) 136
(eB )2 eA eB−2 e2−B e2A
ex e3y (ex )2 e−x ey (eA + e−A )2 (v) e2A
(ii)
2
(ex )3 ex (ey )2 e4y ex+3 (eA + e3B )(e−A + e−B ) (vi) e2B eA
(iii)
➤
4.3.4 Manipulation of the exponential function
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
120 130
➤
120 131
➤
➤➤
4.3.5 Logarithms to general base A. Find x if (i) 8 = log2 x
(ii) 3 = log2 x
(iii) 4 = ln x
(iv) 6 = log3 x
(v) 4 = log3 x
(vi) 2 = ln x
(ii) log4 (256)
(iii) log3 27
(v) log4 2
(vi) ln(e2 )2
B. Evaluate (i) ln e3 (iv) log9 81 (vii) ln e7
(viii) log3 (243) ➤➤
4.3.6 Manipulation of logarithms A. Simplify as a single log (i) 2 ln e4 + 3 ln e3
(ii) 3 log2 x + log2 x 2
(iii) loga x + loga (2y)
(iv) ln(3x) − 12 ln(9x 2 )
(v) 2 loga x + 3 ln x
(vi) loga x − log2a x
(vii) ln x + 2 loga x 2
B. Expand each as a linear combination of numbers and logs in simplest form (i) ln(3x 2 y) (iv) loga (a x y a )
(ii) log2 (8x 2 y 3 )
(iii) ln(eA /eB )
(v) log2a (8a 3 x 2 y 4 )
(vi) ln(x 2 y 2 z2 )
C. Simplify (i)
2
a loga 6 x 2 ln(e3x ) 2ax log2 (4x )
(ii)
a (x−1) a 2x a 3 (a x )2 a x 2 ln(e2a )
D. Evaluate (i) log2 32
(ii) log10 100
(iv) log5 625
(v) loga 1 (viii) ln e
(vii) log1/8 64
1 a2
(iii) log7 49 (vi) ln e2001 (ix) log8 2
E. Simplify (log to any base) log 81 log 9 (iv) 5 log 2 − 3 log 32 (i)
log 8 log 2 (v) 12 log 49
(ii)
(iii)
log 49 log 343
F. Given that ln
1 1 1 = ln(x + 1) − ln(x − 1) + 3x + ln x + C y 2 2
where C is an arbitrary constant, obtain an explicit expression for y in terms of x. 137
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
120 134
➤
➤➤
4.3.7 Some applications of logarithms
A. Solve the following equations, giving your answers to 3 decimal places. (i) 3x = 16
(ii) 42x = 9
(iii) 4 × 5−2x = 3 × 7x−2
(iv) 3x = 42x−1
B. Convert the following equations to straight line form (i) y = 4x 7
(ii) y = 3x −4
(iii) y =
5 x3
(iv) y = 20e−2x
(v) y = 24x−1
4.4 Applications You will see many applications of the exponential function in later chapters, particularly in complex numbers, differential equations and the Laplace transform. 1. The hyperbolic functions cosh, sinh, tanh are defined by ex + e−x 2 x e − e−x sinh x = 2 sinh x tanh x = cosh x
cosh x =
(hyperbolic cosine) (hyperbolic sine) (hyperbolic tan)
These are frequently occurring functions in engineering – for example the shape of a cable suspended at two ends can be described by the catenary, which is essentially the cosh x curve. The hyperbolic functions obey very similar identities to the trig functions. In particular, show that (i) cosh2 x − sinh2 x = 1 (cosh2 x = (cosh x)2 , etc.). (ii) sinh(A + B) = sinh A cosh B + sinh B cosh A. Use trig identities to suggest other hyperbolic identities and use the above definitions to confirm them. (iii) Evaluate cosh 0, sinh 0. d x d (ex ) (iv) Given that (e ) = ex and = −e−x deduce the derivatives of sinh x and dx dx cosh x. (v) Plot the graphs of sinh x and cosh x. 2. The current/voltage characteristic of a rectifying contact in a semiconductor device is given by eV I = Io exp −1 kT At room temperature kT /e is about 25 mV. Plot the curve of I /Io for V between −60 and 60 mV in this case. Show that for values of V greater than 75 mV the increase in 138
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
current I is approximately exponential, i.e
eV I Io exp kT
In the general case obtain an expression for V in terms of I . 3. The speed, v, of the signal in a submarine cable depends on the radius R, in mm, of the cable’s covering according to 16 R v = 2 ln R 4
Plot the graph of this function from R = 4 mm to R = 12 mm. Estimate the maximum speed, and the value of R for which this occurs. 4. According to Benford’s law (an American physicist who noticed that in his university library the first pages of the now old fashioned tables of logarithms were more worn than the rest) the probability that a number drawn randomly from a sufficiently smooth range of numbers spread over several orders of magnitudes begins with the digit n is P (n) = log10 (n + 1) − log10 n Plot this function for n = 1 to 9. Discuss the implications and conduct some experiments to see if the results agree with experience.
Answers to reinforcement exercises 4.3.1 y = an, n = an integer A. and B. y y = e 4x
y = e 3x
is y = px which is very close to y = e 3x
1 0
x
Note that 3 < π < 4. 139
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
4.3.2 The general exponential function ax (i) 1 1
(iv) − √ x x2 + 1 −3 (vii) a
(ii) 12
(iii) 1
(v) e−2x(x+1)
(vi) a 2
4.3.3 The natural exponential function ex 525600 I A. (i) £C 1 + 52560000 31536000 I (ii) £C 1 + 3153600000
B. (i) 2.7183 (ii) 1.1052 (iii) 7.3891 C. y = ex − 1
y
y
1
y = 1 − e −x x
0
x
D. x = 0.
4.3.4 Manipulation of the exponential function (i) eA+2B+3C (iv) e−A+4B−4
2
+2x−2y−3
(ii) e2(2x+y)
(iii) ex
(v) (1 + e−2A )2
(vi) e−A−2B + e−3B + eB−2A + e−A
4.3.5 Logarithms to general base A. (i) 256 (v) 81
(ii) 8 (vi) e
(iii) e4
(iv) 729
2
B. (i) 3
(ii) 4
(iii) 3
(iv) 2
1 2
(vi) 4
(vii) 7
(viii) 5
(v)
4.3.6 Manipulation of logarithms A. (i) ln e17 = 17 (v) ln(x (3+2/ ln a) ) 140
(ii) log2 (x 5 ) 1 1− log a 2a (vi) loga x
(iii) loga (2xy) (vii)
4 ln(x 1+ ln a )
(iv) 0
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
B. (i) ln 3 + 2 ln x + ln y
(ii) 3 + 2 log2 x + 3 log2 y
(iii) A − B
(iv) x + a loga y
(v) 3 + 2 log2a x + 4 log2a y C. (i) D.
E.
(vi) 2 ln x + 2 ln y + 2 ln z
9x 4a
(ii)
(i) 5
(ii) 2
(iv) 4
1 2
(v)
a −2x+3 2 (iii) 2 (vi) 2001
(vii) −2
(viii) −1
(ix)
1 3
(i) 2
(ii) 3
(iii)
2 3
(iv) −10 log 2 F. y =
1 x
(v) log 7
x − 1 −3x−C e x+1
4.3.7 Some applications of logarithms A. (i) 2.528
(ii) 0.792
B. (i) ln y = ln 4 + 7 ln x (iv) ln y = ln 20 − 2x
(iii) 0.809
(ii) ln y = ln 3 − 4 ln x
(iv) 0.828 (iii) ln y = ln 5 − 3 ln x
(v) ln y = (4 ln 2)x − ln 2
141
5
Geometry of Lines, Triangles and Circles One can hardly get more practical than surveying and designing buildings and other structures and geometry underpins all these and much more, such as computer aided design. This chapter consolidates the key areas of basic geometry. It is relatively elementary in content, but not in concepts, some of which are found to give students considerable difficulty. Here these are covered concisely, offering plenty of practice.
Prerequisites It will be helpful if you know something about: ➤
ratio and proportion (14 ) measurement of angles elementary properties of triangles Pythagoras’ theorem area and perimeter of a circle solution of algebraic equations (Chapter 2 elementary algebra (Chapter 2 )
➤
➤
• • • • • • •
)
Objectives In this chapter you will find: • • • • • • • • • •
142
division of a line in a given ratio intersecting and parallel lines and angular measurement triangles and their elementary properties congruent triangles similar triangles the intercept theorem the angle bisector theorem Pythagoras’ theorem lines and angles in a circle cyclic quadrilaterals
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Motivation You may need the material of this chapter for: • • • • • •
the study of structures – from molecular and crystalline to ‘big’ engineering computer aided design problems in statics coordinate geometry (Chapter 7) vector algebra and its applications (Chapter 11) applications in differentiation and integration (Chapters 8, 9, 10)
5.1 Review ➤ 147 160 ➤➤
5.1.1 Division of a line in a given ratio
A line AB of length 30 cm is divided internally by a point P in the ratio 3 : 2. Find the lengths of AP and P B. Repeat for the case when P divides AB externally in the same ratio.
5.1.2 Intersecting and parallel lines and angular measurement ➤ 148 160 ➤➤
A. Give the angles in (a) degrees (b) radians corresponding to the following fractions of a full revolution 1 2 1 (iv) 12 (i)
1 3 3 (v) 4
1 4 5 (vi) 8
(ii)
(iii)
B. If l1 , l2 are straight lines, name and evaluate the missing angles. l1
a b
40°
c
l2
Figure 5.1
143
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
C. For (i) and (ii) determine the lettered angles a, b, c, d, e. Equal arrows denote parallel lines.
a
b 85°
c
b a 60°
e
(i)
c
d
(ii)
Figure 5.2
➤ 150 160 ➤➤
5.1.3 Triangles and their elementary properties
Determine the lettered angles. Crossbars on lines denote that they have equal length. b
70°
a
60°
b
a
65°
(i)
c
(ii)
Figure 5.3
➤ 152 161 ➤➤
5.1.4 Congruent triangles
For each of (i), (ii) state whether the pair of triangles is congruent. Equal angle arcs denote equal angles. A
B
D
C (i)
Figure 5.4
144
B A
C
D (ii)
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
➤ 152 162 ➤➤
5.1.5 Similar triangles The triangles ABC and DEF are similar. A D
C
B
F
E
Figure 5.5
If BC = 5.0 cm, AB = 4.0 cm, AC = 3.0 cm and F E = 3.0 cm find: (i) (ii)
the ratio between the sides of the two triangles; the lengths of the remaining sides, DF , DE.
What is the angle BAC? ➤ 153 162 ➤➤
5.1.6 The intercept theorem Find the missing length, DB, in each of the figures below: A 4
5
D
E
1.5 D
B
6
2
E
3
B
C
C
A (i)
(ii)
Figure 5.6
➤ 153 163 ➤➤
5.1.7 The angle bisector theorem If AD bisects the angle A, find the length of DB. A 2
1
C
9/10
D
B
Figure 5.7
145
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
➤ 154 163 ➤➤
5.1.8 Pythagoras’ theorem
The largest sides of a right angled triangle have lengths 5 and 6 units. What is the length of the third side? ➤ 156 163 ➤➤
5.1.9 Lines and angles in a circle Determine the angles indicated (O is the centre of the circle) A
A
50° 20° O
B O a
a
B
b
30°
40°
c
C
D (i)
C (ii)
A
O b 35°
D a
A
30°
B
O
B
a C (iv)
P (iii)
Figure 5.8
➤ 159 165 ➤➤
5.1.10 Cyclic quadrilaterals Determine the angles indicated. A
A a
C
95°
146
b
b
D
3a
C (i)
Figure 5.9
O
125°
d D
B
(ii)
B
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
5.2 Revision ➤
5.2.1 Division of a line in a given ratio
143 160 ➤
Points and lines are regarded as undefined primitive concepts (that is, we assume we all know what is meant by them) in geometry, in terms of which the axioms or rules of geometry may then be expressed. A point is a geometrical element which has a position, but no size or extent. A line is a straight one-dimensional geometrical figure of infinite length and no thickness. There is a unique straight line passing through two specified points A and B. A line segment is a finite portion of a line between two fixed points. Its length is the shortest distance between the points in a plane. Note that we are talking simply about geometry on a plane here, rather than, for example spherical geometry, which deals with geometrical properties on the surface of a sphere. Much elementary geometry depends on the division of a line by a point. We say a point P on a line AB divides the line internally in the ratio p : q if P is between A and B AP p and AP : P B = p : q, or = (14 ). PB q If a point P is on AB produced (that is, extended in the direction AB), then P is said p AP = . to divide AB externally in the ratio p : q if AP : P B = p : q or PB q ➤
Solution to review question 5.1.1
For division internally we have, letting AP = x cm, say:
30 − x
x A
P
B
Then P B = (30 − x) cm, and since AP : P B = 3 : 2 we have
or
x 3 = or 2x = 3(30 − x) = 90 − 3x 30 − x 2 5x = 90
So x = 18 and hence AP = 18 cm and P B = 12cm. Alternatively, if we let the length of AP be 3y units and that of P B 2y units, then 3y + 2y = 5y = 30, from which y = 6. Thus, AP is 18 cm and P B 12 cm as before. For division externally let AP = x then, from the figure below, AP x 3 = = PB x − 30 2 or
x = 90 147
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
So AP = 90 cm and P B = 60 cm.
x 30 A
B
P x − 30
5.2.2 Intersecting and parallel lines and angular measurement
143 160 ➤
➤
Given two intersecting lines, in a plane, the angle between them is the amount of rotation required to superimpose one on the other, measured in some conventional (usually anticlockwise as shown) direction. We denote the angle by AOB (see Figure 5.10). A
O
∠AOB
B
Figure 5.10 Definition of angle.
Sometimes, if it is helpful, we use an arc to denote an angle, but usually we try to avoid cluttering up a diagram. The angle is usually measured in degrees, with one degree, denoted 1° , being 1/360 of a full rotation. Alternatively, we can measure angles in radians. One radian (1 rad or 1c for ‘circular measure’) is essentially the angle subtended at the centre of a circle by an arc of length equal to the radius. If this rather obtruse definition does little for you, just note that the number of radians in a complete revolution will be the number of times that the radius divides the circumference, which is simply 2π. So there are 2π radians in a complete revolution and therefore 2π radians = 360 degrees = 360° Since 180° is half a full rotation, it follows that angles which add together to make 180° form a straight line – such angles are called supplementary. C
A
180° O
Figure 5.11 Supplementary angles AOC and COB.
148
B
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
In Figure 5.11 AOC and COB are supplementary. An angle of 90° is a rotation through a quarter circle and is called a right angle. In diagrams a right angle between two lines is always denoted by a small square at their intersection – if this is not present then you cannot assume the angle is 90° , even though it may look like it on the diagram. Angles which add up to 90° are called complementary angles. Two lines which intersect at right angles are said to be perpendicular to each other. Angles between 0° and 90° are called acute. Angles between 90° and 180° are called obtuse. Angles greater than 180° are called reflex. When two lines intersect, vertically opposite angles are equal:
a
b
a
b
Figure 5.12 Intersecting lines.
Two lines are parallel if they do not intersect, no matter how far they are extended – we say they ‘meet at infinity (wherever that is)’. We denote parallel lines by equal numbers of arrow-heads as in Figure 5.13. Equal angles are denoted by equal numbers of crossbars on the angle arcs.
a
b c
Figure 5.13 Angles on parallel lines.
As noted earlier, remember that we are talking about plane geometry here. Parallel lines drawn on the surface of a sphere for example do not satisfy the sorts of properties we will be discussing for parallel lines in a plane. The line drawn crossing the parallel lines in Figure 5.13 is called a transversal. In Figure 5.13 pairs of angles such as a and b, on opposite sides of the transversal are called alternate angles, while pairs of angles a and c are called corresponding angles. For two parallel lines, as shown in Figure 5.13 alternate angles are equal, as are corresponding angles, i.e. a = b = c. 149
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Solution to review question 5.1.2
(i)
1 2
× 360° = 180° (ii)
(iv) 30°
1 3
➤
A. (a) A full revolution is 360° , so a fraction (12 p is 360° , i.e.: q
)
p of a full revolution q
× 360° = 120° (iii)
(v) 270°
1 4
× 360° = 90°
(vi) 225°
p A full revolution is 2π radians, so a fraction of a full revolution q p is × 2π, i.e. q 1 × 2π = π radians 2 π 1 × 2π = radians (iii) 4 2 3π (v) radians 2 (i)
1 2π × 2π = radians 3 3 π (iv) radians 6 5π (vi) radians 4 (ii)
B. Referring to Figure 5.1 a and c are both supplementary angles to 40° and so a = c = 140° . b is the vertically opposite angle to 40° and is thus given by b = 40° . C. (i) By vertically opposite angles for intersecting lines we have a = 60° in Figure 5.2(i). Then by corresponding angles b = a = 60° . Finally, supplementary angles give c = 180° − 60° = 120° . (ii) Corresponding angles in Figure 5.2(ii) give a = 85° , then b = 85° , whence opposite angles gives c = b = 85° . Corresponding angles then gives d = c = 85° . Supplementary angles finally gives e = 180° − 85° = 95° . ➤
5.2.3 Triangles and their elementary properties
144 160 ➤
A triangle is any plane figure with three sides formed from line segments. There are three types of interest – a scalene triangle has three sides, and angles, of different lengths; an isosceles triangle has two sides of equal length standing on a base side with which the two equal sides make equal angles; an equilateral triangle has all three sides of equal length and three equal angles (all 60° ). A triangle in which all angles are acute is called an acute-angled triangle. If one angle is 90° it is called a right-angled triangle. If one angle exceeds 90° we say the triangle is obtuse. The most basic property of a plane triangle is that the sum of its angles is 180° . (This is not true for ‘spherical triangles’, drawn on the surface of a sphere – can you think of a ‘triangle’ on a sphere that has 270° ?) This property of plane triangles is worth proving in terms of elementary facts of which we are already sure. We can do this for a general triangle ABC, acute-angle or obtuse, as follows. Draw a straight line, through A, parallel 150
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
to the opposite side BC – see Figure 5.14. Since we already know that for two parallel lines, alternate angles are equal, then we can say a = d and c = e. A a
b
c
a
d
e
C
d B
C
b
A c
e B
Figure 5.14 Sum of the angles in a triangle.
Also, from angles on a straight line we have a + b + c = 180° Hence
d + b + e = 180°
which proves the result. Another important property of triangles is that an exterior angle of a triangle is equal to the sum of the two opposite interior angles. Again, the proof involves additional construction and is not difficult, as shown in Figure 5.15. B b
a A
c
d C
e D
Figure 5.15 Exterior angle.
AC is ‘produced’ or extended to D. An additional line is also drawn through C parallel to AB. Then, by alternate angles we have d = b, and by corresponding angles we have e = a. So, d + e = external angle at C = a + b, as required, i.e. BCD = BAC + CBA. Solution to review question 5.1.3
(i) Referring to Figure 5.3(i) we have a = 180° − 70° − 60° = 50° by angles in a triangle. Then b = 70° + 60° = 130° by the external angle result, or alternatively by angles on a straight line b = 180° − a = 180° − 50° = 130° . (ii) Since the triangle in Figure 5.3(ii) is isosceles, a = 65° . So b = 180° − 2 × 65° = 50° and c = b + 65° = 115° by the external angle result or by angles on a line c = 180° − 65° = 115° . 151
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
➤
5.2.4 Congruent triangles
144 161 ➤
We often need to compare pairs of triangles. Two triangles are called congruent if they are identical. They may not look identical, because they may be rotated with respect to each other, so we need a test to determine when two triangles are identical. For this, the corresponding angles of the two triangles must be identical, and the corresponding sides must be of the same length. However, it is not necessary to check all these conditions to ensure that two triangles are congruent. The following provide alternative tests for congruent triangles: • • • •
three sides of one triangle must be equal to three sides of the other two sides and the angle between them in one triangle must be equal to two sides and the enclosed angle in the other triangle two angles and one side in one triangle must be equal to two angles and the corresponding side in the second triangle for right-angled triangles, the right angle, hypotenuse and side in the first triangle must be equal to the right angle, hypotenuse and the corresponding side in the second triangle.
Solution to review question 5.1.4
(i) In Figure 5.4(i) AD is equal to BC, and DC is equal to AB. AC is a common side. So ACD and ABC are congruent triangles, since all corresponding sides are equal. (ii) With AC as a common side and two identical sides AB, AD, the triangles ABC and ACD in Figure 5.4(ii) have two sides of identical length. They also have two equal angles DCA and ACB. However, these angles are not those between the pair of identical sides in the two triangles (second test in the text above) so the triangles are not necessarily congruent. ➤
5.2.5 Similar triangles
145 162 ➤
If one triangle is simply an enlargement or rotation of another triangle, then we say the two triangles are similar. So the three angles of one triangle are equal to the three angles of the other, similar triangle, and the corresponding sides of the two triangles are in the same ratio. However, we don’t need to test both of these conditions, since it can be shown that they are equivalent, i.e. that if two triangles contain the same angles then their corresponding sides are in the same ratio. Solution to review question 5.1.5
Since ABC and DEF in Figure 5.5 are similar, then the ratios of corresponding sides are equal. (i) In this case the ratio is equal to BC/F E = 5/3. (ii) Thus, AB/DE = 4/DE = 5/3 whence DE = 12/5 cm. Similarly(!) AC/DF = 3/DF = 5/3, so DF = 9/5 cm. 152
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Angle BAC looks like a right angle, but this doesn’t mean that it is. In fact in this case it is, because, as you may have noticed, the sides satisfy Pythagoras: 32 + 42 = 52 (➤ 154). ➤
5.2.6 The intercept theorem
145 162 ➤
The intercept theorem states that a straight line drawn parallel to one side of a triangle divides the other two sides in the same ratio (14 ) (see Figure 5.16) i.e. AD/DC = AE/EB. ➤
A
D
E
C
B
Figure 5.16 The intercept theorem.
Thus, for example, if we know AD, DC, AE say then we can deduce EB. The proof of this theorem may be found in most standard books on geometry and relies on the fact that ABC and AED are similar triangles. Solution to review question 5.1.6
(i) By the intercept theorem, since ED is parallel to CB in Figure 5.6(i), the line ED divides sides AC and AB in the same ratio. Hence 4 AD 5 AE = = = EC 6 DB DB So DB = 15/2 units. (ii) This is the case where the parallel intercept is actually outside the triangle (Figure 5.6(ii)). This in fact makes no difference to the result and again, by the intercept theorem, AD 3 BD BD = = = DC 1.5 DE 2 So DB = 4 units. ➤
5.2.7 The angle bisector theorem
145 163 ➤
The intercept theorem is about dividing the sides of triangles. Here we consider a theorem which divides an angle of a triangle: the line bisecting an angle of a triangle divides the side opposite to that angle in the ratio (14 ) of the sides containing the angle (see Figure 5.17). ➤
153
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
A
C
P
AP = Altitude AM = Median AD = Angle bisector
D
B
M
Figure 5.17 Altitude, median and angle bisector.
So the angle bisector theorem states that CD AC = AB DB The angle bisector should not be confused with two other lines dropped from a vertex of a triangle – the altitude and the median, also shown in Figure 5.17. The altitude is the line drawn from a vertex of a triangle, perpendicular to the opposite side. A median of a triangle is the line joining a vertex to the midpoint of the opposite side. You might like to explore the circumstances under which two or more of these lines are in fact the same thing. Solution to review question 5.1.7
By the angle bisector theorem we have, in Figure 5.7. CD AC = AB DB 2 × 9/10 9 CD × AB = = So DB = AC 1 5 ➤
5.2.8 Pythagoras’ theorem For any right-angled triangle ABC Pythagoras’ theorem tells us that (BC)2 + (AC)2 = (AB)2 B
A
Figure 5.18 Pythagoras’ theorem.
154
C
146 163 ➤
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
We can see that this works by checking it for a few simple triangles – the 3 : 4 : 5 being the classic example. But this is not a proof – it is merely induction from a few cases, not deduction from fundamental axioms. There are numerous proofs of Pythagoras’ theorem – we will give one which has the sort of common sense appeal an engineer might enjoy. Take four identical copies of any right-angled triangle, sides a, b, c and arrange them as shown in Figure 5.19, to form a square of side a. While you are at it, just check that all your visual arguments can be expressed solely in purely symbolic or geometrical terms – imagine, for example, that you could not see or draw the diagram, and that you had to describe and justify the whole thing to a friend. Now from triangles AED and DH C, DH = c and DE = b, so H E, the side of the small internal square is b − c. The same argument applies to all pairs of adjacent triangles. A
a
B
E a
a
H
c
D
b
a
C
Figure 5.19 Proof of Pythagoras’ theorem.
The total area of the1 big square is four times the area of the triangle ‘half base times height’ = 2 bc , plus the area of the small square. So
a 2 = 4 × 12 bc + (b − c)2 ➤
which with a bit of algebra (42
) simplifies to
a 2 = b2 + c2 Solution to review question 5.1.8
Of the two given sides, the longest, 6, must be the hypotenuse. If the shortest side is x then we have x 2 + 52 = 62 so
x=
√ 62 − 52 = 11 155
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
➤
5.2.9 Lines and angles in a circle
146 163 ➤
Figure 5.20 reminds you of the main definitions relating to a circle. ent Tang
Minor arc
s Radiu
Centre
Minor sector Major segment
er et
Di
Centre
am
Major sector
nt
me
eg or s
Min
M ajor arc
Figure 5.20 Definitions in circles.
There is not much that can be said about the circle in isolation, other than to note its perfect symmetry and the standard perimeter formula ‘2πr’ and area formula ‘πr 2 ’ where r is the radius. It is when you start considering parts or arcs of the circle, or particular lines related to the circle that things get interesting. First note that, in geometry, we are not concerned so much with measuring aspects of the circle or its parts. We are more concerned about relations between them, independent of numerical values. An example would be the result that chords which are equidistant from the centre are of the same length. This result does not help in calculating the lengths of chords, it simply states a relationship between certain types of chords. Two obvious lines of importance are the radius and tangent. As shown in Figure 5.20 the tangent is perpendicular to the radius at its point of contact. Consider an arc of a circle – a connected part of the circumference. If the arc has length less than half of the circumference then it is called a minor arc, otherwise it is a major arc. In Figure 5.21 A B
O
D C
Figure 5.21 Angles subtended by arcs.
156
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
the angle subtended by the minor arc AB at the centre O is AOB. We say the angle ACB stands on the minor arc AB, which is said to subtend an angle ACB at the circumference. Exactly the same statements can be made replacing C by D. Implicit in the definitions is the assumption that there is just one angle subtended at the circumference – i.e. that ACB = ADB. As we state below, this is in fact the case. Now let’s add a chord to the circle. There are two important results to note regarding chords. •
Chords equidistant from the centre are of equal lengths
To see this consider the triangles formed by connecting the ends of two such chords to the centre. These two triangles have two corresponding sides (the radii) equal, and the corresponding enclosed angles are equal. The triangles are therefore congruent, and so their third sides (i.e. the length of the chords) are also equal. •
The perpendicular bisector of a chord of a circle passes through the centre of the circle
The proof is similar to that of the first result using congruent triangles, but the result is sufficiently ‘self evident’ to gloss over here. The next results concern the angles subtended by arcs at the centre and on the circumference. Whilst it is important that you understand and can use the results, the proofs are not important to us here. •
The angle subtended by an arc at the centre of a circle is twice the angle subtended at the circumference (Figure 5.22) a a O 2a
O 2a
Figure 5.22 Angle subtended at the centre is twice that on the circumference.
• •
All angles subtended at the circumference by the same arc are equal The angle in a semicircle is 90° – i.e. the angle subtended by a diameter is a right angle
The last result follows from the fact that a semicircle subtends an angle of 180° at the centre of a circle. Any angle subtended at the circumference must, by the above results, be equal to half this, namely 90° . Finally, we give some important results relating to the properties of tangents to circles. A tangent to a circle is a straight line which touches it at exactly one point – the point of contact. A straight line which cuts a circle at two distinct points is called a secant (a chord is thus a segment of a secant). An important property of the tangent is: 157
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
•
A tangent to a circle is perpendicular to the radius drawn through the point of contact.
O
Figure 5.23 Tangent perpendicular to radius.
One can see this by constructing two radii extended to any two points either side and equidistant from the point of contact (Figure 5.23). By symmetry, the resulting triangles have corresponding sides equal and are therefore congruent (152 ) and must have corresponding angles equal. This implies that the angle of intersection between the tangent and radius at point of contact is 12 × 180° = 90° . Two other important results are ➤
• •
The two tangents drawn from an external point to a circle are equal in length. The angle between a tangent and a chord through the point of contact is equal to the angle subtended by the chord in the alternate segment (Figure 5.24).
D A E ∠DAC = ∠ABC ∠EAB = ∠ACB
C B
Figure 5.24 Angle in alternate segment.
158
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Solution to review question 5.1.9
(i) Referring to Figure 5.8, a = 360° − AOB, and AOB = 2 ACB = 2 × 40° = 80° . So a = 280° . (ii) Equal angles subtended by equal arcs gives ACB = c = ADB = 30° . Angles in triangle ABD then gives a = 180° − 30° − 70° = 80° . Equal angles subtended by equal arcs now gives DAC = 20° = DBC = b. So a = 80° , b = 20° , c = 30° . (iii) OA = OB, so triangle ABO is isosceles and therefore a = 35° and b = 180° − 35° − 90° = 55° , since the chord bisector OP is perpendicular to the chord AB. (iv) The angle DAB is subtended by a diameter and is therefore 90° . So from triangle ABD, ABD = 180° − 30° − 90° = 60° . But the angles subtended by the chord AD at B and C are the same and so a = 60° also. ➤
5.2.10 Cyclic quadrilaterals
146 165 ➤
The results so far essentially rely on fitting triangles into circles – we say the circle circumscribes the triangle. In general, when a circle circumscribes a polygon the vertices of the polygon lie on the circle. (A circle is circumscribed by a figure, or inscribed in a figure when all sides of the figure touch the circle.) The next step up is to consider circumscribed quadrilaterals – i.e. quadrilaterals whose vertices lie on a circle, and sides inside the circle. This is called a cyclic quadrilateral. See Figure 5.25 showing the cyclic quadrilateral ABCD. A a
D
2c 2a
O
B c C
Figure 5.25 Cyclic quadrilateral.
The main result on cyclic quadrilaterals is that: •
The opposite angles of a cyclic quadrilateral are supplementary – i.e. add up to 180° .
The proof is interesting and not difficult. In Figure 5.25, with obvious notation we have 2a + 2c = 360° = 2(a + c) = 2( DAB + DCB) Hence
DAB + DCB = 180° 159
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Solution to review question 5.1.10
(i) In Figure 5.9(i) we have BAD + BCD = 180° = a + 125° . So a = 55° by supplementary angles in a cyclic quadrilateral. By angles on a line, d = 180° − 95° = 85° . Then by supplementary angles ABC = 180 − d = 95° and angles on a line gives b = 180° − 95° = 85° . (ii) In Figure 5.9(ii) opposite angles in a cyclic quadrilateral gives a + 3a = 4a = 180° So a = 45° . Then b = 2a = 90° .
5.3 Reinforcement 143 147
➤
➤➤
5.3.1 Division of a line in a given ratio
A. The line AB is 4 cm long. P is a point which divides AB internally in the ratio AP : P B = p : q for the values of p and q given below. In each case determine the lengths AP , P B. Repeat the exercise when the division is external, in the same ratios. Leave your answers as fractions in simplest form. (i) 2 : 1
(ii) 3 : 2
(iii) 5 : 4
(iv) 3 : 7
(v) 1 : 5
B. With the same ratios as in Question A, it is given that AP = 2 cm. Determine P B and AB in each case.
5.3.2 Intersecting and parallel lines and angular measurement
➤➤
143 148
➤
➤➤
144 150
➤
Fill in all remaining angles:
80° 130°
(i)
(ii)
5.3.3 Triangles and their elementary properties
A. In each case the pairs of angles are angles in a triangle. Determine the other angle, and the corresponding external angle. (i) 32° , 45° 160
(ii) 73° , 21°
(iii) 15° , 21°
(iv) 85° , 65°
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
B. Determine all the angles in triangles with the following angles and opposite external angles respectively (i) 25° , 114°
(ii) 63° , 80°
(iii) 45° , 65°
(iv) 27° , 115°
C. (i) Find angles a, b, c, d: b
120° a
c
d
(ii) Find a, b, c, d, e, f : a b
c
d
e
➤➤
5.3.4 Congruent triangles
144 152
➤
f
62°
Identify, where possible, a pair of congruent triangles: A B
A C
D
D (i)
C
B
(ii)
A
D
B C (iii)
(iv)
161
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
145 152
➤
➤➤
5.3.5 Similar triangles
A. The triangles ABC and P QR are similar. Find the lengths of all sides of P QR for the values of x given by (i) 1 cm (ii) 2 cm (iii) 3.5 cm (iv) 4 m: A m 1c
P
2.3
2.
cm
C 3 cm
R
Q
x
B
B. Triangles ABC and P QR are similar. Given that AB/P Q = p/q, determine all the sides of both triangles for p/q values (i) 3/2 (ii) 7/3 (iii) 3/8:
A
1 cm
P
cm
C
B
R
Q
2 cm
➤➤
5.3.6 The intercept theorem
145 153
Find the missing lengths x, y, z, u in the figures below, to two decimal places: A A 2
2.1
E 2.4
2
1.5
B
D
E
D
x
y
1 C
C
B (ii)
(i)
A A
B
u E
1
z E
D C (iii)
7
4
1
1.5
162
1 D
C
B (iv)
➤
1. 7
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
145 153
➤
146 154
➤
➤➤
5.3.7 The angle bisector theorem Find the missing lengths x, y, z, u, v: A A
x
C
2
y
D
1
2
2.5
C
B
B
z
(ii)
(i)
A
A
1
C
D
1.1
1.7 0.8 D
u
2
1.7
B
C
v
(iii)
D
1.8
B
(iv)
➤➤
5.3.8 Pythagoras’ theorem
A. Regarding the pairs of lengths given in (i) to (v) as the (a) shortest (b) longest sides of a right angled triangle (in consistent units) determine the third side in each case. Leave your answers in surd form. (i) 3, 5
(ii) 5, 12
(iii) 24, 25
(iv) 8, 17
(v) 3, 4
B. Determine the longest rod that may be placed in a rectangular box of edges 3, 4, 6 units. 146 156
➤
➤➤
5.3.9 Lines and angles in a circle
A. A, B, C are three points on a circle centre O, taken clockwise in that order. Given the following angles, determine the others named. (i)
ACB = 35° , AOB
(ii)
ACB = 70° , AOB
(iii)
AOB = 60° , ACB
(iv)
AOB = 86° , ACB
B. Referring to Question A now assume the points A, B, C are such that AC = BC. For each case specified in Question A, determine all angles in the triangles AOC, AOB and BOC. C. Determine the angles labelled with a letter: 163
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
A a
A a
C
4a
d
D
B
O
100° O
B c C
(i)
(ii)
A a
A
D d
B
a
35° 70°
O
O B
D
40°
C
C (iii)
(iv)
D. Determine the labelled angles: c b O
a
60° O
b 4a
a
(i)
(ii)
a
65°
b
c
(iii)
O
O
a
b (iv)
164
50°
3a a (v)
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
E. An equilateral triangle of side 30 cm circumscribes a circle. Find the radius of the circle. F. A circle of unit radius is inscribed in a right-angled isosceles triangle. Determine the lengths of the sides of the triangle. 146 159
➤
➤➤
5.3.10 Cyclic quadrilaterals Determine angle a: 0° 12
A
B
O D a C
5.4 Applications 1. A major problem in surveying occurs when there is an obstacle, such as a river, that the survey line has to cross, but which we cannot easily walk round or put a tape across. There are three common methods to solve this, relying on elementary geometry – mainly similar triangles. These are illustrated in Figure 5.26(a), (b), (c). B
B
B
H H
F
E
G
E
G
C
D
F C
A
D A
J (a)
G
(b)
F
E
C A (c)
Figure 5.26
(a)
A ranging pole is put at H on the far bank. CE, on the near bank, is set off perpendicular to AB, which is constructed perpendicular to the river. A pole is ranged in to a point F on EH and a perpendicular is dropped from F onto AB at G. Show that GH =
(b)
CG × F G EC − F G
A line DE is set out on the near bank and bisected at C. F CG is now set out such that F C = CG. With a pole H on AB on the far 165
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(c)
bank, a pole can be set at J on the intersection of the lines EG and H C produced backwards. Show that J G = F H . The line AB crosses the river on the skew and poles placed at F and G on the near and far banks respectively. DF is set out along the near bank, so GF is perpendicular to GF . A perpendicular from D is constructed to meet AB at C. Show that EG =
CE × EF ED
Discuss the relative merits of each of the methods. 2. A railway track floor is cut into the side of a hill with slope 1 in k. Both sides of the cutting have slope 1 in m. If produced into the earth the slopes of the cutting intersect at a point G (see Figure 5.27). The flat horizontal bed of the cutting is at a depth h below the point where the centre line GL intersects the line of the slope of the hill. The width of the cutting floor is b. L
w2
w1
1 in k
1i
nm
C
h b 2
b 2 E
G
Figure 5.27
Show that the distance, w1 from the up-slope edge of the cutting to the centre line GL is given by b k w1 = + mh 2 k−m and that the distance w2 between the centre line and the down-slope side is b k w2 = + mh 2 k+m Show that the area of the cutting is 1 b b2 + mh (w1 + w2 ) − 2m 2 2 166
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Find the difference in level between the floor of the cutting and the top of the bank on each side.
Answers to reinforcement exercises 5.3.1 Division of a line in a given ratio A. Internal division (AP , P B, all in cm) (i)
8 4 , 3 3
(ii)
12 8 , 5 5
(iv)
6 14 , 5 5
(v)
2 10 , 3 3
20 16 , 9 9
(iii)
External division (in cm) (i) 4, 8
(ii) 8, 12
(iv) 3, 7
(v) 1, 5
(iii) 16, 20
B. Internal division (in cm) 10 4 , 3 3 (v) 12, 10
(i) 3, 1 20 14 (iv) , 3 3
(ii)
(iii)
18 8 , 5 5
(iii)
2 8 , 5 5
External division (in cm) 2 4 , 3 3 (v) 8, 10
(i) 1, 1 8 14 (iv) , 3 3
(ii)
5.3.2 Intersecting and parallel lines and angular measurement
100° 80° 80° 130° 50° 50° 130°
130° 50° 50° 130° 100° 80° 80°
(i)
100° 80° 80°
100° 80° 80° (ii)
167
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
5.3.3 Triangles and their elementary properties A.
Other angle 103° 86° 144° 30°
(i) (ii) (iii) (iv) B.
External angle 77° 94° 36° 150°
(i) 25° , 66° , 89° (iii) 45° , 115° , 20°
(ii) 63° , 100° , 17° (iv) 27° , 65° , 88°
C. (i) a = b = c = 60° , d = 120°
(ii) a = b = d = f = 59° , c = e = 62°
5.3.4 Congruent triangles (i) ADB and CBD are congruent (ii) ADC, ABC congruent (iii) Not congruent (iv) Not congruent
5.3.5 Similar triangles A. (i) (ii) (iii) (iv) B. (i)
P R = 0.7 cm P R = 1.4 cm P R = 2.45 cm P R = 2.1 m P Q = 1.13˙ cm
P Q = 0.76˙ cm P Q = 1.53˙ cm P Q = 2.683˙ cm P Q = 3.06˙ m P R = 0.6˙ cm
(ii) P Q = 0.73 cm (2dp) (iii) P Q = 4.53˙ cm
BC = 3 cm BC = 4.6˙ cm
P R = 0.43 cm P R = 2.6˙ cm
BC = 0.75 cm
5.3.6 The intercept theorem (i) DC = 2.29
(ii) EB = 1.3˙
(iii) AD = 1.5
(iv) AE = 1.75
5.3.7 The angle bisector theorem (i) x = 2, y = 1
(ii) z = 1.375
(iii) u = 1.36
(iv) CD = 1.53
5.3.8 Pythagoras’ theorem A. (a) (i) (iv) 168
√ √
34
(ii) 13
353
(v) 5
(iii)
√
1201
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(b) (i) 4
(ii)
(iv) 15 B.
√
(v)
√ √
119
(iii) 7
7
61
5.3.9 Lines and angles in a circle A. (i) 70°
(ii) 140°
(iii) 30°
(iv) 43° B. (i) AOC and BOC are 17.5° , 145° , 175° ; AOB is 55° , 70° , 55° (ii) AOC and BOC are 35° , 110° , 35° ; AOB is 20° , 140° , 20° (iii) AOC and BOC are 15° , 150° , 15° ; AOB is 60° , 60° , 60° (iv) AOC and BOC are 21.5° , 137° , 21.5° ; AOB is 47° , 86° , 47° C. (i) a = 18° (iii) a =
55° ,
(ii) a = c = d = 50° d=
45°
D. (i) a = 18° , b = 36° (iii) a = 65° , b = 50° , c = 50°
(iv) a = 50° (ii) a = 30° , b = 60° , c = 30° (iv) a = 50° , b = 65°
(v) a = 36° √ E. 5 3 cm F.
√
2(1 +
√
2)
5.3.10 Cyclic quadrilaterals a = 30°
169
6
Trigonometry Trigonometry (literally: ‘the measurement of triangles’ – ‘trig’ from now on) is a fairly straightforward topic conceptually, but there always seems a lot to remember. In fact you only have to remember a few key results – but you have to remember them very well. For example look at the function cos 2θ cos θ + sin θ If you have to consult a formula book to remind yourself that cos 2θ = cos2 θ − sin2 θ and the difference of squares identity a 2 − b2 = (a − b)(a + b) then it might not even occur to you to simplify this to the form cos2 θ − sin2 θ (cos θ − sin θ )(cos θ + sin θ ) = cos θ + sin θ cos θ + sin θ = cos θ − sin θ However, there is no need to remember the double angle formulae in detail because you can get them easily from the compound angle formulae for cosine and sine, which you should remember well. In this chapter we will cover such fundamental topics of trigonometry, and encourage you to learn just a few key formulae very well so that you can use these to derive other formulae as you need them.
Prerequisites It will be helpful if you know something about: angular measurement using degrees and radians (148 ratio and proportion (14 ) properties of triangles (150 ) Pythagoras’ theorem (154 ) plotting graphs (91 ) inverse of a function (100 ) surds (20 ) ➤ ➤ ➤ ➤
➤
➤
Objectives In this chapter you will find: • radian measure and the circle • definitions of the trig ratios 170
➤
• • • • • • •
)
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
• • • •
the sine and cosine rules and solution of triangles graphs of the trig functions inverse trig functions the Pythagorean identities such as cos2 θ + sin2 θ = 1
• compound angle formulae such as sin(A + B) = sin A cos B + sin B cos A and their consequences such as the double angle formulae • solution of simple trig equations • The a cos θ + b sin θ form
Motivation You may need the material of this chapter for: • • • • •
solution of triangles in statics, surveying, etc. describing, analysing and combining oscillations and waves (➤ Chapter 17) evaluating trig and other integrals (➤ Chapter 9) describing angular motion describing alternating current circuits
6.1 Review ➤ 173 194 ➤➤
6.1.1 Radian measure and the circle A. Express as radians (i) 90°
(ii) −30°
(iii) 45°
(iv) 270°
(v) 60° .
B. Express the following radian measures in degrees (i)
5π 6
(ii)
3π 2
(iii) −
7π 4
(iv) 4π
(v) −
2π 3
C. An arc of a circle of radius 2 subtends an angle of 30° at the centre. Find (i) the length of the arc (ii) the area of the sector enclosed by the arc and the bounding radii.
6.1.2 Definition of the trig ratios
➤ 174 194 ➤➤
Write down the exact values of the following (i.e. in surd form) (i) cos 0 π (iv) sin 4 (vii) tan 90°
(ii) cos 2π π (v) cos 2 (viii) sin 0
(iii) sin 90° (vi) sin 45° (ix) sin 60° 171
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
2π 3 (xiii) cos 30°
π 3 (xiv) sin 30° 3π (xvii) cos 2
(x) sin
(xii) tan 45° π (xv) tan 3 (xviii) tan(−60° )
(xi) cos
(xvi) cos 45°
π 3 (xxiii) tan(−135° )
(xxiv) sec 30°
(xxvi) cot 60°
(xxvii) sec 120°
(xx) cos −
(xix) sin(−120° ) (xxii) cos(225° ) (xxv) cosec π/4 π (xxviii) cos − 2
(xxi) sin(585° )
(xxix) cosec(−60° )
6.1.3 Sine and cosine rules and solutions of triangles For the triangle below find (i) a
➤ 178 194 ➤➤
(ii) θ .
60°
5
2 q
a
6.1.4 Graphs of the trigonometric functions
Sketch the graphs of
(i) 3 sin t −
π 2
π (ii) 4 cos 2t − 6
6.1.5 Inverse trigonometric functions
➤ 180 195 ➤➤ π (iii) tan t + 2 ➤ 184 195 ➤➤
Evaluate the following inverse trigonometric ratios in the range 0 ≤ θ ≤ 90° : √ √ 3 3 −1 1 −1 −1 (ii) sin (iii) cos (i) sin 2 2 2 √ 1 1 (iv) cos−1 (v) tan−1 √ (vi) tan−1 ( 3) 2 3
6.1.6 The Pythagorean identities – cos2 Y sin2 = 1
➤ 185 195 ➤➤
Complete the following table in which each angle is in the first quadrant: sin θ (i) (ii) (iii)
172
1 7
cos θ
1 √ 3
tan θ
1 √ 2
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
➤ 187 196 ➤➤
6.1.7 Compound angle formulae A. Expand sin(A + B) in terms of sine and cosine of A and B. B. From A derive similar expansions for (i) sin(A − B)
(ii) cos(A − B)
(iii) tan(A + B)
√ 1 1 3 C. Given that sin 45° = cos 45° = √ , cos 60° = , sin 60° = , evaluate 2 2 2 (i) cos 75°
(ii) sin 105°
(iii) tan(−75° )
D. Express cos 2A in trigonometric ratios of A. √ 1 3 ° E. Given that cos 30 = , sin 30° = , evaluate 2 2 (i) sin 15°
(ii) tan 15° ➤ 191 196 ➤➤
6.1.8 Trigonometric equations Find the general solution of each of the equations: (i) (ii)
sin θ + 2 sin θ cos θ = 0 cos 3θ = cos θ ➤ 192 197 ➤➤
6.1.9 The a cos q Y b sin q form Express cos θ + sin θ in the form (i) r sin(θ + α)
(ii) r cos(θ + α)
6.2 Revision ➤
6.2.1 Radian measure and the circle
171 194 ➤
As noted in Section 5.2.2, a radian is the angle subtended at the centre of a circle by an arc with length equal to that of the radius. It follows that θ radians =
180 θ degrees π
The length of arc of a circle of radius r, subtending angle θ radians at the centre is by definition s = rθ . See Figure 6.1. The area of the enclosed sector is A = 12 r 2 θ . This follows because the total area of the circle is πr 2 and a sector with angle θ radians forms θ of that area. a fraction 2π 173
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
s A q
Figure 6.1 Radians, arc, sectors. Solution to review question 6.1.1
90 π ×π = radians 180 2 30 π × π = − radians −30° = − 180 6 45 π 45° = ×π = radians 180 4 3 270 × π = π radians 270° = 180 2 60 π 60° = ×π = radians 180 3
A. (i) 90° = (ii) (iii) (iv) (v) B. (i) (ii) (iii) (iv) (v)
5π 5π 180 radians = × = 150° 6 6 π 3π 3π 180 radians = × = 270° 2 2 π 7π 180 7π × = −315° − radians = − 4 4 π 180 4π radians = 4π × = 720° π 2π 180 2π × = −120° − radians = − 3 3 π
C. (i) Length of arc s = rθ , θ in radians. π π 30° = 30° × = radians 180 6 π π So s = 2 × = 6 3 1 π 1 π (ii) Area of sector A = r 2 θ = · 22 · = 2 2 6 3 ➤
6.2.2 Definition of the trig ratios
171 194 ➤
If ABC is the right-angled triangle, shown in Figure 6.2, then the trigonometric ratios are defined by: 174
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
A
q
C
B
Figure 6.2
AB = sin θ (sine of θ ) AC
AC 1 = cosec θ (cosecant of θ ) = AB sin θ
BC = cos θ (cosine of θ ) AC
AC 1 = sec θ (secant of θ ) = BC cos θ
AB = tan θ (tangent of θ ) BC
BC 1 = cot θ (cotangent of θ ) = AB tan θ
sin θ . cos θ Treating θ as an independent variable, these might also be regarded as trigonometric functions (90 ) of θ . For general angles, greater than 90° the sign of each ratio depends on the quadrant it is in – an example in the second quadrant is shown in Figure 6.3. Note that tan θ = ➤
y 2nd quadrant
P
1st quadrant
r y q
x
x
3rd quadrant
4th quadrant
Figure 6.3 General angles.
sin θ =
y NP = r OP
cos θ =
x −ON = r OP
tan θ =
y NP = x −ON
where r = OP = x 2 + y 2 > 0, ON and N P are the positive lengths indicated and x, y are the coordinates of P , including appropriate signs. θ is measured anticlockwise – the 175
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
‘positive direction’ – as shown. Note that for any angle, θ , | sin θ | and | cos θ | are both ≤ 1. The negative of θ , −θ , means a rotation through angle θ in the clockwise direction from the positive x-axis. From Figure 6.3 it then follows that cos θ is an even function of θ , cos(−θ ) = cos θ and sin θ is an odd function of θ , sin(−θ ) = − sin θ (94 ). So, is tan θ even or odd? The signs of the trig ratios in the different quadrants can be remembered from ‘All Silly Tom Cats’ (or you might have learnt ‘CAST’, which is not so jolly), going anticlockwise round the diagram below ➤
Sine only positive
All positive
Tan only positive
Cosine only positive
which tells us which ratios are positive in the respective quadrants. It is useful to memorise the trig ratios for the commonly occurring angles 30° , 45° , 60° , which can be conveniently obtained from the triangles shown in Figure 6.4.
30° √3
2
√2
1
45°
60° 1
1
Figure 6.4 30–60 and 45 triangles.
√
1 3 From Figure 6.4 we see directly that, for example sin 60° = , cos 60° = , tan 30° = 2 2 1 √ . 3 The term ‘cosine’ is not accidental – cosine of θ is the sine of (90 − θ ). As noted in Section 5.2.2, if two angles α, β, sum to 90° they are said to be complementary. β is the complement of α and vice versa. From the triangle shown in Figure 6.5 it is readily A a
C
b
Figure 6.5 α and β are complementary angles.
176
B
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
seen that sin α = cos β = cos(90° − α) cos α = sin β = sin(90° − α) tan α = cot β = cot(90° − α) cot α = tan β = tan(90° − α) i.e. the ‘co-trig ratio’ is the ratio of the complementary angle. Solution to review question 6.1.2
You will find it very useful to commit as many of these as possible to memory. Many of these results can be obtained from Figure 6.4. (i) cos 0 = 1 (ii) cos 2π = 1 (iii) sin 90° = 1 π 1 (iv) sin = √ (this is the exact value – see Figure 6.4) 4 2 π (v) cos = 0 2 π 1 (vi) sin 45° = sin = √ 4 2 (vii) tan 90° is, strictly, not defined but it is usual to take it as ∞ (viii) sin 0 = 0 √ 3 (ix) sin 60° = 2 √ 2π 3 π (x) sin = sin = 3 3 2 π 1 (xi) cos = 3 2 (xii) tan 45° = 1 √ 3 ° (xiii) cos 30 = 2 1 (xiv) sin 30° = 2 √ π (xv) tan = 3 3 1 (xvi) cos 45° = √ 2 3π π (xvii) cos = cos = 0 2 2 √ (xviii) tan(−60° ) = − tan 60° = − 3 √ 3 ° ° (xix) sin(−120 ) = − sin 120 = − 2 177
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
π π 1 (xx) cos − = cos = 3 3 2
1 (xxi) sin(585° ) = sin(225° ) = − sin(45° ) = − √ 2 1 (xxii) cos(225° ) = − cos(45° ) = − √ 2 (xxiii) tan(−135° ) = − tan(135° ) = −(− tan 45° ) = −(−1) = 1 √ (xxiv) sec 30° = 1/ cos 30° = 2/ 3 √ (xxv) cosec π/4 = 1/ sin(π/4) = 2 √ (xxvi) cot 60° = 1/ tan 60° = 1/ 3 (xxvii) sec 120° = 1/ cos 120° = −1/ cos 60° = −2 π (xxviii) cot − = − cot(π/2) = 0 2 √ (xxix) cosec(−60° ) = −1/ sin 60° = −2/ 3 ➤
6.2.3 Sine and cosine rules and solutions of triangles
172 194 ➤
For general triangles two important rules apply. We use the standard notation – capital A, B, C for the angles with corresponding lower case letters labelling the opposite sides (Figure 6.6). A
c
b
B
C a
Figure 6.6 Standard labelling of angles and sides.
The sine rule states that b c a = = sin A sin B sin C i.e. the sides of a triangle are proportional to the sines of the opposite angles. We can see this by using the result for the area of a triangle − 12 base × height. We can calculate this area in three different ways, giving: 1 bc sin A 2
= 12 ac sin B = 12 ab sin C
The sine rule then follows by dividing by 12 abc and taking the reciprocals of the results. Incidentally, there is another useful formula (Heron’s formula) for calculating the area of a triangle with sides a, b, c: area = s(s − a)(s − b)(s − c) 178
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
where s = (a + b + c)/2, the semi-perimeter of the triangle. This result is very useful in surveying, for example. Note that the sine rule can only be used if we know at least one side and the angle opposite to that side. Failing such information, we may be able to use the cosine rule, which states that a 2 = b2 + c2 − 2bc cos A The proof for this is instructive and illustrates yet again the power of Pythagoras – we only consider the case of acute angles, but the rule holds for all angles. Consider the triangle shown in Figure 6.7, with altitude h (154 ). ➤
A
c
b
h
C
B x a
Figure 6.7 Proof of cosine rule.
➤
We have, by Pythagoras’ theorem (154
):
h2 = b 2 − x 2 = c2 − (a − x)2 ➤
which simplifies to (42
)
c2 = a 2 + b2 − 2ax But x = b cos C, so c2 = a 2 + b2 − 2ab cos C The result is clearly ‘symmetric’ under the rotation of labels of the sides and corresponding angles, so we get also a 2 = b2 + c2 − 2bc cos A and b2 = a 2 + c2 − 2ac cos B It may help to think of it is as (side)2 = sum of squares of opposite sides − 2× product of opposite sides × cos of their included angle. 179
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
These results may be used to solve triangles given appropriate information. A triangle can be ‘solved’ for all angles and sides if we know either: • • • •
three sides two sides and an included angle two angles and one side two sides and a non-included angle – but in this case the answers can be ambiguous (see RE6.3.3(ii)).
Solution to review question 6.1.3
This is the case of two sides and an included acute angle. (i) By the cosine rule, with b = 2, c = 5 and A = 60° we have a 2 = 22 + 52 − 2 × 2 × 5 × cos 60° 1 = 4 + 25 − 2 × 10 × 2 = 19 So
a=
√
19
(ii) We can now find sin θ from the sine rule √ 2 19 a = = ° ° sin 60 sin 60 sin θ So
√ 3 2 sin 60° = √ = 0.3974 to 4 decimal places sin θ = √ 19 19
∼ 23.4° . Hence θ = Note: The other angle is obtuse (180° − 23.4° ), but the sine rule applied to this angle would not tell us this – it is always safest to go for the angle that is obviously acute when using the sine rule to solve triangles. 172 195 ➤
➤
➤
6.2.4 Graphs of the trigonometric functions ➤
We now focus on the trig ratios as functions (90 ) and look at their graphs (91 ). This requires careful thought about what happens to the trig functions as the independent variable, θ , changes. As the trig functions are functions of an angular variable their values will keep repeating – because, for example, θ + 360° is in the same angular position as θ , and therefore sin(θ + 360° ) = sin θ, cos(θ + 360° ) = cos θ , etc. We express this generally by saying that the trigonometric functions cos, sin, and tan are periodic with period 360° (or 2p) by which we mean that for such functions (NB: in future we will usually use radian measure for angles, rather than degrees – it is by far the safest policy when we are regarding the trig ratios as functions, particularly in calculus – as a rule of thumb, if a 180
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
question is given in terms of degrees/radians, then the answer should be given in the same form) f (θ + 360° ) ≡ f (θ + 2π) = f (θ ) Thus, in particular cos(θ + 2π) = cos θ and tan(θ + 2π) = tan θ This is reflected in the oscillatory nature of the graphs of the functions – the form of the graph repeats itself at intervals of 2π for sin and cos, and at intervals of π for tan. This ‘minimum repeating interval’ is called the period of the function. In general, if f (x + p) = f (x) for all x for some constant p then we say f (x) is periodic with period t. Of course, it also follows that if f (x) has period p then f (x + np) = f (x) for any positive integer n (provided f is defined at x + np), but the term ‘period’ is usually reserved for the smallest value of the period over which the function repeats. What, then, is the actual period of tan θ ? The cosine and sine functions are particularly important in engineering and science, representing, as they do, general wave-like behaviour. Indeed if you think about the really fundamental types of physical change that we commonly experience, they are either ‘exponential’ growth or decay (127 ), or wave-like/oscillatory, which we can express in terms of trig functions. Of course, in reality most oscillatory behaviour is ‘damped’, and this is often expressed by multiplying the trig function by a decaying exponential. The graphs of the trigonometric functions cos θ , sin θ and tan θ are shown below. cos and sin repeat every cycle of 2π and oscillate between −1 and +1. tan repeats every cycle of π, and is ‘discontinuous’ (➤ 414) at odd multiples of π/2, tending to either −∞ or +∞. Also, notice that the cosine graph is simply the sine graph shifted along the axis by π/2. ➤
1 sin q
0 −2p
− 3p 2
−p
−p 2
p 2
p
3p 2
2p
q
−1
Figure 6.8 sin θ , −2π ≤ θ ≤ 2π .
181
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
1 cos q
−2p
− 3p 2
−p
−p 2
p 2
0
3p 2
p
2p
q
−1
Figure 6.9 cos θ
− 2π ≤ θ ≤ 2π .
tan q
1
− 3p 2
−p
− 5p 4
− 3p 4
−p 2
−p 4
0
p 4
p 2
3p 4
p
5p 4
3p 2
q
−1
Figure 6.10 tan θ
−
3π 3π ≤θ ≤ . 2 2
Trig functions are very often used in describing time varying wave-like behaviour, where a typical functional form might be the sinusoidal function of t: y = A sin(ωt + α) Such a wave-like graph is called a sine wave (whether it is cos or sin). A is called the amplitude of the wave, 2π/ω its period, since it repeats after this cycle, ω/2 its frequency and α its phase. This terminology is standard in the theory of waves in science and engineering. The solutions to the review question provide a number of examples. 182
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Solution to review question 6.1.4
(i) 3
−2p
− 3p 2
−p
(
3 sin t −
0
−p 2
p 2
) t
2p
3p 2
p
p 2
−3
(ii) 4
−p
− 5p 6
− 2p 3
− p 2
− p 3
− p 6
(
4 cos 2t − p 6
0
p 6
p 3
)
5p 6
2p 3
p 2
p
t
−4
(iii)
(
tan t + p 2
−p
− p 2
0
p 2
) p
t
183
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
➤
6.2.5 Inverse trigonometric functions
172 195 ➤
The inverse function (100 ) of sin x is denoted sin−1 x (Sometimes the notation ‘arcsin x’ is used). That is if y = sin x then x = sin−1 y. So sin−1 x is the angle whose sine is x. Similarly ➤
cos−1 x tan−1 x sec−1 x cosec−1 x cot−1 x
= angle = angle = angle = angle = angle
whose whose whose whose whose
cosine is x tangent is x sec is x cosec is x cot is x
Note that because, for example, 1 sin 135° = sin 45° = √ 2 1 the quantity sin−1 √ can take more than one value – we say it is multi-valued. In 2 general, because of periodicity all the inverse trigonometric functions are multi-valued. Thus, for a given x, sin−1 x will yield an infinite range of values. In order to restrict to a unique value of sin−1 x for each value of x we take what is called the principal value of sin−1 x, which is the value lying in the range π π − ≤ sin−1 x ≤ 2 2 1 −1 √ is 45° . This is shown in Figure 6.11. So, for example, the principal value of sin 2 y p/2
−1
0
y = sin−1x 1
x
−p 2
Figure 6.11 Inverse sine, sin−1 x.
Similarly we can define principal values for the other inverse trigonometric functions – Figure 6.12 illustrates the principal value ranges for cos−1 x and tan−1 x. Since the inverse functions are multi-valued we need expressions for the general solution of equations such as sin y = x, i.e. we need to obtain expressions for the most general angle given by sin−1 x and other inverse functions. We will simply state the results here: sin−1 x = nπ + (−1)n PV cos−1 x = 2nπ ± PV tan−1 x = nπ + PV 184
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
y y p/2
p
y=
cos−1x
y = tan−1x
p/2
x
0 −1
0
1
x
−p 2
Figure 6.12 Inverse cosine, cos−1 x and inverse tan, tan−1 x.
where PV is the principal value. Sometimes the principal value is distinguished by using a capital initial letter, for example we might denote the PV of sin−1 x by Sin−1 x. Solution to review question 6.1.5
In the range 0° ≤ θ ≤ 90° we have, referring to Figure 6.4: √ 3 −1 1 −1 ° (i) sin = 30 (ii) sin = 60° 2 2 √ 3 −1 −1 1 ° (iii) cos = 30 (iv) cos = 60° 2 2 √ 1 −1 (v) tan √ = 30° (vi) tan−1 ( 3) = 60° 3 ➤
6.2.6 The Pythagorean identities – cos2 Y sin2 = 1
172 195 ➤
The standard trigonometric identities are normally found on a formulae sheet. However, the key identities should actually be memorised – and indeed should be second nature. In fact, you only have to remember one or two, from which the rest may then be derived. A sufficient minimal set to remember is in fact: cos2 θ + sin2 θ = 1 and
sin(A + B) = sin A cos B + sin B cos A
If you have these at your fingertips most of the others are easily recalled or derived from them. The first is the subject of this section, the second is treated in Section 6.2.7. The Pythagorean identities are cos2 θ + sin2 θ ≡ 1 1 + tan2 θ ≡ sec2 θ cot2 θ + 1 ≡ cosec2 θ ➤
These can be obtained, as their name suggests, from Pythagoras’ theorem (154
): 185
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
r
y
q
x
We have x2 + y2 = r 2 Dividing by r 2 gives x 2 r
+
y 2
r
=1
or cos2 θ + sin2 θ = 1 This identity should definitely become second nature to you – it is absolutely vital. By dividing through by cos2 θ we get 1 + tan2 θ = sec2 θ and dividing through by sin2 θ gives cot2 θ + 1 = cosec2 θ , so there is no need to remember all three identities. Solution to review question 6.1.6
(i) Using cos2 θ + sin2 θ = 1 we have cos2 θ = 1 − sin2 θ = 1 −
so
1 48 = 49 49
48 in first quadrant 49 √ 4 3 = 7 sin θ 1 1/7 Then tan θ = = √ = √ cos θ 4 3/7 4 3 √ 1 2 2 (ii) sin θ = 1 − cos θ = 1 − = 3 3 2 √ tan θ = 3 = 2 1 √ 3 1 (iii) sec2 θ = = 1 + tan2 θ cos2 θ 3 1 2 =1+ √ = 2 2 cos θ =
186
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
so cos2 θ =
2 3
cos θ =
2 3
sin2 θ = 1 − cos2 θ = 1 −
1 2 = 3 3
and therefore 1 sin θ = √ 3 ➤
6.2.7 Compound angle formulae
173 196 ➤
The basic compound angle formulae are: sin(A + B) ≡ sin A cos B + cos A sin B sin(A − B) ≡ sin A cos B − cos A sin B cos(A + B) ≡ cos A cos B − sin A sin B cos(A − B) ≡ cos A cos B + sin A sin B tan A + tan B 1 − tan A tan B tan A − tan B tan(A − B) ≡ 1 + tan A tan B tan(A + B) ≡
Note that there is no need to remember all these results separately. We can get all of them from the result for sin(A + B), and the elementary properties of the trig ratios (see solution to review question). Also, get used to ‘knowing them backwards’ that is going from right to left, recognising how the right-hand side simplifies to the left-hand side. Since the sin(A + B) result is so important we will take the trouble to prove it. The proof is instructive since it contains lots of ideas already covered. We use one of those mystical constructions which makes geometry so pretty. Consider Figure 6.13. P Q is drawn at Q perpendicular to the line making angle A with the base line OT , and meets the corresponding line defining the compound angle A + B at P . P S and QT are dropped perpendicular to OT and RQ is then drawn parallel to OT . By alternate angles (149 ) OQR = A. Since P QR is a right angled triangle QP R is the complement (149 ) of RQP and is therefore equal to OQR = QOT = A. Also, RS = QT . ➤ ➤
Now sin(A + B) =
PS P R + RS P R + QT = = OP OP OP PR QT QT OQ P R QP = + = · + · OP OP OQ OP QP OP = sin A cos B + cos A sin B 187
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
P A R
A
Q
B A O
S
T
Figure 6.13 Proof of sin(A + B) = sin Acos B + cos A sin B.
Putting A = B in the compound angle identities immediately gives the double angle formulae: sin 2A ≡ sin A cos A cos 2A ≡ cos2 − sin2 A ≡ 2 cos2 A − 1 ≡ 1 − 2 sin2 A 2 tan A tan A ≡ 1 − tan2 A The cos 2A results are often more useful in the form sin2 A = 12 (1 − cos 2A) cos2 A = 12 (1 + cos 2A) From the double angle formulae we easily deduce the half angle identities. If t = tan θ/2, then: 2t 2t 1 − t2 tan θ ≡ sin θ ≡ cos θ ≡ 1 − t2 1 + t2 1 + t2 For example: tan θ = tan(2 × θ/2) =
2 tan θ/2 2t = 1 − tan2 θ/2 1 − t2
from the double angle formula. Solution to review question 6.1.7
A. sin(A + B) = sin A cos B + sin B cos A is so important it should be at your fingertips. 188
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
B. (i) sin(A − B) = sin(A + (−B)) = sin A cos(−B) + sin(−B) cos A = sin A cos B − sin B cos A on using cos(−x) = cos x and sin(−x) = − sin x (ii) The result for cos(A − B) may now be obtained using complementary angles (149 ): ➤
cos(A − B) = sin(90 − (A − B)) = sin(90 − A + B) = sin(90 − A) cos B + cos(90 − A) sin B = cos A cos B + sin A sin B Or, perhaps quicker, simply differentiate (➤ 233) the result for sin(A − B) with respect to B – a common trick for obtaining ‘cosresults’ from ‘sin-results’. (iii) The result for tan(A + B) can be obtained by division: tan(A + B) = =
sin(A + B) sin A cos B + sin B cos A = cos(A + B) cos A cos B − sin A sin B tan A + tan B 1 − tan A tan B
on dividing top and bottom by cos A cos B. The key point here is that while certain results have to be second nature to you, such as the expansion of sin(A + B), it is just as important that you know how to derive others from them, rather than have to remember all the identities. C. Here we make good use of the compound angle formulae (i) cos 75° = cos(45° + 30° ) = cos 45° cos 30° − sin 45° sin 30° √ √ √ 1 1 1 3 2 −√ = ( 3 − 1) =√ 2 2 4 2 2 (ii) sin 105° = sin(60° + 45° ) = sin 60° cos 45° + sin 45° cos 60° √ 1 1 3 1 = √ +√ 2 2 22 √ √ √ ( 3 + 1) 2 3+1 √ = = 4 2 2 (iii) tan(−75° ) = − tan 75° = − tan(45° + 30° ) 189
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
−(tan 45° + tan 30° ) 1 − tan 45° tan 30° 1 √ 1+ √ √ 1+ 3 3 =− = √ = −2 + 3 (21 1 1− 3 1− √ 3 =
)
➤
D. From cos(A + B) = cos A cos B − sin A sin B, with A = B we get cos 2A = cos2 A − sin2 A Using sin2 A + cos2 A = 1 this can be expressed in two alternative forms: cos 2A = 2 cos2 A − 1 = 1 − 2 sin2 A 2 E. (i) Using cos 2θ = 1 − 2 sin θ
cos 30° = 1 − 2 sin2 15° 1 (1 − cos 30° ) 2 √ 1 3 = 1− 2 2 √ 2− 3 = 4 √ 2 − 3 so sin 15° = 2
so sin2 15° =
(ii) tan 2A =
2 tan A with A = 15° gives 1 − tan2 A
1 2x 2 tan 15° tan 30° = √ = = 2 15° 1 − tan 1 − x2 3 where x = tan 15° √ So 1 − x 2 = 2 3x √ or x 2 + 2 3x − 1 = 0 giving √ √ −2 3 ± 4 × 3 + 4 x= 2 √ −2 3 ± 4 = 2 √ =2− 3 (tan 15° is positive) 190
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
➤
6.2.8 Trigonometric equations
173 196 ➤
A trigonometric equation is any equation containing ratios of an ‘unknown’ angle θ , to be determined from the equation. One attempts to solve such an equation by manipulating it (possibly using trig identities) until it can be solved by solutions of one or more equations of the form sin θ = a cos θ = b tan θ = c As noted in Section 6.2.5, in general the solution to such equations will not be unique, but will lead to multiple values of θ . The general solution is that which specifies all possible solutions. Such general solutions can always be expressed as simple extensions of principal value solutions, which are those for which θ is confined to a specific range in which the above basic equations have unique solutions. Thus, from Section 6.2.5 the principal values for the elementary trigonometric ratios are: π π
π π sin θ, θ ∈ − , which means − ≤ θ ≤ 2 2 2 2 cos θ, θ ∈ [0, π] or 0 ≤ θ ≤ π π π
π π tan θ, θ ∈ − , or − ≤ θ ≤ 2 2 2 2 In each case there is only one principal value solution to each of the equations given above. If we are asked for a solution in a specific range of θ then we have to examine such equations as sin θ = a to determine which solutions fall in this range. An important type of equation is f (A) = f (B) where f is an elementary trig function. The general solutions for such equations are For cos A = cos B, we have A = 2nπ ± B For sin A = sin B, we have A = 2nπ + B or (2k + 1)π − B For tan A = tan B, we have A = nπ + B where in each case, n is an arbitrary integer. These results can be confirmed by inspecting the graphs in Figures 6.8–10. The solution to the review question provides an example. Solution to review question 6.1.8
(i) sin θ + 2 sin θ cos θ = sin θ (1 + 2 cos θ ) = 0 implies either sin θ = 0 or 1 + 2 cos θ = 0 sin θ = 0 has solutions θ = kπ where k is an integer The equation 1 + 2 cos θ = 0 or cos θ = − 12 has general solution θ=
2π 2π + 2mπ or − + 2nπ 3 3 191
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
where m, n are integers. So the general solution is 2π 2π θ = kπ, or + 2mπ, or − + 2nπ k, m, n are integers 3 3 NB – it is a common error to forget the sin θ = 0 part of the solution. (ii) cos 3θ = cos θ is an example of cos A = cos B for which we know 3θ = 2kπ ± θ where k = an integer So 4θ = 2kπ or 2θ = 2kπ We therefore obtain θ=
kπ 2kπ = 4 2
or
and so the general solution is
2kπ = kπ 2
kπ or kπ, with k = an integer. 2 ➤
6.2.9 The a cos q Y b sin q form
173 197 ➤
➤
The compound angle identities may be used, with a little help from Pythagoras (154 ), to convert an expression of the form a cos θ + b sin θ to one of the more manageable forms r cos(θ ± α) or r sin(θ ± α). The latter forms, for example, tell us immediately by inspection the maximum and minimum values of such expressions, and where they occur. This section uses a lot of what we have done, in particular the ‘minimal set’ of results to remember – cos2 θ + sin2 θ = 1, and the expansions of sin(A + B) and cos(A + B). To illustrate conversion of this form, we consider the example of a cos θ + b sin θ ≡ r sin(θ + α) Using the compound angle formula this implies a cos θ + b sin θ ≡ r cos α sin θ + r sin α cos θ This has got to be true for all possible values of θ , and to ensure this we equate the coefficients of cos θ , sin θ on each side to get r cos α = a r sin α = b ➤
where, by squaring and adding (185
), r =
√
a 2 + b2 and
a r b sin α = r
cos α =
from which α may be determined. Care is needed here if either a or b is negative – we have to look carefully at the quadrant that α lies in. 192
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Such a conversion simplifies the solution of equations such as a cos θ + b sin θ = c by conversion to the form cos(θ + α) =
c c =√ r a 2 + b2
for example. Solution to review question 6.1.9
(i) We assume that we can write cos θ + sin θ = r sin(θ + α) = r sin θ cos α + r cos θ sin α r cos α = 1
then
r sin α = 1 r = 12 + 12 = 2 √ and r= 2 1 Then cos α = √ 2 1 sin α = √ 2
so
2
so tan α = 1, in the first quadrant, and hence α = 45° and
cos θ + sin θ =
√
2 sin(θ + 45° )
(ii) In this case cos θ + sin θ = r cos(θ + α) = r cos θ cos α − r sin θ sin α so r cos α = 1 r sin α = −1 √ As before r = 2, so 1 cos α = √ 2
1 sin α = − √ 2
The appropriate solution in this case is α = −45° so
cos θ + sin θ =
√
2 cos(θ − 45° ) 193
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
6.3 Reinforcement 171 173
➤
➤➤
6.3.1 Radian measure and the circle A. Express as radians: (i) 36°
(ii) 101°
(iii) 120°
(v) 340°
(vi) −45°
(vii) −110°
(ix) 27°
(x) 273°
(iv) 250° (viii) 15°
B. Express the following radian measures in degrees in the range 0° ≤ θ < 360° . 2π 3 π (v) 6 2π (ix) − 5 (i)
π 2 2π (vii) 9
π 3 5π (viii) 4
(iii) −
(ii) 14π 5π 2 π (x) 12
(vi)
(iv)
C. Determine the length of arc and the area of the sector subtended by the following angles in a circle of radius 4 cm. (ii) 30°
(iii) 45°
(iv) 60°
(v) 90°
(vi) 120°
(vii) 160°
(viii) 180° ➤➤
6.3.2 Definitions of the trig ratios
171 174
➤
(i) 15°
A. Write down the exact values of sine, tan, sec, and complementary ratios for all ‘special’ angles 0, π/2, π/3, π/4, π/6. B. Classify as odd or even functions: cos, sin, tan, sec, cosec, cot. C. Express as trig functions of x (n is an integer): (i) sin(x + nπ) nπ (iv) sin x + 2
(ii) cos(x + nπ) nπ (v) cos x + 2
(iii) tan(x + nπ) nπ (vi) tan x + 2
where n is an integer. ➤➤
With the standard notation solve the following triangles. (i) A = 70° ,
C = 60° ,
b=6
(ii) B = 40° ,
b = 8,
c = 10
(iii) A = 40° ,
a = 5,
c=2
(iv) a = 5
b = 6,
c=7
194
172 178
➤
6.3.3 Sine and cosine rules and the solution of triangles
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
b = 3,
c=5
6.3.4 Graphs of trigonometric functions Sketch the graphs of π (i) 2 sin 2t + 3
172 180
➤➤
(vi) A =
172 184
➤
c=6
➤➤
b = 5,
120° ,
➤
(v) A = 40° ,
π (ii) 3 cos 3t − 2
6.3.5 Inverse trigonometric functions
A. Find the principal value and general solutions for sin−1 x and cos−1 x for the following values: 1 2 1 (v) √ 2
(i) 0 √
3 2
(iv)
1 2 1 (vi) − √ 2
(iii) −
(ii)
B. Find the principal value and general solutions for tan−1 x for the following values of x: √
(iii)
3
1 (v) − √ 3
(iv) −1
➤➤
(ii) 1
6.3.6 The Pythagorean identities – cos2 Y sin2 = 1
172 185
➤
(i) 0
A. (i) For c = cos θ , simplify (a)
√
1 − c2
(b) √
(ii) For s = sin θ , simplify (a)
√
1−
s2
√ (b)
c 1 − c2
1 − s2 s2
(c)
1 − c2 c2
(c)
s 1 − s2
(iii) For t = tan θ , simplify (a)
√ 1 + t2
(b)
t (1 + t 2 )
(c)
√
1
t 1 + t2
B. Eliminate θ from the equations (i) x = a cos θ,
y = b sin θ
(ii) x = a sin θ,
y = b tan θ
C. For the following values of sin θ , find the corresponding values of cos θ and tan θ without using your calculator, giving your answers in surd form, and assuming that θ is acute. (i)
2 5
(ii)
1 13
(iii)
7 25 195
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
D. If r cos θ = 3 and r sin θ = 4 determine the positive value of r, and the principal value of θ . 173 187
➤
➤➤
6.3.7 Compound angle formulae A. Prove the following (i) sin 3θ = 3 sin θ − 4 sin3 θ cos 2θ (iii) = cos θ − sin θ cos θ + sin θ cot2 θ − 1 (v) cot 2θ = 2 cot θ
(ii) cos 3θ = 4 cos3 θ − 3 cos θ (iv) cot θ − tan θ = 2 cot 2θ
B. Without using a calculator or tables evaluate (i) sin 15° cos 15° (v) tan(7π/12)
(ii) sin 15° (vi)
(iii) tan(π/12)
(iv) cos(11π/12)
cos 75°
C. Evaluate (i) sin 22.5°
(ii) cos 22.5°
(iii) tan 22.5°
√ given that cos 45° = 1/ 2. D. Express the following products as sums or differences of sines and/or cosines of multiple angles (i) sin 2x cos 3x
(ii) sin x sin 4x
(iii) cos 2x sin x
(iv) cos 4x cos 5x
E. Prove the following identities (Hint: put P = (A + B)/2, Q = (A − B)/2 in the lefthand sides, expand and simplify and re-express in terms of P and Q) P +Q P −Q (i) sin P + sin Q ≡ 2 sin cos 2 2 P +Q P −Q (ii) sin P − sin Q ≡ 2 cos sin 2 2 P +Q P −Q (iii) cos P + cos Q ≡ 2 cos cos 2 2 P +Q P −Q (iv) cos P − cos Q ≡ −2 sin sin 2 2 173 191
➤➤
A. Give the general solution to each of the equations: √ (i) cos θ = 0 196
(ii) cos θ = −1
(iii) cos θ = −
3 2
➤
6.3.8 Trigonometric equations
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(iv) sin θ = 0
(v) sin θ = −1
(vii) tan θ = 0
(viii) tan θ = −1
(vi) sin θ =
√
3 √ (ix) tan θ = 3
B. Find the general solutions of the equations (i) cos 2θ = 1
(ii) sin 2θ = sin θ
(iii) cos 2θ + sin θ = 0
(iv) cos 2θ + cos 3θ = 0
(v) sec2 θ = 3 tan θ − 1 173 192
➤
➤➤
6.3.9 The a cos q Y b sin q form A. Write the following in the form (a) r sin(θ + α), (b) r cos(θ + α) (i) sin θ − cos θ
(ii)
√
3 cos θ + sin θ
(iii)
√
3 sin θ − cos θ
(iv) 3 cos θ + 4 sin θ B. Determine the maximum and minimum values of each of the expressions in Question A, stating the values where they occur, in the range 0 ≤ θ ≤ 2π. C. Find the solutions, in the range 0 ≤ θ ≤ 2π, of the equations obtained by equating the expressions in Question A to (a) 1 (b) −1.
6.4 Applications 1. In the theory of the elasticity of solids a crucial step in establishing the connection between the elastic constants and Poisson’s ratio is to determine a relation between the normal strain in the 45° direction, ε, and the shear strain for a square section of the sort shown in Figure 6.14. By considering Figure 6.14b, where the diagonal BD is stretched by a factor 1 + ε, and using the fact that for small angles γ (in radians) sin γ ∼ = γ , show that γ ε∼ = 2 (a)
(b)
S
p +g 2
S p −g 2
S
S
S
)
+e
g
S
1 2(
S
S√ S
Figure 6.14
2. In alternating current theory we often need to add sinusoidal waves of the same frequency but different amplitude and phase, such as A1 sin(ωt + α1 ) and 197
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
A2 sin(ωt + α2 ). When we come to complex numbers we will see how this sort of thing can be done using objects called phasors (371 ), but really such methods are simply shorthand for the ideas covered in this chapter. In particular we can add two waves that are 90° out of phase using the results of Section 6.2.9, since A1 sin(ωt + 90° ) + A2 sin(ωt) is equivalent to a cos(ωt) + b sin(ωt). For additions such as A1 sin(ωt + α) + A2 sin(ωt), where α is other than 90° , phasor methods are equivalent to constructing a parallelogram with sides A1 and A2 and included angle α and taking the combined amplitude as the length of the diagonal, r, and the combined phase to be the angle, θ , made by the diagonal with the side A2 (see Figure 6.15). ➤
A1 sin(ωt + α) + A2 sin(ωt) = r sin(ωt + θ )
A1 a
R q
A2
Figure 6.15
Use the above methods to find the sine waves representing: (i) 4 sin(ωt) + 3 cos(ωt)
(ii) 6 sin(ωt) + 4 sin(ωt + 45° )
Answers to reinforcement exercises 6.3.1 Radian measure and the circle 2π 3 11π (vii) − 18
25π 18 π (viii) − 12
(ii) 0°
(iii) 270°
(iv) 60°
(v) 30°
(vi) 90°
(vii) 40°
(ix) 308°
(x) 15°
π 5 17π (v) 9 3π (ix) 20
A. (i)
B. (i) 120°
C. (i)
π 2π , 3 3
(v) 2π, 4π
101π 180 π (vi) − 4 91π (x) 60 (ii)
2π 4π , 3 3 8π 16π (vi) , 3 3 (ii)
(iii)
(iii) π, 2π (vii)
32π 64π , 9 9
(iv)
(viii) 225°
(iv)
4π 8π , 3 3
(viii) 4π, 8π
Note: If you are adept with ratios you will have noticed that with the given radius the area will always have a magnitude double that of the arc length. 198
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
6.3.2 Definitions of the trig ratios A. θ
0
π/2
sin θ
0
1
tan θ
0
nd
π/3 √ 3 2 √ 3
sec θ
1
nd
2
cos θ
1
0
cot θ
nd
0
cosec θ
nd
1
π/4
π/6
1 √ 2
1 2 1 √ 3 2 √ √3 3 2 √ 3
1 2 1 √ 3 2 √ 3
1 √
2
1 √ 2 1 √
2
2
(nd = not defined) B. cos and sec are even; sin, cosec, tan, cot all odd. C. (i) (−1)n sin x
(ii) (−1)n cos x
(iii) tan x
(iv) (−1)(n−1)/2 cos x if n odd, (−1)n/2 sin x if n even (v) (−1)n/2 cos x if n even, (−1)
n+1 2
sin x if n odd
(vi) tan x if n even, – cot x if n odd.
6.3.3 Sine and cosine rules and the solution of triangles (i) B = 50°
a = 7.36,
c = 6.78
(all answers to 2 decimal places) (ii) Two solutions: C = 53.46
A = 86.54° ,
C = 126.54° , (iii) C = 14.9° ,
a = 12.42
A = 13.36° , B = 125.1° ,
a = 2.9 b = 6.36
(the obtuse solution for C is inadmissible in this case) (iv) A = 44.42° , B = 57.11° , (v) a = 3.88, (vi) a = 7,
B = 55.98° ,
B = 21.77° ,
C = 78.47°
C = 84.02°
C = 38.21° 199
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
6.3.4 Graphs of trigonometric functions (i)
(
2 sin 2t + p 3
2
−p
− 7p 6
− 5p − 2p 3 6
− p 2
− p 3
0
− p 6
p 6
p 3
)
2p 3
p 2
5p 6
t
−2
(ii)
(
3
− 2p 3
− p 2
− p 3
− p 6
3 cos 3t − p 2
0
p 6
p 3
p 2
) = 3 sin (3t ) 2p 3
t
−3
6.3.5 Inverse trigonometric functions A. sin−1 x PV
sin−1 x GS
0
0
nπ
1 2 1 − 2
π 6 π − 6
π 6 π nπ + (−1)n+1 6
x
(i) (ii) (iii) 200
nπ + (−1)n
cos−1 x PV
cos−1 x GS
π 2 π 3 2π 3
π 2 π 2nπ ± 3 2π 2nπ ± 3 2nπ ±
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
√
3 2 1 √ 2 1 −√ 2
(iv) (v) (vi)
π 3 π nπ + (−1)n 4 π nπ + (−1)n+1 4
π 3 π 4 π − 4
π 6 π 2nπ ± 4 3π 2nπ ± 4
π 6 π 4 3π 4
nπ + (−1)n
2nπ ±
where n is an integer B. tan−1 x
0
1
PV
0
π 4
GS
nπ
nπ +
√
π 3 π 4
nπ +
1 −√ 3
−1
3
− π 3
π 4
nπ −
− π 4
π 6
nπ −
π 6
6.3.6 The Pythagorean identities – cos2 Y sin2 = 1 A. You may obtain different forms of the answers – consider it a further exercise to check their equivalence to the following! (i) (a) sin θ
(b) cot θ
(c) tan2 θ
(ii) (a) cos θ
(b) cosec θ cot θ
(c) sec θ tan θ
(iii) (a) sec θ
(b) sin θ cos θ
(c) cos θ cot θ
B. (i)
x2 y2 + =1 a2 b2 √
C. (i)
21 2 , √ 5 21
(ii) y = √
bx a2 − x2
√ 2 42 1 (ii) , √ 13 2 42
(iii)
24 7 , 25 24
D. 5, 53.13°
6.3.7 Compound angle formulae 1 B. (i) 4
√ √ 2( 3 + 1) (iv) − 4 √ (2 − 2) C. (i) 2
√ √ 2( 3 − 1) (ii) 4 √ (v) −(2 + 3) √ 2+ 2 (ii) 2
√ (iii) 2 − 3 √ √ 2( 3 − 1) (vi) 4 √ (iii)
6(2 − 6
√
2) 201
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
D. (i) (iv)
1 (sin 5x − sin x) 2 1 (cos 9x + cos x) 2
(ii)
1 (cos 3x 2
− cos 5x)
1 (sin 3x 2
(iii)
− sin x)
6.3.8 Trigonometric equations π 2 π (v) nπ + (−1)n 2
A. (i) 2nπ ±
(ii) Undefined, or ‘∞’
(iii) 2nπ ±
(vi) No solutions
(vii) nπ
B. (i) nπ (iv)
(ii) 2nπ or
(2n + 1) π 5
(v) nπ +
π 4
(2n + 1) π 3
5π 6
(iv) nπ (viii) nπ +
2 π nπ + 3 2 (vi) nπ + 1.11
(iii)
6.3.9 The a cos q Y b sin q form π 2 sin θ − 4 π (ii) (a) 2 sin θ + 3 π (iii) (a) 2 sin θ − 6
A. (i) (a)
√
(iv) (a) 5 sin(θ + 36.9° )
3π 2 cos θ − 4 π (b) 2 cos θ − 6 5π (b) 2 cos θ − 6
(b)
√
(b) 5 cos(θ − 53.1° )
√ 7π Min of − 2 at 4 π 7π (ii) Max of 2 at Min of −2 at 6 6 5π 2π Min of −2 at (iii) Max of 2 at 3 3 (iv) Max of 5 at 2.21 rads Min of −5 at 5.35 rads
B. (i) Max of
π , 2 π , (ii) (a) 2 π , (iii) (a) 3
C. (i) (a)
√
2 at
3π 4
3π 2 5π 3 π
(iv) (a) 2.3 rads, 5.84 rads
202
(b) 0, π 5π 3π , 6 2 4π (b) , 2π 3
(b)
(b) 2.7 rads, 5.44 rads
3π 4
7
Coordinate Geometry Coordinate Geometry turns ‘diagrammatic’ geometry of the sort discussed in Chapter 5 into algebraic and numerical equations. It is the language that we have to use when ‘talking’ to computers about geometry. Here we focus on the essential basics that are needed in science and engineering mathematics.
Prerequisites will be helpful if you know something about: plotting graphs and simple plane coordinate systems (91 Pythagoras’ theorem (154 ) ratio and proportion (14 ) systems of linear equations (48 ) intercept theorem (153 ) simple trig ratios and identities (175 ) completing the square (66 )
➤
)
➤
➤
➤ ➤
➤
➤
It • • • • • • •
Objectives In this chapter you will find: • coordinate systems in a plane • distance between two points in Cartesian coordinates • midpoint and gradient of a line segment • equation of a straight line • parallel and perpendicular lines • intersection of lines • equation of a circle • parametric representation of curves
Motivation
➤
You may need the material in this chapter for: • geometrical aspects of calculus (➤ Chapter 10) • numerical methods • study of laws converted to straight line form (135 • linear regression in statistics • vectors (➤ Chapter 11)
)
203
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
This chapter requires very little new material and much of it relies simply on Pythagoras’ theorem.
7.1 Review ➤ 205 220 ➤➤
7.1.1 Coordinate systems in a plane A. Plot the points with Cartesian coordinates (i) (0, 0) (iv) (−2, 4)
(ii) (0, 1)
(iii) (−1, 3)
(v) (−2, −3)
(vi) (0, −1)
(viii) (3, −2)
(vii) (3, 3)
B. Plot the points with polar coordinates (r, θ )
(i) (0, 0) π (v) 3, − 2
(ii) (0, π) π (vi) 2, 6
π 1, 2 2π (viii) 5, 3
(iii) (1, 0) 5π (vii) 6, 4
(iv)
➤ 208 221 ➤➤
7.1.2 Distance between two points
Find the distance between the following pairs of points referred to rectangular Cartesian axes. (i) (0, 0), (1, 1)
(ii) (1, 2), (1, 3)
(iii) (−2, 4), (1, −3)
(iv) (−1, −1), (−2, −3)
7.1.3 Midpoint and gradient of a line
➤ 209 221 ➤➤
Find the (a) mid-point and (b) the gradient of the line segments joining the pairs of points in Question 7.1.2.
7.1.4 Equation of a straight line
➤ 212 221 ➤➤
A. Determine the equations of the straight lines through the pairs of points in Question 7.1.2. B. Find the gradient and the intercepts on the axes of the lines (i) y = 3x + 2 (iv) x + y + 1 = 0 204
(ii) 2x + 3y = 1
(iii) y = 4x
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
➤ 214 222 ➤➤
7.1.5 Parallel and perpendicular lines
A. Find the equation of the straight line parallel to the line y = 1 − 3x and which passes through the point (−1, 2) B. Find the equation of the straight line perpendicular to the line through the points (−1, 2), (0, 4) and passing through the first point. ➤ 216 222 ➤➤
7.1.6 Intersecting lines Find all points where the following straight lines intersect. (i) x + y = 3
(ii) 2x + 2y = −1
(iii) y = 3x − 1 ➤ 217 222 ➤➤
7.1.7 Equation of a circle
A. (a) Write down the equation of the circles with the centres and radii given (i) (0, 0), 2
(ii) (1, 2), 1
(iii) (−1, 4), 3
(b) Determine the centre and radius of the circles given by the equations: (i) x 2 + y 2 − 2x + 6y + 6 = 0
(ii) x 2 + y 2 + 4x + 4y − 1 = 0 ➤ 219 222 ➤➤
7.1.8 Parametric representation of curves
Eliminate the parameter t and obtain the Cartesian equation of the curve, in terms of x and y: (i) x = 3t + 1, y = t + 2 (iii) x = 2 cos t − 1, y = 2 sin t
(ii) x = 6 cos 2t, y = 6 sin 2t (iv) x = cos 2t, y = cos t
7.2 Revision ➤
7.2.1 Coordinate systems in a plane
204 220 ➤
In Chapters 5 and 6 we never really had to fix our geometric objects in the plane in any way. A point such as the centre of a circle is special so far as the circle is concerned, but where it is located in the plane has no bearing on the properties of the circle. This characterises what is called synthetic or axiomatic geometry, in which the description of geometric objects such as lines and circles depends on their relation to each other. However, by locating points in space by means of a coordinate system, assigning numbers, or coordinates to each point, we can represent geometrical ideas by mathematical equations. This is the subject of coordinate geometry – also called analytical geometry. The simplest and most common coordinate system is the Cartesian coordinate system or rectangular coordinate system in a plane. An origin is chosen and two perpendicular lines through the origin are chosen as the x- and y-axes (91 ). The scale on each axis is taken to be the same in this chapter. Any point in the plane can then be specified by giving its x coordinate and y coordinate as an ordered pair (x, y). See, for examples, the solution to the review question. ➤
205
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Another two-dimensional coordinate system in common use is the polar coordinate system, especially convenient when dealing with engineering problems relating to circular motion for example. In polar coordinates an origin and an ‘initial line’ Ox radiating from this origin are chosen. The position of any point P is then referred to by specifying the distance, OP , from O to the point along a ‘radius vector’ whose angle, θ , with the initial line is also specified. Then the position of a point is specified by polar coordinates (r, θ ) (Figure 7.1). y
P
y r q
x
0
x
Figure 7.1 Cartesian (x, y) and polar (r, θ ) coordinates in a plane.
In Figure 7.1 the polar coordinates are shown superimposed on a rectangular coordinate system where the positive x axis coincides with the initial line. With this arrangement the relation between the coordinates is seen to be (175 ): ➤
x = r cos θ
y = r sin θ
Notice that in polar coordinates θ is measured anticlockwise and its value is restricted to 0 ≤ θ < 2π or sometimes −π < θ ≤ π (175 ). Also, the origin is somewhat special (‘singular’ is the technical term) in polar coordinates – its r coordinate is r = 0, but its θ coordinate is not defined. ➤
Example To plot the curve with polar equation r = 1 + 2 cos θ take some appropriate values of θ , and calculate 1 + 2 cos θ , as below. θ
0
π 6
π 4
π 3
π 2
2π 3
3π 4
5π 6
2 cos θ
2
1.732
1.414
1
0
−1
−1.414 −1.732 −2
1 + 2 cos θ
3
2.732
2.414
2
1
0
−0.414 −0.732 −1
π
These values are plotted in Figure 7.2. Note that negative values of r are plotted in the opposite direction to the positive values, so for example (−1, π) is plotted as (1, 0) – in the opposite direction to π. Now for any angle θ , cos(−θ ) = cos θ , therefore the same values of r will be obtained for negative values of θ , and we have only to reflect the curve in the initial line to obtain the complete plot. 206
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
p 2 p 3
2p 3
5p 6
p 6
1
p
2
0 2p
3
7p 6
11p 6
4p 3
5p 3 3p 2
Figure 7.2 Polar plot of r = 1 + 2 cos θ .
Solution to review question 7.1.1
A. (−2,4)
(−1,3)
y 4 (3,3)
3 2 1 (0,1) (0,0)
−4
−3
−2
−1
0
1
2
3
4 x
−1 (0,−1) −2
(3,−2)
(−2,−3) −3 −4
Figure 7.3 The points of 7.1.1(A).
207
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
B. p 2 2p 3
(i) and (ii) are both at the origin, O.
p 3
(viii
5p 6
) p 6
(vi)
(iv)
p
(iii) 1 2
(i) (ii)
3
4
5
0 2p
6
(v) 7p 6
11p 6
(vii)
5p 3
4p 3 3p 2
Figure 7.4 The points of 7.1.1(B) .
➤
7.2.2 Distance between two points
204 221 ➤
➤
By Pythagoras’ theorem (154 ) the distance between the two points (x1 , y1 ), (x2 , y2 ) is d = (x1 − x2 )2 + (y1 − y2 )2 as illustrated in Figure 7.5. From the diagram: d 2 = AB 2 = AC 2 + BC 2 = (x2 − x1 )2 + (y2 − y1 )2 Solution to review question 7.12
The distance between the points (x1 , y1 ), (x2 , y2 ), denoted d((x1 , y1 ), (x2 , y2 )) is 208
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
d((x1 , y1 ), (x2 , y2 )) = (x2 − x1 )2 + (y2 − y1 )2 √ (i) d((0, 0), (1, 1)) = (1 − 0)2 + (1 − 0)2 = 2 √ (ii) d((1, 2), (1, 3)) = (1 − 1)2 + (3 − 2)2 = 1 = 1
Note that in general d((a, y1 ), (a, y2 )) = |y2 − y1 | and d((x1 , b), (x2 , b)) = |x2 − x1 | √ (iii) d((−2, 4), (1, −3)) = (1 − (−2))2 + (−3 − 4)2 = 58 √ (iv) d((−1, −1), (−2, −3)) = (−2 + 1)2 + (−3 + 1)2 = 5
y y2
B (x 2, y2)
y2 − y1
d (x 1, y1)
y1
A
x1
0
C x2 − x1
x2
x
Figure 7.5 The distance between two points.
➤
7.2.3 Midpoint and gradient of a line
204 221 ➤
Given two points (x1 , y1 ), (x2 , y2 ) the midpoint of the line segment between them is at the point
x1 + x2 y1 + y2 , 2 2
as may be seen from Figure 7.6. To see this, note that by the intercept theorem (153 ) the x coordinate of the midpoint M of AB is the same as that of Q which divides BC in two. This is ➤
x1 +
x1 + x2 x2 − x1 = 2 2 209
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
y A (x2, y2)
M
B (x1, y1)
P
C
Q
x1
0
y2 − y1
x2
x
x2 − x1
Figure 7.6 Midpoint of a line segment.
Similarly for the y coordinate – it is the same as that of P , which is y1 + y2 y2 − y1 = 2 2 ➤
y1 +
More generally, again by using the intercept theorem or similar triangles (152 ), the point M that divides the line joining (x1 , y1 ) to (x2 , y2 ) in the ratio (14 ) µ : λ is ➤
λx1 + µx2 λy1 + µy2 , λ+µ λ+µ
It may help in remembering this to note that the λ and µ are adjacent to the ‘opposite’ points: m
M
(x1, y1)
l (x2, y2)
The gradient, or slope of the line is given by m=
AC y2 − y1 = BC x2 − x1
Note that this is the same as tan( ABC). This holds for all values of x1 , x2 , y1 , y2 except of course that x2 − x1 must be non zero, i.e. x1 = x2 . The case where x1 = x2 actually corresponds to a vertical line, parallel to the y-axis. Crudely, you might think of it as having an infinite gradient. If a line slopes upwards from right to left, i.e. y increases as x increases, then we have a positive gradient. If it slopes downwards to the right, or y decreases as x increases then the gradient is negative.
210
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Solution to review question 7.1.3
(a) The midpoints of the line segment joining (x1 , y1 ) and (x2 , y2 ) has coordinates x1 + x2 y1 + y2 , 2 2 (i) Applying this to the pair of points (0, 0), (1, 1), gives for the midpoint 0+1 0+1 1 1 = , , 2 2 2 2 (ii) For (1, 2), (1, 3) we get 1+1 2+3 5 , = 1, 2 2 2 (iii) For (−2, 4), (1, −3) we get 1 1 −2 + 1 4 − 3 watch out , = − , for the signs 2 2 2 2 (iv) For (−1, −1), (−2, −3) we get 3 −1 − 2 −1 − 3 = − , −2 , 2 2 2 (b) The gradient of the line segment joining the points (x1 , y1 ), (x2 , y2 ) is m=
y2 − y1 x2 − x1
1−0 = 1. 1−0 (ii) If we strictly apply the formula in the case of the points (1, 2), (1, 3) we get a ‘gradient’ (i) For the points (0, 0), (1, 1) we get m =
m=
3−2 1 = 1−1 0
which of course is not defined. What is happening here is that the line segment is in fact vertical because the x-coordinates of the two points are the same. The gradient is ‘infinite’. In such cases we have to use the formula with a bit of common sense. (iii) For (−2, 4), (1 −3) the gradient is m=
−3 − 4 7 =− 1 − (−2) 3
211
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(iv) For (−1, −1), (−2, −3), the gradient is −3 + 1 =2 −2 + 1 ➤
m=
7.2.4 Equation of a straight line
204 221 ➤
Knowing that the gradient of the straight-line segment AB is m=
y2 − y1 AC = BC x2 − x1
we can now derive an equation for the straight line through the two points A, B by equating its gradient to m. For a general point P (x, y) on the line, its gradient is given by (y − y1 )/(x − x1 ), say, which also gives m: y2 − y1 y − y1 = =m x − x1 x2 − x1 Rearranging this (see RE7.3.4C) gives the equation of the straight line as
y − y1 = or
y2 − y1 (x − x1 ) x2 − x1
y − y1 = m(x − x1 )
We can also write this in the form y = mx + y1 − mx1 and so the general form of the equation of a straight line can be written as: y = mx + c where m is the gradient of the line, and c is the intercept on the y-axis. This is illustrated in Figure 7.7. y
A B
Gradient m = tan q
P q
(0, c), y - intercept
x
Figure 7.7 Gradient and intercept of a line y = mx + c.
212
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
The gradient is m = AP /BP = tan θ . Two special cases require comment. For a horizontal line (i.e. parallel to the x-axis) the equation is y = c (a constant), since the gradient is zero. For a vertical line (i.e. parallel to the y-axis) the equation is given by x = c. Sometimes, if we want to tidy up fractional coefficients for example, we write the equation of a line as ax + by + c = 0 Solution to review question 7.1.4
A. The equation of the straight line through the points (x1 , y1 ), (x2 , y2 ) is y2 − y1 y − y1 = (x − x1 ) = m(x − x1 ) x2 − x1 where m is the gradient. We can choose either of the given points for (x1 , y1 ). (i) With (x1 , y1 ) = (0, 0), (x2 , y2 ) = (1, 1) the gradient is m = 1 (210 ) so the required equation is ➤
y − 0 = 1(x − 0) or
y=x
(ii) This question illustrates the limitations of general formulae. Using the general result would give y − 2 = ∞(x − 1) ➤
which is not defined (6 ). In such circumstances we go back to first principles, and look again at the points, (1, 2), (1, 3). Here the x-coordinate always remains the same, so the line must be parallel to the y-axis. It is in fact the line x = 1. (iii) For the points (−2, 4), (1 −3) the gradient is − 73 and the equation becomes y − 1 = − 73 (x − 3) or, tidying this up 7x + 3y − 24 = 0 (iv) For the points (−1, −1), (−2, −3) the gradient is m = 2 and the line is y − (−1) = 2(x − (−1)) or
2x − y + 1 = 0
213
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
B. Rewriting the lines in the form y = mx + c the gradient in m, the intercept on the y-axis is c(x = 0, y = c) and the intercept on the x-axis is x = −c/m, y = 0. (i) m = 3, c = 2, and x-intercept = −2/3 (ii) y = 13 (1 − 2x) m = − 23 , c = 13 and x-intercept x = 1/2 (iii) m = 4, x and y intercepts both the origin (0, 0) (iv) y = −x − 1, m = −1, intercepts (0, −1), (−1, 0) ➤
7.2.5 Parallel and perpendicular lines
205 222 ➤
Consider two parallel lines, l1 , l2 as shown in Figure 7.8. y
l1
A
l2 M B
P
N
x
0
Figure 7.8 Parallel lines have the same gradient.
➤
As we might expect, parallel lines have the same gradient (149
). We can see this by AP and that of a nice application of the intercept theorem(153 ). The gradient of l1 is BP MP l2 is . But, by the intercept theorem, since AB and MN are parallel, MN divides NP AP and BP in the same ratio, so AP /BP = MP /N P , i.e. l1 , l2 have the same gradient. Lines that are perpendicular clearly do not have the same gradient, but they are related. If lines l1 , l2 are perpendicular, and have gradients m1 , m2 respectively then ➤
m1 m2 = −1 We can see this from Figure 7.9. The lines l1 , l2 are perpendicular. π First, note that since α + θ = = α + β then β = θ . If the gradient of l1 is m, then 2 m= 214
BD = tan θ AD
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
y
l2
l1 B a b
A
0
D
C
x
Figure 7.9 Gradients of perpendicular lines multiply to −1.
On the other hand the gradient of l2 is −
BD 1 1 1 =− =− =− CD tan β tan θ m
Solution to review question 7.1.5
A. Any line parallel to y = 1 − 3x has the same gradient, m = −3 and so can be written as y = −3x + c We now have to choose the intercept c so that the line passes through (−1, 2), which we do by substituting these values in the equation: 2 = −3(−1) + c So
c = −1 and the equation required is y = −3x − 1
B. If the line l through (−1, 2), (0, 4) has gradient m then any line perpendicular to it has gradient −1/m. The gradient of l is m=
4−2 =2 0 − (−1)
so any line perpendicular to it has gradient − 12 and has an equation of the form y = − 12 x + c If this line passes through (−1, 2) then substituting this point in the equation gives 2 = − 12 (−1) + c 215
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
so
c=
3 2
and the equation is y = 12 (3 − x) or x + 2y − 3 = 0.
➤
7.2.6 Intersecting lines
205 222 ➤
If two lines intersect, then their point of intersection must satisfy both of their equations. Thus, if the lines are: ax + by = c dx + ey = f ➤
then at the point of intersection these equations must be satisfied simultaneously (48 ). Although one would find this intersection point by solving these equations, the geometrical picture provides a nice visual means of discussing the different possibilities for the solution of the equations. Thus, we find the following cases, with some examples you can check: •
if the lines are not parallel (i.e. do not have the same gradient) then they will intersect at some point – i.e. the equations will have a solution.
Example
x + 2y = 1 x−y =0
•
have different gradients and intersect at 13 , 13 . If the lines are parallel (same gradient) then they will never intersect and there will be no solution to the equations.
Example
2x + y = 0 4x + 2y = 3
•
These are parallel, but through different points – the first passes through the origin, the second through 0, 32 . These lines will never intersect and so the equations have no solution. If the lines are identical, i.e. coincide (same gradients, same intercepts), then they intersect at every point on the line(s) – the equations have an infinite number of solutions.
Example
x + 3y = 1 2x + 6y = 2
216
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
The second equation is actually the same as the first – just cancel 2 throughout the equation. So these equations actually represent the same line and they therefore intersect at every point – there is an infinite number of solutions. Solution to review question 7.1.6
You will save time by noting that the lines (i) x + y = 3 and (ii) 2x + 2y = −1 are in fact parallel lines – they have the same gradient, −1. So they never intersect, and we have only to consider the intersection of each of them with the line (iii) y = 3x − 1. (i) and (iii) intersect where y = 3 − x = 3x − 1 Solving for x and then y gives x = 1, y = 2 (ii) and (iii) intersect where y = − 12 − x = 3x − 1 x = 18 , y = − 58 ➤
or
7.2.7 Equation of a circle
205 222 ➤
Two things characterise a circle uniquely – its centre and its radius. Suppose therefore we refer a circle to a set of Cartesian axes in which its centre has coordinates (a, b) and its radius is r. Then we know that any point (x, y) on the circle is always a distance r yet again) we can write from the centre (a, b). So, using Pythagoras’ theorem (154 the distance from (x, y) to the centre (a, b) as (x − a)2 + (y − b)2 . Since this is always equal to the radius r we can then write ➤
(x − a)2 + (y − b)2 = r 2 This, with the square root sign removed by squaring, is the equation or locus for a circle with centre (a, b) and radius r, in Cartesian coordinates. This equation may be expanded (42 ) to give the form ➤
x 2 + y 2 + 2f x + 2gy + h = 0
Problem Express f , g, h in terms of a, b, r. You should find f = −a,
g = −b,
h = a 2 + b2 − r 2 217
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Often, it is the latter form of the equation of a circle that is given, and you are asked to find the centre and radius. To do this we complete the square (66 ) on x, y and return to the first form, from which centre and radius can be read off directly. Note that in polar coordinates, the equation of a circle with radius a and centre at the origin takes the very simple form r = a. This illustrates how useful polar coordinates can be in some circumstances. ➤
Solution to review question 7.1.7
A. The equation of the circle centre (a, b) with radius r is (x − a)2 + (y − b)2 = r 2 Applying this to the data given produces: (i) For centre (0, 0) and radius 2 we get (x − 0)2 + (y − 0)2 = 22 , or x 2 + y 2 = 4 (ii) For centre (1, 2) radius 1 we get (x − 1)2 + (y − 2)2 = 1 or x 2 + y 2 − 2x − 4y + 4 = 0 (iii) For centre (−1, 4) and radius 3 we get (x + 1)2 + (y − 4)2 = 9 or x 2 + y 2 + 2x − 8y + 8 = 0 B. To find the centre and radius of a circle whose equation is given in the form x 2 + y 2 + 2f x + 2gy + h = 0 we re-express it in the form (x − a)2 + (y − b)2 = r 2 ➤
by completing the square in x and y (66
).
(i) x 2 + y 2 − 2x + 6y + 6 = x 2 − 2x + y 2 + 6y + 6 = (x − 1)2 − 1 + (y + 3)2 − 9 + 6 on completing the square for x 2 − 2x and y 2 + 6y = (x − 1)2 + (y + 3)2 − 4 So the equation is equivalent to (x − 1)2 + (y + 3)2 = 4 = 22 which gives a centre of (1, −3) and radius 2. (ii) x 2 + y 2 + 4x + 4y − 1 = x 2 + 4x + y 2 + 4y − 1 = (x + 2)2 − 4 + (y + 2)2 − 4 − 1 = (x + 2)2 + (y + 2)2 − 9 on completing the square. So the equation becomes (x + 2)2 + (y + 2)2 = 9 = 32 giving a centre (−2, −2) and a radius 3.
218
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
➤
7.2.8 Parametric representation of curves
205 222 ➤
Sometimes, instead of writing an equation in the form y = f (x), i.e. in terms of x, y, it is convenient to introduce some parameter t in terms of which x and y are jointly expressed in the form x = x(t)
y = y(t)
For example the position of a projectile at time t may be expressed as x = V t cos α = x(t) y = V t sin α − 12 gt 2 = y(t) where V , α are the initial projection velocity and angle respectively. In principle, we can always return to the x, y form by eliminating t. In the projectile for example we have t=
x V cos α
from the first equation, then substitution in the second gives the parabola: x 1 x 2 y=V sin α − g V cos α 2 V cos α = x tan α −
1 gx 2 sec2 α 2 V2
Solution to review question 7.1.8
(i) From the equations x = 3t + 1, y = t + 2 we have t = y − 2, so x = 3t + 1 = 3(y − 2) + 1 = 3y − 5 The Cartesian equation is thus x − 3y + 5 = 0 which is a straight line. (ii) x = 6 cos 2t; y = 6 sin 2t This is a good example of the need to have the elementary trig identities at your fingertips. Otherwise, it might not immediately occur to you to use the fact that cos2 θ + sin2 θ = 1 (185 ) to eliminate t, by squaring and adding ➤
x 2 + y 2 = 36 cos2 2t + 36 sin2 2t = 36 which is a circle centre the origin and radius 6. This parametric form of the circle is very useful in the theory of oscillating systems. (iii) In general, the parametric equations x = r cos θ + a,
y = r sin θ + b 219
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
represent a circle with centre (a, b) and radius r, since: (x − a)2 + (y − b)2 = r 2 The parameter θ can be regarded as the angle made by the radius with the x-axis, as shown in Figure 7.10. y (a + r cos q, b + r sin q )
r q (a ,b)
x
0
Figure 7.10 Parametric form of a circle.
So, for x = 2 cos t − 1 and y = 2 sin t we get 2 cos t = x + 1 so
(x + 1)2 + y 2 = 4 cos2 t + 4 sin2 t = 4
giving a circle centre (−1, 0) and radius 2. ➤
(iv) x = cos 2t, y = cos t So from the double angle formula (188
)
x = cos 2t = 2 cos2 t − 1 = 2y 2 − 1 which we may as well leave in the implicit form x = 2y 2 − 1
7.3 Reinforcement 204 205
➤➤
A. Plot the points (i) (−1, −1)
(ii) (3, 2)
(iii) (−2, 3)
(iv) (0, 4)
(v) (4, 0)
(vi) (1, 1)
(vii) (3, −1)
(viii) (0, −2)
220
➤
7.3.1 Coordinate systems in a plane
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
5π (vii) 2, 4
(viii) (3, −150° ) 204 208
➤➤
7.3.2 Distance between two points
204 209
➤
(vi) (3, π)
(iv) (2, −60 ° )
➤➤
(v) (2, π/2)
(iii) (1, 120 ° )
➤
B. Plot the points with polar coordinates 3 3π (i) (ii) (1, π/3) , 2 4
Find the distance between each pair of points (ii) (1, 0), (1, −2)
(i) (−1, 1), (2, 0) (iii) (2, 2), (3, 3)
(iv) (0, 1), (0, 3) (vi) (−2, −1), (−1, −2)
(v) (2, 1), (3, 1)
7.3.3 Midpoint and gradient of a line
A. Find the midpoint of the line segments joining the pairs of points in RE7.3.2. B. Ditto for the gradients. C. Ditto for the points dividing each line segment in the ratio 2 : 3. 204 212
➤
➤➤
7.3.4 Equation of a straight line
A. Find the equations of the straight lines through each pair of points in RE7.3.2. B. Find the gradients and intercepts of the following lines (i) 2x − 3y = 4
(ii) 4x + 2y = 7
(iii) x − y + 1 = 0
C. Show that the equations y − y1 y2 − y1 = =m x − x1 x2 − x1 may be rearranged to give the equation of the straight line as y2 − y1 y − y1 = (x − x1 ) x2 − x1 or
y − y1 = m(x − x1 )
Also show that it may be arranged into the ‘symmetric form’ y=
(x − x2 ) (x − x1 ) y2 + y1 (x2 − x1 ) (x1 − x2 ) 221
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
205 214
➤
➤➤
7.3.5 Parallel and perpendicular lines For the lines in RE7.3.4B determine: (a)
lines parallel to each of them through the origin,
(b)
lines perpendicular to each of them through the point (−1, 1). 205 216
➤
205 217
➤
➤➤
7.3.6 Intersecting lines Find all points where the following lines intersect (ii) 2x + 2y = 3
(iii) x − y = 1 ➤➤
(i) x + y = 1
7.3.7 Equation of a circle A. Write down the equations of the circles with centres and radii: (ii) (2, −1), 1
(i) (−1, 1), 4
(iii) (4, 1), 2
B. Find the centre and radius of each of the circles: (i) x 2 + y 2 − 2x − y = 4
(ii) x 2 + y 2 + 3x − 2y − 7 = 0
(iii) x 2 + y 2 + y = 3 C. A circle has the equation x 2 + y 2√− 4y =√0. Find its centre and radius, and the equation of the tangents at the points (± 2, 2 + 2), using only geometry and trig. Also find the point where the two tangents intersect. D. A circle has the equation x 2 + y 2 − 2x = Determine its centre and radius, and find 0. √
1 3 . Determine where this tangent cuts the equation of the tangent at the point , 2 2 the axes.
(i)
x = 3 cos t,
(ii)
x = 1 + 2 cos θ , y = 3 − sin θ
(iii)
x = 2u2 ,
y =u−2
2 , t x = cos 2t,
y = 3t
(iv) (v)
222
x=
y = 3 sin t
y = sin t
➤➤
Eliminate the parameters in the following pairs of equations
205 219
➤
7.3.8 Parametric representation of curves
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
7.4 Applications 1. In simple linear programming we consider a set of linear relations that constrain two variables x, y in the form ax + by ≤ c and look for the maximum or minimum value of some linear function f (x, y) = mx + ny as x and y vary subject to these constraints. By considering the equations of straight lines, show how to solve such problems graphically and by solving simultaneous equations. Find the values of x and y such that x ≥ 0, y ≥ 0 4x − y − 24 ≥ 0 x−y+7≥0 f (x, y) = x + y is a maximum 2. This question considers a very simple model of the ‘slingshot effect’, in which a space module is transferred from an orbit around the earth to one around the moon, say. The trick is to eject the module from the earth orbit with just the right speed and direction for it to travel in a straight line to intercept the moon orbit at just the right point and speed to be captured and enter into orbit around the moon. Figure 7.11 shows how this can be modelled by finding the straight line that is tangent to the earth and moon orbits represented as circles centre the origin, radius R and centre (0, D), radius r, respectively. Here D is the earth moon distance, R the earth orbit radius and r the moon orbit radius. Find the equation of this straight line, the distance from orbit to orbit, and the points where the orbits are left and entered all in terms of D, R, r. Try out your results on some realistic data. y
r
D
R 0
x
Figure 7.11
223
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Answers to reinforcement exercises 7.3.1 Coordinate systems in a plane A. y 4 (0,4) (−2,3) 3 (3,2)
2 1 −4
−3
(1,1)
−2 −1 0 (−1,−1) −1
1
2
(4,0) x 3 4 (3,−1)
−2 (0,−2) −3 −4
B. p 2 p 3
2p 3
5p 6
p 6
(v) (i)
(iii)
(ii)
(vi) p
1 (viii)
(vii)
2
(iv)
7p 6
11p 6
4p 3
5p 3 3p 2
224
0 2p
3
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
7.3.2 Distance between two points (i)
√
10
(iv) 2
(ii) 2
(iii)
(v) 1
(vi)
√ √
2 2
7.3.3 Midpoint and gradient of a line
A. (i)
1 1 , 2 2
(ii) (1, −1)
(iv) (0, 2) B. (i) − 13 (iii) 1
(v)
5 ,1 2
(iii)
(vi)
5 5 , 2 2
−3 −3 , 2 2
(ii) ‘infinite gradient’ – vertical line (iv) vertical line
(vi) −1 1 3 C. (i) , 5 5 9 (iv) 0, 5
−4 (ii) 1, 5 12 ,1 (v) 5
(v) 0
(iii)
(vi)
12 12 , 5 5
−8 −7 , 5 5
7.3.4 Equation of a straight line A. (i) x + 3y − 2 = 0 (iv) x = 0 B. (i)
2 4 3, −3
(ii) x = 1
(iii) x − y = 0
(v) y = 1
(vi) x + y + 3 = 0
(ii) −2, 72
(iii) 1, 1
7.3.5 Parallel and perpendicular lines (a) (i) x + y = 0 (ii) 2x + y = 0 (iii) x − y = 0 (b) (i) x − y + 2 = 0 (ii) x − 2y + 3 = 0 (iii) x + y = 0
7.3.6 Intersecting lines (i) and (ii) being parallel, never intersect (i) and (iii) intersect at (1, 0) (ii) and (iii) intersect at 54 , 14
7.3.7 Equation of a circle A. (i) x 2 + y 2 + 2x − 2y − 14 = 0
(ii) x 2 + y 2 − 4x + 2y + 4 = 0
(iii) x 2 + y 2 − 8x − 2y + 13 = 0 225
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
√ 1 21 B. (i) 1, , 2 2 √ −1 13 (iii) 0, , . 2 2
√ 3 41 (ii) − , 1 , 2 2
√ √ x−y +2+2 2=0 C. x + y − 2 − 2 2 = 0, √ They intersect at (0, 2 + 2). √ D. Centre (1, 0), radius 1. Tangent is x − 3y + 1 = 0 with intercepts (−1, 0) and 1 0, √ . 3
7.3.8 Parametric representation of curves (i) x 2 + y 2 = 9 (iii) x = 2(y + 2)2 (v) x = 1 − 2y 2
226
(x − 1)2 + (y − 3)2 = 1 4 (iv) xy = 6 (ii)
8
Techniques of Differentiation Differentiation is a relatively straightforward side of calculus. We only have to remember a dozen or so standard derivatives (the elementary functions), a few rules (sum, product, quotient, function of a function) and the rest is routine. However, we do need to be highly proficient with differentiation, able to apply the rules quickly and accurately. One reason for this is to help you with integration. One of the difficulties with integration lies in recognising what was differentiated to give you what you have to integrate – you will more easily spot this (and check it) if your differentiation is good. While it is perhaps not essential for the engineers, I have included differentiation from first principles. It is really not that difficult to follow, and the ideas and skills involved are useful elsewhere.
Prerequisites It will be helpful if you know something about: the idea of a limit (126 ) basic algebra (Chapter 2 ) properties of the elementary functions (Chapter 3 the gradient of a line (210 ) function notation (90 ) composition of functions (97 ) implicit functions (91 ) parametric representation (91 )
➤
➤ ➤
➤
)
➤
➤
➤
➤
• • • • • • • •
Objectives In this chapter you will find: • • • •
geometric interpretation of differentiation differentiation from first principles the standard derivatives rules of differentiation: – sum – product – quotient – function of a function • implicit differentiation
227
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
• parametric differentiation • higher order derivatives
Motivation You may need the material of this chapter for: • • • • •
modelling rates of change, such as velocity, acceleration, etc. ordinary differential equations (Chapter 15) approximating the values of functions finding the maximum and minimum values of functions curve sketching
8.1 Review 8.1.1 Geometrical interpretation of differentiation
➤ 230 243 ➤➤
Complete the following: dy , is the of the curve y = f (x) at the point x, which is The derivative, dx defined as to the curve at x θ where θ is the angle made by the with the x-axis. ➤ 230 243 ➤➤
8.1.2 Differentiation from first principles
Complete the following description of the evaluation of the derivative of x 2 from first principles: If y = f (x) = x 2 , then y + δy = f (x + δx) =
+(δx)2
Hence δy = f (x + δx) − f (x) = and
δy f (x + δx) − f (x) = = δx δx
+ δx
So, ‘in the limit’, as δx → 0 dy df = = lim δx→0 dx dx 228
− f (x)
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
= lim
+ δx
δx→0
=
➤ 232 243 ➤➤
8.1.3 Standard derivatives Give the derivatives of the following functions √
(i) 49
(ii) x 4
(iii)
(v) sin x
(vi) ex
(vii) ln x
x
1 x2 (viii) 2x (iv)
➤ 234 244 ➤➤
8.1.4 Rules of differentiation Differentiate and simplify (i) 3x 4 − 2x 2 + 3x − 1 x−1 (iii) x+1 (v) ln 3x √ (vii) x2 − 1
(ii) x 2 cos x (iv) cos(x 2 + 1) (vi) e−2x
➤ 238 244 ➤➤
8.1.5 Implicit differentiation dy as a function of x and y. dx B. Obtain the derivative of sin−1 x by using implicit differentiation. C. Differentiate y = 2x . x−1 D. If f (x) = evaluate f (1). x+2 A. If x 2 + 2xy + 2y 2 = 1 obtain
➤ 240 245 ➤➤
8.1.6 Parametric differentiation If x = 3t 2 , y = cos(t + 1) evaluate
dy as a function of t. dx ➤ 241 245 ➤➤
8.1.7 Higher order derivatives A. Evaluate the second derivative of each of the following functions: (i) 2x + 1 (iii) e−x cos x
(ii) x 3 − 2x + 1 x+1 (iv) (x − 1)(x + 2) 229
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
B. If x = t 2 + 1,
y = t − 1, evaluate
d 2y as a function of t. d x2
8.2 Revision ➤
8.2.1 Geometrical interpretation of differentiation
228 243 ➤
If A and B are two points on a curve, the straight line AB is called a chord of the curve (157 ). A line which touches the curve at a single point (i.e. A = B) is called a tangent to the curve at that point (157 ). The normal to a curve at a point A is a line through A, perpendicular to the tangent at A. The gradient or slope of a curve at a point is the gradient or slope of the tangent to the curve at that point. ➤
ord Ch
al Norm
➤
B
A
nt
e Tang
Figure 8.1 Solution to review question 8.1.1
dy , is the slope or gradient of the curve y = f (x) at the The derivative, dx point x, which is defined as tan θ where θ is the angle made by the tangent to the curve at x with the positive x-axis. ➤
8.2.2 Differentiation from first principles
228 243 ➤
As B gets closer to A, the gradient of the chord AB becomes closer to that of the tangent to the curve at A – that is, closer to the gradient of the curve at A. We say that in the limit, as B tends to A, the gradient of the chord tends to the gradient of the curve at A. We write this as lim (gradient chord AB) = gradient of curve at A
B→A
where limB→A means take the limiting value as B tends to A. We met the idea of a limit on page 126, in the context of letting a number become infinitely large. Here we are considering the situation where something – the distance between A and B – becomes ‘infinitesimally small’, i.e. tends to zero. Let the equation of the curve be y = f (x). The situation is illustrated in Figure 8.2. Suppose δx (‘delta x’) denotes a small change in x (not ‘δ times x’), so that x becomes x + δx. Then correspondingly f (x) will change to f (x + δx), producing a small change in y to y + δy. The change in y, δy, is then given by δy = y + δy − y = f (x + δx) − f (x) 230
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
y = f (x )
y B
y + dy = f (x + dx )
dy = f (x + dx ) − f (x )
y = f (x )
A
x x
dx
Figure 8.2
➤
The gradient (210
) of the extended chord AB is then given by
Gradient AB =
f (x + δx) − f (x) δx
As A gets closer to B this gradient will get closer to the gradient of the tangent at A, i.e. closer to the gradient of the curve at A, so:
Gradient of curve at A = lim
δx→0
f (x + δx) − f (x) δx
where limδx→0 means let δx tend to zero in the expression in square brackets. Note that in all this discussion we are assuming that the curve y = f (x) is continuous and smooth (i.e. has no breaks or sharp corners). Taking limits is a sophisticated operation about which we will say more in Chapter 14 (see Section 14.5). For now we will only use very simple ideas. We can repeat the above discussion at each point, i.e. each value of x, so the gradient is a function of x called the derivative of f (x) (sometimes differential coefficient). The standard forms of notation for the derivative of a function y = f (x) with respect to x are: dy f (x + δx) − f (x) d f (x) = = f (x) = lim δx→0 dx dx δx
The process of obtaining d y/d x is called differentiation with respect to x. f (a) means d f/d x evaluated at x = a. Evaluation of the derivative by calculating the limit is called differentiation from first principles. Using this one can construct a table of standard derivatives of the elementary functions and a number of rules of differentiation with which we may deduce many further derivatives. The standard approach to such differentiation from first principles is as follows. For a function y = f (x), let x increase by an ‘infinitesimal’ amount δx. Evaluate the 231
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
corresponding increase in y: δy = f (x + δx) − f (x) and neglect any powers of δx greater than one to get something like δy f (x)δx where f (x) denotes just a function of x alone. Then δy f (x) δx and letting δx → 0 yields the derivative dy = f (x) dx as suggested by the notation. The solution to the review question illustrates this. Solution to review question 8.1.2
If
y = f (x) = x 2 , then y + δy = f (x + δx) = (x + δx)2 = x 2 + 2xδx + (δx)2
Hence and
δy = f (x + δx) − f (x) = 2xδx + (δx)2 f (x + δx) − f (x) δy = = 2x + δx δx δx
So, in the limit, as δx → 0 dy f (x + δx) − f (x) df = = lim δx→0 dx dx δx = lim 2x + δx δx→0
= 2x ➤
8.2.3 Standard derivatives
229 243 ➤
By applying arguments such as that in the previous section we can build up a list of standard derivatives. These are basically derivatives of the ‘elementary’ functions such as powers of x, trigonometric functions, exponentials and logs. What you remember from these depends on the requirements of your course or programme, but I would certainly recommend that the minimal list given in Table 8.1 be not only remembered, but be second nature. Note, in anticipation of Chapter 9, that when you learn the standard derivatives you can also learn the standard integrals by reading the table from right to left (see Section 9.2.2). 232
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Table 8.1 Function f (x)
Derivative f (x)
c = constant xn x n+1 /(n + 1) ln |x| = loge |x| sin x cos x tan x ex
0 nx n−1 n = 0 x n (n = −1) 1/x cos x − sin x sec2 x ex
ln[u(x)]
u (x) u(x)
eu(x)
u (x)eu(x)
Integral
g(x) dx
Function g(x)
Solution to review question 8.1.3
(i) y = 49 is a constant, so its derivative is 0. Think of it as a quantity whose rate of change or gradient is zero – its graph is always ‘flat’. (ii) y = x 4 , so using (iii) y = (iv) y =
√
1
x = x 2 so
d (x n ) dy = nx n−1 with n = 4 gives = 4x 3 dx dx dy 1 1 1 = x− 2 = √ dx 2 2 x
dy 2 1 = x −2 so = −2x −3 = − 3 x2 dx x
dy = cos x directly from Table 8.1. Note that x must dx be in radians here.
(v) y = sin x, so
dy (vi) y = ex so = ex again from the table. ex is unique in being dx its own derivative and this is partly responsible for its immense importance. (vii) For y = ln x,
1 dy = from Table 8.1. dx x
(viii) y = 2x This question is a bit naughty, since it does not come from our list of standard integrals, but beginners sometimes make the error of thinking it does and write ‘ d (2x ) = x2x−1’ dx 233
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
This is, of course, an incorrect application of the rule for the derivative of x n . We will come back to 2x later (Section 8.2.5) – it needs some more rules of differentiation, which takes us to the next section. ➤
8.2.4 Rules of differentiation
229 244 ➤
In order to differentiate more complicated functions than those in the standard derivatives table we need to be able to differentiate sums, differences, products and quotients. Also we sometimes need to differentiate a composite function or ‘function of a function’ (97 ). These rules of differentiation can be proved by using the limit definition of differentiation (see Chapter 14). Here we will concentrate on making them at least plausible, and on getting used to using them. The derivative of a sum (difference) is the sum (difference) of the derivatives. ➤
d d f (x) d g(x) (f (x) ± g(x)) = ± dx dx dx We say differentiation is a linear operation. An extension of this is: d f (x) d (kf (x)) = k dx dx
for k = constant
which simply says that to differentiate a constant multiple of a function you only have to take out the constant from the derivative. It would be nice if the derivative of a product was a product – unfortunately it is not. To obtain the correct result, suppose we want to differentiate y = uv where u = u(x), v = v(x) are functions of x. Following our recipe of Section 8.2.2 let x increase to x + δx, say. Then u will increase to u + δu and v to v + δv, say. So y increases by: δy = (u + δu)(v + δv) − uv = uδv + vδu + δuδv Now we neglect δuδv because it is of second degree (i.e. like (δx)2 not δx) so we have δy uδv + vδu So, dividing through by δx δv δu δy =u +v δx δx δx If we now let δx → 0 we get the product rule: d (uv) dv du dy = =u +v dx dx dx dx A nice physical way to look at this is to think of how much the area of a rectangular plate increases when you heat it. Suppose the plate has sides u and v. Due to linear expansion 234
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
u and v will increase to u + δu and v + δu respectively, with δu and δv very small. The area therefore increases to (u + δu)(v + δv) = uv + vδu + uδv + δuδv So the increase in area will be vδu + uδv + δuδv Since δu, δv are very small, δuδv is very very small, so we can neglect it and the increase in area is approximately vδu + uδv which is the form of the product rule. The corresponding quotient rule is d u dv du −u = v v2 dx v dx dx We will see why below. We can handle many functions by using the standard derivatives and the sum, product, quotient rules. We could not handle something like cos(ex ) however. This is an example of a function (cosine) of a function (exponential) or a composition of functions (97 ). In general we write: ➤
e.g.
y = f (u)
where u = g(x)
y = cos u
where u = ex
To differentiate such a function with respect to x we use the function of a function or the chain rule:
So
dy dy du = dx du dx dy = − sin u × ex = −ex sin(ex ) dx
Think of this ‘rule’ of change of u w.r.t. x = rate of change of y w.r.t. u times rate of change of u w.r.t. x. Note that the chain rule suggests a useful result if we take the special case y = x:
so or
dy du dx du dx = = =1 du dx du dx dx du dx =1 dx du dx dy =1 dx dy
This result is useful in implicit differentiation for example (see Section 8.2.5). While it dy should not encourage you to think of as a fraction there are occasions when it is dx 235
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
convenient to do this – with care. For example in differential equations we sometimes use such steps as: dy dx ≡ dy dx which is really a bit of poetic license that is found to work most of the time. We can combine the product and chain rules to obtain the rule for differentiating a quotient as follows: d u d du d (v −1 ) = (uv −1 ) = v −1 +u dx v dx dx dx by the product rule = v −1
du dv + u −v −2 dx dx
by the chain rule 1 du u dv − 2 v dx v dx du dv v2 = v −u dx dx
=
When first learning these rules you might use the given formulae, substituting u = x, v = sin x, or whatever. However, the rules will be more useful to you if you practice and develop your skills to the point where you do not need to do this. That is, rather than actually use the formula, try to do the required procedure automatically. To help with this think of the rules in terms of words, describing what you actually do: Sum rule: ‘diff(+) = diff + diff’ Product: ‘diff(×) = one × diff + diff × other’ Quotient
diff(/) =
diff top × bottom - top × diff bottom (bottom)2
Function of a function ‘diff[f (g)] = (diff f w.r.t. g) × (diff g w.r.t. x)’ Solution to review question 8.1.4
(i) y = 3x 4 − 2x 2 + 3x − 1 This is a linear combination of terms of the form Ax n . We differentiate each term in the polynomial and combine the results. So
dy = 3 × 4x 3 − 2 × 2x + 3 dx = 12x 3 − 4x + 3
(ii) y = x 2 cos x is a product of the two elementary functions x 2 and cos x. 236
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
So by product rule, with say u = x 2 , v = cos x, d (uv) d 2 dy = = (x cos x) dx dx dx =
d v du u dv d (x 2 ) + = cos x + x 2 (cos x) dx dx dx dx
= 2x cos x + x 2 (− sin x) = 2x cos x − x 2 sin x x−1 x+1 u We can treat this as a quotient y = and use the quotient rule, or v treat as a product: 1 y = (x − 1) × x+1 1 dy 1 =1× + (x − 1) − so dx x +1 (x + 1)2 x + 1 − (x − 1) 2 = = (x + 1)2 (x + 1)2
(iii) y =
giving
➤
(iv) y = cos(x 2 + 1) This is a function (cos) of a function (x 2 + 1) (97 use the function of a function rule: dy dy du u = x2 + 1 = y = cos u dx du dx
), so we can
dy = − sin(x 2 + 1) × (2x) dx = −2x sin(x 2 + 1)
(v) y = ln 3x Again, the function of a function rule can be used: dy 1 1 = ×3= dx 3x x ➤
Or this can be simplified using rules of logarithms (131
)
y = ln 3x = ln 3 + ln x Therefore
dy 1 = 0 + as before dx x 237
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(vi) y = e−2x This is a function of a function. Here we will practise a short hand approach to the function of a function rule. dy d (e−2x ) d (−2x) = × = e−2x (−2) = −2e−2x dx d (−2x) dx (vii) y =
√
1
1 − x 2 = (1 − x 2 ) 2
1
Again, function of a function – ‘differentiate the ( ) 2 and multiply by the derivative of the ( )’. 1 dy 1 = (1 − x 2 )− 2 × (−2x) = − dx 2
x 1
(1 − x 2 ) 2 x = −√ 1 − x2 ➤
8.2.5 Implicit differentiation ➤
If y is defined implicitly in terms of x by an equation of the form (91
229 244 ➤
)
f (x, y) = 0 dy may often be found by differentiating throughout using the function of a function dx rule. This is best illustrated by the example given below:
then
Example If
x2 + y2 = 1
then differentiating through with respect to x gives 2x +
d 2 d (y ) = (1) dx dx
so, using the function of a function rule on the left-hand side 2x + 2y Hence
dy =0 dx dy x =− dx y
Solution to review question 8.1.5
A. Differentiating through with respect to x, using the function of function and product rules we have d d 2 (x + 2xy + 2y 2 ) = (1) dx dx 238
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
so 2x + 2y + 2x
dy dy + 4y =0 dx dx
dy =0 dx x+y dy =− dx x + 2y
Hence (x + y) + (x + 2y) and so
B. This is a standard application of implicit differentiation. If y = sin−1 x then x = sin y. But note that as usual with inverse trigonometric funcπ π to obtain tions we must restrict the range of y to, say, − ≤ y ≤ 2 2 a single valued function (184 ). Hence, on this range ➤
dx = cos y dy = 1 − sin2 y where we have taken the positive root since the cosine is positive on π π − ≤y≤ 2 2
= 1 − x2 dy dx So, using =1 (see above) we get dx dy 1 dy =√ dx 1 − x2 C. y = a x is another case where we can use implicit differentiation to advantage. If we take logs to base e we have: ln y = ln a x = x ln a Now differentiate through with respect to x: d d (ln y) = (x ln a) dx dx or
1 dy = ln a y dx
by using the chain rule on the left-hand side. So dy = y ln a = a x ln a dx 239
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
You should now be able to repeat this argument with the special case of a = 2 to obtain d x (2 ) = 2x ln 2 dx x−1 , then we could use the quotient or product rule: x+2 1 1 d d (x − 1) + (x − 1) f (x) = x + 2 dx dx x + 2
D. If y = f (x) =
= So f (1) =
1 x−1 − x + 2 (x + 2)2 1 1 0 − 2 = 1+2 3 3
However it is much easier by implicit differentiation. Rewrite as: (x + 2)y = x − 1 So, differentiating through with respect to x: (1)y + (x + 2)y = 1 Substituting x = 1 and y = 0 gives (1)(0) + 3y (1) = 1 1 as before. 3 ➤
y (1) =
hence
8.2.6 Parametric differentiation
x = x(t)
y = y(t)
then the function of a function rule gives dy dy dt = dx dt dx dx dt =1 this can now be written as Since dx dt dy d y/d t = dx d x/d t 240
➤
If x, y are defined in terms of a parameter, t, (91
)
229 245 ➤
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Solution to review question 8.1.6
With x = 3t 2 , y = cos(t + 1) we have dx dy = − sin(t + 1) and = 6t, so: dt dt dy d y/d t − sin(t + 1) = = dx d x/d t 6t
➤
8.2.7 Higher order derivatives
229 245 ➤
dy will be a function of x. We can therefore differentiate it again with respect dx to x. We write this as
In general,
d dx Note that
dy dx
=
d 2y d x2
2 d 2y dy does not mean 2 dx dx
We can, of course, differentiate yet again and write d dx
d 2y d x2
=
d 3y d x3
and so on. d ny In general denotes the nth order derivative – differentiate y n times successively. d xn Solution to review question 8.1.7
A. (i) A first differentiation gives d (2x + 1) = 2 dx So, differentiating again d2 d (2x + 1) = (2) = 0 d x2 dx (ii) A bit quicker this time: d d2 3 (x − 2x + 1) = (3x 2 − 2) = 6x 2 dx dx 241
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(iii)
d 2 −x d (−e−x cos x − e−x sin x) (e cos x) = d x2 dx d = − (e−x (cos x + sin x)) dx = −[−e−x (cos x + sin x) + e−x (− sin x + cos x)] = −e−x (−2 sin x) = 2e−x sin x
(iv) This one requires a bit of thought if you want to avoid a mess. It is easiest to use partial fractions in fact. Thus, to remind you of partial fractions (62 ), you can check that ➤
x+1 2 1 ≡ + (x − 1)(x + 2) 3(x − 1) 3(x + 2) Then d2 x+1 2 1 d2 = + d x 2 (x − 1)(x + 2) d x 2 3(x − 1) 3(x + 2) 2 1 d − − dx 3(x − 1)2 3(x + 2)2 =
4 2 + 3(x − 1)3 3(x + 2)3
B. This sort of example brings together a lot of what we have already done. First, note that d 2 y/d t 2 d 2y = 2 2 dx d x/d t 2 We must be more subtle. Start with d d 2y = d x2 dx
dy dx
dy will be a function of t – in dx 2 this case, with x = t + 1, y = t − 1 we have
Now with parametric differentiation
d y/d t 1 dy = = dx d x/d t 2t If we were to differentiate now with respect to x we would have to 1 in terms of x – possible but messy. Instead, we use the express 2t 242
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
function of a function rule to change the differentiation to one with respect to t, and write d dy dt dy = × dx dt dx dx d dy dx = dt dx dt
d d 2y = 2 dx dx
on using
dt dx =1 dx dt
So:
1 − 2 2t
d d 2y = 2 dx dt 2t = −
1 2t
2t
1 4t 3
8.3 Reinforcement 228 230
➤
➤➤
8.3.1 Geometrical interpretation of differentiation A. Evaluate the slopes of the following curves at the points specified: (i) y = x 3 − x (iii) y = 2ex
x=1
(ii) y = sin x x = π 3 x=1 (iv) y = x
x=0
B. Determine where the slope of the curve y = 2x 3 + 3x 2 − 12x + 6 is zero. 228 230
➤
➤➤
8.3.2 Differentiation from first principles Differentiate from first principles: (iii) x 3
(iv) cos x ➤➤
(ii) x 2 + 2x + 1
8.3.3 Standard derivatives
229 232
➤
(i) 3x
A. Differentiate without reference to a standard derivatives table: (i) ex (v) sin x
(ii) cos x (vi)
1 x3
(iii) x 31 (vii) tan x
(iv) ln x 1 (viii) x3 243
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
B. What are the most general functions that you need to differentiate to obtain the following functions? (iii) ex 1 (vii) x
(ii) cos x √ (vi) x
(iv) sin x (viii) 0
➤➤
8.3.4 Rules of differentiation
229 234
➤
(i) x 4 1 (v) x4 1 (ix) cos2 x
A. Using the definition of the functions and appropriate rules of differentiation obtain the derivatives of the following elementary functions (see Section 4.4 for hyperbolic functions). (i) sec x
(ii) cosec x
(iii) cot x
(iv) cosh x
(v) sinh x
(vi) tanh x
(vii) cosech x
(viii) sech x
(ix) coth x B. Differentiate (i) ln(sec x)
(ii) ln(sin x)
(iii) ln(sec x + tan x)
(iv) ln(cosec x + cot x)
(v) ln(cosh x)
(vi) ln(sinh x) C. Differentiate (ii) (x 2 + 2) tan x x (v) √ x2 − 1 (viii) sec x tan x
(ix) e6x
(iv) exp(x 3 − 2x) x+1 (vii) sin x x (x) xe
(xii) ln 5x
(xiii) ex ln x
(xiv) ln e2x
(xi) e−x
2
➤➤
(vi) ln(cos x + 1)
8.3.5 Implicit differentiation A. Use implicit differentiation to differentiate the functions (i) cos−1 x
(ii) tan−1 x
(iii) π x
B. Evaluate d y/d x at the points indicated. (i) x 2 + y 2 = 1 C. If f (x) = 244
(0, 1)
x+1 , evaluate f (0). x−3
(ii) x 3 − 2x 2 y + y 2 = 1 (1, 2)
229 238
➤
(i) x 7 − 2x 5 + x 4 − x 2 + 2 ln x (iii) 2 x +1
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
➤➤
A. If x = e2t , y = et + 1, evaluate
229 240
➤
8.3.6 Parametric differentiation
dy d 2y as functions of t by two different methods and dx d x2
and compare your results. d 2y dy for each of the following parametric forms: and B. Obtain dx d x2
(i) x = 3 cos t, y = 3 sin t (ii) x = t 2 + 3, y = 2t + 1 (iii) x = et sin t, y = et (iv) x = 2 cosh t, y = 2 sinh t 229 241
➤
➤➤
8.3.7 Higher order derivatives A. Evaluate the second derivatives of each of the following functions: (i) x 2 + 2x + 1 x−1 (iv) (x + 1)(x + 2)
(ii) ex
2
(iii) ex sin x
B. Evaluate the 20th derivative of each of the following functions: (i) x 17 + 3x 15 + 2x 5 + 3x 2 − x + 1 (iii) e3x (v)
x (x − 1)(x + 2)
(ii) ex−1 1 (iv) x−1
8.4 Applications 1. Calculus was invented (by Newton and Liebnitz) partly to handle the mechanics of moving particles, culminating in Newton’s laws of motion, which to this day forms one of the major foundations of engineering science. This question is an open invitation to link the topics of this chapter with what you know about dynamics. Things you might think about are: (i) the definitions of time, position, displacement, speed and velocity, acceleration and their mathematical expressions in terms of derivatives of each other, with respect to each other (ii) Newton’s second law is F = ma where F is force, m mass and a acceleration. Suppose F is given as a function of position and velocity. Then it would be convenient to have a derivative expression for acceleration that involves just these two variables. Use the function of a function rule to show that, with usual notation: d 2s dv =v 2 dt ds 245
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(iii) Discuss the forms of motion described by the relations between position, s, and time, t, given below. (a) s = at + b
(b) s = at 2 + bt + c
(c) s = a sin ωt
(d) s = ae−bt
In each case a, b, c, ω are all constants which may be positive or negative. 2. Newton’s second law gives us lots of examples of differential equations. You will study these in some detail in Chapter 15. For now, we just want to get used to what is meant by a solution to such an equation. A differential equation is any equation containing one or more derivatives. Examples are given below, (i)–(vi). A solution to such an equation is any function which when substituted into the equation, with its appropriate derivatives, makes the equation identically satisfied – i.e. it produces an identity in the independent variable. In (a)–(g) are listed a number of functions. By differentiating and substitution in the equations, determine which functions are solutions of which equations. Using these examples as inspiration, try to find other solutions of the equations, which you can then test. Note that the full exercise of finding solutions to differential equations is at the very least a matter of integration (Chapter 9), and at its most advanced level may involve powerful mathematical tools such as transform theory (Chapter 17) or numerical methods. dy + 3y = 0 dx
(ii) x
(iv)
dy d 2y − 3y = 0 +2 2 dx dx
(v)
(vi)
d 2y dy +2 + 2y = 0 d x2 dx
(i)
dy −y =x dx
(iii)
d 2y + 4y = 0 d x2
d 2y dy + 9y = 0 +6 2 dx dx
(a) 3 cos 2x
(b) 2ex
(c) −2e−x sin x
(e) 4x
(f) −6xe−3x
(g) x ln x
(d) 4e−3x
Each one of the equations (i)–(vi) is an example of a general type of differential equation that plays a crucial role in one or more areas of engineering science. 3. There are many occasions in engineering when we need to know something about the tangent and normal to a curve at a given point (230 ). For example the reaction of a force at a smooth surface is normal, i.e. perpendicular, to the surface. In Chapter 5 we looked at tangents to circles – the normal at any point is of course along the radius (158 ). Using differentiation regarded as the slope of a curve, we can find the tangent at any point on a curve. Also, using the result that the gradients of perpendicular lines multiply to give −1 (214 ), we can then find the normal to a given surface, as the line perpendicular to the tangent. Investigate the tangents and normals to a general curve at a given point, using as examples the following: ➤
➤
➤
(i) y = x 2 + 3x − 4 at (0, −4) (iii) y = e3x at x = 1 246
(ii) y = cos 3x at x = (iv) y = 2 ln x at x = 1
π 4
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
4. In a circuit with an inductor of inductance L and capacitor of capacitance C, the voltage across the inductance is given by V =L
dI dt
where I is the current through the inductance, and the current through the capacitor is given by I =C
dV dt
where V is the potential across the capacitor. (i) The time dependence of the current in a series RL circuit with a constant voltage source E can be accurately modelled by the expression E Rt I= 1 − exp − R L
What is the voltage across the inductor at time t? (ii) An RC circuit with a constant capacitor and constant voltage source includes a resistor whose resistance varies slowly according to a linear law R = R0 (1 + αt). The voltage across the capacitor in such circumstances can be modelled by the relation V − V0 = (E − V0 )[1 − (1 + αt)−1/αCR0 ] where V0 is the voltage across the capacitor at t = 0. Determine the expression for the current through the capacitor at time t. 5. The potential in the junction region of a semiconductor pn junction is given by V =
A 1 + exp(−kx)
where A and k are material-dependent constants. The force on an electron with charge e in such a potential region is given by dV dx
Obtain an expression for this force in terms of hyperbolic functions (138
➤
F =e
).
Answers to reinforcement exercises 8.3.1 Geometrical interpretation of differentiation A. (i) 2 (ii) −1 (iii) 2 (iv) −3 B. x = 1 and −2 247
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
8.3.2 Differentiation from first principles (ii) 2x + 2
(i) 3
(iv) − sin x
(iii) 3x 2
8.3.3 Standard derivatives (ii) − sin x
A. (i) ex 1 −2/3 (vi) x 3
(iii) 31x 30 3 (viii) − 4 x
(vii) sec2 x
x5 +C 5 1 (v) C − 3 3x (ix) tan x + C
B. (i)
(ii) sin x + C 2 3/2 x +C (vi) 3
(iv)
(iii) ex + C
1 x
(v) cos x
(iv) − cos x + C
(vii) ln x + C
(viii) C
8.3.4 Rules of differentiation A. (i) sec x tan x (iv) sinh x (vii) − cosech x coth x B. (i) tan x (iv) − cosec x C. (i) 7x 6 − 10x 4 + 4x 3 − 2x x 2 + 1 − 2x 2 ln x (iii) x(x 2 + 1)2 1 (v) − 2 (x − 1)3/2 (viii) sec x tan2 x + sec3 x (xi) −2xe−x
2
(ii) − cosec x cot x
(iii) − cosec2 x
(v) cosh x
(vi) sech2 x
(viii) − sech x tanh x
(ix) − cosech2 x
(ii) cot x
(iii) sec x
(v) tanh x
(vi) coth x
(ii) 2x tan x + (x 2 + 2) sec2 x (iv) (3x 2 − 2)ex − sin x (vi) cos x + 1 (ix) 6e6x 1 (xii) x
3
−2x
x+1 1 (vii) − 2 cos x x x (x) e (x + 1) 1 (xiii) ex (ln x + ) x
(xiv) 2
8.3.5 Implicit differentiation A. (i) − √ B. (i) 0 C. 248
−
4 9
1 1−
x2
1 1 + x2 5 (ii) 2 (ii)
(iii) π x ln π
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
8.3.6 Parametric differentiation A.
1 −t 2e ,
− 14 e−3t
1 B. (i) − cot t, − cosec2 t 3 1 e−t (sin t − cos t) (iii) , sin t + cos t (sin t + cos t)3
(ii)
1 1 ,− 3 t 2t
1 (iv) coth t, − cosech3 t 2
8.3.7 Higher order derivatives 2
A. (i) 2
(ii) ex (4x 2 + 2)
(iii) 2ex cos x
4 6 − 3 (x + 2) (x + 1)3 B. (i) 0 20! (iv) (x − 1)21
(ii) ex−1 1 20! 2 20! (v) + 21 3 (x − 1) 3 (x + 2)21
(iii) 320 e3x
(iv)
249
9
Techniques of Integration Most of us find integration difficult – basically because we are always trying to ‘undo’ some differentiation, which might have been difficult in the first place! There are no short cuts to good integration skills – practice, practice, practice is the only way. Plenty of that is provided in this chapter. In this case the review test covers a wide range, which reflects the importance of the material.
Prerequisites will be helpful if you know something about: differentiation (Chapter 8 ) properties of the elementary functions (Chapters 4, 6) partial fractions (62 ) completing the square (66 ) ➤
➤
➤
It • • • •
Objectives In this chapter you will find: • definition of integration • standard integrals • addition of integrals • simplifying the integrand • linear substitution in integration • the d u = f (x) d x substitution • integration of rational functions • use of trig identities in integration • using trig substitutions in integration • integration by parts • choice of integration methods • definite integrals
Motivation You may need the material of this chapter for: • solving differential equations (➤ Chapter 15) • calculating areas and volumes (➤ Chapter 10) • calculating mean and RMS values (➤ Chapter 10) • calculating moments, centroids, etc. (➤ Chapter 10) • calculating means, standard deviations, and probabilities 250
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
9.1 Review ➤ 253 280 ➤➤
9.1.1 Definition of integration A. Differentiate (i) x 3
(ii) sin 2x
(iii) 2e3x
(ii) cos 2x
(iii) 2e3x
B. Find the integral of (i) 3x 2
➤ 255 281 ➤➤
9.1.2 Standard integrals A. Integrate the following functions (include integration constants) (i) 3
(ii)
2 x2
(iii)
√
1
(iv) x 3
x
B. Give the integrals of (ii) ex
(i) sin x
(iii)
➤ 257 281 ➤➤
9.1.3 Addition of integrals Integrate 2x 2 +
1 x
√ 3 + 4 x − 2ex + 4 sin x. 2 x ➤ 258 281 ➤➤
9.1.4 Simplifying the integrand Find
dx 2 cos 2x + 2 sin x (cos 2x sin 3x − cos 3x sin 2x) d x (iii) (i)
(ii)
xe2 ln x d x
Hint: think about what you are integrating!
9.1.5 Linear substitution in integration
➤ 260 282 ➤➤
Integrate (i)
1 x−1
(ii) cos(3x + 2)
(iii) e2x−1 251
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
9.1.6 The du = f .x/ dx substitution
➤ 263 282 ➤➤
Integrate the following functions by means of an appropriate substitution. (i)
x2
x+1 + 2x + 3
(ii) x sin(x 2 + 1)
(iii) cos xesin x
(iv) sin x cos x
1. Compare the results of (iv) with that of Q9.1.8(iv). Are the answers the same? Explain. ➤ 265 283 ➤➤
9.1.7 Integrating rational functions
dx using partial fractions. x2 + x − 2 dx dx B. Find , given that = tan−1 x. 2 2 x + 2x + 2 x +1 2x 2 + 5x + 4 dx C. Find x 2 + 2x + 2 Hint: divide out first and think about Q9.1.6 and B immediately above. A. Find
D. Integrate 1 x2 + x + 1 3x (iv) (x − 1)(x + 1) (i)
(ii)
1 x 2 + 3x + 2
(iii)
2x + 1 x2 + x − 1
➤ 269 283 ➤➤
9.1.8 Using trig identities in integration Integrate the following functions using appropriate trig identities. (i) sin2 x
(ii) cos3 x
(iii) sin 2x cos 3x
(iv) sin x cos x 1. Cf (iv) with Q9.1.6(iv) – are the answers the same? ➤ 272 283 ➤➤
9.1.9 Using trig substitutions in integration Integrate (i) √
1 9−
(ii) √
x2
1 3 − 2x − x 2 ➤ 273 283 ➤➤
9.1.10 Integration by parts Integrate by parts (i) x sin x 252
(ii) x 2 ex
(iii) ex sin x
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
➤ 276 284 ➤➤
9.1.11 Choice of integration methods
Discuss the methods you would use to integrate the following – you will be asked to integrate them in RE9.3.11C. x−3 x 2 − 6x + 4 x−1 (iv) 2 2x + x − 3
(ii) sin3 x
(i)
(vii) x sin(x + 1) (x)
x+2 − 5x + 6
x2
(v) xe3x
(iii)
2
eln x x
(vi) √
3 − 2x − x 2 x e (ix) ln x
(viii) cos4 x (xi) xe2x
(xii) ex cos(ex ) x−1
(xiii) sin 2x cos 2x
(xiv) √
(xvi) sin 4x cos 5x
(xvii) x cos(x 2 + 1)
x2
− 2x + 3
(xv)
x+3 x 2 + 2x + 2
➤ 278 284 ➤➤
9.1.12 The definite integral A. Evaluate 1 (x 2 + 1) d x (i)
3
x
(ii)
0
1
xe d x 0
2
(iii) 0
x2 dx x3 + 1
2π
cos x sin x d x
(iv) 0
B. What is wrong with
2
0
dx ? x2 − 1
9.2 Revision ➤
9.2.1 Definition of integration
251 280 ➤
Integration (or more strictly indefinite integration) is the reverse of differentiation. Thus, if dy = f (x) dx
then y=
f (x) d x
is the anti-derivative or indefinite integral of f (x) (also sometimes called the ‘primitive’). f (x) is called the integrand. 253
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
For example, because we know that the derivative of x 2 is 2x, so we know that the integral of 2x is x 2 . Actually, because the derivative of a constant is zero the most general integral of 2x is x 2 + C where C is an arbitrary constant of integration. We write 2x d x = x 2 + C Solution to review question 9.1.1
A. Hopefully, this won’t give you much trouble now: d 3 (i) (x ) = 3x 2 dx d (sin(2x)) = 2 cos(2x) (ii) dx by the function of a function rule. d (iii) (2e3x ) = 2e3x × 3 = 6e3x dx B. Of course, these questions are not unrelated to A! (i) Having just done it in A(i) we know that we can obtain 3x 2 by differentiating x 3 : d 3 (x ) = 3x 2 dx And in fact we get the same result if we add an arbitrary constant C to x 3 : d 3 (x + C) = 3x 2 dx It follows that the most general integral of 3x 2 is: 3x 2 d x = x 3 + C (ii) A little more thought is needed to integrate cos 2x. Differentiating sin 2x gives us 2 cos 2x not cos 2x. To get the latter we should differentiate 12 sin 2x 1 d 1 2 sin 2x = 2 cos 2x = cos 2x dx 2 Remembering the arbitrary constant we thus have: 1 cos 2x d x = sin 2x + C 2 (iii) Again, we have to fiddle with the multiplier of the e3x . Since
d 3x (e ) = 3e3x dx
254
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
from A(iii), we see that d 2 3x = 2e3x e dx 3 So, again remembering the arbitrary constant: 2 2e3x d x = e3x + C 3 ➤
9.2.2 Standard integrals
251 281 ➤
We can compile a useful list of integrals just by reading a table of derivatives backwards. The simplest example is the derivative of x α . For any power α (that is, α can be any positive or negative real number – check that the result does make sense when α = 0) we have d α (x ) = αx α−1 dx from which, for any power α, except a = −1 (see below) d α+1 (x ) = (α + 1)x α dx and so
xα d x =
x α+1 α+1
We must here exclude the case α = −1 because otherwise we will have zero in the denominator. In fact, the result for α = −1 is: dx x −1 d x = = ln |x| + C x 1 d (ln |x|) = . dx x Similarly, from the derivatives of other functions we can build up the table of standard integrals given below (from which the arbitrary constant has been omitted). Note that much of it is the table of standard derivatives given in Chapter 8 read ‘backwards’ (233 ). The term ‘standard integral’ is of course relative – an advanced calculus book might have many more such integrals that you are expected to know. Here however we confine ourselves to the most important elementary functions. Obviously, the more you do know, the easier integration will be, and in particular you will find it invaluable to commit all those in the table to memory. Much of integration involves manipulating the integrand, or the whole integral, to make it expressible in terms of the standard integrals. Points to note about integration are: which we know from
➤
• • • •
the better your differentiation, the better your integration know your basic algebra and trig skills practice and perseverance pay dividends trial and error may be needed 255
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Table 9.1
f (x) dx (arbitrary constant omitted)
f (x) x α α = −1 1 x cos x
− cos x tan x
ex
ex
+
sin−1 (x/a) tan−1 (x/a)
x2)
u (x) u(x) u (x)eu(x)
•
•
•
sin x
sec2 x
a/(a 2
ln |u(x)| eu(x)
have the standard integrals (at least) at your fingertips check your answers by differentiation as often as possible – provides practice as well as confirmation there may be more than one way to do an integral – for example x+1 dx x2 + x − 6 can be done by partial fractions or by the substitution u = x 2 + x − 6 there may be no way to do an integral – for example 2 ex d x simply cannot be integrated in terms of elementary functions integration skills build up sequentially – for example: dx (i) first learn = ln |x| x dx = ln |x − 1| (ii) then x−1 (iii) then by partial fractions 1 dx 1 = − dx x2 − 1 2(x − 1) 2(x − 1)
Solution to review question 9.1.2
A. These are all particular cases of
xα d x =
256
α = −1
ln |x|
sin x
√ 1/ a 2 − x 2
• •
x α+1 /(α + 1)
x α+1 α+1
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
As usual, the places where you might have trouble occur when negative signs and fractions are involved. In such cases, just take it steady and check each step. 3 d x = 3 d x = 3x + C (i)
(ii)
(iii)
(iv)
2 dx =2 x2 √
x −2 d x = 2
x −1 2 x −2+1 +C =2 +C =− +C −2 + 1 −1 x 1
1 x2
x dx =
2 x 2 +1 x 3/2 + C = x 3/2 + C dx = 1 +C = 3/2 3 +1 2
1
1 x3
3 x 3 +1 x 4/3 + C = x 4/3 + C dx = 1 +C = 4/3 4 + 1 3
B. These are all standard integrals, known because we know what to differentiate to get them. d (i) (cos x) = − sin x dx so sin x d x = − cos x + C (ii)
d x (e ) = ex dx so ex d x = ex + C
d 1 (ln |x|) = dx x 1 so d x = ln |x| + C x x0 1 d x = ! Also note the reminder about the modulus NB Note that x 0 in ln |x|. These and others we can put together in the table of standard integrals on page 256.
(iii)
➤
9.2.3 Addition of integrals
251 281 ➤
If you differentiate a sum then the result is the sum of the derivatives: d df dg (f + g) = + dx dx dx Similarly, the integral of a sum is the sum of the integrals: (f + g) d x = f d x + g d x (not forgetting the arbitrary constant of course). 257
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Applying the result a number of times we see for example that 3f (x) d x = (f (x) + f (x) + f (x)) d x
f (x) d x +
=
f (x) d x +
f (x) d x
=3
f (x) d x
and in general for any numerical multiplier k: kf (x) d x = k f (x) d x In general, if k and l are constants then we have (kf + lg) d x = k f d x + l g d x For this reason integration is called a linear operation. This rule enables us to integrate any linear combination of standard integrals, including all polynomials, for example. Solution to review question 9.1.3
The given function is a linear combination of standard integrals. We can therefore use the linearity of the integral operation: √ 3 2 x 2x + 2 + 4 x − 2e + 4 sin x d x x dx + 4 x 1/2 d x = 2 x2 d x + 3 x2 − 2 ex d x + 4 sin x d x =
3 8x 3/2 2x 3 − + − 2ex − 4 cos x + C 3 x 3
Note that we only need one arbitrary constant for the overall integral and not one for each of the ‘summands’. ➤
9.2.4 Simplifying the integrand
251 281 ➤
When faced with a new integral, the first thing to do, after checking whether it is a standard integral, is to see if it is in the most convenient form for integration. Thus, in the integral f (x) d x, we have two things to play with: • • 258
the integrand f (x) the variable x
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
We consider changes of variable, x, later under various substitution methods, but here we will have a first look at what we might be able to do with the integrand in some simple cases. In general f (x) may be a polynomial or rational function, trig or hyperbolic, log or exponential, or any combination of these. We would first look at f (x) to see if it can be simplified or rearranged to our advantage. This involves all that we have learnt so far, including such things as • • • •
algebraic simplification partial fractions trig identities exponential and log properties
In kinds of rearrangements. For example, this section we concentrate on the simplest ln x e d x looks awful – but it is simply x d x, a much easier proposition. The review question gives further examples. Solution to review question 9.1.4
All the integrals look formidable (deliberately!) – but in fact, using the properties of exponentials and logs and trig identities the integrands can all be simplified to easily integrated functions. dx dx (i) = 2 2 cos 2x + 2 sin x 1 − 2 sin x + 2 sin2 x using cos 2x = 1 − 2 sin2 x dx =x+C = 1 2 2 ln x xe d x = xeln x (α ln x = ln x α ) (ii) 2 ln x = xx d x (e = x) = x 3 d x =
x4 +C 4
Note that here, as elsewhere, we have taken the modulus under the log for granted, as to include it would clutter up the expressions. (iii) This is easy if you know your compound angle formulae backwards! (cos 2x sin 3x − cos 3x sin 2x) d x = sin(3x − 2x) d x
=
sin x d x
= − cos x + C 259
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
➤
9.2.5 Linear substitution in integration
251 282 ➤
It may be that f (x) in
f (x) d x is inconvenient for integration because of the variable
x, and it may be useful to change to a new variable. This entails changing d x as well as f (x) of course. For example, consider the integral (2x − 4)3 d x You may be tempted to expand the bracket out by the binomial theorem, and obtain a polynomial which is easily integrated. This is correct, but is an unnecessary complication. The way to go is to notice the similarity to x 3 and substitute u = 2x − 4 We must of course also replace d x. To this end we note that du =2 dx du . This somewhat cavalier way of dealing with the d x and and so d u = 2 d x and d x = 2 d u is permissible provided we are careful. The upshot is that du 3 (2x − 4) d x = u3 2 1 u4 +C = u3 d u = 2 8 =
(2x − 4)4 +C 8
on returning to the original variable. In general, whenever we make a substitution of the form u = ax + b where a, b are constants, we call this a linear substitution. It is particularly simple because du =a dx and therefore d u and d x are simply proportional du =
du dx = a dx dx
dx =
du a
so
With practice, you may be able to dispense with the formal ‘u = x + 1’ substitution and do the above example as follows: 260
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
1 (2x − 4) d x = (2x − 4)3 d (2x − 4) 2 11 (2x − 4)4 + C = 24 1 = (2x − 4)4 + C 8 (d (2x − 4) = 2 d x) 3
There is a useful ‘intuitive’ way of looking at linear substitution. When integrating a function of ax + b, f (ax + b), we think ‘Well, ax + b is really little different to x. So treat it like x – if the integral of f (x) is F (x), take the integral of f (ax + b) to be F (ax + b). But if we differentiated this with respect to x we would get a multiplier “a” coming in from the function of a function rule. So we need to divide the integral by a to 1 cancel this multiplier. The integral of f (ax + b) is thus F (ax + b).’ For the example a (2x − 4)4 3 3 . above this goes through as follows: (2x − 4) is like x , so take its integral to be 4 But if we differentiate this we get a 2 coming from differentiating the bracketed term by 1 function of a function. So remove this by multiplying by so that the final form of the 2 1 (2x − 4)4 (2x − 4)4 integral is × = , as we found above. 2 4 8 Another important point is that the linear substitution is very special – it is the only case in which d u and d x are proportional. Suppose we substitute u = g(x) so
du = g (x) dx
and therefore d u = g (x) d x In the linear substitution case this gives du = a dx and we could simply divide by a to replace d x by du a But in any other substitution we can’t do this, we would get dx =
du g (x)
and we have the complication of substituting for x in terms of u in g (x). So, greater care is needed with other types of substitutions. In general, simple substitutions require special forms of the integrand – see Section 9.2.6. 261
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Solution to review question 9.1.5
These questions all involve linear substitutions. In no case is it necessary to do anything to the function before substitution. (i) If you did something like dx 1 ‘ = − 1 d x = . . .’ x−1 x stop now and go back to review your basic algebra. It is of course 1 wrong. You cannot ‘simplify’ any further and must work with x−1 it as it is, and for this we use a substitution. 1 1 to suggests making the substitution x−1 x u = x − 1 so d u = d x and dx du = = ln u = ln(x − 1) + C x−1 u The closeness of
or, quicker
dx = x−1
d (x − 1) = ln(x − 1) + C x−1
(ii) Here you may have been tempted to use the compound angle formula to expand the cos and get simple sine and cosine integrals. Again, while correct, this is unnecessarily messy – simply substitute du 3 du cos(3x + 2) d x = cos u 3 1 = sin u + C 3 1 = sin(3x + 2) + C 3 1 cos(3x + 2) d x = cos(3x + 2) d (3x + 2) 3 1 = sin(3x + 2) + C 3 u = 3x + 2,
so
or
dx =
(iii) By now, you will probably be happy with: 1 2x−1 e dx = e2x−1 d (2x − 1) 2 1 = e2x−1 + C 2
262
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
➤
9.2.6 The du = f .x/ dx substitution
252 282 ➤
Integration by substitution is often difficult. The substitution to use is not always obvious. One case when it is fairly easy to spot the substitution occurs when the integrand contains a function f.x/ and its derivative f .x/. One then tries substituting for the function, u = f (x). This is the reverse of the function of a function rule of differentiation. This approach relies on ‘noticing’ the derivative – i.e. on good facility with differentiation. An important general example of this approach is the integral
f (x) d x = ln |f (x)| + C f (x)
because if we put u = f (x) we get d u = f (x) d x, which occurs on the top and the integral becomes du = ln |u| + C = ln |f (x)| + C u Similarly, for example
cos(f (x))f (x) d x = sin(f (x)) + C
by putting u = f (x).
In general, to integrate g(f (x))f (x) d x put u = f (x) and convert it to g(u) d u, g(f (x)) d f (x), and hope that you can integrate this. We illustrate sometimes written
the process by a further example: 2 xex d x Given Note that the derivative of x 2 is 2x, and we have 12 (2x) = x in the integrand. We know 2 the derivative of ex is ex , so maybe the integral looks something like ex ? So differentiate 2 ex and see what we get d x2 2 2 (e ) = ex × (2x) = 2xex dx Not quite – the factor 2 is the problem. But that is easily dealt with: d dx
1 x2 e 2
= xex
2
gives us what we want. So
2
xex d x =
1 x2 e +C 2
You may need to try this a couple of times – and in the end it may not work, anyway. So, BE FLEXIBLE AND KNOW YOUR DIFFERENTIATION. 263
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Solution to review question 9.1.6
x+1 d x the derivative of x 2 + 2x + 3 is + 2x + 3 2(x + 1) and we have an x + 1 on the top. This suggests substituting u = x 2 + 2x + 3. Then
(i) In the integral
x2
du = 2(x + 1) dx You may now be tempted to write dx =
du 2(x + 1)
substitute in the integral and cancel the x + 1. While correct, this is a bad habit – never mix variables in an integral. Instead, simply use the fact that x + 1 is ready and waiting for us in the integrand and write d u = 2(x + 1) d x or (x + 1) d x = to get
du 2
(x + 1) d x = x 2 + 2x + 3
1 du u 2 1 du 1 = = ln u + C 2 u 2
=
1 ln(x 2 + 2x + 3) + C 2
(ii) Again, in
x sin(x 2 + 1) d x the derivative of x 2 + 1 is 2x and we
have an x multiplying the sine, which suggests putting u = x 2 + 1. Then 1 2 x sin(x + 1) d x −−−→ sin u d u 2 1 = sin u d u 2 1 = − cos u + C 2 1 = − cos(x 2 + 1) + C 2 264
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Or:
1 x sin(x + 1) d x = 2
2
sin(x 2 + 1) d (x 2 + 1)
1 = − cos(x 2 + 1) + C 2 (iii) Now you may be able to appreciate the following more easily: sin x cos xe d x = esin x (cos x d x)
=
esin x d (sin x)
= esin x + C
(iv)
1 2 sin x + C 2 Compare this with the result that you might obtain for Q9.1.8(iv). In that case you may obtain sin x cos x d x =
sin x d (sin x) =
− 14 cos 2x + C ➤
Using the double angle formula for cos 2x (188 ) shows that this in fact only differs from the answer obtained above by a constant, which is unimportant because both forms of the answer contain an arbitrary constant. ➤
9.2.7 Integrating rational functions
252 283 ➤
Any rational function has the form: polynomial polynomial We can assume that the numerator has lower degree than the denominator, otherwise we could divide out to get a polynomial plus such a fraction. In many useful cases the polynomial in the denominator can be factorised into linear and/or quadratic factors with real coefficients. We could then use partial fractions and substitution to split the rational function up into integrals of the general form
ax + b dx cx 2 + d x + e
This form of integral is therefore very important, and we will study it in detail. How we approach it depends on whether or not the denominator factorises (45 ). If it does, we can use partial fractions (62 ). If it doesn’t then completing the square (66 ) enables us to use a linear substitution and a standard integral. ➤
265
➤
➤
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
x factorise (45 ) dx denominator (x − 1)(x − 2) 2 1 split into = dx (62 ). − partial fractions x−2 x−1 dx dx − (isolate integrals) (258 ). =2 x−2 x−1 = 2 ln(x − 2) − ln(x − 1) + C (using substitutions)
x dx = x 2 − 3x + 2
➤
Example
➤
➤
You can see the skill required at each step – if any steps still puzzle you go back to the appropriate paragraph. For a similar example using completing the square see the solution to the review question Given a rational function of the type ax + b + dx + e
cx 2
we may need to combine a number of methods – such as completing the square and substitution for example. This may require some manipulation of the integrand. Also we may not be told which method to use to integrate it, so we have to be able to spot the best approach. There are three methods we can employ, separately, or in combination: • • •
Substitution Completing the square Partial fractions
We can use substitution immediately if the top is proportional to the derivative of the bottom, using the result f (x) d x = ln f (x) + C f (x) If it is not, then check whether the denominator factorises – if it does, then we can use partial fractions. If the bottom doesn’t factorise, we can always rewrite the numerator to make it equal to the derivative and an additional constant, that is: ax + b ≡
a(2cx + d) ad − +b 2c 2c
(Confirm this result to check that your algebra is up to scratch!) Then a ad 2cx + d 1 ax + b = + b − 2 2 2 cx + dx + e 2c cx + dx + e 2c cx + dx + c The first part can now be done by substituting u = cx 2 + dx + e, which leaves us with the problem of integrating something of the form dx cx 2 + dx + e If the bottom doesn’t factorise then we will have to use completing the square. 266
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Solution to review question 9.1.7
If, in these questions, you have done something like: dx 1 ‘ = ln(x 2 + 2x + 2)’ x 2 + 2x + 2 2x + 2 which is incorrect, then you have probably misunderstood the idea of substitution. ‘Dividing by the derivative of the denominator’ in this way will only work for a linear denominator, when the derivative is constant (261 ). You have only to differentiate the right-hand side to see that it cannot possibly be the integral of the left-hand side. The following solutions show the correct approach to such integrals. ➤
A. In this case the denominator factorises and we don’t need to complete the square – we can split into partial fractions: dx dx = 2 x +x−2 (x − 1)(x + 2) 1 1 = dx − 3(x − 1) 3(x + 2) 1 dx dx 1 = − +C 3 x−1 3 x+2 1 1 = ln(x − 1) − ln(x + 2) + C 3 3 using
dx = ln(x − a) + C x−a
We can tidy the answer up and write: 1 dx x −1 = ln +C x2 + x − 2 3 x +2 B. In this case the denominator does not factorise, and the only option is to complete the square (66 ). We have: dx dx = 2 x + 2x + 2 (x + 1)2 + 1 ➤
➤
Now this looks like the inverse tan integral (256 ), which we can get by substituting u = x + 1, d u = d x: dx du = = tan−1 u 2 2 (x + 1) + 1 u +1 so
x2
dx = tan−1 (x + 1) + 2x + 2 267
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
C. This question illustrates that sometimes you may need to combine methods. Here, the numerator is of the same degree as the denominator, so we must first divide out: 2x 2 + 5x + 4 2(x 2 + 2x + 2) − 4x − 4 + 5x + 4 = x 2 + 2x + 2 x 2 + 2x + 2 x =2+ 2 x + 2x + 2 So
2+
x dx x 2 + 2x + 2 x dx = 2x + C + x 2 + 2x + 2
2x 2 + 5x + 4 dx = x 2 + 2x + 2
In the remaining integral the denominator doesn’t factorise and the top is not the derivative of the bottom. We can remedy this by adding and subtracting 1 in the numerator, to manufacture the derivative of the bottom on the top! x dx x+1−1 = dx 2 x + 2x + 2 x 2 + 2x + 2 (x + 1) dx = dx − x 2 + 2x + 2 x 2 + 2x + 2 d (x 2 + 2x + 2) d (x + 1) 1 = − 2 x 2 + 2x + 2 (x + 1)2 + 1 =
1 ln |x 2 + 2x + 2| − tan−1 (x + 1) + C 2
So, finally, the integral is 1 ln |x 2 + 2x + 2| − tan−1 (x + 1) + C 2 Note that we don’t need to duplicate the arbitrary constant C. D. In these problems you have to decide which method to use for yourself. Also, (iv) illustrates that the ‘obvious’ method is not always the best, so you should always be on the look-out for easier alternatives. (i) The denominator won’t factorise, so complete the square dx dx = x2 + x + 1 1 2 3 x+ + 2 4 1 x + 2 = √ tan−1 √ 2 + C 3 3/2 2x +
2 −1 2x + 1 = √ tan √ +C 3 3 268
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(ii) The denominator factorises so we can use partial fractions dx dx = 2 x + 3x + 2 (x + 1)(x + 2) 1 1 − dx = (x + 1) (x + 2) dx dx = − x +1 x+2 x+1 +C = ln x+2 (iii) The top is the derivative of bottom so use substitution
2x + 1 dx = x2 + x − 1
d (x 2 + x − 1) x2 + x − 1
= ln(x 2 + x − 1) + C (iv) You may have tackled this by partial fractions. This is valid and will give the correct answer, but you might spot an easier way, if your algebra and substitution are on the ball. 3x x dx = 3 dx 2 (x − 1)(x + 1) x −1 2x 3 dx = 2 x2 − 1 d (x 2 ) 3 = 2 x2 − 1 3 = ln(x 2 − 1) + C 2 ➤
9.2.8 Using trig identities in integration
252 283 ➤
Using a simple linear substitution, u = 3x, we can integrate things such as:
cos 3x d x =
1 sin 3x + C 3
Using this and various trig identities we can perform some quite complicated integrations. The most common examples here include the use of the compound angle and double angle formulae sin(A ± B) = sin A cos B ± sin B cos A cos(A ± B) = cos A cos B ∓ sin A sin B 269
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
which enable us to integrate functions of the type sin mx cos nx (m = n)
sin mx sin mx cos mx cos nx
Such integrals are fundamental to calculations in the theory of Fourier series (Chapter 17). The double angle formulae can help us deal with integrals containing powers of sin x or cos x. Odd powers of sin x and cos x can sometimes be dealt with using the Pythagorean identity cos2 x + sin2 x = 1 and substitution. In general, for the integral: sinm x cosn x d x if one of m or n is odd, try using the Pythagorean identity whilst if both are even, use double angle formula and other trig identities. The review questions illustrate this. For integrals such as cos mx cos nx d x, sin mx sin nx d x, sin mx cos nx d x where m = n, use the compound angle formulae. Again, see the review questions. Hyperbolic functions can be dealt with similarly. Solution to review question 9.1.8
The use of trig identities for the examples given relies on the fact that we can always integrate cos or sine of multiple angles: 1 cos kx d x = sin kx + C k 1 sin kx d x = − cos kx + C k When faced with integrals such as those in this question, make a list of the identities you know involving products of sines and cosines: cos 2x = 2 cos2 x − 1 = 1 − 2 sin2 x = cos2 x − sin2 x sin 2x = 2 sin x cos x sin(A + B) = sin A cos B + sin B cos A, etc. using these, the integrals are not so bad: 1 (i) sin2 x d x = (1 − cos 2x) d x 2 270
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
by the double angle formula for cos 2x. 1 (1 − cos 2x) d x = 2 1 sin 2x = x− +C 2 2 NB: Be careful with functions such as cos 2x, which, of course is not the same thing as 2 cos x! 3 (ii) We can write cos x d x = cos2 x cos x d x 1 − sin2 x cos x d x = Now put u = sin x, or equivalently:
=
(1 − sin2 x) d (sin x) = sin x −
sin3 x +C 3
(iii) We can express sin A cos B as a sum of sines by using sin(A + B) = sin A cos B + sin B cos A sin(A − B) = sin A cos B − sin B cos A Adding: sin A cos B = 12 (sin(A + B) + sin(A − B)) So
sin 2x cos 3x = 12 (sin(2x + 3x) + sin(2x − 3x)) = 12 (sin 5x + sin(−x)) = 12 (sin 5x − sin x)
So we can write: 1 sin 2x cos 3x d x = (sin 5x − sin x) d x 2 1 cos 5x = − + cos x + C 2 5 =
1 1 cos x − cos 5x + C 2 10
(iv) This is easy now, using the double angle formula for sin 2x backwards: sin x cos x = 12 2 sin x cos x =
1 2
sin 2x 271
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
So
1 sin x cos x d x = 2
sin 2x d x
1 = − cos 2x + C 4 Refer back to Review Question 9.1.6(iv) for an alternative form of this. ➤
9.2.9 Using trig substitutions in integration
252 283 ➤
Trig or hyperbolic substitutions may help you to deal with some rational and irrational functions. Thus if you have a2 − x2 x2 − a2 a2 + x2
try x = a sin θ
or x = tanh θ
try x = a cosh θ
or x = sec θ
try x = a sinh θ
or x = tan θ
The form of the substitution may depend on the range of values of x. Another useful trig substitution is t = tan θ/2 With this we have cos θ =
1 − t2 , 1 + t2
sin θ =
2t 1 + t2
We also have to change between d θ and d t of course. We have 1 1 dθ 1 2 θ 2 θ = sec = 1 + tan = (1 + t 2 ) dt 2 2 2 2 2
from which dθ =
2d t 1 + t2
This substitution can sometimes be used to convert an integral of the form
f (cos θ, sin θ ) d θ to an integral of a rational function in t, which may be easier to deal with.
272
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Solution to review question 9.1.9
√ Whenever you see something like a 2 − x 2 try a sine substitution x = a sin θ . √ √ dx (i) For √ the function 9 − x 2 = 32 − x 2 appears and so we 9 − x2 try a substitution x = 3 sin θ . This gives d x = 3 cos θ d θ and 2 9 − x = 9 − 9 sin2 θ √ = 3 cos2 θ = 3 cos θ
So
√
dx 9−
x2
−−−→
= But sin θ =
(ii)
√
3 cos θ d θ 3 cos θ
dθ = θ + C
x x and therefore , so θ = sin−1 3 3 x dx √ = sin−1 +C 3 9 − x2
dx
doesn’t seem to fit any of the simple forms given 3 − 2x − x 2 above. However, by completing the square and substituting we can make progress: dx dx √ ≡ 3 − 2x − x 2 4 − (x + 1)2 dx ≡ 2 2 − (x + 1)2 −1 x + 1 = sin +C 2 on putting u = x + 1. ➤
9.2.10 Integration by parts
252 283 ➤
Useful for some products the integration by parts formula is derived by integrating the product rule of differentiation: d (uv) dv du =u +v dx dx dx dv du u d x = uv − v dx dx dx (‘integrate one, differentiate the other’). 273
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
First, note that not all products can be integrated by parts, and that integration by parts can be useful for things that are not obvious products. We may also need to use it a number of times, or employ it in more cunning ways (see review solutions). The first problem we face with integration by parts is which factor to integrate first. There are few hard and fast rules, and experience counts for a lot here. Still, we can get a lot from our knowledge of the elementary functions: Polynomials Rational functions Irrational functions Cosine and sine Exponentials and their inverses. Rational and irrational (containing roots of algebraic functions) functions are difficult to deal with when combined with other functions, so we will focus on products of polynomials, cosine and sine and exponentials. By linearity, if we can handle a power function x n then we can handle a polynomial. Also, cosine and sine are virtually equivalent so far as calculus is concerned, so we can concentrate on sine. Finally, eαx , sin(αx) are little different to ex , sin x so we can look at just products of the three functions x n , ex , sin x. This gives us integrals such as: I1 = x n e x d x
I2 =
x n sin x d x
I3 =
ex sin x d x
In I1 , I2 integrating or differentiating ex or sin x is neither here nor there because essentially the same things results. However, integrating x n will make things worse, while differentiating it will eventually remove it. So for I1 , I2 we start off by integrating ex or sin x so that the x n will be differentiated. In I3 it actually doesn’t matter which we integrate first, we will always come back to where we started – and indeed this is the secret to this sort of integral (see review question). ln x and inverse functions such as sin−1 x can be integrated by parts by treating them as a product with 1 and integrating the 1. For example, ln x d x = 1 × ln x d x
= x ln x −
x×
1 d x = x ln x − x + C x
Solution to review question 9.1.10
(i) We will use the integration by parts formula dv du u d x = uv − v dx dx dx 274
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
but only on this first example will we explicitly write u=x
dv = sin x dx
du = 1 v = − cos x dx to help you on your way. Note that we chose u = x so that when we differentiate the x becomes a much more amenable 1! We have d (x) x sin x d x = x(− cos x) − (− cos x) d x dx = −x cos x + cos x d x = −x cos x + sin x + C With practice, you should be able to dispense with explicit use of u, v, etc. – although continue with it until you feel confident enough to do without. (ii) We may need to use integration by parts more than once (if you do, remember to keep integrating the same factor). Again, we are going to chose to differentiate the x 2 to reduce it, so we first integrate the ex . x 2 ex d x = x 2 (ex ) − 2xex d x
= x e − 2 xe − 2 x
x
x
e dx
= x 2 ex − 2xex + 2ex + C
(iii) In integrating
ex sin x d x we sometimes feel like we are going
round in circles with integration by parts! Write I = ex sin x d x = ex sin x − ex cos x d x (note that it doesn’t matter which of ex , sin x we integrate) x x x = e sin x − e cos x − e (− sin x) d x being careful to keep integrating the same factor = ex (sin x − cos x) + C − ex sin x d x = ex (sin x − cos x) − I + C 275
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Note that we only need the one arbitrary constant. We can now transfer the I to the left-hand side to get 2I = ex (sin x − cos x) + C so
I = 12 ex (sin x − cos x) + C
NB. Since C is arbitrary we have no need to keep changing it during the manipulations, or introducing new arbitrary constants. ➤
9.2.11 Choice of integration methods
253 284 ➤
So far you have usually been told which method to use for a particular integral – a bit like someone handing you just the right tool for a particular job when you need it. By now you have developed a whole box of tools of integration, and there will not always be someone around to tell you which to choose for the given jobs – you need to know the tools and their uses well enough to choose the right ones for yourself. Efficient selection of the right tool from the box, as you will know, requires a lot of practice and experience, and even the best of us will make mistakes at times. Sometimes the tool we pick won’t fit, so we have to try another. Sometimes different tools will do the same job, but one of them is the best to use in a particular instance. It helps to have a rough summary of the different types of tools, and for integration we have covered essentially: • • • • • • • •
standard integrals simplifying the integrand linear substitution d u = f (x) d x substitutions the use of trig identities and substitutions partial fractions completing the square integration by parts
Various strategies for choosing the best methods are discussed in other sections, and here we will simply use the review question to bring together more examples. Be prepared to go up a few blind alleys and don’t be afraid to make mistakes in this topic. Solution to review question 9.1.11
(i) We looked at rational functions such as Section 9.2.7, and the common methods are • • • •
x2
x−3 − 6x + 4
in
simplification of the integrand (dividing out, etc.) substitution, d u = f (x) d x partial fractions completing the square
In this case we notice that the numerator is almost the derivative of the denominator, suggesting that we try the substitution u = x 2 − 6x + 4 here. 276
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(ii) There are a number of ways we might tackle sin3 x, covered in Section 9.2.8, but perhaps the easiest is to use the Pythagorean identity to write sin2 x = 1 − cos2 x and then use the substitution, u = cos x (271 ). ➤
eln x 1 (iii) In you may notice that is the derivative of ln x, suggesting x x the substitution u = ln x. But hopefully you are now happy enough with the exponential function to note the simplification eln x = x and take it from there (259 )! ➤
x −1 the top is not the derivative of the bottom, but we +x−3 notice that the denominator factorises into (2x + 3)(x − 1) and so the function can be simplified by cancelling the x − 1 (provided x is not equal to 1, of course), resulting in a simple linear substitution and log integral (263 ).
(iv) In
2x 2
➤
2
(v) No, xe3x is not a prime candidate for integration by parts, despite being similar to products we have dealt with in that way. Instead, we notice that the x is almost the derivative of the x 2 in the exponent, and this suggests that the substitution u = x 2 will rescue us here (263 ). ➤
(vi) Nasty looking functions such as √
3
containing roots of 3 − 4x − x 2 algebraic functions usually succumb only to some sort of trig or hyperbolic substitution as considered in Section 9.2.9 – though in this case we need to complete the square first. A similar integral is done in Review Question 9.1.9(ii).
(vii) x sin(x + 1) yields to a straightforward integration by parts, in which the sin(x + 1) is integrated first (273 ). ➤
(viii) cos4 x can be integrated by using the double angle formulae cos 2x = 2 cos2 x − 1 = 1 − 2 sin2 x to replace cos2 x and subsequently cos2 2x to leave us with integrals of a constant, cos 2x and cos 4x (270 ). x e (ix) By now you should see immediately that ln = x − ln x and x we have only to integrate the ln x, which can be done by parts, as shown in Section 9.2.10. x+2 factorises to (x − 2)(x − 3) and (x) The denominator of 2 x − 5x + 6 we have a straightforward partial fractions to deal with (266 ). ➤
➤
x
).
x
(xii) ln e cos(e ) we note that the derivative of e is of course ex which tells us to substitute u = ex (263 ). ➤
x
➤
(xi) xe2x provides a very typical integration by parts (273
277
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(xiii) sin 2x cos 2x is, from the double angle formulae, 12 sin 4x and becomes a standard integral on substituting u = 4x (271 ). x −1 looks fearsome until we notice that the numerator (xiv) √ 2 x − 2x + 3 is almost the derivative of the quadratic under the square root, prompting us to make the substitution u = x 2 − 2x + 3 (263 ). x +3 x+1 2 (xv) 2 can be rewritten as 2 + x + 2x + 2 x + 2x + 2 x 2 + 2x + 2 whence the first fraction can be integrated by the substitution u = x 2 + 2x + 2, and the second by completing the square (268 ). ➤
➤
➤
(xvi) sin(4x) cos(5x) looks like (xiii) but in this case we have to use the compound angle formulae to express it as a combination of sin(9x) and sin x – a similar integral is done in Review Question 9.1.8(iv) (271 ). ➤
(xvii) ln x cos(x 2 + 1) just notice that the x is almost the derivative of the x 2 + 1 and take it from there (263 ). ➤
➤
9.2.12 The definite integral
253 284 ➤
If
f (x) d x = F (x) + C then the definite integral of f .x / between the limits x = a, x = b is the number: b f (x) d x = [F (x)]ba = F (b) − F (a) a
That is, substitute the upper limit b in the indefinite integral F (x) and subtract the value of F (x) with the lower limit substituted. Notice that even if we include the arbitrary constant in the actual integration, it will only cancel out when the difference between the upper and lower limits is taken – so we can discard it in the definite integral. The variable x in the definite integral is called a dummy variable, it being immaterial to the value of the integral – thus b b f (x) d x = f (t) d t a
a
In this respect the integration variable is like the summation index in the sigma notation (102 ). As we will see in Chapter 10, the definite integral can be interpreted as an area under a curve, and more rigorously as the limit of a sum – but here we are simply interested in the technicalities of performing the definite integral. Obvious properties of the definite integral are: a f (x) d x = F (a) − F (a) = 0 ➤
a
a
278
b
a
f (x) d x = F (b) − F (a) = −(F (a) − F (b)) = −
f (x) d x b
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Not so obvious is the fact that if a < b < c then b c f (x) d x + f (x) d x = F (b) − F (a) + F (c) − F (b) = F (c) − F (a) a
b
c
=
f (x) d x a
Remember to change limits if you make a substitution – and to ensure that the substitution is consistent with the values of the limits. When integrating a definite integral by parts you can substitute the limits in as you go along: b b dv du b u v d x = [uv]a − dx dx dx a a When putting limits on integrals we must be careful to avoid, in the integration interval, any points where the integral or integrand would not exist. For example 1 dx 0 2x − 1 is an improper integral because the integrand is not defined at x = 12 , which is within the range of integration. Another type of ‘improper integral’ occurs when one or both of the limits involves infinity. We will see this specifically in Chapter 17, in the Laplace transform, but for now we simply state the definition: ∞ a f (x) d x = lim f (x) d x 0
a→∞ 0
That is, we first integrate using a finite limit a and then we let a tend to infinity in the result. Solution to review question 9.1.12
x3 + x, A. (i) The indefinite integral of f (x) = x 2 + 1 is F (x) = 3 ignoring the arbitrary constant. So
1 0
(x 2 + 1) d x = [F (x)]10 = F (1) − F (0) =
x3 +x 3
1 0
1 4 = +1−0= 3 3 (ii) We can fit the limits in as we go along in integration by parts: 0
1
xex d x = [xex ]10 −
1
ex d x 0
= e − 0 − [ex ]10 = e − (e − e0 ) = 1 since e0 = 1 279
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(iii) When we make a substitution, we can change the limits too – then we don’t have to return to the original variables. 1 x2 d x the numerator is the derivative of the denomiIn 3 0 x +1 nator (almost), so put u = x 3 + 1. du Then d u = 3x 2 d x or x 2 d x = . 3 The limits on u are obtained from the substitution when x = 0,
u = 03 + 1 = 1
when x = 2,
u = 23 + 1 = 9
So
2
0
x2 1 dx = 3 x +1 3
9 1
du 1 = [ln u]91 u 3
1 = (ln 9 − ln 1) 3 1 = ln 9 3 remembering that ln 1 = 0. (iv) This sort of integral is very important in the theory of Fourier series (see Chapter 17). Using the double angle formula we have
2π
0
1 cos x sin x d x = 2
2π
sin 2x d x 0
1 = − [cos 2x]2π 0 =0 4
2
B. 0
dx = 2 x −1
2 0
dx (x − 1)(x + 1)
The integrand doesn’t exist (‘becomes singular’) at x = 1, which is within the range of integration.
9.3 Reinforcement 251 253
➤➤
A. Differentiate the following functions: (i) 3x 3 280
(ii)
√
3x
(iii)
2 x4
(iv) x 2/5
➤
9.3.1 Definition of integration
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(v) sin 3x (ix) ln 2x
(vi) cos x 3 √ x+1 (x)
1 x+1
(vii) e5x
(viii)
(xi) ln(3x + 1)
(xii) tan−1 x
2 (1 + x)2
1 x5 1 (viii) √ x 1 (xii) 3x + 1
B. Integrate the following functions: 2 x
(ii) 3e5x
(iii)
−3 +1
(v) 3x 2 cos x 3
(vi)
(ix) 2 cos 3x
(x) x 2
3
(vii) x − 5
x2
(xi) √
3 x+1
(iv)
➤➤
9.3.2 Standard integrals
251 255
➤
(i)
A. Integrate the following functions: (i) 4
(ii) 3x 2 − 2x + 1
(iii) 3/x 5
(v) cos x
(vi) sec2 x
(vii) ln x
(iv) x 2/3 1 (viii) 2 x +1
B. Integrate the following functions with respect to the appropriate variables: (ii) 2s 2 − 3s + 2
(iii) 6/t 7
(v) sin θ
(vi) cosec2 t
(vii) e3t
(iv) x 1/4 1 (viii) 2 s +1 ➤➤
9.3.3 Addition of integrals
251 257
➤
(i) 4u
Integrate: 3 (ii) 2 cos x − sin x x3 (iv) sin(x + 3) by compound angle formulae (i) 2x 2 −
(v) The polynomial:
n
(iii) cosh x =
1 x (e + ex ) 2
ar x r
r=0
(vii) sinh x ➤➤
9.3.4 Simplifying the integrand
251 258
➤
(vi) sin x cos 2x
A. Evaluate the following by simplifying the integrand – noting any special conditions needed. 281
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(i)
(iii)
(v)
x 2 − 3x + 2 dx x−2
ln ecos x d x
(ii)
cos 2x dx cos x + sin x
(iv)
ecos
2
x
ln e2x
e3 ln x e− sin
2
x
dx
(cos x − sin x)2 d x
B. Sometimes you have to complicate a function to integrate it. Integrate sec x by multiplying and dividing by sec x + tan x. Integrate cosec x in a similar way. 251 260
➤
➤➤
9.3.5 Linear substitution in integration Integrate:
(v)
3 2x + 1
(ix) 4e3x−1
(ii) (2x − 1)1/3
(iii) sin(3x − 1) √ (vii) 3x + 2
(vi) (2x − 1)4 (x)
(iv) 2e4x + 1 (viii) cos(2x + 1)
1 4x − 3
9.3.6 The du = f .x/ dx substitution
252 263
➤
(i) (4x + 3)7
➤➤
A. Write down the substitution u = f (x) you would use to integrate the following and hence integrate them. (i) x 2 ex
3
(iii) cos x sin3 x
(ii) sec2 x sin(tan x + 2) x +1 (iv) 2 x + 2x + 3
(v) tan x
B. Integrate: (i) f (x) sin(f (x)) (iv) − sin x ln(cos x) f (x) cos(f (x) + 2) d x (vii)
(ii) f (x)e(f (x)) f (x) 2
(v)
x2
x−1 − 2x + 1
(iii) x 2 cos x 3 + 1 (vi) f (x)ef (x) d x
C. Integrate: (i) 3x 2 (x 3 + 2)3 (iv) (x + 1) cos(x 2 + 2x + 1) (vii) cos 2x(2 sin 2x + 1)3 282
√ (ii) 2x x 2 + 1 (v) sin xecos x (viii) √
6x + 12 x 2 + 4x + 4
2x − 1 −x+1 sec2 x (vi) tan x
(iii)
x2
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
252 265
➤
➤➤
9.3.7 Integrating rational functions A. Integrate the following by partial fractions: 2x (x − 1)(x + 3) 3 (iv) (x + 1)(x 2 + 1) (i)
x+1 x 2 + 5x + 6 x+1 (v) (x − 1)2 (x − 2)
4 2x 2 − x − 1 2x + 1 (vi) 3 x + 2x 2 − x − 2
(ii)
(iii)
B. Integrate the following by completing the square: 1 x 2 + 2x + 5 1 (iv) 2 x + 6x + 10 (i)
3 x 2 − 2x + 2 1 (v) 2 2x + 12x + 27
(ii)
(iii)
2 2x 2 + 2x + 1
C. Integrate: x3 x 2 + 2x + 2
(iii)
3x 4 (x − 1)(x + 1)
9.3.8 Using trig identities in integration
252 269
252 272
➤
(ii)
➤➤
x2 + 1 (x + 1)(x + 2)
➤
(i)
Integrate: (ii) cos 2x cos 3x
(iv) cos 5x sin 3x
(v) sin 2x sin 3x
(iii) cos5 x
➤➤
(i) cos2 x sin3 x
9.3.9 Using trig substitutions in integration A. Integrate the following functions using appropriate substitutions:
2 2 (iii) √ 2 4 + 9x 4− 1 − 9x 2 3 1 1 (iv) (v) √ (vi) √ 2 2 1 + 4x 8 − 2x − x 6x − x 2 θ 1 B. Use the t = tan substitution to integrate dθ. 2 3 + 5 cos θ 4x 2
(ii)
➤➤
1
9.3.10 Integration by parts
252 273
➤
(i) √
Integrate: (i) x cos x (v) x 2 cos x
(ii) x 3 ex (vi) x ln x
(iii) sin−1 x (vii) x 3 ex
(iv) ex cos x
2
283
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
253 276
➤
➤➤
9.3.11 Choice of integration methods A. From the following three methods of integration: A standard integral B
substitution
C
integration by parts
state which you would use to evaluate the following integrals:
2ex d x
(i)
xex d x
(ii) 2
x cos(x ) d x
(iv)
(v)
2
xex d x
(iii)
sec x tan x d x
(vi)
sec2 x tan x d x
B. Choose from A partial fractions B
completing the square
C
substitution
the methods (in the order in which you would use them) you would use to integrate (i)
1 +x+1 4x + 12
x2
(iv) √
(ii)
x2
(v) √
x 2 + 6x + 6
2x + 1 +x−1 2 (vi) x 2 + 2x + 1
1 +x−2 1
(iii)
7 − 6x − x 2
x2
C. Integrate the integrals in Review Question 9.1.11. 253 278
➤➤
A. Evaluate
1
(i)
2
x dx
(ii)
0
(iv) 0
1
x dx (x + 1)(x + 2)
π/2
x cos x d x
1
(iii)
0
√
0 1
xex d x
(v) 0
B. If f (x) is an even function and g(x) is an odd function, show that
(i) 284
a
−a
a
f (x) d x = 2
f (x) d x 0
(ii)
a −a
g(x) d x = 0
x2 x3 + 1
dx
➤
9.3.12 The definite integral
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
9.4 Applications We will be devoting a lot of Chapter 10 to applications of integration, and you will have ample opportunity to see applications of integration later in the book. For now we will apply the skills learnt in this chapter to look ahead to Laplace transforms and Fourier series, covered in Chapter?. 1. Suppose f (t) is a function of t, defined for t ≥ 0. Then the integral ∞ f (t)e−st d t f˜(s) = 0
is called the Laplace transform of f .t/ (the use of t as the variable is conventional, since the Laplace transform is usually applied to functions of time). We will study this in detail in Chapter 17. We will want to evaluate this integral for all the simple elementary functions. In order to do this we will need to integrate finite integrals of the sort a f (t)e−st d t 0
for a constant a. Do this for the functions f (t) = 1, t, t 2 , et , sin t, cos t. Your results should be functions of a and s. If you feel confident enough take the limit as a tends to infinity, thereby obtaining the laplace transforms of the functions – see Chapter 17 for the results. 2. Let f (t) be a function with period 2π. Then under certain conditions it can be expanded in a series of sines and cosines in the form ∞
f (t) =
∞
a0 an cos nt + bn sin nt + 2 n=1 n=1
This is called a Fourier (series) expansion for f (t). We study such series in detail in Chapter 17, here we want to anticipate some of the results used there. The key task is to determine the coefficients an , bn of the Fourier series for a given function f (t). This involves the use of a number of integrals of products of sines and cosines, which we ask you to evaluate here. If m, n are any integers, then: π sin mt sin nt d t = 0 if m = n −π π
−π π −π π
cos mt cos nt d t = 0
cos2 nt d t = π
−π
π −π
−π π
if m = n sin2 nt d t = π
sin mt cos nt d t = 0 for all m, n
sin mt d t =
π
−π
cos mt d t = 0 285
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
These are called the orthogonality relations for sine and cosine. The limits −π, π on the integrals may in fact be replaced by any integral of length 2π, or integer multiple of 2π. The coefficients an , bn of the Fourier series for a given function f (t) can be determined by multiplying through by cos nx or sin nx, integrating over a single period and using the above orthogonality relations to remove all but the desired coefficient (see Chapter 17). Show that in general 1 π an = f (t) cos nt d t n = 0, 1, 2, . . . π −π 1 π f (t) sin nt d t n = 1, 2, . . . bn = π −π
Answers to reinforcement exercises Note: an arbitrary constant C should be added to each indefinite integral.
9.3.1 Definition of integration √
A. (i) 9x
2
(v) 3 cos 3x (ix)
1 x
B. (i) 2 ln x (v) sin x 3 (ix)
2 sin 3x 3
(ii)
3 √ 2 x
(vi) −3x 2 sin x 3 (x)
8 x5
(iv)
(vii) 5e5x
(viii)
(iii) −
1 √ 2 x+1
(xi)
3 5x e 5
(iii)
(vi) −3 tan−1 x
(vii)
(ii)
(x)
x3 3
3 3x + 1
−2 (1 + x)
2 −3 x 5 5 −1 (x + 1)2
(xii)
x2
(iv) −
1 +1
1 4x 4
√ (viii) 2 x
5 2/5 x 2 √ (xi) 6 x + 1
(xii)
1 ln |3x + 1| 3
9.3.2 Standard integrals A. (i) 4x (v) sin x B. (i) 2u2 (v) − cos θ 286
−3 4x 4
(ii) x 3 − x 2 + x
(iii)
(vi) tan x
(vii) x ln x − x
(ii)
2s 3 3s 2 − + 2s 3 2
(vi) − cot t
(iv)
(iii) − (vii)
1 t6
e3t 3
3 5/3 x 5
(viii) tan−1 x (iv)
4 5/4 x 5
(viii) tan−1 s
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
9.3.3 Addition of integrals (i)
2 3 3 1 x + 3 2 x2
(ii) 2 sin x + cos x
(iv) − cos(x + 3)
(v)
(iii) sinh x = 12 (ex − ex ) 1 1 cos x − cos 3x (vi) 2 3
n ar x r+1
r +1
r=0
(vii) cosh x
9.3.4 Simplifying the integrand x2 − x(x = 2) 2 2e (iv) − (x > 0) x
A. (i)
(iii) sin x + cos x, provided cos x − sin x = 0
(ii) sin x (v) x +
1 cos 2x 2
B. ln | sec x + tan x|, ln | cosec x − cot x|
9.3.5 Linear substitution in integration 1 (4x + 3)8 32 3 (v) ln(2x + 1) 2 4 3x−1 e (ix) 3
3 (2x − 1)4/3 8 1 (vi) (2x − 1)5 10 1 ln(4x − 3) (x) 4
(i)
(ii)
(iii) − 13 cos(3x − 1) (vii)
2 (3x + 2)3/2 9
(iv) (viii)
1 4x e 2 1 2
+x
sin(2x + 1)
9.3.6 The du = f .x/ dx substitution A. (i) u = x 3 , 13 ex (iii) u = sin x,
3
sin4 x 4
(ii) u = tan x + 2, − cos(tan x + 2) (iv) u = x 2 + 2x + 3,
1 ln(x 2 + 2x + 3) 2
(v) u = cos x, ln | sec x| B.
(i) − cos(f (x))
(ii)
(iv) cos x ln(cos x) − cos x
1 (f (x))2 e 2
(v) ln(x − 1)
(iii)
1 3
sin(x 3 + 1)
(vi) ef (x)
(vii) sin(f (x) + 2) C.
1 3 (x + 2)4 4 1 (iv) sin(x 2 + 2x + 1) 2 1 (2 sin 2x + 1)4 (vii) 16 (i)
(ii)
2 2 (x + 1)3/2 3
(v) −ecos x
(iii) ln(x 2 − x + 1) (vi) ln(tan x)
√ (viii) 6 x 2 + 4x + 4 287
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
9.3.7 Integrating rational functions 1 ln |(x − 1)(x + 3)3 | 2 3 (x + 1)2 3 ln 2 (iv) + tan−1 x 4 x +1 2 1 x 2 − 1 ln (vi) 2 (x + 2)2
A. (i)
1 −1 x + 1 tan B. (i) 2 2
(iv) tan−1 (x + 3)
(x + 3)2 (ii) ln (x + 2) x − 2 + 2 (v) 3 ln x − 1 x − 1
(ii) 3 tan−1 (x − 1) 1 (v) √ tan−1 3 2
1 (x − 2)5 C. (i) x + ln 3 (x + 1)2 3 x − 1 3 (iii) x + 3x + ln 2 x + 1
(ii)
√
(iii)
4 x − 1 ln 3 2x + 1
(iii) 2 tan−1 (2x + 1) 2(x + 3) 3
x2 − 2x + ln(x 2 + 2x + 2) + 2 tan−1 (x + 1) 2
9.3.8 Using trig identities in integration cos3 x cos5 x − 5 3 2 1 (iii) sin x − sin3 x + sin5 x 3 5 1 (5 sin x − sin 5x) (v) 10 (i)
1 1 sin 5x + sin x 10 2 1 (iv) − (cos 8x − 4 cos 2x) 16 (ii)
9.3.9 Using trig substitutions in integration A. (i) (iv)
1 −1 sin x 2 3 tan−1 2x 2
1 3x tan−1 3 2 x+1 (v) sin−1 3
(ii)
2 −1 sin 3x 3 x−3 (vi) sin−1 3
(iii)
1 2 + tan θ/2 B. ln 4 2 − tan θ/2
9.3.10 Integration by parts (i) x sin x + cos x 288
(ii) (x 3 − 3x 2 + 6x − 6)ex
(iii) x sin−1 x +
√
1 − x2
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(iv)
ex (cos x + sin x) 2
(vi)
x2 x2 ln |x| − 2 4
(v) x 2 sin x + 2x cos x − 2 sin x (vii)
1 2 2 (x − 1)ex 2
9.3.11 Choice of integration methods A. (i) A
(ii) C
B. (i) B, C C.
(ii) A, C
(iii) B (iii) C
(iv) B
(v) A
(vi) B
(iv) C
(v) B, C
(vi) B, C
(i) ln |x 2 − 6x + 4| 1 ln(2x + 3) (iv) 2 1 3x 2 (v) e 6 (vii) −x cos(x + 1) + sin(x + 1) (viii)
3 1 1 x + sin 2x + sin 4x 8 4 32
(x) 5 ln(x − 3) − 4 ln(x − 2)
(ii)
cos3 x − cos x 3
(vi) 3 sin
−1
x+1 2
(iii) x
x2 − x ln x + x 2 1 2x (xi) e (2x − 1) 4 √ x 2 − 2x + 3 (xiv) (ix)
(xii) sin(ex )
1 (xiii) − cos 4x 8 1 (xv) ln(x 2 + 2x + 2) + 2 tan−1 (x + 1) 2 1 1 (xvi) (9 cos x − cos 9x) (xvii) sin(x 2 + 1) 18 2
9.3.12 The definite integral A. (i)
1 3
(ii)
π −1 2
(iii)
2 √ ( 2 − 1) 3
(iv) 2 ln 3 − 3 ln 2
(v) 1
289
10
Applications of Differentiation and Integration In general terms, the usefulness of calculus in elementary engineering maths lies in the application of differentiation as a rate of change or slope of a curve and integration as an area under a curve. These are essentially applications to very useful mathematical methods. There are also specific applications to various disciplines of engineering, such as centroids and moments of inertia in solid mechanics and rms values in electronic engineering. Also, there are examples in statistics. The applications to mathematical methods are the main subject of this chapter. Some engineering and statistics examples are covered under Applications.
Prerequisites It will be helpful if you know something about: ➤
techniques of differentiation (Chapter 8 ) techniques of integration (Chapter 9 ) simple ideas of limits (230 ) coordinate geometry (Chapter 7 ) tangent and normal to a curve (230 ) equation of a line (212 ) inequalities (97 ) solving algebraic equations (Chapter 2 ) plotting graphs (91 ) ➤
➤
➤
➤
➤
➤
➤
➤
• • • • • • • • •
Objectives In this chapter you will find • • • • • •
290
differentiation as a gradient and a rate of change tangent and normal to a curve stationary points and points of inflection curve sketching the definite integral as the area under a curve volume of a solid of revolution
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Motivation You may need the material of this chapter for: • • • • • • • •
finding and interpreting rates of change such as velocity, acceleration, etc. interpreting solutions of differential equations finding optimal values of various engineering variables sketching the graph of an engineering function finding areas, centroids, etc. evaluating volumes, moments of inertia, etc. evaluating mean and rms values of alternating currents evaluating probability, the mean and standard deviation in statistics
10.1 Review 10.1.1 The derivative as a gradient and rate of change
➤ 292 309 ➤➤
For each of the following functions find: (a)
The gradient or slope of the graph of the function at the point specified
(b)
The rate of change of the function at the point specified
(i)
y = x2,
x=1
(ii) y = cos x,
x=π ➤ 293 310 ➤➤
10.1.2 Tangent and normal to a curve
Find the equations of the (i) tangent and (ii) the normal to the curve y = x 2 − x − 1 at the point (2, 1). ➤ 294 310 ➤➤
10.1.3 Stationary points and points of inflection
Locate and classify any stationary points and points of inflection of the following functions (i) 16x − 3x 3
(ii) x +
(iv) sin x cos x
(v) x 4
1 x
(iii) xex
➤ 299 310 ➤➤
10.1.4 Curve sketching in Cartesian coordinates Sketch the functions given in Q10.1.3.
10.1.5 Applications of integration – area under a curve
➤ 304 310 ➤➤
A. Find the area enclosed between the curve, the x-axis and the limits stated for each of the following cases: (i) y = 4x 2 + 1 x = 0, 2
(ii) y = xex
x = 0, 1
B. Find the area enclosed between the curves y = x 2 − x and y = 2x − x 2 . 291
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
10.1.6 Volume of a solid of revolution
➤ 308 311 ➤➤
Find the volume of the solid of revolution formed when the positive area enclosed under the following curve is rotated once about the x-axis. y = 1 − x2,
y = 0,
−1 ≤ x ≤ 1
10.2 Revise ➤
10.2.1 The derivative as a gradient and rate of change
291 309 ➤
dy , of a function y = f (x) is defined by a limiting process precisely The derivative, dx to give the gradient or slope of the curve described by the function at a given point x (230 ). As such it describes the rate of change of the function – the ‘steepness’ of the curve. Thus, at a point where d y/d x is large and positive the curve of the function y = f (x) is increasing steeply as x increases. Other cases are tabulated below, as examples – fill in the missing entries. ➤
d y/d x
behaviour of y = f (x)
? large and negative ?
y increases slowly as x increases ? y decreases slowly as x increases
It is important to note that the derivative is defined at a point. Differentiation is therefore what is called a local operation. The derivative of a function will only tell us about the behaviour at a single point, and says nothing about the overall or global behaviour of the function. Solution to review question 10.1.1
(i) For the function y = x 2 we have dy = 2x dx At x = 1 this has the value 2 and so (a) the gradient at this point is 2, and (b) the rate of change is also 2. dy = − sin x which is dx equal to zero at x = π. So in this case the (a) gradient or slope of the graph is zero at x = π, as is (b) the rate of change of the function. So, at this point the tangent to the curve is horizontal, its slope being zero, and the rate of change of the function is zero. We know, of course, from the properties of cos x, that this point is a local minimum (see Section 10.2.3) (182 ).
(ii) For the function y = cos x the derivative is
➤
292
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
➤
10.2.2 Tangent and normal to a curve
291 310 ➤
The derivative at a point (a, b) on a curve y = f (x) will give us the slope, m, of the tangent to the curve at that point. This tangent is a straight line with gradient m passing through the point (a, b) and therefore has an equation (212 ) ➤
y − b = m(x − a) The normal to the curve y = f (x) at the point (a, b) is the line through (a, b) perpendicular to the tangent – see Figure 10.1. y r No
nt
ge
ma
n Ta
l
y = f (x ) (a,b )
x
0
Figure 10.1 Tangent and normal to a curve.
In mechanics, the normal is important because it defines the direction of the reaction to a force applied to a smooth surface represented by the curve. If the gradient of y = f (x) 1 at (a, b) is m then the gradient of the normal through (a, b) will be − (214 ). So the m equation of the normal is ➤
y−b =−
1 (x − a) m
Solution to review question 10.1.2
dy = 2x − 1. dx So at (2, 1), the gradient is m = 2 × 2 − 1 = 3. The equation of the tangent at (2, 1) is therefore For the curve y = x 2 − x − 1 we have
y − 1 = 3(x − 2) or
y = 3x − 5
The gradient of the normal at (2, 1) is −
1 1 =− m 3 293
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
so the equation of the normal is y − 1 = − 13 (x − 2) or
x + 3y − 5 = 0 ➤
10.2.3 Stationary points and points of inflection
291 310 ➤
Since the derivative describes rate of change, or the slope, of a curve it can tell us a great deal about the shape of a curve, and the corresponding behaviour of the function. Figure 10.2 shows the range of possibilities one can meet. y
y = f (x )
0
A B C
D
E
x
Figure 10.2 Stationary points and points of inflection.
In all cases we assume that the function is continuous and smooth (the graph has no breaks and no sharp points). At points A, C, E, where d y/d x is zero, y is not actually changing at all as x varies – the tangent to the curve is then parallel to the x-axis at such points as shown. These are called stationary points. So, at a stationary point of the function y = f (x) we have dy = f (x) = 0 dx The value of f (x) at a stationary point is called a stationary value of f (x). Note that we will usually use the ‘dash’ notation for derivatives in the rest of the book – it saves space! There are a number of different types of stationary points illustrated in Figure 10.2, displaying the different possibilities – C is a minimum point, and A is a maximum. E is a stationary point where the tangent crosses the curve – this is an example of an important point called a point of inflection. B and D are also points of inflection of a different kind – the tangent crosses the curve, but is not horizontal – see below. The maximum and minimum points are called turning points, since the curve turns at such points and changes direction. As emphasised above, differentiation is a local procedure. So, for example any minimum identified by differentiation is only a local minimum, not necessarily an overall 294
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
global minimum of the function. Similarly for a maximum. Indeed, for a function such 1 as y = x + the local minimum actually has a higher value than the local maximum x (➤ 297). While the graphical representation of the behaviour of functions is very suggestive, we need a means of distinguishing stationary points and points of inflection that depends only on the derivatives of the function in question. The graphical form provides a hint as to how this might work. As an example, consider a minimum point at say x = x0 (see Figure 10.3). y
s
sa
e as re ec es ) d as f (x incre x
f( x i x ) in nc cr re ea as se es s as
y = f (x )
0
x
x0
Figure 10.3 Behaviour at a minimum.
To the left of x0 , i.e. for x < x0 , y = f (x) is decreasing as x increases, and f (x) < 0. For x > x0 , y increases as x increases and so f (x) > 0. And of course at x = x0 we have f (x) = f (x0 ) = 0. So, near to a minimum point we can summarise the situation as in the table below: x < x0
f (x) < 0
x = x0
f (x) = 0
x > x0 f (x) > 0
This characterisation no longer relies on the graphical representation – it depends only on the values of the derivative at different points. Rather than use this table as a means of verifying a minimum point, we look at the implications it has for the second derivative of the function. In this case we see that as x passes through x0 , f (x) is steadily increasing. That is d dy d 2y = = f (x) > 0 dx dx d x2 So a minimum point x = x0 on the curve y = f (x) is characterised by f (x0 ) = 0
and f (x0 ) > 0
Similarly, for a maximum point we obtain the table x < x0
f (x) > 0
x = x0
f (x) = 0
x > x0 f (x) < 0 295
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
and so in this case the derivative is decreasing as we increase x through x = x0 and thus a maximum point x = x0 is characterised by f (x0 ) = 0
f (x0 ) < 0
Now what happens if f (x0 ) = 0? Then, it is not clear whether or not the gradient, f (x), is changing at x = x0 and a more careful examination is necessary. An example of one possibility occurs at the point E in Figure 10.2, at which point f (x0 ) = f (x0 ) = 0 This is a particular example of a point of inflection. B and D are other examples, but these are clearly not stationary points – the gradient is not zero. In these cases f (x0 ) = 0 but f (x0 ) = 0. So what precisely characterises a point of inflection? Look more closely at the point B in Figure 10.2. To emphasise the point we will bend the curve somewhat near to B, as in Figure 10.4. Take x = x0 as the coordinate of B here.
B x0
x
Figure 10.4 Detail of a point of inflection.
On either side of B the gradient is negative. However, on the left of B, x < x0 , the curve is below the tangent. We say the curve here is concave down. To the right of B, x > x0 , the curve is above the tangent and we say it is concave up. Looking at points D and E we see a similar change: left of D – concave up right of D – concave down left of E – concave down right of E – concave up In general, any point where there is such a change of sense of concavity is called a point of inflection, meaning a change in the direction of bending of the curve. At such a point you will see that it is the rate of change of the gradient that is changing sign. For example: left of B, gradient steepens as x increases – curve concave down right of B, gradient decreases as x increases – curve concave up So even though the gradient of f (x) may not be zero at a point of inflection – i.e. we may not have a stationary value – the rate of change of the gradient, f (x0 ), at such a point must be zero. However, note that the condition f (x0 ) = 0 does not itself guarantee a point of inflection. The Review Question 10.1.4(v) illustrates this. 296
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Solution to review question 10.1.3
(i) For the function f (x) = 16x − 3x 3 we have f (x) = 16 − 9x 2 . Solving f (x) = 16 − 9x 2 = 0 gives stationary values at x = ± 43 . To classify these consider the second derivative f (x) = −18x. So, for x = 43 , f ( 43 ) = −24 < 0 and we have a maximum. For x = − 43 we have f (− 43 ) = 24 > 0 and we have a minimum. We also note that f (x) = 0 at x = 0, so there is a possibility of a point of inflection at this point. To investigate this we have to consider how the gradient is changing on either side of x = 0. This is indicated by the sign of f (x): x < 0 f (x) = −18x > 0 x > 0 f (x) = −18x < 0 So for x < 0, f (x) = (f (x)) is positive and therefore the gradient f (x) is increasing as x increases and the curve is concave upwards. For x > 0, f (x) = (f (x)) is negative, so the gradient f (x) is decreasing and x increases and the curve is concave downwards. Thus x = 0 is a point where the curve changes from concave up to concave down as x increases – it is a point of inflection. The curve is sketched in Figure 10.7. Note that the complete story about the curve requires quite a careful study of its derivatives. 1 1 (ii) For f (x) = x + we have f (x) = 1 − 2 . Solving x x 1 f (x) = 1 − 2 = 0 x gives us stationary values at x = ±1. We find f (x) = and so
2 x3
f (1) = 2 > 0 giving us a minimum at x = 1, while f (−1) = −2 < 0 giving us a maximum at x = −1. 297
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
In this case f (x) is never zero for finite x, so we have no points of inflection. Notice that in this case the local minimum value (2) is greater than the local maximum value (−2), emphasising the local nature of differentiation. The situation is sketched in Figure 10.8. (iii) For f (x) = xex we have f (x) = ex + xex = 0 when x = −1, since ex = 0. At this stationary point we have f (x) = 2ex + xex = e−1 > 0 at x = −1 So x = −1 is a minimum point in this case. Looking for points of inflection we note that f (x) = ex (x + 2) = 0 at x = −2. For x < −2, f (x) < 0, f (x) decreases as x increases and the curve is concave down. For x > −2, f (x) > 0, f (x) increases as x increases and the curve is concave up. So x = −2 is a point of inflection. The curve is sketched in Figure 10.9. (iv) We can write f (x) = sin x cos x =
1 2
sin 2x. (2n + 1) Then f (x) = cos 2x = 0 when 2x = π where n is an integer. 2 So there are turning points where 2n + 1 π x= 4 Further, f (x) = −2 sin 2x = −2 sin
2n + 1 π 2
For n even this is negative, while it is positive for n odd. 2n + 1 π for n even, and Thus we have maximum when x = 4 minimum when n is odd. Points of inflection can occur when f (x) = −2 sin 2x = 0, i.e. 2x = mπ where m is an integer, or x =
mπ . 2
(v) For f (x) = x 4 we have f (x) = 4x 3 = 0 when x = 0. So there is a stationary point at x = 0. But f (x) = 12x 2 = 0 when x = 0 So there may be a point of inflection at x = 0. However, we note that for x < 0, f (x) > 0, so the curve is concave up, while for x > 0 we again have f (x) > 0, again indicating that the curve is concave up. So the concavity does not change at x = 0 and therefore it is not a point of inflection. In fact, the graph is easy to sketch, and we clearly have a minimum at x = 0 (see Figure 10.11, Review Question 10.1.4(v). This illustrates that the vanishing of the second derivative, while essential for a point of inflection is not a guarantee of one. 298
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
➤
10.2.4 Curve sketching in Cartesian coordinates
291 310 ➤
Curve sketching is exactly that – it does not mean plotting the curve, as in Chapter 3, although one might actually plot a few special points of the curve, such as where it intercepts the axes. A sketch of a curve shows its general shape and main features, it is not necessarily an accurate drawing. In sketching a curve we deduce what we can about it from quite general observations, such as where it increases, decreases, or remains bounded as x becomes large or small. Similarly we might look for stationary values, intercepts on the axes and so on. With modern calculators capable of plotting almost any curve we might wonder why curve sketching is necessary at all – is it like shoeing horses, for example? Not at all. Apart from the fact that you might not always have a graphics calculator to hand, the main benefit of the skills of curve sketching is that it gives you an appreciation of how functions behave, and what the properties of the derivative can tell you about this. It gives you a ‘feel’ for the function. Being able to sketch the rough shape of a given rational function, for example, is a far more portable skill than being able to graph it on a calculator by pressing a few buttons. Of course, we already know a large number of different graphs of the various ‘elementary functions’ we have considered, and the first step in sketching a curve is to see whether it is easily converted to one with which we are already familiar. The kinds of transformation we can make are listed below. 1. y = f (x) + c translates the graph of y = f (x) by c units in the direction 0y. 2. y = f (x + c) translates the graph of y = f (x) by −c units in the 0x direction. 3. y = −f (x) reflects the graph of y = f (x) in the x-axis. 4. y = f (−x) reflects the graph of y = f (x) in the y-axis. 5. y = af (x) stretches y = f (x) parallel to the y-axis by a factor a. 6. y = f (ax) stretches y = f (x) parallel to the x-axis by a factor 1/a. However, once these transformations are taken advantage of, we might still have quite complicated graphs to sketch. We can follow a systematic procedure for sketching graphs which can be nicely summarised in the acronym S(ketch) GRAPH: • • • • • •
Symmetry – does the curve have symmetry about the x- or y-axes, is the function odd or even? Gateways – where does the curve cross the axes? Restrictions – are there any limits on the variable or function values? Asymptotes – any lines that the curve approaches as it goes to infinity? Points – any points of special interest which are worth plotting? Humps and hollows – any stationary points or points of inflection?
(I am indebted to Peter Jack for most of this pretty acronym.) Working through each of these (not necessarily in this order) should provide a good idea of the shape and major features of the curve. We describe each in turn. S. We look for any symmetry of the curve. For example, if it is an even function, f (x) = f (−x) then it is symmetric about the y-axis, and we only need to sketch 299
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
half the curve. This may reduce considerably the amount of work we have to do in sketching the curve. G. Look for points where the curve crosses the axes, or ‘gateways’. It crosses the y-axis at points where x = 0, i.e. at the value(s) y = f (0). It crosses the x-axis at points where y = 0, i.e. at solutions of the equation f (x) = 0. R. Consider any restrictions on either the domain or the range of the function – that is, forbidden regions where the curve cannot exist. The simplest such case occurs when we have discontinuities. Thus, for example 1 x+1 does not exist at the point x = −1 – there is a break in the curve at this point. See Figure 10.5. y=
y y= 1 x+1 1 −1 0
x
Figure 10.5 Asymptotes at a discontinuity.
Any rational function will have a number of such points √ equal to the number of real roots of the denominator. Irrational functions such as 1 − x 2 exhibit whole sets of 2 values that x can’t take, √ because for the square root to exist 1 − x must be positive, 2 hence the curve y = 1 − x does not exist for |x| > 1. Thus, the curve is confined to the region |x| ≤ 1. A. Look for asymptotes. These are lines to which the curve becomes infinitely close as 1 x or y tend to infinity. Thus, the function y = has the x-axis as a horizontal x+1 asymptote, since y → 0 as x → ±∞. It also has the line x = −1 as an asymptote to which the curve tends as y → ±∞. Of course the curve can never coincide with the line because of the restriction (see above) x = −1. Also, look for the behaviour of the curve for very small and very large values of x or y. This is often very instructive. For example, the curve y = x 3 + x behaves like the curve y = x for small values of x, allowing us to approximate the curve near the origin by a straight line at 45° to the x-axis. For very large (positive or negative) values of x it behaves like the cubic curve y = x 3 . P. Consider any special points, apart from ‘gateways’ in the axes. They may literally be simply specific points you plot to determine which side of an asymptote the curve approaches from, for example. 300
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
H. Points of particular importance include maximum and minimum values (humps and hollows) and also points of inflection. While we do already know how to find these, it may not in fact be necessary. Information already available may hint strongly at certain turning values – for example a continuous curve which ends up going in the same direction for two different values of x must have passed through at least one turning value in between. Also, it is not always necessary to determine points of inflection, especially those with a non-zero gradient, unless we want a really accurate picture of the graph. Solution to review question 10.1.4
(i) y = 16x − 3x 3 First check on the symmetry. The function is odd and so we need only sketch it for x ≥ 0 and then obtain the whole curve by a rotation of 180° about the origin. Now find the gateways. The curve crosses the y-axis (x = 0) when y = 0, i.e. it passes through the origin. It crosses the x-axis at y = 16x − 3x 3 = 0 i.e.
x = 0,
4 ±√ 3
There are no restrictions on the domain – the function, being a polynomial, exists for all values of x. It is continuous for all values of x too. There are no asymptotes. Near the origin the x 3 term is negligible, and y 16x, so it looks like a very steep straight line with positive slope. For very large values the curve behaves like y −3x 3 , and clearly as x → ∞, y → −∞. This discussion alone is enough to tell us that there is likely to be at 4 least one maximum point between 0 and √ on the positive x-axis. 3 Figure 10.6 illustrates this deduction. y
0
y∼ − 16x
x
y∼ − −3x 3
Figure 10.6 Going to extremes.
301
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
No particular special points spring to mind, except the stationary points and points of inflection. We know from Review Question 10.1.3(i) that there are two stationary points, at x = ± 43 . The point at x = 43 is a maximum and that at x = − 43 is a minimum. There is also a point of inflection at x = 0 (this follows by symmetry anyway). This enables us to complete the sketch as shown in Figure 10.7. y
y = 16x − 3x 3 − 4 √3
−4 3 0
4 3
4 √3
x
Figure 10.7 Sketch of y = 16x − 3x3 .
1 x Again, this is an odd function and so is symmetric under a 180° rotation about the origin and we need only sketch it for x ≥ 0. Gateways: The curve does not cross the y-axis, since there is a discontinuity at x = 0. Also, it never crosses the x-axis, since
(ii) y = x +
1 x2 + 1 = x x can never be zero. Restrictions: For x > 0, y > 0, and for x < 0, y < 0, so the curve is confined to the upper half plane for x > 0 and to the lower half plane for x < 0. Asymptotes: As x → 0 from above (that is through positive values of x), y → +∞, so the y-axis is a vertical asymptote for x > 0. Also, for x very large, y ∼ x, so the straight line y = x is an asymptote as x → ∞. Consideration of the asymptotes alone hints at a minimum for x > 0 (and a corresponding maximum for x < 0). Special points: nothing, apart from: Stationary points: From Review Question 10.1.3(ii) we have a minimum at x = 1, and a maximum at x = −1. Putting all this together, the graph is as shown in Figure 10.8. x+
302
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
y
y = x + x1
−1
y=
x
0 1
x
1 Figure 10.8 Sketch of y = x + . x
(iii) y = xex Symmetry: none Gateways: (0, 0) only Restrictions: none – defined for all values of x, and no discontinuities Asymptotes: As x → −∞, y → 0 from below (i.e. from values less than zero) Points: none special except the Stationary value: which, from Review Question 10.1.3(iii) is a minimum at x = −1. We also have a point of inflection at x = −2 Putting all this together yields the graph shown in Figure 10.9. y y = xe x
−1
0
x
Figure 10.9 Sketch of y = xex .
(iv) y = sin x cos x = 12 sin 2x This is the graph of a standard elementary function, which we already know from Chapter 6. 303
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
y
y = sin x cos x = 1 sin 2x 2 −p
0
x
p
Figure 10.10 Sketch of y = sin x cos x.
(v) y = x 4 We have already discussed this relatively simple function in Review Question 10.1.3(v), and we know it has one minimum, at the origin. It is symmetric about the y-axis and clearly has shape similar to a parabola – but ‘more squashed’. It is sketched in Figure 10.11. y y = x4
0
x
Figure 10.11 Sketch of y = x4 .
➤
10.2.5 Applications of integration – area under a curve
291 310 ➤
There are many applications of integration in engineering and science, but for our purposes they can be grouped into the categories: • • • •
Applications in further topics in engineering mathematics such as Laplace Transform and Fourier series (Chapter 17) and solutions of differential equations (Chapter 15). Applications in mechanics to such things as centre of mass and moment of inertia. Geometrical applications such as calculating areas, volumes, lengths of curves. Applications in probability and statistics, such as mean values, root mean square values, probability in the case of a continuous random variable.
The basic principle behind applications of integration is essentially that of obtaining a total of a quantity by regarding it as the sum of a very large (infinite) number of elementary quantities: 304
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
• • •
an area split into strips a curve split into line segments a solid body split into very small particle like elements
The rest of this chapter will be concerned mainly with geometrical applications, although the Applications section contains some examples from mechanics. The main objective is to illustrate the general ideas and motivate the hard work necessary to master integration. The area ‘under’ a curve is the, perhaps misleading, term used for the area enclosed between a given curve and the x-axis. Or, it may be the area enclosed between two quite general curves. Figure 10.12 illustrates the sorts of possibilities we can have.
(i)
(ii)
(iii)
(iv)
Figure 10.12 Areas and curves.
The case (i) is the easiest to deal with. In case (ii), note that areas below the axis are regarded as negative. This is to conform with such results as: 0 sin x d x = −1 −π/2
In case (iii) we would need to find where the curves intersect and integrate the difference between the two functions over the appropriate region. Case (iv) also requires us to integrate the difference of the functions, but now care must be taken to allow for the difference in signs of the two areas. Considering now the simple case (i) let us look at the connection between integration and the area under a curve. At the elementary level there are two common viewpoints of integration – the integral as the inverse operation to differentiation, or anti-derivative (253 ): 2x d x = x 2 + C ➤
•
because d 2 (x + C) = 2x dx 305
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
•
the definite integral interpreted as the area under a curve as illustrated in Figure 10.13. y y = f (x )
b
A=
f (x ) dx
a
A
0
∫
a
x
b
Figure 10.13 Area under a curve.
For theoretical discussion it is the latter viewpoint which is perhaps most useful – indeed, the indefinite integral can be viewed as the definite integral x f (u) d u a
First we will show, using only simple ideas of limits, the connection between the two viewpoints and then concentrate on the area viewpoint. For a continuous curve, we can regard the area A under the curve as a function of x, as shown in Figure 10.14. y f (x ) A
D 0
a
x
f (x + h ) B
C x+h
y = f (x )
x
Figure 10.14 The indefinite integral as an area.
The area under the curve between a and x + h is denoted A(x + h). The difference between the area under the curve between a and x + h and between a and x is A(x + h) − A(x) and this is clearly the area of the thin strip above the interval (x, x + h). The area of this thin strip is approximately 12 [f (x + h) + f (x)] × h, the area of the thin trapezium ABCD, if h is very small. So we have A(x + h) − A(x) 12 [f (x + h) + f (x)] × h 306
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
or
A(x + h) − A(x) 1 = [f (x + h) + f (x)] h 2
and this approximation improves as h gets smaller. Indeed, taking the limit h → 0 we get
lim
h→0
1 A(x + h) − A(x) = [f (x + h) + f (x)] h 2
= f (x) ➤
From Section 8.2.2 ( ) we recognise the left-hand side as d A/d x:
dA A(x + h) − A(x) = f (x) = lim h→0 h dx
So, using the first viewpoint of the integral, as the inverse of differentiation, we have
x
A(x) =
f (x) d x a
for the area under the curve. This argument for the equivalence of finding an area and reversing an integration can be extended to all other cases in Figure 10.12. The review questions illustrate what happens in practice. Solution to review question 10.1.5
A. (i) The area under the curve y = 4x 2 + 1 between x = 0 and x = 2 is given by the definite integral
2
(4x 2 + 1) d x =
0
4 3 x +x 3
2
= 0
38 3
(ii) For y = xex between x = 0 and x = 1 we have the area
1 0
1 xex d x = xex − ex 0 = 1
B. A sketch is always useful in this kind of question. The curves y = x 2 − x and y = 2x − x 2 intersect where x 2 − x = 2x − x 2 or x = 0, 3/2. They are sketched in Figure 10.15. The area required is shaded. You can now see the reason for the sketch. Between x = 0 and 1, the area for the curve y = x 2 − x is negative. 307
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
y
2
y
=
− 2x
x
0
3,3 2 4
x
(1,0)
y=
x2
−x
Figure 10.15 Area between y = 2x − x2 and y = x2 − x.
However, this will still be accommodated by integrating the difference of the two functions over the range 0 < x < 3/2, as follows: 3/2 3/2 2 2 [2x − x − (x − x)] d x = (3x − 2x 2 ) d x 0
0
9 = units 8 ➤
10.2.6 Volume of a solid of revolution
292 311 ➤
When the area under a curve between the limits x = a, b is rotated once about the x-axis a solid of revolution is formed. For the purposes of illustration we will assume that the curve is entirely above the x-axis, so that the area rotated is positive. See Figure 10.16. y
y = f (x ) y
a 0
Figure 10.16 Volume of revolution.
308
dx
b x
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
If we rotate a thin strip of area, d x wide, about the axis, then a thin disc is formed, whose radius is r = y, and thickness is h = d x. The volume of this disc is approximately ‘πr 2 h’ = πy 2 d x. So the total volume between the limits x = a and x = b is obtained by integration as b b πy 2 d x = π y2 d x a
a
So, given a function y = f (x) between values x = a and x = b, entirely above the x-axis, by rotating the area under its curve we generate a volume of revolution determined by substituting the function and values of a and b in the above integral. Review Question 10.1.6 illustrates this. Solution to review question 10.1.6
The volume of the solid of revolution obtained by rotating the area under the curve y = f (x) once about the x-axis between the limits x = a, b is given by
b
π
y2 d x = π
a
b
[f (x)]2 d x a
The area bounded by the curves y = 1 − x 2 , y = 0 for −1 ≤ x ≤ 1 is the positive area enclosed between the curve y = 1 − x 2 and the x-axis. The curve cuts the x-axis at x = ±1 and so the required volume is
π
1
−1
(1 − x ) d x = 2π 2 2
1
(x 4 − 2x 2 + 1) d x
0
=
16π square units 15
10.3 Reinforcement 291 292
➤
➤➤
10.3.1 The derivative as a gradient and rate of change
A. For the following functions find (a) the rate of change and (b) the slope of the graph at the points specified. (i) y = x 3 + 2x − 1, (iii) y = ex cos x
x = 0, 2 π x = 0, 3 x = 0, 1
(iv) y = ln(x 2 + 1)
x = 0, 2
(ii) y = sin x
B. Find the point on the curve y = x 3 + 3x 2 − 9x + 1 where the gradient is −12. 309
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
291 293
➤
➤➤
10.3.2 Tangent and normal to a curve
Find the equations of the tangents and the normals to the following curves at the points indicated. = x 2 + 2x − 3 x = 1 = x4 + 1 x=1 = ln x x=1 = ex sin x x=0 ➤➤
y y y y
10.3.3 Stationary points and points of inflection
291 294
➤
(i) (ii) (iii) (iv)
A. Locate and classify the stationary points and any points of inflection of the following functions: (i) x 2 − 4x + 3
(ii) x 3 − 12x + 2
(iii) x 3
(iv)
(v) 2x 3 − 15x 2 + 36x − 4
5 x + 5 x
(vi) 4x 3 + 3x 2 − 36x + 6
B. Find the maximum and minimum values of the curve of the function y = x(x 2 − 4), and also find the gradient of the curve at the point of inflection. ➤➤
291 299
➤
➤➤
291 304
➤
10.3.4 Curve sketching in Cartesian coordinates Sketch the graphs of the following functions. x x+1 x−2 (iv) x2 + 1
(i) x 3 − 2x 2 − x + 2
(ii)
x+1 x−1 x2 + 4 (v) x2 + x − 2 (vii) xe−x (iii)
(vi) 3 + cos
x
2
10.3.5 Applications of integration – area under a curve
A. Find the area enclosed between the curve, the x-axis, and the limits stated for each of the following curves: (i) y = 2x 2 + x + 1 (iii) (x − 1)ex (v) y = x 2 + 310
x = 0, 2
x = 1, 2 1 x2
x = 1, 3
(ii) y = x −
1 x
x = 1, 2 π 4
(iv) y = cos 2x
x = 0,
(vi) y = sin2 x,
x = 0, π/2
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
B. Calculate the total signed area between the curves and the x-axis and the limits given by: (a) geometry, (b) integration. (i) y = 1 − x,
C. Evaluate
1
−1
x = 2, 4
(ii) y = x − 1,
x = 0, 2
|x| d x
D. Find the area enclosed by the curves y = x 2 + 2, and y = 1 − x, and the lines x = 0, x = 1. 292 308
➤
➤➤
10.3.6 Volume of a solid of revolution
Determine the volumes obtained by rotating the positive area under each of the following curves about the x-axis, between the given limits: (i) (ii) (iii)
y = x(1 − x), y = 0 xy = 1, y = 0, x = 2, y = sin x, x = 0, x = π
x=5
10.4 Applications 1. The major application of differentiation in mechanics is in kinematics. In onedimensional motion along the x-direction the displacement of a moving particle is a function of time, x(t) and at any time t its velocity and acceleration are given respectively by v=
dx = x˙ dt
a=
d 2x = x¨ dt2
(i)–(iv) give either the position x(t) (metres) or velocity v(t) (metres per second) of a particle at time t. In each case find (a) the velocity and (b) acceleration at the point t = 1 sec and (c) determine when the particle is stationary. x(t) = 3 − 2t + t 2 2t − 1 v(t) = 2 t +1
(i) (ii) (iii)
x(t) = e2t sin t
(iv)
v(t) = cos t
2. Sometimes rates of change of a variable are not calculated directly but in terms of the rate of change of some other variable on which it depends. For example the rate of change of the area of a circle in terms of the rate of change of its radius. In such cases we use the function of a function rule: A = πr 2
so
dr dA = 2πr dt dt
and we can calculate d A/d t knowing the rate of change of r. 311
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(i)
An oil spill from a ruptured tanker in calm seas spreads out in a circular pattern with the radius increasing at a constant rate of 1 ms−1 . How fast is the area of the spill increasing when the radius is 300 m? (ii) The radius of a spherical balloon is increasing at 0.001 ms−1 . At what rate is the (i) surface area (ii) volume increasing when the radius is 0.25 m? 3. The motion of a particle performing damped vibrations is given by x = e−t sin 2t where x is the displacement in metres from its mean position at time t secs. Determine the times at which x is a maximum and find the maximum distance for the least positive value of t. Determine the acceleration at this point. 4. The work done in an air compressor is given by n−1 n−1 n n p p 1 W =K + − 2 p p2 where p1 , p2 , n, K are positive constants. Show that the work done is a minimum √ when p = p1 p2 . 5. One method of obtaining an estimate x¯ of a quantity x from a set of n measurements of x (all of which may be subject to experimental error), x1 , x2 , . . . , xn is to choose x¯ to minimise the sum: ¯ 2 + (x2 − x) ¯ 2 + · · · + (xn − x) ¯ 2 s = (x1 − x) This is called the method of least squares. It minimises the total squared deviation from x. ¯ Determine x¯ according to this principle and comment on the result. 6. The resultant mass of a system of particles, masses mi , situated at the points Pi (xi , yi , zi ) acts at a fixed point G(x, ¯ y, ¯ z¯ ) where mi xi mi yi mi zi x¯ = y¯ = z¯ = where M = mi M M M G is called the centre of mass. The numerators in the above expressions are called the first moments of the system with respect to the yz-, zx-, xy-planes respectively. In the case of a continuous body the above particle system is replaced by the elements of the body and integrals used as the limits of the summations. For example: x dm x¯ = dm The centre of mass G of a plane lamina lies in the plane of the lamina. If the lamina is uniform, G is called the centroid of the area of the lamina and if this area is symmetrical about any straight line, the centroid lies on this line. The coordinates of the centre of 312
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
mass of a lamina with surface density ρ(x, y) enclosed within the curve y = f (x), the x-axis and the lines x = a, x = b, are given by b 1 b 2 ρxy d x ρy d x 2 y¯ = ab x¯ = a b ρy d x ρy d x a
a
If the density is uniform, and such a lamina is rotated about the x-axis, then the centre of mass of the solid of revolution so formed will lie on the x-axis and the x-coordinate of the centroid will be given by
b
xy 2 d x x¯ =
a b
y2 d x a
(i)
Find the positions of the centroids of the following areas (taking ρ = 1): (a) y = sin x
0 ≤ x ≤ π,
y=0
(b) A semi-circle with radius a. (ii)
Calculate the positions of the centroids of the solids obtained by rotating the following curves about the given axes: (a) x 2 + y 2 = a 2 about Ox, (b) y = 2x 2
x = 0,
for x ≥ 0,
y ≥ 0.
x = 2 about Ox.
7. In a rigid body of mass M rotating with angular velocity ω about a fixed axis, a particle P of mass δm at perpendicular distance r from the axis would have velocity ωr and kinetic energy 12 δm(ωr)2 . By regarding a continuous body as the limit of a sum of such particles, its kinetic energy will be 1 1 1 2 2 2 2 2 lim ω r dm = ω r2 dm ω r δm → 2 2 2 since ω is the same for all particles of the body. The expression I = r2 dm is called the moment of inertia (MI) of the body about the axis of rotation. It is usually given in the form Mk 2 where k is called the radius of gyration about the axis. The MI is also called the second moment of the body. (i)
Find the moment of inertia and the radius of gyration of: (a) a uniform rod length a about perpendicular axis through centre; (b) a disc radius r about an axis perpendicular to the disc, through its centre. 313
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(ii)
Calculate the moment of inertia about the coordinate axes of (i)
y = x 2 , y = 0, x = 4
(ii)
2y = x 3 , x = 0 y = 4
(iii)
xy = 4, x = 1, y = 0, x = 4
8. The mean value of y = f (x) between x = a, b is given by
The RMS value is defined as
1 b−a
b
y2 d x =
a
1 b−a
b 1 f (x) d x. b−a a b (f (x))2 d x. a
It is the square root of the mean value of the square of the function. The RMS value is very important in alternating current theory – applied to oscillatory currents it has the effect of averaging over the oscillations (power dissipated is proportional to the RMS of the current). The RMS is similar to the standard deviation of statistics. Find the mean and RMS values of the following functions over the ranges indicated: (i) y = x (x = 0, 1)
(ii) y = 3x (x = 0, 1) (iv) y = e−x (x = 0, 1)
(iii) y = sin x (x = 0, π)
Answers to reinforcement exercises 10.3.1 The derivative as a gradient and rate of change A. (i) (a) 2 at x = 0, 14 at x = 2 (b) 2 at x = 0, 14 at x = 2 (ii) (a) 1 at x = 0,
1 π at x = 2 3
(b) 1 at x = 0,
(iii) (a) 1 at x = 0, e(cos 1 − sin 1) at x = 1 (iv) (a) 0 at x = 0,
1 π at x = 2 3
(b) 1 at x = 0, e(cos 1 − sin 1) at x = 1
4 4 at x = 2 (b) 0 at x = 0, at x = 2 5 5
B. (−1, 12)
10.3.2 Tangent and normal to a curve (i)
Tangent is y = 4x − 4, normal is x + 4y − 1 = 0
(ii)
Tangent is y = 4x − 2, normal is x + 4y − 9 = 0
(iii)
Tangent is y = x − 1, normal is x + y − 1 = 0
(iv)
Tangent is y = x, normal is y = −x
10.3.3 Stationary points and points of inflection A. (i) Min at (2, −1) (ii) Min at (2, −14), max at (−2, 18), point of inflection at (0, 2) 314
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(iii) Point of inflection at (0, 0) (iv) Min at (5, 2), max at (−5, −2) (v) Min at (3, 23), max at (2, 24), point of inflection at x =
5 2
(vi) Min at x = 32 , min at x = −2, point of inflection at x = − 14 16 2 16 2 B. Max of √ at x = − √ and min of − √ at x = √ . The slope at the point of 3 3 3 3 3 3 inflection, x = 0, is −4.
10.3.4 Curve sketching in Cartesian coordinates y
y
y
y 1
1 −1 0
1
2
−1
x
(i)
1 0
x
−1
(ii)
0
x
0
(iii)
y
x
(iv)
y y 4 1
0
1
(v)
x
0
x
(vi)
0
x
(vii)
10.3.5 Applications of integration – area under a curve A. (i)
3 − ln 2 2 1 (iv) 2 π (vi) 4
28 3
(ii)
(iii) e (v)
28 3
B. (i) −4
(ii) 0
C. 1 11 D. 6 315
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
10.3.6 Volume of a solid of revolution (i)
π 30
(iii)
π2 2
316
(ii)
3π 10
11
Vectors Vectors are the mathematical tools needed when we deal with engineering systems in more than one dimension. Vector quantities such as force have both a magnitude and direction associated with them, and so are represented by mathematical symbols that, similarly, have a magnitude and direction. We can construct an algebra of such quantities by which they may be added, subtracted, multiplied (in two different ways) – but not divided. These rules of combination reflect the ways in which the corresponding physical quantities behave – for example vectors add in the same way that forces do, the scalar product represents ‘vector times vector = scalar’ in the same way that ‘velocity times velocity = energy’. By introducing a coordinate system, we can also represent vectors by arrays of ordinary numbers, in which form they are easier to combine and manipulate.
Prerequisites It will be useful if you know something about ➤
ratio and proportion (14 ) Cartesian coordinate systems (205 ) Pythagoras’ theorem (154 ) sines and cosines (175 ) cosine rule (197 ) simultaneous linear equations (48 ) function notation (90 ) differentiation (Chapter 8 ) ➤
➤
➤
➤
➤
➤
➤
• • • • • • • •
Objectives In this chapter you will find • • • • • • • • •
definitions of scalars and vectors representation of a vector addition and subtraction of vectors multiplication of a vector by a scalar rectangular Cartesian coordinates in three dimensions distance in Cartesian coordinates direction cosines and ratios angle between two lines basis vectors (i, j, k)
317
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
• • • • •
properties of vectors the scalar product of two vectors the vector product of two vectors vector functions differentiation of vectors
Motivation You may need the material of this chapter for • representing and manipulating directed physical quantities such as displacement, velocity, and force • solving two and three dimensional problems • working with phasors (➤ 371) • describing and analysing structures
11.1 Introduction – representation of a vector quantity Think of three examples of physical quantities: temperature, force, shear stress. Each of these is represented mathematically by a different type of object, reflecting the way in which these physical quantities behave and combine. Temperature requires just one number for its specification – this is called a scalar quantity. Other examples of scalar quantities are mass, distance, speed. Force requires a magnitude and a single direction for its specification – this is called a vector quantity. Other vector quantities are displacement and velocity. Shear stress requires the relative motion of two parallel planes for its specification – this is called a tensor quantity. We do not consider tensors in this book, but they are very important in, for example, solid mechanics. Scalars, vectors and tensors are all different types of mathematical objects that are defined and combined amongst themselves in such a way as to model the respective physical quantities. The first conceptual hurdle that we have to overcome with vectors concerns how we represent them. A vector quantity can be represented at two levels: • as a directed line segment drawn on a piece of paper, and represented by a symbol possessing both magnitude and direction, satisfying an algebra that reflects geometrical combinations – ‘vectors as arrows’ • by a mathematical object consisting of some numbers that effectively describe the magnitude and the direction of the quantity, and combine in such a way as to represent combinations of the quantity – vectors as arrays of numbers, or ‘components’. This requires an explicit coordinate system, and the numbers representing the vector will depend on this system. Both of these representations are used at the elementary level, but the connection between them is not always easy to see. The situation is not helped by the fact that the terms ‘scalar’ 318
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
and ‘vector’ are also used in matrix theory, and indeed matrices can be used to represent vectors – a 3×1 column matrix can be used to represent a vector for example. Again, the connections between these ideas are not always clear. However, we will usually use the representation of vectors by arrays, which is relatively straightforward to operate. In this book we will usually denote vectors by bold lower case – in written work it is usual to denote them by under line (a) or over line (a). To denote specific vector displacements from points A to B we use the notation −→ AB or AB Note that vectors have units of course, depending on the physical quantity they represent. Whichever representation of vectors we use, we will eventually need a three dimensional coordinate system – simply so that we can state such things as length and direction unequivocally. There are a number of such coordinate systems in common use but we will use the simplest and most popular one – the generalisation of rectangular Cartesian coordinates.
Exercise on 11.1 Classify the following as scalar or vector quantities: (i) area (iv) density (vii) magnetic field (x) acceleration
(ii) gravitational force
(iii) electric field at a point
(v) potential energy
(vi) work
(viii) time
(ix) pressure
(xi) voltage
(xii) momentum
Answers (i), (iv), (v), (vi), (viii), (xi) are all scalars. The rest are all vectors.
11.2 Vectors as arrows This is the most common approach to vectors at the elementary level. We treat the line segment representing a vector a as an abstract geometrical ‘free’ object. If a is specifically fixed to an origin, then it is referred to as a position vector – its tip designating the position of the point at the tip. Pictorially, we might display vectors as in Figure 11.1. a
−a
Figure 11.1 Free vectors as arrows.
Note that the vector −a is simply a in the opposite sense. An algebra of such objects can be constructed which reflects geometrically the way in which vector quantities combine. Naturally, two vectors are equal if and only if they have the same magnitude and direction. The zero vector has zero magnitude and undefined direction – it is denoted 0. 319
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
The length or magnitude of a vector, a, is denoted |a| or just a. The direction of a is represented by a vector in the same direction, but with unit magnitude, and is denoted by aˆ . Thus, we may write a = |a|ˆa.
Exercise on 11.2 Consider vectors in a plane, and use a two-dimensional Cartesian coordinate system with the usual rectangular x-, y-axes. Choosing suitable scales on the axes sketch vectors as follows: (i) (ii)
Three free vectors a, b, c all of the same length 2 units and making equal angles with the positive x- and y-axes. A position vector r of length 3 units in the north-west direction (positive y-axis north).
Answers (i) y
3
b
2
a
1
−3
−2
−1
0
1
2
3
x
1
2
3
x
−1 c −2
Figure 11(i)
(ii) y 3
2 r 1
−3
Figure 11(ii)
320
−2
−1
0
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
11.3 Addition and subtraction of vectors Geometrically, vectors are added by the use of the triangle law in which a and b form two sides of a triangle in order, as shown in Figure 11.2. Then the resultant is the third side, denoted here with a double arrow. This representation of addition is in keeping with vectors describing displacements for example – following vector a and then continuing along vector b takes you to the same place that the resultant of vectors a and b takes you directly. In Figure 11.2 we represent this explicitly by showing displacements between three points A, B, C. B
b
C
a a+b → → → AB + BC = AC
A
Figure 11.2 Triangle addition of vectors.
−→ The resultant of a and b is denoted by the vector sum a + b or by AC. This can be regarded as ‘a followed by b gives a + b’. An alternative means of geometrical addition, linked to the calculation of the resultant of two forces, is the parallelogram law. Thus to add vectors a and b we construct a parallelogram with a and b forming two sides and then their sum or resultant, in magnitude and direction, is represented by the diagonal of the parallelogram, as shown in Figure 11.3. This represents the way in which vector quantities such as force combine. For example, if you imagine two horses on either side of a canal pulling a barge, then the resultant force on the barge will be represented by the diagonal of the corresponding parallelogram.
a a+b
b
Figure 11.3 Parallelogram addition of vectors.
Using either viewpoint – triangle or parallelogram – by constructing appropriate diagrams you can convince yourself that a + (b + c) = (a + b) + c a+b=b+a
(vector addition is associative) (vector addition is commutative)
Three or more vectors can be added by the polygon law as illustrated in Figure 11.4 – the resultant or sum ‘closes’, in the opposite direction, the polygon formed by following the vectors in the sum in turn. 321
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
c
d e
b f
a
g
a+b+c+d+e+f+g
Figure 11.4 Polygon addition of vectors.
A particular example of this is scalar multiplication of a vector by a scalar – the vector ka is simply a with its magnitude scaled by k. Vectors may be subtracted geometrically as shown in Figure 11.5. Thus, we can denote the vector b − a by the ‘arrow’ that takes us from a to b, since a followed by b − a gives the same displacement as b.
b−a
a
b
Figure 11.5 Subtraction of vectors.
Exercises on 11.3 1. Consider the pentagon below:
A
a
B b
e
C c
E d
D
Express (i) (ii) (iii) (iv)
e in terms of a, b, c, d − → CE in terms of e, a, b − → CE in terms of c and d − → − → −→ EC in terms of EA and CA
2. On a two dimensional Cartesian coordinate system, a is the position vector from the origin to the point (1, 0), b is the position vector with length 2 at angle 60° (anticlockwise) to the positive x-axis. Describe the vector b − a. 322
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Answers − → 1. (i) e = −(a + b + c + d) (ii) CE = −(e + a + b) − → − → −→ (iv) EC = EA − CA √ 2. b − a is of length 3 parallel to the y-axis
− → (iii) CE = c + d
11.4 Rectangular Cartesian coordinates in three dimensions To represent points, geometrical objects, vectors, etc. in 3-dimensional space it is useful to have a reference frame or coordinate system. The simplest type is the Cartesian system of rectangular coordinates, which generalises the usual x-, y-axes of two dimensions – see Figure 11.6, which shows how a point P may be represented by coordinates (x1 , y1 , z1 ) relative to a three-dimensional rectangular system of x-, y-, z-axes. x z1
r=
OP
=√
x
1
2
+x
2
2
+x
3
2
P (x 1, y1, z1)
y1
0
y
Qx1 N z
Figure 11.6 Rectangular Cartesian coordinates in three dimensions.
P N is the perpendicular to the x-y plane. The axes are shown arranged in the usual convention in which the Ox, Oy, Oz form a right-handed set – rotating Ox round to Oy drives a right-handed screw along Oz. The same applies if we replace Ox → Oy → Oz → Ox, etc. We say that the coordinates of P relative to the axes Oxyz are (x1 , y1 , z1 ) or ‘P is the point (x1 , y1 , z1 )’ where the coordinates are the distances of P along the x-, y-, z-axes respectively. We can label each point of 3-dimensional space with a set of ‘coordinates’ (x, y, z) relative to a particular coordinate system. For a given point, choosing a different set of axes gives a different set of coordinates.
Exercise on 11.4 Plot the points (0, 0, 0), (0, 0, 1), (0, 1, 0), (1, 0, 0) (−1, 0, 0), (1, 0, −1), (2, −1, 1) on a perspective drawing of a Cartesian rectangular coordinate system. 323
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Answer z
(0,0,1) (−1,0,0)
(0,0,0) (2,−1,1)
(0,1,0)
y
(1,0,0)
(1,0,−1)
x
11.5 Distance in Cartesian coordinates Look again at Figure 11.6. The distance, r, from the origin O to the point P (x1 , y1 , z1 ) is given by r = OP = x12 + y1 2 + z1 2 ➤
This can be seen by applying Pythagoras’ theorem (154
) twice:
OP 2 = ON 2 + P N 2 = OQ2 + QN 2 + P N 2 = x12 + y12 + z12 In general the distance between two points P (x, y, z), P (x , y , z ) is given by:
P P = (x − x)2 + (y − y)2 + (z − z)2 which again follows from Pythagoras’ theorem.
Problem 11.1 Calculate the distance between the two points P.−1, 0, 2/ and P .1, 2, 3/. The distance is given by substituting the coordinates into the above expression for P P : P P = (−1 − 1)2 + (0 − 2)2 + (2 − 3)2 √ = 9=3 324
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Exercise on 11.5 Calculate the distances of the points (i) (1, 0, 2), (ii) (−2, 1, −3), (iii) (−1, −1, −4) from the origin. Also calculate the distance between each pair of points.
Answer
√ √ √ (i) 5 (ii) 14 (iii) √ √ √ 18 Between (i) and (ii), 35. Between (i) and (iii), 41. Between (ii) and (iii), 6.
11.6 Direction cosines and ratios NB. Sections 11.6–8 are not essential to what follows and may be safely omitted for the student who simply wants to be able to use vectors. However, the ideas are very important in more advanced engineering mathematics and occur in such topics as CAD and surveying. While the coordinates of a point P (x, y, z), tell us everything that we need to know about the line segment OP , they are not very convenient for indicating its direction, which is most easily done by means of angles. When soldiers aim a field gun they do not specify the coordinates of the tip of the barrel – they give the angle of elevation of the barrel, and the bearing of the target. Similarly, the best way to specify the direction of OP is to specify the angles it makes with the axes. But we still want to retain a link with the coordinates (x, y, z) and for this reason we use the cosines of these angles – the so-called direction cosines. Let OP make angles α, β, γ with the axes Ox, Oy, Oz respectively – see Figure 11.7. z PN is perpendicular to Ox ON = |x | = r |cos a| r = |OP | P
0
b
g a
y
N x
Figure 11.7 Direction angles in three dimensions.
The direction cosines of the line segment, or radius vector, OP are defined as cos α, cos β, cos γ denoted by: l = cos α, Since we have
x = r cos α, l=
x , r
m = cos β, y = r cos β, m=
y , r
n = cos γ z = r cos γ
n=
z r 325
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
r 2 = x 2 + y 2 + z2 ,
from which, since
l 2 + m2 + n 2 = 1 Note that the direction cosines of a line not passing through the origin are the same as those of a parallel line through origin. The numbers l, m, n are not always the most convenient to use – they are all less than or equal to 1 in magnitude. Often all we need is simply the relation between them. Any three numbers a, b, c satisfying (14 ) ➤
a:b:c=l:m:n are called direction ratios of OP . l 2 + m2 + n2 = 1 we have a b c l= , m= , n= d d d
From
where
d = ± a 2 + b2 + c2
The ± denotes that to a given set of direction ratios there are two sets of direction cosines corresponding to oppositely directed parallel lines.
Problem 11.2 Calculate the direction cosines of each line to a vertex of a unit cube in the first octant with the lowest corner at the origin (Figure 11.8).
z
(0,0,1) (0,1,1)
(1,0,1)
(1,1,1) (0,1,0) (0,0,0)
(1,0,0)
y
(1,1,0)
x
Figure 11.8
First note that the direction cosines of the origin are not defined, since r = 0 at the origin. Consider the points on the axes – in this case the direction cosines are simply given by the points themselves (1, 0, 0), (0, 1, 0), (0, 0, 1). Now consider the point (1, 0, 1). The position vector to this makes an angle 45° with the x- and z-axes, and 90° with the Oy-axis. The direction cosines are therefore directly 326
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
obtained as
(cos 45° , 0, cos 45° ) =
1 1 √ , 0, √ 2 2
This is of course what we would obtain from the coordinates (1, 0, 1) themselves, taking the form x y z 1 0 1 1 1 = √ ,√ ,√ = √ , 0, √ , , r r r 2 2 2 2 2 Similarly for:
1 1 0, √ , √ 2 2 1 1 (1, 1, 0) the direction cosines are √ , √ , 0 2 2
(0, 1, 1) the direction cosines are
Finally, the far vertex with coordinates (1, 1, 1) has direction cosines x y z 1 1 1 = √ ,√ ,√ , , r r r 3 3 3 The acute angle made with each axis is therefore cos−1 ( 13 ) = 70.53° to 2 dp
Exercise on 11.6 Calculate the direction cosines of the position vectors defined by the points in the Exercise on 11.4.
Answer In order, referring to the Exercise on 11.4, the direction cosines are: 1 1 not defined, (0, 0, 1), (0, 1, 0), (1, 0, 0), (−1, 0, 0), √ , 0, − √ , 2 2 3 1 2 √ , −√ , √ 14 14 14
11.7 Angle between two lines through the origin Using direction cosines we can obtain a simple and useful expression for the angle between two lines intersecting at the origin. In general, the angle between any two lines in space, not necessarily intersecting, is the angle between any pair of lines parallel to them. In particular we can always take a pair of lines through the origin. This expression for the angle between two lines will be useful in discussing the angle between two vectors. This comes into the different types of products that we can make with vectors (the scalar and the vector product – see Sections 11.10 and 11.11). Consider Figure 11.9. Suppose two lines OA, OA have direction cosines l, m, n and l , m , n respectively with respect to axes Oxyz. Then we will show that cos θ = ll + mm + nn
327
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
A′ B ′(l ′,m ′,n ′) 1
O
q 1
B (l,m,n)
A
Figure 11.9 Angle between two lines.
This follows by applying the cosine rule to the triangle OBB in Figure 11.10 where OB, OB are of unit length. Then B, B have the coordinates (l, m, n) (l , m , n ) respectively. We have, by the cosine rule (179 ) ➤
BB = OB 2 + OB − 2OBOB cos θ 2
or
2
(l − l)2 + (m − m)2 + (n − n)2 = 12 + 12 − 2 cos θ = 2 − 2 cos θ
Expanding the left-hand side and using l 2 + m2 + n2 = 1 for the direction cosines yields l + m + n + l 2 + m2 + n2 − 2ll − 2mm − 2nn
2
2
2
= 1 + 1 − 2(ll + mm + nn ) = 2 − 2 cos θ This then gives the required result cos θ = ll + mm + nn . From this result it follows that if two lines are perpendicular then ll + mm + nn = 0 because
cos(±90° ) = 0
Exercise on 11.7 Using direction cosines find the acute angles between each pair of lines through the origin defined by the points in Exercises 11.5.
Answer Between (i) and (ii), 17.02° ; between (i) and (iii), 18.43° ; between (ii) and (iii), 35.02° – all to two decimal places.
11.8 Basis vectors We can use the coordinate system defined in Section 11.4 to represent vectors in terms of numerical components by choosing ‘basis vectors’ along the coordinate axes. The standard notation for this is to let i, j, k denote the unit vectors along the x-, y-, z-axes as shown in Figure 11.10. In terms of these ‘basis vectors’ we can write any vector, a, in the component form a = a1 i + a2 j + a3 k 328
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
z
k
O i
j
y
x
Figure 11.10 Basic vectors i, j, k.
and this provides the link with the ‘arrows’ representation of vectors given in earlier sections. It is common practice to represent a1 i + a2 j + a2 k by a triple (a1 , a2 , a2 ) or a ‘column matrix’ a1 a = a2 a3 but always remember that these only represent the vector a with respect to a particular set of basis vectors, and should not be confused with the notation for the coordinates of a point. Any set of unit vectors, such as i, j, k which are mutually perpendicular to each other (and there can be at most three in 3-dimensional space) is called an orthonormal set. The i, j, k form an orthonormal basis for the set of all vectors, in the sense that any three dimensional vector can be expressed in terms of them. Note that a1 i + a2 j + a3 k = 0 can only mean a1 = a2 = a3 = 0.
Problem 11.3 Find a, b, c if .a Y b Y c/i Y .b − c Y 1/j Y .a Y c/k = 0. Don’t let the Greek symbols put you off – as mathematics gets more advanced we soon run out of alphabets and so you will have to get used to such notation. If (α + β + χ)i + (β − χ + 1)j + (α + χ)k = 0 then α + β + χ = 0 (i) β − χ + 1 = 0 (ii) α + χ = 0 (iii) So a single vector equation is equivalent to three ‘scalar’ equations. We will consider such systems of equations in detail in Chapter 13, but the above system is not difficult to solve. Substituting for β from (ii) into (i) gives α + 2χ = 1 α+χ =0 from which χ = 1, α = −1, then β = χ − 1 = 0. 329
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Exercises on 11.8 1. Express the position vectors with the given endpoints in terms of i, j, k vectors. (i) (3, −1, 2)
(ii) (1, 0, 1)
(iii) (a, b, c)
(iv) (−1, 1, −1)
2. If (α − β)i + (β + 2χ)j + (α − χ)k = 2i − k determine α, β, χ.
Answers 1. (i) 3i − j + 2k (ii) i + k 2. α = 0, β = −2, χ = 1
(iii) ai + bj + ck
(iv) −i + j − k
11.9 Properties of vectors Two vectors a = a1 i + a2 j + a3 k
b = b1 i + b2 j + b3 k
referred to the same axes are equal if and only if a1 = b1 ,
a2 = b2 , (ai = bi
a3 = b3 for all i)
A zero vector is one whose components are all zero: 0 = 0i + 0j + 0k Let A, B be points with coordinates (a1 , a2 , a3 ), (b1 , b2 , b3 ) with respect to Oxyz axes. The position vector of B relative to A is (see Figure 11.11) −→ AB = AB = (b1 − a1 )i + (b2 − a2 )j + (b3 − a3 )k z AB
B (b1,b 2,b 3)
A (a1,a 2,a 3) O
y
x
Figure 11.11 Position vector of B relative to A.
As a particular case let A = (0, 0, 0), the origin, and B = a point P (x, y, z), as shown in Figure 11.12. − → OP or OP or r = xi + yj + zk is called the position vector of P (with respect to the axes Oxyz). We also refer to r as a radius vector. 330
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
z
O P
P (x,y,z )
r
O
y
x
Figure 11.12 Position vector of a point P.
The magnitude or length of a vector a = a1 i + a2 j + a3 k is given by a = |a| = a12 + a22 + a32 (also called modulus or norm of a). A unit vector is one of unit norm or magnitude – usually denoted with a circumflex, for example aˆ .
Problem 11.4 Show that a =
√
3 1 i Y j is a unit vector. 2 2
√ 2 2
3 1 + + 02 = 1. We have |a| = 2 2
Problem 11.5 Construct a unit vector parallel to a = i Y j − 3k. To construct a unit vector parallel to a given vector we have only to divide by its modulus, which for a = i + j − 3k is √ |a| = 12 + 12 + (−3)2 = 11 so a unit vector parallel to a is 1 aˆ = √ (i + j − 3k) 11 In general a vector a = a1 i + a2 j + a3 k is multiplied by a scalar λ as follows: λa = λa1 i + λa2 j + λa3 k i.e. all components are multiplied by λ. Note that the magnitude of λa is: |λa| = λ|a| = λa 331
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Multiplication by a positive (negative) λ leaves the direction of a unchanged (reversed). −a is defined by (−1)a. Vectors a = a1 i + a2 j + a3 k, b = b1 i + b2 j + b3 k are added and subtracted ‘componentwise’: a + b = (a1 + b1 )i + (a2 + b2 )j + (a3 + b3 )k a − b = (a1 − b1 )i + (a2 − b2 )j + (a3 − b3 )k It is obvious from this that, as noted in Section 11.3, a+b=b+a
(vector addition is commutative)
a + (b + c) = (a + b) + c
(vector addition is associative)
Problem 11.6 For a = i − j, b = 2i Y 3j Y 4k, c = −i − 2j − 4k, find the vectors representing (iii) a Y 2b − c
(ii) a Y b
(i) 3a
(iv) 2a − 3c
Using the rules given above we have (i)
3a = 3(i − j) = 3i − 3j
(ii)
a + b = i − j + 2i + 3j + 4k = 3i + 2j + 4k
(iii)
a + 2b − c = i − j + 2(2i + 3j + 4k) − (−i − 2j − 4k) = i − j + 4i + 6j + 8k + i + 2j + 4k = 6i + 7j + 12k 2a − 3c = 2(i − j) − 3(−i − 2j − 4k)
(iv)
= 2i − 2j + 3i + 6j + 12k = 5i + 4j + 12k
Exercises on 11.9 1. If a = µi + 2j + (λ − µ)k, b = 2λi + υj + 2k and 2a + b = 0 determine µ, λ, υ. 2. Referring to Q1, evaluate (i) |a|
(ii) aˆ
Answers 1. µ = 332
1 1 , λ = − , υ = −4 2 2
(iii) 3b
(iv) a + 2k
(v) 3a − b
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
√
1 21 (ii) √ (i + 4j − 2k) 2 21 5 (v) i + 10j − 4k 2
2. (i)
(iii) −3i − 12j + 3k
(iv)
1 i + 2j + k 2
11.10 The scalar product of two vectors So far we have simply added or subtracted vectors, or formed linear combinations of them. An obvious question is what sorts of ‘products’ can we define for two vectors. By ‘product’ we mean a generalisation of the multiplication of two real numbers. It is important to realise that we are free to define such products – vectors are new mathematical objects, completely different from anything we have considered before in this book, and we are at liberty to define the combinations of them in any way we wish which is mathematically consistent. When we invent new mathematical tools this is always the case – so long as our definitions do not lead to any silly contradictions (such as ‘1 = 0’) we can define the rules exactly as we wish. But of all the possible rules, we are naturally going to choose the most useful. So if we do define products of vectors then we are going to do so in such a way that the result is useful to us in modelling reality. We have (at least) two possibilities for defining ‘multiplication’ of vectors: vector ∗ vector = scalar vector ∗ vector = vector Not surprisingly these give rise to the ‘scalar’ and ‘vector product’ respectively. The best way to introduce the scalar product is to do a little ‘work’. Specifically, if a force of magnitude F acting in a fixed direction moves a particle through a displacement d in that direction, then we say that the ‘work done’ by the force on the particle is: W = Fd
(1)
Now, both force and displacement are vector quantities – they require both magnitude and direction to specify them. This is hidden in the above result because both the force and the displacement have been taken as operating in the same fixed direction. So, the right-hand side of the above equation is essentially a vector times a vector. On the other hand, work done, or energy expended, is not a vector quantity – energy is simply a scalar, numerical quantity, like temperature or heat. So the left-hand side of the equation is a scalar. Thus, the equation essentially says: “vector ‘×’ vector = scalar” But, as we said, the vector content is hidden. To bring it out, suppose F no longer acts on the particle in its own direction, but at an angle to it. For example the particle may be a bead on a straight smooth wire, and the force applied by pulling a string at an angle θ to the wire, as shown in Figure 11.13. Only the component of the force along the direction of the wire can do work on the bead (the component perpendicular to the wire will not result in any motion along the 333
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
F
q d
Figure 11.13 Force at an angle to the direction of motion.
wire). This component is F cos θ . So, if we move the bead a distance d along the wire then the work done is W = (F cos θ )d = F d cos θ This is the generalisation of equation (1) when the force and displacement make an angle θ with each other. So, let F be the vector representing the force and d represent the displacement. Then the work done is: W = |F| |d| cos θ i.e. the magnitude of the force F multiplied by the magnitude of the displacement d, times the cosine of the angle between the two vectors. The result is, naturally, a scalar. But it has a magnitude component, |F| |d|, and a direction component θ , which suggest that it would be very useful to define this particular combination of vectors as a ‘product’ of vectors which yields a scalar. In general then the scalar product of two vectors a, b is denoted by a · b (sometimes called the dot product) and defined by a · b = ab cos θ where a = |a|, b = |b| and θ is the angle between a and b – see Figure 11.14. a q b
Figure 11.14 The scalar product is a · b = ab cos θ .
With this definition the work done by the force F moving a particle through a displacement d is given by W =F·d This explains why we define the scalar product as above – it is very useful to do so! Now, for the purposes of calculations it is invariably more convenient to have an expression for the scalar product in terms of components. The definition we have given above, as we will see shortly, is equivalent to the following expression in terms of components: a · b = a1 b1 + a2 b2 + a3 b3 = b · a 334
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Note the special case: a · a = a12 + a22 + a32 = a 2 ≡ |a|2 = square of magnitude of a In the above form of the scalar product it is not difficult to show that the scalar product has the following properties: (i)
a · b is a scalar
(ii)
a·b=b·a i.e. the scalar product is commutative
(iii)
a · (b + c) = a · b + a · c i.e. the scalar product is distributive over addition
(iv)
(ka) · b = k(a · b) = a · (kb) for any scalar k
(v)
If a · b = 0 and a, b are not zero then a is perpendicular to b.
Problem 11.7 If a = 2i − j Y 2k and b = 2i Y 4j − 3k evaluate a · b, b · a, a 2 , b 2 a · b = 2(2) + (−1)(4) + 2(−3) = 4 − 4 = −6 b · a = 2(2) + 4(−1) + (−3)(2) = −6, agreeing with property (ii) a 2 = |a|2 = a · a = (2)2 + (−1)2 + 22 = 9 b2 = 22 + 42 + (−3)2 = 29 To see the connection of the above ‘component expression’ for the scalar product with the a · b = ab cos θ definition, we appeal to the work we did on direction cosines. You can omit this if you are prepared to take the result on trust. We have a1 b1 + a2 b2 + a3 b3 a·b = ab ab a b a b a b 1 1 2 2 3 3 + = = a b a b a b = la lb + ma mb + na nb = cos θ where (la , ma , na ) (lb , mb , nb ) are the direction cosines of a and b and θ is the angle between a and b (327 ). So a · b = ab cos θ = a1 b1 + a2 b2 + a3 b3 . ➤
Problem 11.8 Find the scalar product of a = .−1, 2, 1/ and b = .0, 2, 3/ and hence find the acute angle between these vectors. 335
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
a · b = (−1)(0) + 2(2) + 1(3) = 7 = ab cos θ = (−1)2 + 22 + 12 02 + 22 + 32 cos θ √ √ = 6 13 cos θ So
7 cos θ = √ √ 6 13
giving, to two decimal places, θ = 37.57° for the acute angle between the vectors a and b. Two non-zero vectors a, b are perpendicular to each other, or mutually orthogonal if a·b=0 This follows directly from cos θ = 0 for θ = ±π/2. For the i, j, k basis vectors we easily find: (Reinforcement Exercise 16) i·i=j·j=k·k=1 i·j=i·k=j·k=0 Using these provides a direct derivation of the result: a · b = a1 b1 + a2 b2 + a3 b3
Exercises on 11.10 1. Using the component form for the scalar product prove the properties (i)–(v). 2. Find all possible scalar products between the vectors a = −i + 2j, b = j + 2k, c = i + 2j + 3k and determine the angles between each pair of vectors.
Answers 2. a · b = 2, a · c = 3, b · c = 8 Angle between a and b is 66.42° , between a and c is 68.99° , between b and c is 17.02° all to two decimal places.
11.11 The vector product of two vectors Now what about a vector valued ‘product’ of vectors? In this case we will simply define the vector product in terms of components first and give the connection with the a, b, θ form later. The mechanical application of the vector product as a moment of a force is given in the Applications section. The vector product of a = a1 i + a2 j + a3 k with b = b1 i + b2 j + b3 k is denoted a × b (‘a cross b’) and defined by: a × b = (a2 b3 − a3 b2 )i + (a3 b1 − a1 b3 )j + (a1 b2 − a2 b1 )k 336
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
The notation a ∧ b is sometimes used. This vector product is often represented in the form of the array shown below, in order to aid memory. j k i a × b ≡ a1 a2 a3 b1 b2 b3 a2 a3 a1 a3 a1 a2 k ≡ i− j+ b2 b3 b1 b3 b1 b2 where we introduce the shorthand a b c d = ad − bc NB: This is just a mnemonic device for remembering the formula for the vector product and for calculating it – you don’t need to know anything about determinants at this stage.
Problem 11.9 Find the vector product a × b between the vectors a = i − j Y 2k and b = 2i Y k. What is b × a? Using the component expression given we obtain (check these calculations against the symbolic expressions given above) i a × b = 1 2
j k −1 2 0 1
= [(−1)(1) − 2(0)]i − [1 × 1 − 2 × 2]j + [1 × 0 − (−1)(2)]k = −i + 3j + 2k You can also verify explicitly that b × a = i − 3j − 2k = −a × b From the above definition it can be shown that the vector (or cross) product has the following properties: (i) (ii) (iii) (iv) (v) (vi) (vii)
a × b is a vector a × (b + c) = a × b + a × c and (a + b) × c = a × c + b × c i.e. the vector product is distributive over vector addition (ka) × b = k(a × b) = a × (kb) for any scalar k If a × b = 0 and a, b are not zero vectors, then a and b are parallel b × a = −a × b as illustrated by Problem 11.9 a × a = 0, which follows from (v) The vector product is not associative, i.e. a × (b × c) = (a × b) × c 337
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
For the basis vectors i, j, k we find (Reinforcement Exercise 24) i×i=j×j=k×k=0 i × j = k,
j × k = i,
k×i=j
Geometrically the vector product can be expressed as: a × b = ab sin θ n where n is a unit vector perpendicular to both a and b such that a, b, n form a right-handed set – see Figure 11.15. n q
b
a
Figure 11.15 The vector product is a × b = ab sin θ n.
The proof of this is an interesting exercise. Take the x-axis to be along a and b to be in the xy plane (we can always choose axes in this way). Then a = ai
b = b1 i + b2 j
a × b = ab2 i × j = ab2 k
so
But also we have: b2 = b sin θ a × b = ab sin θ k
so
which is equivalent to the above result. The two vectors a, b are parallel or opposite and parallel if and only if a × b = 0 (then θ = 0 or 180° ).
Exercises on 11.11 1. Prove the properties (i) → (vi) 2. If a = i + k b = 2i − j + 3k c = i + 2j + 3k, evaluate (i) a × b
(ii) a × (b + c)
(iii) a × c
(v) b × a
(vi) a × (b × c)
(vii) (a × b) × c
(iv) b × b
Answers 2. (i) i − j − k (v) −i + j + k 338
(ii) −i − 3j + k
(iii) −2i − 2j + 2k
(vi) 3i − 14j − 3k
(vii) −i − 4j + 3k
(iv) 0
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
11.12 Vector functions A vector function is a vector which is a function of some variable, say t. We write f(t) for a general vector function. For example the position of a projectile may be represented by a vector, r referred to some origin, and this position will vary with time, t. We can represent this by taking r to be a function of t, r(t). So r(t) is a vector function of time t. This is illustrated in Figure 11.16. P x (t ),y (t ),z (t )
z
r (t ) = x (t )i + y (t )j + z (t )k
y x
Figure 11.16 Position vector of a vector function.
The set of values of the variable t is called the domain of the vector function, while the set of possible vectors f(t) is called the codomain or range of the vector function. A vector for which both the magnitude and direction are constant, i.e. each component is constant, is called a constant vector. Examples of constant vectors are i, j, k. It is useful to know the vector functions representing lines and planes. The position vector r of a general point P lying on a straight line passing through a point with position vector a is r = a + td where d is any constant vector parallel to the line – see Figure 11.17. d
td
a r = a + td
O
Figure 11.17 Equation of a line.
For the case of a plane, consider Figure 11.18. Let P be any point in a plane, and let n be any vector normal to the plane. Let a be the position vector of a fixed point in the plane. If r is the position vector of P then r − a will be a vector in the plane. As such it will be perpendicular to n, from which we have (r − a) · n = 0 So
r · n = a · n = ρ say 339
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
n
P
A a r
O
Figure 11.18 Vector equation of a plane.
is the general equation for a plane. If n = αi + βj + γ k then in terms of coordinates this is αx + βy + γ z = ρ
Exercise on 11.12 Sketch the path described by the position vector f(t) = cos ti + sin tj + k as t varies.
Answer z
1
0
y
x
11.13 Differentiation of vector functions The idea of a vector function f(t) of t raises the question of its rate of change as t varies. In the case of the projectile of Section 11.12, this rate of change would represent the velocity of the projectile at the time t. If you look back at the definition of the derivative on page 231, the following definition will probably now make sense to you. We are essentially applying the definition to each component of the vector function. The derivative of a vector function f.t/, with respect to t is defined by d f(t) f(t + h) − f(t) = lim h→0 dt h
Problem 11.10 Show that the derivative of a constant vector is zero. 340
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Let f(t) = c be a constant vector. Then f(t + h) = c, and so from the above definition f(t + h) − f(t) c−c df = lim =0 = lim h→0 h→0 dt h h The properties of differentiation of a vector look very much like those of ordinary differentiation, although the notation may be a bit unnerving at first. We have three types of product to contend with of course – multiplication by a scalar, scalar product and vector product. On the other hand we don’t have to worry about a quotient rule, since we have not defined division of vectors. The rules are as follows. If s(t) is a scalar function and f(t) a vector function, then (i)
d d s(t) d f(t) (s(t)f(t)) = f(t) + s(t) dt dt dt
If g(t) is also a vector function, then (ii)
d d f(t) d g(t) (f(t) + g(t)) = + dt dt dt
(iii)
d dg df (f · g) = f · + ·g dt dt dt
(iv)
dg df d (f × g) = f × + ×g dt dt dt
where the order of vectors must be preserved
(i) and (ii) show that differentiation of the component form is simple: d d f1 (t) d f2 (t) d f3 (t) (f1 (t)i + f2 (t)j + f3 (t)k) = i+ j+ k dt dt dt dt
Problem 11.11 Differentiate the following vector functions with respect to t (i) (ii) (i)
(ii)
cos 4ti Y 3 sin 4tj Y e t k t cos ti Y e −t sin tj Y t 2 k
d (cos 4ti + 3 sin 4tj + et k) dt d d d = (cos 4t)i + (3 sin 4t)j + (et )k dt dt dt = −4 sin 4ti + 12 cos 4tj + et k d (t cos ti + e−t sin tj + t 2 k dt d d d = (t cos t)i + (e−t sin t)j + (t 2 )k dt dt dt = (cos t − t sin t)i + (e−t cos t − e−t sin t)j + 2tk 341
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Second and higher derivatives may be obtained in the obvious way by repeated differentiation. Thus, for example: d 2 f1 d 2 f2 d 2 f3 d 2 f(t) = i+ j+ k 2 2 2 dt dt dt dt2
Problem 11.12 Evaluate
d 2f d 3f and 3 for f = ti Y e −t j Y cos tk 2 dt dt
df = i − e−t j − sin tk dt d 2f = e−t − cos tk dt2 d 3f = −e−t j + sin tk dt3 When we introduced ordinary differentiation we referred it to the gradient or slope of a curve. We can do the same for differentiation of vector functions – but it is now a little more complicated. It is perhaps best to appeal to the example considered earlier of a vector function r(t) describing the position of a particle at time t. Thus, let r(t) be the position vector of a moving particle P . As t varies the particle moves along a curve in space – see Figure 11.19. P′ P
O
Figure 11.19 Definition of derivative of a vector.
Now for two points on the curve r(t), r(t + h), close to each other we have: −→ − − → → OP − OP PP
r(t + h) − r(t) = = h h h − → As h → 0, P → P and the vector PP becomes tangential to the curve. Also the magni −→ − PP tude is the average speed of the particle over the interval P P and so as h → 0 this h becomes the velocity of the particle. Thus: r(t + h) − r(t) dr lim = h→0 h dt 342
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
is a vector tangential to the curve, pointing in the direction of motion of the particle and dr is the with magnitude equal to the magnitude of the velocity of the particle. That is, dt vector velocity of the particle: dr dt
v= Similarly a =
d 2r is the acceleration of the particle. dt2
Problem 11.13 Find the velocity, acceleration and kinetic energy of the particle mass m whose position vector at time t is: r.t/ = 2 cos !ti Y 2 sin !tj Verify that for such a particle v · r = 0. The velocity is v=
dr = −2ω sin ωti + 2ω cos ωtj dt
From this we find v · r = 4ω(− sin ωti + cos ωtj) · (cos ωti + sin ωtj) = 4ω(− sin ωt cos ωt + cos ωt sin ωt) = 0 The acceleration is a=
d 2r dv = = −2ω2 cos ωti − 2ω2 sin ωtj dt2 dt = −ω2 r
The kinetic energy is 1 2 1 mv = m((−2ω sin ωt)2 + (2ω cos ωt)2 ) 2 2 1 = m · 4ω2 2 = 2mω2
Exercises on 11.13 1. Show that if e is a vector of constant magnitude, then e·
de =0 dt 343
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
d df dg (f × g) = ×g+f× dt dt dt for the two vectors:
2. Verify
f = ti − 2t 2 j + et k
g = cos ti − 2tj
11.14 Reinforcement 1. The free vectors a, b, c are shown as arrows in the figure below. Sketch arrows representing the vectors (i) a + b (ii) a − c (iii) a + 2b (iv)
3 1 (a + b) (v) a − b (vi) a − 2c 2 2
b
c
a
2. Determine the unknown vector x in terms of a, b, c in each case. (i) 3x − a + 2b = 2a − 4b − x (ii) 2x − 2a + 3c = 3c − 2b − 2x (iii) 4x − 3a + 2b − c = 4b − 2x − 3a + 2c 3. Write down the coordinates of the six points which lie on the coordinate axes and are one unit from the origin. 4. Plot on a diagram the positions of (0, 0, 2);
(0, −1, 0);
(3, 0, 0);
(1, 1, 0);
(−2, 1, 0)
(2, 0, 1);
(0, 1, 1);
(1, 1, 1);
(−2, 1, −1);
(1, −2, 2)
5. Calculate the distance from the origin of each of the points: (i) (1, 1, 0) (v) (0, 4, 3)
(ii) (2, 0, −1) √ (vi) ( 2, 1, 1)
(iii) (−2, 0, 1)
(iv) (−2, 3, 1)
6. Find the distance between each of the following pairs of points: (i) (2, 0, 0); (1, 2, 3) (iii) (5, 4, 2); (0, 3, −1) (v) (a, −a, 0); (−a, 0, a) 344
(ii) (3, 0, −1); (1, 2, 1) (iv) (−2, −1, 1); (0, 2, −2)
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
7. A straight rod is held with one end in the corner of a room. If it makes angles of 60° and 45° with the lines of intersection of the floor and the walls, find the angle that it makes with the vertical. 8. Find the direction cosines of the vectors OP for each of the points P in Q5. 9. Determine the acute angles between the position vectors defined by the pairs of points in Q6. 10. Express in terms of i, j, k the position vectors with endpoints (i) (2, −1, 2) (ii) (1, 2, 3) (iii) (−1, −2, −3) (iv) (2, −3, 4) (v) (2u, 3v, 4w) 11. Calculate the magnitude and direction for each of the position vectors: (i) a = 3i √ (iv) d = 3i + j (vii) g = −i − j + 2k
(ii) b = i + j
(iii) c = 3i − 3j
(v) e = i + 2j
(vi) f = i + j + k
(viii) h = 2i + 2j + 2k
Find unit vectors in the direction of each vector. 12. For the vectors in Q11 find (i) a + b
(ii) c − g
(iv) 2a − 3b − 3f
(iii) a + b + h
(v) 4a + 2b − 3c + d + e − f + g − 3h
13. For the vectors in Q11 determine the vector x such that: (i) 2x − 3a + b = 0 (iii) 2x − 2f = 3x + 2g
(ii) a + b − 2c + 3x = d (iv) 3x + 2e − f = g + h − x
14. The following describe position vectors with respect to the basis vectors i, j, k. Write down the component forms of the vectors. (i) r is in the xy plane, has length 3 units and bisects the angle between i and j. (ii) r is in the yz plane, has length 2 units and makes angle 30° with j and 60° with k. (iii) r is the diagonal of the unit cube in the first octant with sides i, j, k. 15. Vectors a, b, c have magnitudes 1, 2, 3 respectively and the angle between a and b is 60° , between b and c 45° and between a and c is 105° . Find all possible scalar products between a, b, c. 16. Prove the results i·i=j·j=k·k=1 i·j=i·k=j·k=0 17. a and b are perpendicular to each other with magnitudes 2 and 4 respectively. If x = 2a − b and y = 3a − 4b, find x · y. If z = λa − b determine λ such that y and z are perpendicular. 345
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
18. Find the scalar products of the following pairs of vectors and state if any of the three pairs are perpendicular (i) i − j, 3i + 4j + 5k
(ii) 4i + j − 3k, −i + 3j − 7k
(iii) 3i + j + 4k, 2i − 2j − k 19. Find the angles between the pairs of vectors (i) a = −j + k
b = 3i + 4j + 5k
(ii) a = i − j − 2k
b = 2i + j + 3k
(iii) a = 2i + j − k
b = i + 2j + k
20. Suppose the axes Oxyz are such that Ox points East, Oy points North, Oz points vertically upwards. Evaluate the scalar products of the vectors a and b in each of the following cases: (i) a is of magnitude 3 and points SE. b has length 2 and points E. (ii) a is a unit vector pointing NE. b is of magnitude 2 and points vertically upwards. (iii) a is of unit magnitude and points NE. b is of magnitude 2 and points W. 21. If a = i − j
b = −j + 2k, show that (a + b) · (a − 2b) = −9
22. Show that i + j + k and a 2 i − 2aj + k are perpendicular if and only if a = 1. 23. Determine the vector product a × b for each of the pairs of vectors in Q18 and Q19. In each case find unit vectors perpendicular to the two vectors. 24. Prove the results i×j=k
j×k=i
k×i=j
i×i=j×j=k×k=0 25. Find the vector products of the vectors a, b (i) a = 3i + 7j + 2k
b = i + 3j + k
(ii) a = i − 3j
b = −2i + 5j
(iii) a = 8i + 8j − k
b = 5i + 5j + 2k
26. If a = 3i − 2j + k, b = i + j + k and c = 2i + j − 3k evaluate, using any short-cuts you can: (i) the triple scalar products a·b×c a·c×b b·a×b (ii) the triple vector products a × (b × c) (a × b/ × c b × (b × a)
346
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
27. For the pairs of vector functions f(t), g(t) verify the product rules: dg df d (f.g) = f · + ·g dt dt dt d df dg (f × g) = ×g+f× dt dt dt (i) f = t 2 i + et j + sin tk
g = ti + t 2 j + 2k
(ii) f = cos 2ti + sin 2tj + 3k
g = ti + 2j − 3t 2 k
11.15 Applications 1. Vector methods can be used in geometrical applications. The following provide some examples for you to try. (i)
The point P divides the line segment AB in the ratio m : n. If a, b are respectively the position vectors of A and B with respect to an origin O, determine the position vector of the point P relative to O.
(ii)
Use the scalar product to prove Pythagoras’ theorem
(iii)
Use the scalar product to prove the cosine rule
(iv)
Adjacent sides of a triangle represent vectors a and b. Show that the area of the triangle is 12 |a × b|.
2. There are countless examples of use of vectors in mechanics of course. The following give some typical examples. (i)
Assuming the triangle rule for addition of vectors show that any set of forces represented by arrows forming a closed polygon with all sides like directed is in equilibrium (i.e. sums to zero).
(ii)
The moment or torque of a force F acting at the point P about the origin O is defined to be M = r × F where r is the position vector of P . Describe the magnitude and direction of M. Determine the torque of the force F = i + 2j + 3k applied at the point (−1, −1, 2) about the points (a) (0, 0, 0)
(iii)
(b) (3, 2, −1)
(c) (1, 1, 1)
The position vector of a particle at time t is given by r = (t + 1)i − t 2 j + et k Determine the velocity and acceleration at time t.
347
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
11.16 Answers to reinforcement exercises 1. a−
b
b a+
c
c
a
a
(i)
(ii)
a+
2b
b
b 1 (a 2
a
a (iii)
(iv)
3 2 (a
a−
2c
−b
)
b
c a
a (vi)
(v)
3 1 1 3 a− b (ii) x = a − b 4 2 2 2 3. (±1, 0, 0); (0, ±1, 0); (0, 0, ±1) 2. (i) x =
(iii) x =
1 1 b+ c 3 2
4. z
(0,0,2) (1,−2,2)
(0,1,1)
(0,−1,0)
(1,1,1)
(2,0,1) 0 (1,1,0) (3,0,0)
x
348
)
+b
(−2,1,0) (−2,1,−1) y
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
5. (i) 6. (i)
√ √
7. 60° 8. (i) (iv)
2 14
√ √ 5 (iii) 5 (iv) 14 (v) 5 (vi) 2 √ √ √ √ (ii) 2 3 (iii) 35 (iv) 22 (v) a 6
(ii)
√
1 1 √ , √ ,0 2 2
2 1 √ , 0, − √ 5 5 4 3 (v) 0, , 5 5
3 1 2 −√ , √ , √ 14 14 14
9. (i) 74.5°
(ii) 75.04°
(iii) 61.87°
10. (i) 2i − j + 2k (ii) i + 2j + 3k (v) 2ui + 3vj + 4wk
2 1 − √ , 0, √ 5 5 1 1 1 (vi) √ , , 2 2 2
(iii)
(iv) 54.74°
(v) 60°
(iii) −i − 2j − 3k
(i) |a| = 3, aˆ = i
11.
(ii)
(iv) 2i − 3j + 4k
√ 1 (iii) |c| = 3 2, cˆ = √ (i − j) 2 2 1 (v) |e| = 3, eˆ = √ i + √ j 5 5 √ 1 1 2 (vii) |g| = 6, gˆ = − √ i − √ j + √ k 6 6 6 √ 1 1 1 (viii) |h| = 2 3, hˆ = √ i + √ j + √ k 3 3 3
√
1 2, bˆ = √ (i + j) 2 √ 3 1 (iv) |d| = 2, dˆ = i+ j 2 2 √ 1 1 1 (vi) |f| = 3, fˆ = √ i+ √ j+ √ k 3 3 3 (ii) |b| =
The coefficients of the unit vectors give the direction cosines that define the directions of the vectors. 12. (i) 4i + j (iv) −6j − 3k 13. (i)
1 (8i − j) 2
(ii) 4i − 2j − 2k √ (v) ( 3 − 2)i + 6j − 5k √ 2+ 3 (ii) i − 2j (iii) −6k 3
3 3 14. (i) √ i + √ j 2 2
(ii)
√
3j + k
(iii) 6i + 3j + 2k 1 5 (iv) − j + k 2 4 (iii) i + j + k
15. Between a and b the scalar product is 1√ Between b and c the scalar product is 3 2 Between a and c the scalar products is −0.78 to two decimal places 17. x · y = 88, λ = − 18. (i) −1 19. (i) 84.26° √ 20. (i) 3 2
16 3 (ii) 20
(iii) 0, so these are orthogonal (ii) 123.06° (ii) 0
(iii) 60° √ (iii) − 2
349
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
1 23. (i) −5i − 5j + 7k, √ (−5i − 5j + 7k) 3 11 1 (ii) 2i + 31j + 13k, √ (2i + 31j + 13k) 1134 1 (7i + 11j − 8k) (iii) 7i + 11j − 8k, √ 234 1 (iv) −9i + 3j + 3k, √ (−3i + j + k) 11 1 (v) −i − 7j + 3k, √ (−i − 7j + 3k) 59 1 (vi) 3i − 3j + 3k, √ (i − j + k) 3 25. (i) i − j + 2k
(ii) −k
26. (i) a · b × c = −23, (ii) a × (b × c) = −3i − j + 7k,
(iii) 21i − 21j
a · c × b = 23, b · a × b = 0 (a × b) × c = i + j + k,
b × (b × a) = −7i + 8j − k 27. (i)
(ii)
350
d (f · g) = 3t 2 + (t 2 + 2t)et + 2 cos t dt d (f × g) = (2et − 2t sin t − t 2 cos t)i − (4t − sin t − t cos t)j dt +(4t 3 − et − tet )k d (f · g) = 5 cos 2t − 2t sin 2t − 18t dt d (f × g) = −(6t sin 2t + 6t 2 cos 2t)i + (3 − 6t 2 sin 2t + 6t cos 2t)j dt −(5 sin 2t + 2t cos 2t)k
12
Complex Numbers Complex numbers √ extend the notion of ordinary ‘real numbers’ to include a new kind of ‘number’, j = −1. Such ‘numbers’ can be combined by the usual rules of algebra, except that we replace j 2 by −1 wherever it occurs. Complex numbers do not serve the usual role of numbers – we don’t measure physical quantities with them – but they provide a very useful shorthand tool for dealing with certain combinations of real numbers. There is not much that is conceptually new in this chapter, but we have to become more practised at using basic, elementary mathematics.
Prerequisites It will be helpful if you know something about: ➤ ➤
solving quadratic equations (65 ) elementary algebra (Chapter 2 ) polar coordinates (206 ) elementary trig, including compound angle formulae (187 the exponential function (124 )
➤
➤
➤
• • • • •
)
Objectives In this chapter you will find: • • • • • • • •
definition and representation of a complex number addition, subtraction, multiplication and division of complex numbers the Argand plane modulus and argument of a complex number polar form of a complex number multiplication and division in polar form the exponential form of a complex number powers and roots – De Moivre’s theorem
Motivation You may need the material of this chapter for: • solving polynomial equations • solving differential equations • describing voltages, currents, etc. in AC electricity theory 351
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
12.1 What are complex numbers? Numbers such as integers, rational numbers, etc. that we have been using so far are called real numbers – they can be used to count with, or measure distances, time, etc. From the rules of signs for combining negative numbers (11 ) we know that if we square two such real numbers, the result will always be positive: ➤
22 = +4 (−2)2 = +4 An obvious question is, is there any sort of mathematical object that results in a negative number when squared? Why should such an object be of interest anyway? In real life we don’t√need such quantities – no one ever measured the length of a line to be, for example −1 metres. True, we don’t need such ‘numbers’ for measuring and representing real physical quantities. However, it does turn out that such ‘numbers’ are very useful as a mathematical tool in representing physical objects which have two parameters – for example the amplitude and phase of a signal waveform may be conveniently combined in ‘complex’ form. Also, such ‘numbers’ provide nice tools for calculational purposes – as for example in differential equations. So, let’s accept that it’s useful to √ look at the properties of such ‘numbers’ as −1 and develop the tools necessary to use them. Start by considering the quadratic equation x2 + 1 = 0
or x 2 = −1
This has no ‘real’ solution, but by introducing the symbol j=
√
−1 (alternative notation i)
we can write x = ±j The object j is sometimes called ‘imaginary’, and is an example of a ‘complex number’. There is, however, nothing imaginary about it. While it certainly does not represent a ‘quantity’ in the normal sense that a ‘real number’ such as 2 does, it is still a perfectly proper symbol that serves a very useful purpose in mathematics. In particular, having defined it as above, it now allows us to write down the ‘solution’ of any quadratic equation.
Problem 12.1 Write the solution of the √ equation x 2 Y 2x Y 2 = 0, as given by the formula (66 ), in terms of j = −1. ➤
By the formula we have √ √ −2 ± −1 −2 ± −4 = = −1 ± j x= 2 2 352
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Any number of this form z = a + jb
j=
√
−1
where a, b are real numbers, is called a complex number. We will usually write z rather than x for such a number since z always signals that we are talking about complex numbers. a is called the real part of z, denoted Re z – it is a real number b (not j b) is called the imaginary part, denoted Im z – also a real number Real numbers are special cases of complex numbers with zero imaginary part.
Exercise on 12.1 Solve the following equations in a + j b form: (i) x 2 + 4 = 0
(ii) x 2 + x + 1 = 0
(iii) x 2 + 6x + 11 = 0
(iv) x 3 − 1 = 0
Answer (i) ± 2j
√ 1 3 j (ii) − ± 2 2
(iii) −3 ±
√
2j
√ 1 3 j (iv) 1, − ± 2 2
12.2 The algebra of complex numbers Complex numbers can be manipulated just like real numbers but using the property j 2 = −1 whenever appropriate. Many of the definitions and rules for doing this are simply common sense, and here we just summarise the main definitions. Equality of complex numbers: a + j b = c + j d means that a = c and b = d. To perform addition and subtraction of complex numbers we combine real parts together and imaginary parts separately: (a + j b) + (c + j d) = (a + c) + j (b + d) (a + j b) − (c + j d) = (a − c) + j (b − d) Also note that k(a + j b) = ka + j kb for any real number k. At this point you may be noticing the similarity to our work on vectors in the previous chapter.
Problem 12.2 If z = 1 Y 2j and w = 4 − j evaluate 2z − 3w . We have 2z − 3w = 2(1 + 2j ) − 3(4 − j ) = 2 + 4j − 12 + 3j = −10 + 7j . To multiply two complex numbers simply multiply out the brackets by ordinary algebra, use j 2 = −1 and gather terms: (a + j b)(c + j d) = ac + aj d + j bc + j 2 bd = ac − bd + j (bc + ad) 353
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Problem 12.3 Multiply (3 − j ) and (2 Y 3j ). (3 − j )(2 + 3j ) = 6 + 9j − 2j − 3j 2 = 6 + 7j − 3(−1) = 9 + 7j Given a complex number z = a + j b there is a very useful operation we can perform, that converts the number to its ‘conjugate’. Thus, the complex conjugate of a complex number z = a + ib is defined as z¯ = a + (−j )b
(alternative notation z∗ )
NB: In general the complex conjugate of a complex expression is obtained by changing the sign of j everywhere it occurs. For examples of this see Reinforcement Exercise 5, and 9.
Problem 12.4 Show that z z¯ is a positive real number which is only zero if a = b = 0, i.e. if z = 0. Also show that z Y z¯ is always a real number. This is the crux of the importance of z¯ . We have z¯ z = (a − j b)(a + j b) = a 2 − (j b)2 = a 2 − j 2 b2 = a 2 + b2 ➤
on using the difference of two squares (42 ). Now a 2 and b2 are both non-negative numbers and so z¯z is clearly positive. Also, the result can only add up to zero if both a and b are zero. So z¯ z = 0 only if a = 0 and b = 0, i.e. if z = 0. We will see that these properties of z¯z are very important when we come to dividing complex numbers. Also, we have directly z + z¯ = a + j b + a − j b = 2a which is a real number. The complex conjugate is also useful for characterising the real and imaginary parts of a complex number. Thus, as you can easily check, if z is purely real, then z¯ = z while if z is purely imaginary, then z¯ = −z. In general, you can see that (see Problem 12.4) Re z =
z + z¯ 2
Im z =
z − z¯ 2j
Problem 12.5 For z = 2 Y 3j evaluate z z¯ , Re z and Im z . For z = 2 + 3j we have z¯ = 2 − 3j and so z¯z = 22 + 32 = 13 2 + 3j + 2 − 3j Re z = = 2, 2
Im z =
which last results are obvious by inspection of z. 354
2 + 3j − (2 − 3j ) =3 2j
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Division (or rationalization) of two complex numbers: z=
a + jb c + jd
means converting into the standard form A + j B. We can do this by using the complex conjugate, c − j d, of c + j d and the fact that (c − j d)(c + j d) = c2 + d 2 which is real. So, if we multiply top and bottom of the above complex number z by c − j d we get (see Applications, Chapter 2) ac + bd bc − ad a + jb c − jd a + jb +j = × = c + jd c + jd c − jd c2 + d 2 c2 + d 2
Problem 12.6 Divide 3 − 2j by 4 Y j . We have 3 − 2j 3 − 2j 4−j 10 − 11j 10 11 = × = = − j 4+j 4+j 4−j 17 17 17
Exercise on 12.2 For the complex numbers z = 3 − j and w = 1 + 2j evaluate (i) 2z − 3w (ii) zw (iii) z2 w¯z2
(iv)
z w
Answer (i) 3 − 8j
(ii) 5 + 5j
(iii) 10 + 20j
(iv)
1 7 − j 5 5
12.3 Complex variables and the Argand plane A general complex variable is denoted, in Cartesian form, by z = x + jy with x, y varying over real values. Such a variable can be represented by points in a plane called the Argand plane (or complex plane) – see Figure 12.1. x is called the real axis; y the imaginary axis. In this representation the complex conjugate z¯ is the mirror image of z in the x-axis. The distance of the complex number z from the origin is r = x 2 + y 2 , denoted |z| and called the modulus of z – it is always taken to be the positive square root. The angle θ made by OP with the positive x-axis is called the amplitude or argument of z. r and θ are polar coordinates (206 ) of the point P defining the complex number z. An alternative representation of a complex number – the polar form – can be obtained by using the polar coordinates (Figure 12.1) r, θ . Since x = r cos θ and y = r sin θ we have ➤
z = x + jy = r(cos θ + j sin θ ) ≡ r cis θ ≡ r (θ ) 355
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
y
P
y
z = x + iy = r cos q + jr sin q
r
q
O
x
x
Figure 12.1 The Argand diagram.
cis θ is shorthand for cos θ + i sin θ , using the alternative notation i for j . (θ ) is the standard shorthand for cos θ + j sin θ that we will use throughout this book. Remember that θ is measured anti-clockwise positive from the x-axis, and, being an angle, it will represent the same point in the plane at an infinite number of different values, separated by integer multiples of 2π. To obtain a single valued representation of z, θ must be confined to a range of length 2π. The particular choice −π < θ ≤ π is called the principal value of θ and is written Arg z. If the angle θ is not so confined we use a lower case notation arg z. The important point is that the argument of a complex number is not 3π π 5π , − , . . . , etc. In general we have unique. Thus for z = i we can take θ = , 2 2 2
(θ ) = (θ + 2kπ)
for any integer k. This fact will play a crucial role in taking roots of a complex number (➤ 363). It is also worth noting that while it is not essential to work in radians in complex numbers, it tends to be the safest policy, particularly for theoretical work. −1 y , the sign and value of In terms of Cartesian coordinates we have Arg z = tan √x the angle being determined by x and y. Also note that |z| = z¯z. You may find the above polar representation of complex numbers rather strange – what’s wrong with the simple x + jy form, you may ask? Well, as always there is method in mathematics – bear with me, it turns out that the polar form of a complex number is much easier to deal with in certain circumstances.
Exercises on 12.3 1. Plot the following complex numbers on the Argand plane and put them into polar form. (i) 1
(ii) j
(iii) −3j
(v) 2 + j
(vi) −3 − 2j
(vii) −3 + 2j
(iv) 1 − j
2. Convert into Cartesian form (i) 2 (0) 3π (iv) 3 4 356
(ii) 3 (π) π (v) 1 − 3
(iii)
(π/2) π (vi) 2 − 2
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Answers 1. y
−3 +2 j
j
2+ j 1
x
0 1− j −3 − 2 j −3 j
(i) 1 (0)
(ii) 1
π (iv) 2 − 4 √ 2 (vi) 13 π + Tan−1 3
√
π
2 1 (v) 5 Tan−1 2 √ 2 (vii) 13 π − Tan−1 3
(iii) 3
π − 2
√
(Tan−1 denotes the principal value) (ii) −3
2. (i) 2 √ 1 3 (v) − j 2 2
(iii) j
3 3 (iv) − √ + √ j 2 2
(vi) −2j
12.4 Multiplication in polar form Now comes the pay-off of polar forms – multiplication of complex numbers in such form is simplicity itself – indeed it reduces to multiplication of modulii and addition of argument. See for yourself:
Problem 12.7 ➤
Multiply .q1 / and .q2 /, use the compound angle formulae (187 hence show that
) and
r1 .q1 /r2 .q2 / = r1 r2 .q1 Y q2 / 357
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
We have
(θ1 ) (θ2 ) = (cos θ1 + j sin θ1 )(cos θ2 + j sin θ2 )
= cos θ1 cos θ2 − sin θ1 sin θ2 + j (sin θ1 cos θ2 + sin θ2 cos θ1 ) = cos(θ1 + θ2 ) + j sin(θ1 + θ2 ) = (θ1 + θ2 ) from which it follows directly that r1 (θ1 )r2 (θ2 ) = r1 r2 (θ1 + θ2 ) So, to multiply in polar form: • • or:
Multiply modulii to obtain modulus of product Add arguments to obtain argument of product. |z1 z2 | = |z1 ||z2 |
arg(z1 z2 ) = arg(z1 ) + arg(z2 ) Arg(z1 z2 ) = Arg(z1 ) + Arg(z2 ) + 2kπ
(k = any integer)
Note carefully the last result. The 2kπ is needed because the principal value of the arguments may add to give a value outside the principal value range.
Problem 12.8
√ √ Put 3 − j and 1 − 3j in polar form. Work the product of these both in Cartesian and polar form and compare the results. It helps to plot the numbers on the Argand plane – see Figure 12.2. y
y
0
√3
0
x
p/6
x
1
2
2
√3 − j
√
3 − j and 1 −
√3
1−√3 j
(i)
Figure 12.2 The complex numbers
1 p/3
(ii)
√
3j.
√ √ √ π π We have | 3 − j | = 2 and Arg( 3 − j ) = − , so 3 − j = 2 (− ). 6 6 √ √ √ π π Similarly, |1 − 3j | = 2 and Arg(1 − 3j ) = − , so 1 − 3j = 2 − . 3 3 358
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
So in polar form the product becomes π π √ √ 2 − ( 3 − j )(1 − 3j ) = 2 − 6 3 π π = 4 − − 6 3 π = 4 − = −4j 2
on conversion back to Cartesian form. You can now check directly that √ √ √ √ ( 3 − j )(1 − 3j ) = 3 − j − 3j + 3j 2 = −4j You may feel that this is a rather roundabout approach to a simple multiplication – converting to polar form to multiply. However, in practice one already has the polar form – for example when using phasors to represent currents in alternating current theory. Also, the real power of conversion to polar form comes later, when considering powers and roots.
Exercises on 12.4 1. Evaluate all possible products, excluding powers, of the three complex numbers below and compare with the results obtained in a + j b form (see Q2 Exercises on 12.3).
z1 = (π/2)
z2 = 3
3π 4
z3 = 1
π − 3
2. Show that if z = r (θ ), then z2 = r 2 (2θ ),
z3 = r 3 (3θ )
What do you think is the result for zn where n is a positive integer? You will see more of this in Section 12.7.
Answers π √3 1 3π 3 3 + j 1. z1 z2 = 3 − = − √ − √ j z1 z3 = = 4 6 2 2 2 2 √ √ 3( 3 − 1) 3( 3 + 1) 5π z2 z3 = 3 = √ + √ j 12 2 2 2 2 √ √ 3( 3 + 1) 3( 3 − 1) 11π √ + √ j =− z1 z2 z3 = 3 12 2 2 2 2
2. zn = r n (nθ ) 359
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
12.5 Division in polar form You can probably guess what happens with division in polar form now – divide modulii and subtract arguments. Again, check the details for yourself: cos θ1 + j sin θ1 cos θ2 − j sin θ2 (θ1 ) cos θ1 + j sin θ1 = × = (θ2 ) cos θ2 + j sin θ2 cos θ2 + j sin θ2 cos θ2 − j sin θ2
= (cos θ1 cos θ2 + sin θ1 sin θ2 ) + j (sin θ1 cos θ2 − sin θ2 cos θ1 ) (on using cos θ2 + sin2 θ2 = 1) 2
= cos(θ1 − θ2 ) + j sin(θ1 − θ2 ) = (θ1 − θ2 ) Hence r1 r1 (θ1 ) = (θ1 − θ2 ) r2 (θ2 ) r2 So, to divide in polar form: • •
Divide modulii to obtain the modulus of the quotient Subtract arguments to obtain the argument of the quotient.
z1 |z1 | = z |z | 2 2 z1 = arg(z1 ) − arg(z2 ) arg z2 z1 Arg = Arg z1 − Arg z2 + 2kπ z2
In symbols
k an integer
Problem 12.9 √
Work
3−j √ in Cartesian and polar forms and compare the results. 1 − 3j
We already know from Problem 12.8 that π π √ √ 3 − j = 2 − and 1 − 3j = 2 − 6 3 So in polar form π √ − 2 3−j 6 = −π + π = π π √ = 6 3 6 1 − 3j 2 − 3 π π = cos + j sin 6 6 √ 3 1 + j = 2 2 360
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
which we can check directly √ √ √ 3−j 2 3 + 2j ( 3 − j )(1 + 3j ) = √ = √ 4 1 − 3j 12 + ( 3)2 √ 3 1 = + j 2 2 √
Exercise on 12.5 If z1 =
π
4
and z2 =
Answer z1 = z2
7π 12
π z1 − evaluate in polar and Cartesian form. 3 z2
√ √ (1 − 3) ( 3 + 1) √ + √ j = 2 2 2 2
12.6 Exponential form of a complex number Having explained the usefulness of the polar form in multiplication and division of complex numbers, I will now introduce a result that is as pretty as it is powerful: ej θ ≡ cos θ + j sin θ = (θ ) Remember that this result is unchanged if θ is replaced by θ + 2kπ where k is an integer. This result for ej θ was first stated explicitly by the Swiss mathematician Leonard Euler (1707–83) in 1748 – not so long ago really. It is known, along with countless other results, as Euler’s formula. It can be proved by expanding the left-hand side in series, gathering together real and imaginary parts after using j 2 = −1 and summing the resulting series to cos θ and sin θ (see Reinforcement Exercise 18).
Problem 12.10 By taking particular values for q show that (i) e j 0 = e j 2p = 1
(ii) e j p = −1
p
(iii) e j 2 = j
(i) ej 0 = cos 0 + j sin 0 = 1 and similarly ej 2π = cos 2π + j sin 2π = 1 (ii) ej π = cos π + j sin π = −1 π π π (iii) ej 2 = cos + j sin = 0 + j 1 = j 2 2 It can be shown that ej θ obeys all the usual indices laws: ej x ejy = ej (x+y) – from multiplication in polar form ej x = ej (x−y) – from division in polar form ejy (ej x )y = ej xy – from an extension of Q2, Exercise 12.4 361
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Problem 12.11 Put√ into exponential form (i) 1 (ii) −1 (iii) −2j (v) 3 − j
(iv) 1 Y
√
3j
Conversion to exponential form is of course no more than converting to polar form – i.e. finding r and θ . (i)
z = 1,
r = 1, θ = 0
so z = 1ej 0 = ej 0
(ii)
z = −1,
r = 1, θ = π
so z = ej π
(iii) (iv) (v)
z = −2j √ z = 1 + 3j √ z= 3−j
π r = 2, θ = − 2 π r = 2, θ = 3 π r = 2, θ = − 6
so z = 2e−j π/2 so z = 2ej π/3 so z = 2e−j π/6
Exercises on 12.6 1. Show that the modulus of ej θ is one 2. Show that (ej θ )−1 = e−j θ ej θ + ej θ ej θ − e−j θ 3. Show that cos θ = sin θ = 2 2j
12.7 De Moivre’s theorem for integer powers A remarkable result ‘follows’ from the above Euler formula, if we assume that the usual rules of indices apply. If n is an integer then (cos θ + j sin θ )n = (ej θ )n = ej nθ = cos nθ + j sin nθ giving us De Moivre’s theorem for a positive integer: If n is an integer, then (cos θ + j sin θ )n = cos nθ + j sin nθ Basically, this result is a generalization of the ‘add arguments to form product’ rule. As an example we have (cos θ + j sin θ )2 = cos(θ + θ ) + j sin(θ + θ ) = cos 2θ + j sin 2θ . And if you were misguided enough to repeat this multiplication a few times you would find, for example, that (cos θ + j sin θ )5 = cos 5θ + j sin 5θ . De Moivre’s theorem gives this to us directly however.
Problem 12.12 √ 1 Using De Moivre’s theorem show that . 3 Y j /−3 = − j . 8 √ √ π 3 1j π = 2 cos + j sin and so + First note that we can write 3 + j = 2 2 2 6 6 362
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
√ π 1 π π −3 π −3 ( 3 + j )−3 = 2 cos + j sin = cos + j sin 6 6 8 6 6 1 π π 1 = cos − + j sin − =− j 8 2 2 8
Exercise on 12.7 By conversion to polar form and use of De Moivres’ theorem evaluate √ (i) j 7 (ii) (1 + j )5 (iii) ( 3 − j )−4
Answer
(i) −j
(ii) −4(1 + j )
(iii) 2
−4
√ 1 3 j − + 2 2
12.8 De Moivre’s theorem for fractional powers We have considered simple algebra of complex numbers – addition, subtraction, multipli√ cation and ‘division’. So far, apart from −1 we have not however considered taking the roots of a complex number. We don’t have to look far to see that this requires some care. A few examples will help: x 2 = 1 implies √ 1 x = ±(1) 2 = ± 1 = ±1 since (−1)2 = 12 = 1. Two values, as we might expect. What about x 3 = 1? In this case 1 is again a root, 13 = 1, but −1 won’t do because (−1)3 = −1 = 1. We would in any case expect three values of the cube root, since we expect three solutions to a cubic equation. In fact in this simple case we can actually find them by some algebra. x 3 − 1 = (x − 1)(x 2 + x + 1) = 0 So or
x=1 x2 + x + 1 = 0
The latter equation gives two complex roots: √ 1 3 x =− ±j 2 2 So, in fact we do have three cube roots of +1: √ √ 1 3 3 1 ,− −j 1, − + j 2 2 2 2 363
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
but two of them are complex. The question is, how do we find such roots in general? Since the polar form is so useful in multiplication, and De Moivre’s theorem is useful in raising to a power, we suspect that we can also use this form in taking roots. We can, but there is a subtlety that takes some getting used to. 1
Consider the cube root 1 3 . Written in polar form we have 1
1
1
1 3 = (cos 0 + j sin 0) 3 = ( (0)) 3 Applying De Moivre’s theorem as it would work for an integer gives 1 1 3 0 = (0) = 1 1 = 3 i.e. it only gives us the root 1. But we have missed a trick, namely that because over cos(θ + 2kπ) = cos θ and sin(θ + 2kπ) = sin θ for any integer k, we can always write
(θ ) = (θ + 2kπ)
k = any integer
as we noted in Section 12.3. That is, we can increase θ by any integer multiple of 2π, and we won’t change (θ ). Normally, we wouldn’t need to do this – we simply reproduce the same values of (θ ). However, when we take roots, the following happens: 1
1
( (θ )) 3 = ( (θ + 2kπ)) 3 θ + 2kπ = 3 when we apply De Moivre’s theorem. Now θ θ 2kπ = for all integer values of k + 3 3 3 For example, with k = 1: 2π θ θ + = 3 3 3 Applying this extension of De Moivre’s theorem to 1 = (0) gives 1
1
( (0)) 3 = [ (0 + 2kπ)] 3 k = 0, ±1 ± 2, . . . 0 + 2kπ = 3 2kπ = k = 0, ±1, ±2, . . . 3 Now we appear to have too many values – one for each of the infinite number of values of k. However, you will find that these all reduce to just three different values: 364
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Problem 12.13
Evaluate
2k p 3
for k = 0, 1, 2, 3.
Substituting for k we find:
2kπ = (0) = 1 k= 3 √ 1 2π 2π 2π 3 = cos + j sin =− +j k = 1, 3 3 3 2 2 √ 4π 4π 4π 3 1 k = 2, = cos − j sin =− −j 3 3 3 2 2 6π = (2π) = 1 k = 3, 3
0,
We see that k = 3 brings us back to where we started. You can soon convince yourself that higher values of k simply reproduce the three roots in the order of k = 0, 1, 2. So, we obtain all the different roots in polar form by first generalising the angle θ to θ + 2kπ, taking the root and then letting k take the appropriate number of values in turn, usually commencing with k = 0. Problem 12.13 should now help you to appreciate the general situation, which we now summarise. We can obtain all q qth roots of cos θ + j sin θ by writing it in its most general form: cos θ + j sin θ ≡ cos(θ + 2kπ) + j sin(θ + 2kπ) k = 0, ±1, ±2, . . . Then
[cos(θ + 2kπ) + j sin(θ + 2kπ)]1/q θ + 2kπ θ + 2kπ = cos + j sin q q
k = 0, 1, 2, . . . , (q − 1)
and by letting k take any q consecutive values, for example, k = 0, 1, 2, . . . (q − 1), we obtain all of the q qth roots of cos θ + j sin θ . The q qth roots of a complex number z = x + jy can be obtained by converting to polar form and then using De Moivres theorem: z1/q ≡ [r(cos θ + j sin θ )]1/q
θ + 2kπ θ + 2kπ = r 1/q cos + j sin q q
k = 0, 1, 2, . . . , (q − 1)
In geometrical terms these roots must all lie at equally spaced intervals of
2π around the q
circle radius r 1/q , centre the origin in the complex plane. 365
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Exercises on 12.8 1. Find in a + j b form and plot on Argand diagram: (i) The three values of j 1/3 (ii) The four values of (1 + j )1/4 2. Solve the following equations in a + j b form and plot the roots in the Argand plane. (i) x 6 − 1 = 0 (ii) x 3 + 8 = 0
Answer √
1. (i)
√ 3 1 3 1 + j, − + j , −j 2 2 2 2 y
−
√3 1 + j 2 2
√3 1 + j 2 2
1
0
x
−j
π π 9π 9π (ii) 21/8 cos + j sin 21/8 cos + j sin 16 16 16 16 17π 17π 25π 25π 1/8 1/8 2 cos + j sin 2 cos + j sin 16 16 16 16 y
21/8 cos
9π (16 ) + j2
1/8 sin
9π (16 )
21/8
21/8 cos
( 16π ) + j 2
1/8 sin
x 21/8 cos
+ j2 ( 17π 16 )
1/8 sin
(17π 16 ) 21/8 cos
366
+ j2 ( 25π 16 )
1/8 sin
( 25π 16 )
(16π )
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
√ 1 3 ± j 2 2 √ 1 ± 3j
2. (i) ± 1 (ii) −2
√ 1 3 − ± j 2 2
12.9 Reinforcement 1. Write the following in simplest form in terms of real numbers and j . (i)
√
−1
(ii)
(v) −j 2
(vi)
√
9
√
(iii)
1 j
−9
(iv) j 2
(vii) (−j )2
2. Solve the following equations, writing the answer in z = a + j b form: (i) z2 + 25 = 0
(ii) z2 + 4z + 5 = 0
(iii) z4 − 3z2 − 4 = 0
(iv) z3 + z − 2 = 0
(v) z3 + 1 = 0
(vi) z2 + 2j z + 1 = 0
Using equations (i)–(v) verify the result that the equations with real coefficients have real roots and/or complex roots occurring in conjugate pairs. 3. Express in the form a + j b: (i) j 3 (iv) (−2j )6
(ii) j 27
(iii) 3(1 + j ) − 2(1 − j )
(v) j (j + 2)
(vi) j 3 /j
(vii) 2j (j − 1) + j 3 (2 + j ) 4. Find the real and imaginary parts of: (i) (1 − j )(1 + j )
(ii) (3 − 4j )(1 + j )
(iii) (4 + 3j )2
(iv) (4 + 3j )3 5. Write down the complex conjugates of: (i) 5 + 3j
(v)
j −2 3 + 2j
(ii)
1 3 − 4j
(vi)
1 j (2 − 5j )2
4
(iii)
j j +2
(iv)
j −2 3 + 2j
Where appropriate put both the original complex number and its conjugate into a + j b form and check your results. 367
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
6. Put into a + j b form (i) (2 + 5j )(4 − 3j ) (iv)
(ii) (4 − j )(1 + j )(3 + 4j )
2 − 5j 1 + 4j
(v)
(iii)
1 3 − 4j
−1 + 3j (3 − 2j )(2 + j )
7. Evaluate (i)
1 1 + 4 − 3j 4 + 3j
(ii)
2+j 2−j − 4 − 3j 4 + 3j
1 (5 + 3j )(5 − 3j )
(iii)
and explain why each is either purely real or purely imaginary. 8. Simplify the complex number result.
2−j 1+j + . Find the modulus and argument of the 3+j 1−j
9. State by inspection only (no arithmetic is necessary) whether each of the following numbers is purely real, purely imaginary or complex. (i)
4−j 4+j − 5 − 2j 5 + 2j
(ii)
j j − 5 + 4j 5 − 4j
(iii)
1 + 2j 2 − 3j
3
1 − 2j 2 + 3j
4
10. Mark each of the following numbers on an Argand diagram and find the modulus and the principal value of the argument of each: (i) 2 (iv) −j (vii) −2 + 2j
(ii) −1 √ (v) 1 + j 3
(iii) 3j √ (vi) − 3 − j
(viii) −3 − 3j
Write down the numbers in polar form. 11. Convert to Cartesian form (i) 4 (0) (iv) 10 (π) π (vii) 3 − 4 2π (x) 3 − 3
368
π − 2 π (v) 10 2 3π (viii) 2 − 4 π (xi) 6
(ii) 3
(iii) 2 (π) (vi) 2 (ix)
√
π
3
4 π
3 5π (xii) 3 − 6
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
12. If |z1 | = 5, Arg z1 = π/3, |z2 | = 3, Arg z2 = π/4, find the Cartesian forms of z1 and z2 and the values of: z1 (ii) (iii) |z12 | (i) |z1 z2 | z2 z1 (v) Arg (vi) Arg z¯ 1 (iv) Arg(z1 z2 ) z2 π 13. Show that multiplication by j rotates a complex number through in the anticlock2 π in the clockwise direction. wise direction and division by j rotates it 2 π π π 14. If z1 = 3 , z2 = 2 , z3 = 6 18 3 find the polar form of: z1 z2 z2 z3 (v) z1
(ii)
(i) z1 z2 (iv)
z2 z32
(iii) z1 z2 z3 (vi)
z12 z3 z2
15. Evaluate the powers indicated by use of the polar form. √ (ii) ( 3 + j )6
(i) (1 − j )8
(iii) (2 + 2j )4
16. Plot the complex numbers √ (i) 1 − j
(ii) 2j
(iii)
3 1 + j 2 2
(iv) −3j
on the Argand diagram and put them in the form ej θ . 17. Express the following numbers in the form a + j b: (ii) e−j π/6
(i) ej π/3 (v)
e−j π/4 1 + 2j
(vi)
(iii) e−(1+j π)/3
(iv)
ej π/3 j
e−j π/6 2−j
18. Use the power series for ex with x = j θ to find ej θ in the form A + j B where A and B are real power series in θ . Hence show that: ej θ = cos θ + j sin θ Use this result to prove that (cos θ + j sin θ )n = cos nθ + j sin nθ
Hence evaluate
√ 43 1 3 +j 2 2 369
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
√ √ √ 19. Simplify (i) (1 + j 3)6 + (1 − j 3)6 and (ii) ( 3 − j )15 by using De Moivre’s theorem. 20. Simplify
(cos 3θ − j sin 3θ )−3 (cos 2θ + j sin 2θ )4 (cos 7θ + j sin 7θ )5 (cos 5θ − j sin 5θ )−4
21. Determine all the roots in each case: (ii) Square roots of −1
(i) Square roots of 1
(iv) Cube roots of −j
(iii) Square roots of j
√ (vi) Square roots of 1 + 3j √ (viii) Fourth roots of 3 + j
(v) Square roots of (1 + j ) (vii) Fourth roots of 1 − j 22. Find the values of z satisfying z4 + 1 = 0
23. Simplify each of the following numbers to the a + j b form: (i)
cos 4α + j sin 4α cos 3α − j sin 3α
(ii)
1 sin 2α + j cos 2α
(iii)
cos 2α − j sin 2α sin 3α + j cos 3α
24. Find the polar forms of the fourth roots of −16 and indicate the results on the Argand diagram.
12.10 Applications d 2y + α 2 y = 0. By assuming a dt2 solution of the form y = eλt , find solutions for the differential equation
1. If y = Aej αt where A and α are constants, show that
d 2y dy +2 + 2y = 0 dt2 dt by obtaining an equation for λ. This is the approach we will follow in Chapter 15. 2. (i) By equating the real parts of cos 5θ + j sin 5θ = (cos θ + j sin θ )5 show that cos 5θ = 16 cos5 θ − 20 cos3 θ + 5 cos θ . Also express sin 5θ as powers of sin θ . ej θ − (ej θ )−1 ej θ + (ej θ )−1 and cos θ = express in terms of 2j 2 sines and cosines of multiple angles (a) sin4 θ , (b) cos5 θ . Use (a) to evaluate π/3 sin4 θ d θ .
(ii) By using sin θ =
0
(iii) Write cos θ = R(ej θ ) and hence sum the series cos θ + cos 2θ + · · · + cos nθ . 370
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
3. In the relationship 1 P = (R + jpL) S − j pC Q
all the quantities are real except j . Show that R p= LSC and find R in terms of C, L, P , Q, S. 4. In electrical circuit theory impedance is represented by a complex variable in which the resistance R is the real part and the reactance X is the imaginary part: Z = R + jX The combined impedance, Z = R + j X of two impedance’s Z1 = R1 + j X1 , Z2 = R2 + j X2 in parallel is given by the usual result: 1 1 1 + = Z Z1 Z2 Obtain explicit expressions for R and X in terms of R1 , R2 , X1 , X2 . 5. A typical sinusoidal function x(t) = A sin(ωt + φ) describing an oscillating signal with period 2π/ω, amplitude A and phase angle φ may be represented, with the frequency ω understood, by a line of length A making angle φ with a horizontal axis in an Argand plane. This is called a phasor diagram, the line being the phasor of the signal x(t).
b = A sin f
A
f
a = A cos f
The phasor X of x(t) is then represented mathematically by a complex number of magnitude A and argument φ: X = a + j b = A cos φ + j A sin φ = Aeiφ 371
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
In terms of X we can write x(t) as: x(t) = Im(Xej ωt ) wherein lies the usefulness of phasors – the frequency behaviour of x(t) is separated out. Phasors representing sinusoids of the same frequency can be added and subtracted by complex algebra. Thus, if the phasors X1 = A1 ej φ1 , X2 = A2 ej φ2 represent signals x1 (t) = A1 sin(ωt + φ1 ), x2 (t) = A2 sin(ωt + φ2 ) respectively then the phasor X1 + X2 represents the signal x1 (t) + x2 (t) and the phasor X1 − X2 represents the signal x1 (t) − x2 (t). 1. Sketch and write down the phasors corresponding to the sinusoids 2 sin(ωt + π/4), sin(ωt + 4π/3), 3 cos(ωt + π/3), 4 sin(ωt − π/6) – write these in Cartesian form a + j b. 2. Sketch and write down the phasors corresponding to the sinusoids: (i) 3 sin(ωt + π/6)
(ii) 2 sin(ωt + π/2)
(iii) sin(ωt − π/4)
(iv) 3 cos(ωt − π/3)
Express the phasors in a + j b form. Answers: (i) 3e (iii) e
j π/6
√ 3 3 3 , +j 2 2
−j π/4
(ii) 2ej π/2 , 2j
1 1 , √ −j√ 2 2
(iv) 3e
j π/6
√ 3 3 3 , +j 2 2
3. Find the sinusoidal functions (assume frequency ω) corresponding to the following phasors in a + j b form (i) 3 + 3j
√ (ii) −4 + 2 3j
(iii) −4 − 3j
(iv) 3 − 5.2j
Answers: √ (i) 3 2 sin(ωt + π/4)
√ (ii) 2 7 sin(ωt + 2.43)
(iii) 5 sin(ωt + 3.79)
(iv) 6 sin(ωt − 1.05)
NB. All angles in radians. 4. Express 2 cos ωt and tude and phase of
√ 2 cos(ωt + π/4) in phasor form and hence determine the ampli-
2 cos ωt +
372
√
2 cos(ωt + π/4)
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
12.11 Answers to reinforcement exercises 1.
(i) j
(ii) 3
(iii) 3j
(iv) −1
(v) 1
(vi) −j
(vii) −1 2. (i) ±5j
√
√
1 7 7 1 (iv) 1, − + j, − − j 2 2 2 2 √ (vi) −(1 ± 2)j 3. (i) −j (v) −1 + 2j 4. (i) 2, 0 5. (i) 5 − 3j (iv)
j +2 2j − 3
6. (i) 23 + 14j (iv) −
18 13j − 17 17
(ii) −2 + j , −2 − j √ 3 1 (v) −1, ± j 2 2
(ii) −j
(iii) 1 + 5j
(vi) −1
(vii) −1 − 4j
(ii) 7, −1
(iii) 2, −2, j , −j
(iv) −64
(iv) −44, 117
(iii) 7, 24
1 3 + 4j j +2 4 (v) 2j − 3
(ii)
(ii) 3 + 29j (v) −
(iii)
j j −2
(vi)
j (2 + 5j )2
(iii)
3 4j + 24 25
11 23j + 65 65
7. (i) 8/25, real, sum of complex conjugates. (ii) 4j/5, imaginary, difference of complex conjugates. (iii) 1/34, real, product of complex conjugates. 8.
1 1 + j 2 2
9. (i) imaginary 10.
(i) 2, 0 (iv) 1, −π/2 √ (vii) 2 2, 3π/4
π 1 Modulus = √ Argument = 4 2 (ii) real (ii) 1, π (v) 2, π/3 √ (viii) 3 2, −3π/4
(iii) complex (iii) 3, π/2 (vi) 2, −5π/6
373
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
y 3j −2 + 2j
−1
1 + j √3
0
−√3 − j
x
2 −j
−3 − 3j
(ii) −3j
11. (i) 4 (iv) −10 3 3 (vii) √ − √ j 2 2 √ 3 3 3 (x) − − j 2 2 √ 12. z1 = 5(1 + j 3)/2
(v) 10j √ √ (viii) − 2 − 2j √
3 1 + j 2 2 √ z2 = 3(1 + j )/ 2 (xi)
(i) 15 (iv) 7π/12
2π 14. (i) 9 11π (iv) 2 − 18
6
√ −j π/4 2e
√ 1 3 17. (i) + j 2 2 √ 3 1 (iv) − j 2 2 374
(ii) 5/3
(iii) 25
(v) π/12
(vi) 2π/3
3 π (ii) 2 9 2 2π (v) 3 9
5π (iii) 9 9 11π (vi) 2 18
6
(ii) −64
15. (i) 16 16. (i)
(iii) −2 √ √ (vi) 2 + 2j √ 3 3 (ix) + j 2 2 √ 3 3 3 (xii) − − j 2 2
(ii) 2ej π/2 √ 3 1 (ii) − j 2 2 (v)
1 3 √ − √ j 5 2 5 2
(iii) −64 (iii) 2ej π/6
(iv) 3e−j π/2
√ −1/3 3e e−1/3 (iii) − j 2 2 √ √ 2 3+1 2− 3 (vi) − j 10 10
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
y 2j
√3 1 + j 2 2 0
x 1−j
−3j
√ 1 3 +j 18. 2 2 19. (i) 27
(ii) −215 j
20. cos(38θ ) − j sin(38θ ) 21.
(i) ±1 (ii) ±j 1 1 (iii) ± √ + √ j 2 2 √ √ 3 1 3 1 − j, j, − − j (iv) 2 2 2 2 π 7π 7π π (v) 21/4 cos + j sin , 21/4 cos − + j sin − 8 8 8 8 √ √ 3 1 (vi) ± 2 + j 2 2 π 9π 7π 15π (vii) 21/8 − , 21/8 , 21/8 , 21/8 − 16 16 16 16 π 23π 11π 13π (viii) 21/4 , 21/4 , 21/4 − , 21/4 − 24 24 24 24
22.
1 + j 1 − j −1 + j −1 − j √ √ √ √ 2 2 2 2 375
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
23. (i) cos 7α + j sin 7α
24. 2
π + 2kπ 4
(ii) sin 2α − j cos 2α
(iii) sin α + j cos α
√ or ± 2(1 ± j )
y √2 (−1+ j ) √2 (1+ j )
x
0
√2 (−1− j )
376
√2 (1− j )
13
Matrices and Determinants Matrices are rectangular arrays of numbers treated as mathematical entities in themselves and satisfying an algebra that suits their particular application. In this respect they are similar to vectors (Chapter 11), but whereas vectors are designed to reflect the behaviour of physical quantities that have a direction associated with them, matrices are designed to enable us to handle systems of linear equations of the sort introduced in Section 2.2.4. Matrices have simple rules of addition and multiplication, but are complicated to invert, for which it is convenient to introduce certain numbers, called determinants, that are associated with matrices. Determinants also help us to define the eigenvalue problem, which is one of immense importance in engineering and science.
Prerequisites It will be helpful if you know something about: ➤
➤
• solving simultaneous linear equations (48 ) • the principles and practice of elementary algebra (Chapter 12 • the sigma notation (102 )
)
➤
Objectives In this chapter you will find: • • • • • • • •
definitions of matrices and determinants addition and subtraction of matrices multiplication of matrices zero and unit matrices properties of determinants the adjoint and inverse of a matrix Cramer’s rule for solving systems of linear equations eigenvalues and eigenvectors
Motivation You may need the material of this chapter for: • • • •
solving systems of linear equations frequency analysis of coupled engineering systems solving distribution and scheduling problems in operational research solving systems of differential equations 377
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
13.1 An overview of matrices and determinants Everywhere in engineering and science we are constantly having to deal with situations where there are many variables. Matrices provide the mathematical shorthand for dealing with a number of quantities at the same time – basically a generalisation of vectors (indeed the language is similar in the two topics). Matrices are used in modelling complex mechanical systems, control systems, electronic circuits, optical systems, economic and financial systems, network problems, robotics, and much more besides. A matrix is essentially a rectangular array of numbers, each independent from each other – only their position in the array is significant. In matrix algebra the array itself is treated as a single mathematical object – just like a vector. Rules have been invented for combining such arrays, much like the rules of arithmetic, but with some significant differences. Thus, matrices can be added and subtracted. They can also be multiplied, but the commutative rule xy = yx no longer holds in general – if A, B are two matrices then AB and BA are not necessarily the same thing. Matrices can also be ‘divided’, but care is needed, as always with division. The rules of multiplication and division of matrices are constructed so that we can use matrices in such things as solving systems of equations. Remember that in complex numbers we found it useful to introduce a real number – the modulus, |z| – associated with a complex number, z, in order to define division by z. We do a similar, but more general thing with matrices. Thus, a determinant is a number associated with a given matrix or array. It is evaluated in a certain way from the elements of the matrix and gives us useful information about it. Determinants enable us to define a series of numbers associated with a (square) matrix, called its eigenvalues. These are extremely important both mathematically and for applications. If for example the matrix describes a particular control system then the eigenvalues of that matrix tell us important things about the stability of the control system.
13.2 Definition of a matrix and its elements Consider the system of equations 2x + y = 3 x − 2y = −1
(13.1)
In a sense the important information here is the set of coefficients, which we can arrange in two arrays: 2 1 3 A= b= 1 −2 −1 Such arrays are called matrices. A is referred to as a 2 × 2 matrix, because it has two rows and two columns. Similarly b is a 2 × 1 matrix, or column vector. The numbers in the array are called its elements. Their positions are important, and note that signs
378
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
must be properly included. The elements can be complex numbers. What we want to do is construct an ‘algebra’ for such arrays that enables us to treat A and b as much as possible like ordinary algebraic objects. The system of equation (13.1) already suggests some ideas here. We put the quantities x, y in a 2 × 1 matrix of their own: x u= y and write (13.1) as 2 1 x 3 = 1 −2 y −1 or
Au = b
If this is to be a symbolic shorthand for (13.1) then this essentially defines the ‘product’ Au of the two matrices A and u. Have a go at determining the rule for multiplying matrices yourself. The formal definition is given in Section 13.3
Problem 13.1 Write the system of equations a Y 3b = 1 2a Y b = 0 in matrix form Au = b. The arrays are:
A=
1 2
3 1
b=
1 0
u=
a b
so the equations become 1 3 a 1 = 2 1 b 0
Problem 13.2 ‘Multiply’ the following matrix products
(i)
(iii)
−1 1
3 4
x y −1 1 2 −1
0 2
(ii) 2 1
2 3 4 1
2 1
379
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(i) By analogy with how we have rewritten the pairs of equations we ‘multiply’ by plugging rows of the first matrix into columns of the second matrix in the product. So: −1 0 x (−1)x + 0y −x = = 1 2 y (1)x + 2y x + 2y The quantities −x, x + 2y are the elements of the new 2 × 1 matrix on the righthand side.
(ii)
2 3 4 1
2 2×2+3×1 7 = = 1 4×2+1×1 9
(iii) In this case the second factor has two columns. No problem, the pattern is 3 −1 1 2 3 × 1 + (−1)(−1) 3 × 2 + (−1)(1) = 4 2 −1 1 4 × 1 + 2(−1) 4×2+2×1 4 5 = 2 10 a 2 × 2 matrix. Essentially we are treating each of the two columns in the second factor as we did the single columns in (i) and (ii). Take care with the signs in these calculations! It is common to use the notation aij for the elements of a matrix, the subscripts i, j , denoting the ith row and j th column. We now give the general definition of a matrix. An mxn matrix A is an array of mn numbers with m rows and n columns denoted by: a11 a12 . . . a1n a2n a21 a22 A= .. ... . am1
am2
aij
The number
. . . amn
is the ij th element of A, read as ‘a, i, j ’
row column We sometimes write
A = [aij ] The case when the number of rows and columns is equal, i.e. m = n, is very important. Such matrices are called square, and we will have a lot to say about them later on. A matrix does not have a numerical value (whereas a determinant – see Section 13.4 – does). Note that round brackets are sometimes used for matrices. This is not advised since when handwritten such brackets can be confused with determinant lines. We will see more on the algebra of matrices, but for now just note that: Addition of matrices is associative: A + (B + C ) = (A + B ) + C and commutative: A+B =B +A 380
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Multiplication of matrices, considered in Section 13.3, is associative: A(BC ) = (AB )C but not commutative: AB = BA We also define some special matrices: Zero or null matrix – all elements zero. It satisfies the obvious rules A + 0 = A, 0A = 0, etc. Unit matrix, I – all elements zero except for one’s on the leading diagonal. It must therefore be a square matrix, and it satisfies IA = AI = A(I and I may be different size) for any matrix A. Inverse matrix – if A is a square matrix then it may be possible to find another matrix A−1 such that: AA−1 = A−1 A = I Such a matrix is called the inverse of A. We show how to evaluate the inverse matrix in Section 13.6. Transpose – the transpose of a matrix A, denoted AT is the matrix obtained by changing the rows of A into columns, thus, if A is m × n, AT is n × m.
Exercise on 13.2 Write the following system of equations in matrix form Ax = b. In each case, specify the location of the coefficient −3 in the matrix A in the form aij (i) x − 3y = 1 2x + 4y = 4
(ii) 3x + 2y − z = 1 −x − 3y + 2z = 1 x+y +z =2
Answer
(i)
(ii)
x 1 = a12 = −3 y 4
2 −1 x 1 a22 = −3 −3 2 y = 1 1 1 z 2
1 −3 2 4 3 −1 1
13.3 Adding and multiplying matrices Two matrices are equal if and only if corresponding elements are identical. Formally, two matrices are equal if and only if they are of the same size and the corresponding elements 381
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
are the same, i.e. [bij ] = [aij ] if and only if bij = aij for every value of i and j . We add/subtract matrices by adding/subtracting corresponding elements. So we can only add or subtract matrices of the same size: [aij ] ± [bij ] = [aij ± bij ] Generalising the idea of repeated addition we can define multiplication of a matrix by a scalar, k, according to: k[aij ] = [kaij ] i.e. we multiply each element by the scalar k. This is just like multiplication by a scalar in vector algebra.
Problem 13.3 Add all possible pairs of the following matrices:
1 −1 A= 0 1
C =
E=
2 3 −1 2 2 −1 1 0
1 3 −1
B = −1 0 2 2 1 0 1 2 3
D=
1 1
2 3 2 3
Since only matrices of the same size can be added we can only add A, C , E together and B , D together. The possibilities are therefore
A+C
C YE A+E B +D 382
1 −1 2 3 1 + 2 −1 + 3 = + = 0 1 −1 2 0−1 1+2 3 2 = −1 3 2 3 2 −1 4 2 = + = −1 2 1 0 0 2 1 −1 2 −1 3 −2 = + = 0 1 1 0 1 1
1 3 −1 1 2 3 2 5 2 = −1 0 2 + 1 2 3 = 0 2 5 2 1 0 1 2 3 3 3 3
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Problem 13.4
If
a c
b d
3 −1 1 0 Y = 1 0 0 1
find a, b, c, d . We have
b 3 + d 1
a c
−1 a+3 b−1 1 = = 0 c+1 d +0 0
0 1
Equating corresponding elements gives a+3=1
so a = −2
b−1=0
so b = 1
c+1=0
so c = −1
d=1
so d = 1
Note that an equation in 2 × 2 matrices is equivalent to four equations in terms of the elements. Alternatively we can simply subtract the matrices: a b 1 0 3 −1 −2 1 = − = c d 0 1 1 0 −1 1 I think you will agree that most of the above is fairly sensible and you might expect that an obvious generalisation of addition of matrices would be to define multiplication of matrices as multiplying corresponding elements. However, this is not the most useful definition. As noted above, we define multiplication to fit in with the structure of linear equations – ‘plugging rows into columns’. For this to be possible, without trying to fit a 3-pin plug into a 2-pin socket, for example, we can only form AB if A has the same number of columns as B has rows. We then say A and B are conformable and we form the product AB by multiplying each row of A into each column of B , multiplying elements in pairs and adding up the results. The formal definition looks more fearsome than it actually is – have a look at Problem 13.5 to make sense of it. Thus let: A = [aij ]
(m × n)
B = [bij ]
(n × r)
Then the elements of the product matrix: C = AB = [cij ]
(m × r)
are given by cij =
n
aik bkj
k=1
383
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
That is, the element in the ith row and j th column of the product matrix C is obtained from the ‘scalar’ product of the ith row of A with the j th column of B . As an example: a a12 a13 A = 11 (2 × 3) a21 a22 a23
b11 b12 (3 × 2) B = b21 b22 b31 b32 b11 b12
a11 a12 a13 C = AB = b21 b22 a21 a22 a23 b31 b32 a11 b11 + a12 b21 + a13 b31 a11 b12 + a12 b22 + a13 b32 = a21 b11 + a22 b21 + a23 b31 a21 b12 + a22 b22 + a23 b32 Note: (i)
AB and BA need not be the same – in fact, they are only both defined if A is m × n and B is n × m (then AB is m × m and BA n × n)
(ii)
AB = 0 is possible even if both A and B have non zero elements.
Problem 13.5 Evaluate all possible products of the following matrices, excluding powers
1 −2 A= 3 1
2 1 B= 1 0
0 −1
C =
0 −1 2
−1 0 −4 3 1 2
Looking at the numbers of rows and columns we see that we can only form the following products: 1 −2 2 1 0 0 1 2 AB = = 3 1 1 0 −1 7 3 −1
0 −1 2 2 1 0 −1 −2 0 BC = −1 0 −4 = 1 0 −1 −3 −2 0 3 1 2 No higher order products are possible without resulting in powers of A, B or C .
Problem 13.6 Evaluate −1
2 0 1 −1 0
3 2 1 −1 1 2
and interpret the result. 384
−4 1 −2
−1 1 −1
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
−1 0 −1
2 3 2 −4 −1 1 1 −1 1 1 0 2 1 −2 −1 −1 0 0
1 0 = 0 −1 0 =− 0 1 0 0 −1 0 0
0
0 1
= −I where I is called the 3 × 3 unit matrix. It follows that if −1 2 3
A= 0 1 1 −1 0 2
and B=
−2 4 1 1 −1 −1 −1 2 1
(note the overall change of sign) then AB = I You can also check that BA = I We say in these circumstances that B is the inverse of A – and then of course A is the inverse of B . We will see how to find the inverse matrix in Section 13.6.
Problem 13.7 Evaluate
1 −1 0 0
1 2 1 2
The product is the 2 × 2 zero matrix
0 0 0 0
This is an example of AB = 0 even though neither A nor B is zero.
Exercises on 13.3
1. If
x+y −1
3 x−y
2 = Y −X
X+Y 1
find x, y, X, Y . 385
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
2. For the matrices
A=
−1 0 1 2 1 0 3 2 −1
B=
4 2 3 −2 4 1 3 2 1
evaluate (i) A + B (iv) AB
(ii) A − B
(iii) 3A + 2B
(v) BA
(vi) A2
Answers 1. x = 32 , y = 12 , X = 2, Y = 1
3 2 4 −5 −2 −2 2. (i) (ii) 0 5 1 4 −3 −1 6 4 0 0 0 −2
−1 0 −2 9 8 1 (iv) (v) 6 8 7 13 6 −3 5 12 10 4 4 2
5 (iii) 2 15 4 (vi) 0 −2
4 9 11 2 10 −1
2 −2 1 2 0 4
13.4 Determinants First, an admission. The full theory of determinants is conceptually quite straightforward, but it is very intricate. I will not, therefore, be going into much depth, and I will ask you to make a leap of faith on occasions. However, determinants have great theoretical importance – in defining the inverse matrix, and in eigenvalue theory. It may appear therefore that I am selling you short in skimming over determinants. However, in practice no one uses determinants to invert matrices or find eigenvalues for real problems – there are far more effective means studied at more advanced level. Another point is that the definition of a determinant appears a little complicated and so I’ll work up to it gently, so that you can see where it comes from. To help you interpret the symbols, a numerical example is done in parallel. Consider the equations:
simple
system
of
Solve the pair of equations
a11 x1 + a12 x2 = b1
(i)
3x1 Y 2x2 = 1
.i/
a21 x1 + a22 x2 = b2
(ii)
x1 − 2x2 = 2
.ii/
Multiply (i) by a21 , (ii) by a11 and subtract (a11 a22 − a21 a12 )x2 = a11 b2 − a21 b1
386
Problem 13.8
Multiply (i) by 1, (ii) by 3 and subtract (3 × (−2) − 1 × 2)x2 = 3 × 2 − 1 × 1
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
So x2 =
So a11 b2 − a21 b1 a11 a22 − a21 a12
x2 =
Similarly we find b1 a22 − a12 b2 a11 a22 − a21 a12
Introduce the notation (337 a c
Similarly we find
➤
x1 =
3×2−1×1 5 =− 3 × (−2) − 1 × 2 8
)
b = ad − bc d
then we can write
x1 =
1(−2) − 2 × 2 3 = 3(−2) − 1 × 2 4
Introduce the notation 3 1
2 = 3(−2) − 1 × 2 −2
then we can write
b1 a12 b2 a22 x1 = a11 a12 a21 a22
1 2 x1 = 3 1
2 −2 3 = 4 2 −2
a11 b1 a21 b2 x2 = a11 a12 a21 a22
3 1 x2 = 3 1
1 2 5 =− 8 2 −2
Notice the patterns in the last steps: (i) The denominator is the same for x1 and x2 and clearly obtained from the coefficients of the left-hand side of the equations. (ii) The numerator for x1 is given by replacing the x1 column of the array of coefficients by the right-hand side column of b’s. Similarly, the numerator for x2 is obtained by replacing the x2 column by the right-hand side column. This rule, capitalising on the notation introduced, is called Cramer’s rule – we will say more on this in Section 13.5. a b is called a 2 × 2 or second order determinant. It can be thought The quantity c d a b . We denote the determinant of a matrix A by |A| of as associated with the matrix c d or det(A). By solving systems of 3, 4, . . . equations, we are led to definitions of 3, 4, . . .
387
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
order determinants to fit in with the above pattern. The simplest way to define these higher order determinants is in terms of second order determinants. Thus, we define a 3 × 3 determinant by: a11 a21 a31
a12 a22 a32
a13 a22 a23 a21 a23 a21 a22 − a12 + a13 a23 = a11 a32 a33 a31 a33 a31 a32 a33 = a11 a22 a33 − a11 a23 a32 − a12 a21 a33 + a12 a23 a31
+ a13 a21 a32 − a13 a22 a31 The elements of the first row are multiplied by the determinant obtained by crossing out the row and column of the element, with an alternating sign. This is called the expansion of the determinant by the first row. In fact, one can expand by any row or column and we now show how to do this for general order determinants. Let a11 a21 n = .. . an1
a12 a22 .. . an2
a1n a2n .. . . . . ann
... ...
be a general nth order determinant. Choose any element aij . The cofactor of aij , denoted Aij , is the (n − 1)th order determinant (−1)i+j Dij where Dij is the determinant obtained by deleting the i row and j column of n (Dij is called the minor of aij ). Then the general nth order determinant can be expressed in terms of (n − 1)th order determinants (and hence in terms of (n − 2)th order, etc., down to second order) by an expansion in the cofactors of any row or column. For example, for expansion of n by the first row we have n = a11 A11 + a12 A12 + a13 A13 + . . . + a1n A1n Take the 3 × 3 case as an example: a11 3 = a21 a31
a12 a22 a32
a13 a23 a33
The cofactors of the second row are a a13 A21 = (−1)2+1 12 a32 a33 a a13 A22 = (−1)2+2 11 a31 a33
388
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
A23 = (−1)
2+3
a11 a31
a12 a32
Then we can easily check that 3 = a21 A21 + a22 A22 + a23 A23 Similarly, we can check that 3 = a13 A13 + a23 A23 + a33 A33 (expansion by the third column). You may have spotted that the example equations in Problem 13.8 can be solved much more simply than by employing determinants. Adding them gives 4x1 = 3 yielding x1 immediately and then x2 can be obtained from one of the equations. So this already appears to be a sledgehammer to crack a nut – why bother with determinants at all? Because they provide a systematic, ‘easily’ remembered, and automatic means of writing down the solution of any system of linear equations no matter how complicated. The determinantal form does not depend on accidental properties of the coefficients.
Problem 13.9 Evaluate
3 1 1 0 −3 −1
−2 2 4
Expand by the second row because it contains a zero: 1 −2 1 + 0 3 −2 + 2(−1) 3 = 1(−1) −3 −3 −1 −1 4 4 = −(4 − 2) + 0 = −2 Note that the final determinant is zero because the two rows (or columns) are proportional to each other – see below. Above we have both defined determinants and given a method for evaluating them. We now need their properties. These are best illustrated using 2 × 2 examples. (i) A determinant and its transpose (i.e. the determinant obtained from it by transposing rows into columns – cf: transpose of a matrix (381 )) have the same value. ➤
(ii) Interchanging two rows or two columns changes the sign of the determinant.
389
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(iii) If two rows or two columns are identical the determinant is zero (follows from (ii)). (iv) Any factors common to a row (column) may be factored out from the determinant. (v) A row may be increased or decreased by equal multiples of another row (similarly, for columns) without changing the determinant. (vi) A determinant in which a row or a column consists of the sum or difference of two or more terms, may be expanded as the sum or difference of two or more determinants. (vii) The determinant of the product of two (square) matrices is the product of the determinants of the factors.
Problem 13.10
(i) (ii) (iii)
(iv) (v)
(vi)
Illustrate the above properties of determinants by applying them to general 2 × 2 determinants. a b = ad − bc = a c c d b d a b = ad − bc = −(bc − ad) = − b a c d d c If two rows (columns) are the same then exchanging them will not change the determinant at all, but by (ii) it will change the sign. So the determinant will be its own negative and must therefore be zero. Or, directly: a a b b = ab − ab = 0 ka b = kad − kbc = k(ad − bc) = k a b kc d c d a + kb b c + kd d = (a + kb)d − b(c + kd) a c = ad − bc = b d a+e b c + f d = (a + e)d − b(c + f )
(vii) Now
a c
= ad − bc + ed − bf a b e b + = c d f d b e f ae + bg af + bh = d g h ce + dg cf + dh ae + bg ce + dg
af + bh = (ae + bg)(cf + dh) − (af + bh)(ce + dg) cf + dh
= aecf + aedh + bgcf + bgdh − af ce − af dg − bhce − bhdg 390
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
= adeh + bcfg − bceh − adfg (41
➤
= (ad − bc)(eh − fg) a b e f = c d g h
)
as required.
Exercises on 13.4 3 1. Evaluate (i) −1
3 2 (ii) 1 1
3 1
2. Expand by (i) first row (ii) second column (iii) second row 3 1 2
2 0 0 7 4 1 9 3. Simplify and evaluate 2 3
10 10 3 −1 3 1
Answers 1. (i) 5 (ii) 0
2. −58 in each case
3. −26
13.5 Cramer’s rule for solving a system of linear equations We will now show how to generalise the 2 × 2 version of Cramer’s rule given in Section 13.4 by looking at the case of three equations in three unknowns. a11 x1 + a12 x2 + a13 x3 = b1 a23 x1 + a22 x2 + a23 x3 = b2 a31 x1 + a32 x2 + a33 x3 = b3 If we solve this system by elimination then it is found (believe me!) that the solution can be expressed in a simple determinant form that generalises the 2 × 2 case of Section 13.4. This is Cramer’s rule. Cramer’s rule gives the solution in terms of 3 × 3 determinants as:
x1 =
x3 =
b1 b2 b3 a11 a21 a31
a12 a13 a22 a23 a32 a33 a12 b1 a22 b2 a32 b3
x2 =
a11 a21 a31
b1 b2 b3
a13 a23 a33
391
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
where
a11 = a21 a31
a12 a22 a32
a13 a23 a33
Again, note the pattern – denominators are always the same and equal to the determinant of the coefficients, . The numerator of xi is obtained by replacing the column of xi coefficients in by the column of right-hand sides.
Problem 13.11 Solve the system of linear equations 3x Y 2y − z = 0 2x − y Y z = 1 x − y Y 2z = −1 Using Cramer’s rule we have 2 −1 0 1 1 −1 −1 −1 2 x= 2 −1 3 1 2 −1 1 −1 2 −1 1 1 0 − 2 −1 2 −1 = −1 1 − 2 2 3 1 −1 2
= =
y= = =
z= 392
1 −1 1 −1 2 −1 −1 2 −1 1 − 1 1 −1 2
−2(2 + 1) − (−1 − 1) 3(−2 + 1) − 2(4 − 1) − (−2 + 1) 1 −4 = −8 2 0 −1 3 1 1 2 1 −1 2 −8 3(2 + 1) − 1(−2 − 1) −8 9+3 3 =− −8 2 2 0 3 1 2 −1 1 −1 −1 −8
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
3(1 + 1) − 2(−2 − 1) −8 6+6 3 = =− −8 2
=
Note that in the case when at least one of the values bi is non-zero the system of equations only has a unique solution if the determinant of coefficients is non-zero. This provides a simple test for the consistency of a system. If all bi are zero we say that the system is homogeneous. In this case, if the determinant of coefficients is non-zero then we simply get a zero solution for all the variables – the so-called ‘trivial solution’. On the other hand, if the determinant of coefficients is zero then we get an indeterminate result 00 . In this case it may be possible to get non-zero solutions for some or all of the variables. We consider homogeneous systems further in Section 13.7. Geometrically, an equation of the form ax + by + cz = d ➤
represents a plane in three dimensions (340 ). Three equations of this form would therefore be expected to yield the intersection of three planes and usually this would be a single unique point corresponding to the unique solution of the system. However, there are some exceptional cases: (i) 2 or 3 of the planes parallel, in which case the determinant of coefficients = 0 and x, y, z are not uniquely defined. (ii) 3 planes coincide or have a line in common in which case we again have = 0, the numerators for x, y, z, are all zero, and in this case there are an infinite number of solutions.
Exercise on 13.5 Solve the system of equations where possible (i) 3x − 2y + z = 1
(ii) x + 2y − 3z = 0
x+y +z =0
2x − y + z = 1
2x − y + 2z = 1
x − 3y + 4z = 2
Answer (i) x = 0, y = − 13 , z =
1 3
(ii) No solution
13.6 The inverse matrix Before defining the inverse matrix A−1 of a square matrix A we define another matrix, AdjA, associated with A. The definition seems a bit strange, but all will be revealed shortly. The adjoint of a square matrix A, denoted by AdjA, is the transpose of the matrix in which each element of A is replaced by its corresponding cofactors. Try the problem quickly to get a proper grasp of this! 393
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Problem 13.12 Find the determinant and adjoint of
−1 2 3 A= 0 1 1 −1 0 2 and evaluate A AdjA −1 |A| = 0 −1
2 3 1 1 = −1(2) − 2(1) + 3(1) 0 2
= −1 1 0 2 AdjA = − 0 2 1
0 1 T 0 1 1 − −1 2 2 −1 0 3 −1 3 − −1 2 2 −1 2 −1 0 −1 2 −1 3 3 − 0 1 0 1 1 −1 2 in the 2, 3 position of the matrix about to Note, for example, that the element − −1 0 be transposed is indeed the cofactor of the element a23 in A and check the other elements similarly. 2 −1 1 T = −4 1 −2 −1 1 −1
2 −4 −1 = −1 1 1 1 −2 −1
We then find A AdjA =
−1 2 0 1 −1 0
3 1 2
2 −4 −1 −1 1 1 1 −2 −1 0
−1 0 0 −1 0 0 0 −1
1 0 0 = −1 0 1 0 0 0 1 =
= −1I = |A|I This is an example of the general result A
AdjA =I |A|
which we will return to below. 394
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Before pressing on to the inverse matrix, let’s think about why we might need it and what it might look like. Remember that we introduced the idea of a matrix so that we could write a system of equations in the single form Au = b This is of little use unless we can push the new notation to help us to solve such a system. Think of a simple equation 3x = 6 Of course, the solution is x = 2. But, spelling out the details, we first multiply by 1/3 = 3−1 , 3−1 (3x) = (3−1 3)x = 1x = x = 3−1 6 = 2 In order to repeat this for the matrix equation we need A−1 , the equivalent of 3−1 . This motivates the following definition. The inverse, A−1 , of a square matrix A is defined by A−1 A = I = AA−1 where I is the appropriate unit matrix. The inverse of a matrix exists only if the matrix is non-singular (i.e. its determinant is non-zero). This follows because, since the determinant of a product is the product of the determinants (390 ): ➤
|A−1 A| = |A−1 ||A| = |I | = 1 and so we must have |A| = 0. Also, from this equation follows: |A−1 | = 1/|A| = |A|−1 So
det(A−1 ) = [det(A)]−1
In Problem 13.12 above we saw that AAdjA = −I = |A|I This is, in fact, a general result and leads to the following expression for A−1 : A−1 =
AdjA |A|
Note that in finding the inverse matrix it is wise to calculate |A| first, because if this is zero, the inverse does not exist and it is a waste of time finding AdjA. 395
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Problem 13.13 Find, if possible, the inverse of each of the matrices 1 −1 3
2 −1 1
2 1 0 3 (i) A = 2 (ii) B = 2 0 4 −5 1 −1 0 (i) First check the determinant of A: 3 1 −1 A = 2 2 1 0 4 −5 2 2 2 1 1 = 1 − (−1) + 3 4 −5 0 −5 0
2 4
= −10 − 4 + 2(−5) − 0 × 1 + 3(2 × 4 − 0 × 2) =0 So A is singular – its determinant is zero, and so its inverse does not exist. (ii) Hoping for better luck with B we have 2 −1 1 |B | = 2 0 3 1 −1 0 = 2(3) + (−3) + (−2) =1 So the inverse of B exists and we are not wasting our time finding AdjB. 0 3 2 0 T − 2 3 1 0 −1 0 1 −1 2 1 −1 1 − 2 −1 AdjB = − 1 −1 −1 0 1 0 2 −1 2 1 −1 1 2 0 3 − 2 3 0
3 3 −2 T = −1 −1 1 −3 −4 −2
3 −1 −3 = 3 −1 −4 −2 1 2 As an exercise you might like to check that B AdjB = |B |I at this stage. So we now have AdjB = AdjB |B |
3 −1 −3 = 3 −1 −4 −2 1 2
B −1 =
396
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Exercise on 13.6 Where possible, solve the systems of Exercise 13.5 using the inverse matrix.
Answer See answer to Exercise 13.5.
13.7 Eigenvalues and eigenvectors Consider the system of equations 3x + 2y = 0 6x + 4y = 0 Note that the determinant of coefficients of the left-hand side is 3 2 6 4 = 0 If either of the right-hand sides was non-zero this would mean the system has no solution. However, when the right-hand sides are all zero, we say the system is homogeneous, and in this case there is the possibility of a solution. In fact, cancelling 2 from the second equation reveals that the equations are the same – we really only have one equation: 3x + 2y = 0 This has an infinite number of solutions – choose any value of y, y = s, then take x as 2 − s. 3 In fact, in the homogeneous case it is essential for a non-trivial solution that the determinant of the coefficients is zero. We can generalise this. Returning to the original motivation for the inverse matrix, remember that we wanted to solve Au = b by multiplying by A−1 : A−1 (Au) = (A−1 A)u = Iu = u = A−1 b. So we have to insist in this case on |A| = 0, if b = 0. On the other hand, if b = 0, and we have the homogeneous system Au = 0 then if A is non-singular we only get the trivial solution u = 0. It is called trivial because if it were, say, to correspond to a physical dynamical system then it would represent the state of zero motion – no activity. In the case of homogeneous systems, we only get 397
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
non-trivial solutions if |A| = 0. All this would be of little interest were it not for the fact that homogeneous systems are very important, especially in engineering mathematics. When a complicated structure such as an aircraft wing is being studied to examine the kinds of vibrations it might experience it turns out that the mathematical modelling relies heavily on homogeneous systems of equations of a particular type that leads to quantities called eigenvalues. These quantities are actually related to the frequencies of vibrations of the various components of the aircraft wing, so their importance is obvious. They have countless other applications too, but here we will concentrate on their mathematical significance and properties. Once again, the definitions may be a little complicated and you may have to take a few things on trust, but the results are worth it, and the technical manipulations involved are really not that difficult. Eigenvalues are numerical quantities related to the determinant of a certain type of square matrix. They arise in, for example, vibrating systems because the mathematical models used involve systems of equations that take the matrix form Au = λu Here A is some square matrix describing the system, λ (Greek, l, ‘lambda’ – the standard notation for eigenvalues) is some parameter depending on the characteristics of the vibrating system and u is some ‘solution vector’ that might, for example, represent the displacements of the vibrating components being modelled. Now this system of equations is a particular example of a homogeneous system of the form (A − λI )u = 0 where I is a unit matrix of the same size as A. It will therefore only have a non-trivial solution for u if the determinant of coefficients is zero, which gives the eigenvalue equation |A − λI | = 0 This is in fact a polynomial equation for λ. For a given matrix A only certain values of λ will satisfy this equation, and only for these ‘eigenvalues’ will the original equation for u have a non-trivial solution. Such non-trivial solutions for u are called the eigenvectors corresponding to the eigenvalues λ. The above is a lot to take in but the objective is to motivate the rather strange definitions we are introducing. The mechanics of the actual mathematical manipulations are, as noted above, not too bad. Try the problem quickly!
Problem 13.14 Find the eigenvalues and corresponding eigenvectors of the matrix 6 −3 A= 2 1 If λ is an eigenvalue of A, then it satisfies 6 −3 1 0 −λ |A − λI | = 2 1 0 1 6 −λ − 3 = 2 1 − λ 398
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
= λ2 − 7λ + 12 = (λ − 3)(λ − 4) = 0 So the eigenvalues are λ = 3, λ = 4. To find corresponding eigenvectors we must solve the system of homogeneous equations Au = λu with each of the eigenvalues substituted. For λ = 3 the equations become
3 −3 u1 u1 [A − 3I ]u = =0 u= 2 −2 u2 u2 This gives two equations for u1 , u2 which actually reduce to one, with solution u1 = u2 In general then we get an eigenvector corresponding to λ = 3 of the form u 1 u= =u u 1 where u is an arbitrary number, roughly analogous to the arbitrary constant in integration – we choose it to suit our purposes, usually to give a column vector with unit magnitude (the magnitude of a column vector, like that of a vector (331 ), is the square root of the sum of the squares of its components – if that puts you in mind of Pythagoras again then so it should, the magnitude of a column vector is in a sense the ‘length’ of a vector it might represent). In the above case choosing u to make u of unit magnitude gives 1 1 u=√ 2 1 ➤
Repeating the above arguments for the other eigenvalue λ = 4 you should find a corresponding eigenvector 3 v =v 2 where v is again arbitrary. Taking v to be of unit magnitude gives 1 3 v=√ 13 2 Hopefully, you will agree that actually finding the eigenvalues and eigenvectors is relatively routine – in this case simply expanding a determinant and solving a quadratic equation, then solving a system of linear equations. In real engineering problems one might have hundreds of components or degrees of freedom, resulting in matrices with thousands of entries, and things are then not so simple – we have no hope of expanding the corresponding determinants or solving the resulting equations so easily. In such cases we have to resort to completely different (numerical) methods for finding eigenvalues – but the basic principles are still the same. 399
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
In the Applications section (➤ 403) you are led through an application of eigenvalues and eigenvectors to the simplest vibrating system there is – a single simple pendulum. Full details are given on the book website, although it involves some material we have not covered yet. But be assured, this topic is one of the most important in engineering mathematics and is well worth the effort to master.
Exercise on 13.7 Find the eigenvalues and corresponding eigenvectors for the matrix
A=
Answer
4 0 1 −2 1 0 −2 0 1
0 λ = 1, 1 ; 0
−1
λ = 2, 2 ; 2
−1
λ = 3, 1 1
Remember that each of the eigenvectors could be multiplied by a different arbitrary constant.
13.8 Reinforcement 1. Express the following in matrix form (i) 2x − y = −1
(ii) 3x − y + 2z = 1
x + 2y = 0
2x + 2y + 3z = 2 −3x − z = −3
(iii) a + 2b + 3c = 1
(iv) 4u − 2v = 1
a−b−c =3
3u + 3v = 2 u − v = −1
2. If A =
−1 2 4 0 −1 1
3 2 2
B=
0 2 3
1 3 −1 4 −1 2
(i) Write down a12 , a31 , a33 , b11 , b21 , b32 (ii) Evaluate
3 k=1
a1k bk3 ,
3
(iii) Evaluate (a) 2A − 3B
x −1 y 3 a 3. If 2 0 3 = b 0 z 3 2 2 3 evaluate a, b, c, d, x, y, z. 400
a3k bk2
k=1
(b) A2
x c d
(c) AB
(d) BA
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
√
3 1 cos θ sin θ 2 √2 4. If = − sin θ cos θ 1 3 − 2 2 determine θ in the first quadrant, i.e. 0 < θ < 90° .
5. Using the following matrices evaluate every possible sum and product of pairs of the matrices (repetitions such as A2 allowed):
3 2 −1 B = −1 C = [ −2 0 ] A= 3 0 4
0 1 −1 3 4 E = −1 2 D= 2 0 3 −1 −3 2 0 3 1 1 1 F= G = [2 1 0] 2 2 2 2 −1
3 2 −1
4 2
B= 0 1 C = 3 6. A = 3 0 2 1 −1 1 1 1 1 0 −1 2 1 4 D= 3 0 −1
−2 1 −1 u= v= 2 w= 1 3 −1 3 2 Find, where possible, (i) 3A + B (iv) 2AD + 3B
(ii) 4A + 2C
(iii) 3D − 2A
(v) 3u − 2v + B
(vi) 2u + 3v − w
(vii) u − 2w + Bv 7. A, B , C are the matrices 3 1 2 −1 0 A= B= −1 2 3 1 2
C =
1 1 2 −2 2 3
Verify that A(B + C ) = AB + AC . Is it true that (B + C )A = BA + CA? 8. Evaluate 2 (i) −2
3 4
6 1 0 (iii) 3 4 15 5 6 21 2 3 0 (v) −2 0 4 −3 −4 0
1 0 2 (ii) 3 4 5 5 6 7 1 0 0 (iv) 2 3 5 4 1 3 cos θ sin θ (vi) − sin θ cos θ 401
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
9. Write down the following expansions of the determinant 3 |A| = 0 4
(i) (ii) (iii) (iv)
By By By By
−1 2 1 2 −1 2
first row second row 3rd column last row
and check that they all lead to the same result. 10. Invert the following matrices
(i)
(iv)
2 1
3 4
2 (ii) 1 3 1 (v) 3 2
2 3 4
4 3 1 1 2 4
3 1
2 3 1 2 2 0
−1 4 0 6
(iii)
1 2 −1
−1 1 2 2 −1 1
11. Solve the equations below by matrix inversion where possible: (i) x + y + z = 4
(ii) 2x + 3y − 4z = −15
2x + 5y − 2z = 3
3x − 2y + 3z = 15
x + 7y − 7z = 5
5x + 7y + 5z = −6
(iii) 2x + 3y − z = 5 x − y + 3z = 8 3x + 4y − 2z = 5 12. Solve the equation x + 1 1 − x x−1
6 2 −5 x − 1 = 0 4 0
13. Solve the following systems of equations by Cramer’s rule – when possible: (i) x + y = 1 2x − y = 2 (iii) x + y + z = 1
(ii) 4x − 12y = 3 11x − 2y = 1 (iv) x − y + 2z = 1
x + 2y + 3z = 0
x + 2y − 3z = 0
x−y−z =0
2x + y − z = 2
14. Decide which of the following systems of equations have non-trivial solutions: (i) 3x − 2y = 0 x+y =0 402
(ii) x + 4y = 0 2x + 8y = 0
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(iii) x + y + z = 0
(iv) x + y + z = 0
x − y + 2z = 0
x −y−z =0
2x + y − 3z = 0
3x + y + z = 0
(v) 2x − 2y + z = 0
(vi) 2x − y + z = 0
3x − y + z = 0
x +y−z =0
x+y =0
3x + 2y + 2z = 0
15. Construct a system of three linear homogeneous equations in three unknowns that has a non-trivial solution 16. Determine the eigenvalues of the following:
(i)
(iv)
(vii)
1 0 0 2
(ii)
8 −4 2 2
(v)
2 0 0 2 −1 0
−1 0 2
(viii)
6 −3 2 1
−1 1 0 0 −2 2 3 −9 6 1 2 −1 2 1 1 −1 1 0
(iii)
(vi)
(ix)
2 3 −1 −2 1 0 2 1 1 2 3
0 0 1 −2 2 1
17. Determine the eigenvectors for each of the matrices in Q16.
13.9 Applications 1. A standard example in which systems of linear equations in more than one unknown arise is that of the modelling of electrical circuits or networks. A system of electrical components and connections might be very complicated, but can be analysed by regarding it as comprised of simple loops and branches to which Kirchoff’s Laws can be applied. A typical problem might be to determine the current in some part of a circuit given the resistances, emfs, etc. in the network components. Such a problem resulted in the following system of equations for currents i1 , i2 , i3 (amps) in a network: i1 + i2 + i3 = 0 −8i2 + 10i3 = 0 4i1 − 8i2 = 6 Solve the system for i1 , i2 , i3 by (i) Cramer’s rule (ii) matrix inversion. Notes: • For practical circuits of any size some standard software package would be used, probably involving numerical methods. • Useful mathematical analysis of the network can be done prior to solution, using the techniques of graph theory, to optimise the solution process • Cramer’s rule and matrix inversion are essentially equivalent. 403
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
2. Systems of forces acting on a body in equilibrium can also lead to systems of linear equations. For example, resolution of forces and balancing of moments leads to the following equations for three forces F1 , F2 , F3 (Newtons) acting on one of the struts in an aircraft wing. F1 − F2 = 0 2F1 + F2 − 2F3 = 20 F2 − F3 = 4 Find the forces by (i) Cramer’s rule (ii) matrix inversion. 3. The simple harmonic oscillator The position, x, of a particle performing simple harmonic motion about the origin at a time t can be described through Newton’s laws of motion by the differential equation: d 2x + ω2 x = 0 dt2 where ω2 is a positive quantity. It is standard practice to introduce a new variable: dx =y dt to give the second order system: dx =y dt dy = −ω2 x dt which may be written, in matrix form as, d 0 x= −ω2 dt
1 x 0
x=
x y
= Ax For various reasons arising from the theory of differential equations (Chapter 15) we now try to solve such systems by assuming solutions of the form x = x0 eλt y = y0 eλt where λ is some constant to be determined, and x0 , y0 will depend on the initial conditions. Substituting in the equations gives the matrix form
404
−λ −ω2
1 −λ
x0 y0
=0
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
We only get non-trivial values for (x0 , y0 ) if the determinant of coefficients is zero: −λ 1 0 1 1 0 −ω2 −λ = −ω2 0 − λ 0 1 = 0 This is precisely the eigenvalue equation for the matrix of coefficients of the original system: 0 1 A= −ω2 0 Convert the equation d 2x + 4x = 0 dt2 to a first order system as described above. Try a solution of the form x = x0 eλt , y = y0 eλt in this system and find the possible values of λ that will yield a non-trivial solution – they will in fact be complex. Hence solve the equations and express the solutions without complex numbers.
13.10 Answers to reinforcement exercises
1. (i)
(ii)
(iii)
(iv)
x −1 = y 0
3 −1 2 x 1 2 2 3 y = 2 −3 0 −1 z −3 a 1 2 3 1 b = 3 1 −1 −1 c
4 −2 1 u = 3 3 2 v 1 −1 −1
−1 2
2 1
2. If A =
−1 2 4 0 −1 1
3 2 2
B=
0 2 3
1 3 −1 4 −1 2
(i) 2, −1, 2, 0, 2, −1 (ii) 11, −4 (iii) (a)
(d)
− 2 1 −3 2 3 −8 −11 5 −2
1 3 −10 8 −9 8
8 12 11
(b)
6 1 7 −6 10 16 3 0 3
(c)
13 −6 11 6 2 16 8 −4 5
405
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
3. a = −1, b = 2, c = 3, d = 2, x = y = 3, z = 2 4. θ = 30° 5. Additions
4 −2 2A = 6 0
2B =
0 2 −2
2D = 4 0 6 −2 −6 4 2 2 2 2F = 4 4 4
2E =
6 −2 8
2C = [ −4
0]
6 8
−2 4 0 6
2G = [ 4
2 0]
Multiplications
0 0 0 AF = 3 3 3
1 A2 = 6
−2 −3
BG =
CA = [ −4 2 ]
DB =
−5
18 8 11 3 6
11 11 EF = 3 3 6 6 2 9 FE = 4 18
CF = [ −2 −2 −2 ]
−1 −1
DE = 6 17 0 −4 6 FB = 12 GB = 5
GE = [ 5 10 ] 6. (i) Not possible
(ii)
16 0 18 2 −4 2
6 3 0 −2 −1 0 8 4 0
3 3 1 D 2 = −3 −7 4 −8 −7 −4 18 −3
EA =
4 9
FD =
1 0
1 −2 4 2 −4 8
GD = [ 4
2 1]
(iii)
8 8 3 3 2 −5
11 10 15 (iv) (v) u, v , B not all same size 12 9 30 5 1 −7
0 4 (vii) (vi) 5 3 5 1 7. A, B , C are the matrices 3 1 2 −1 0 1 1 2 A= B= C = −1 2 3 1 2 −2 2 3
(B + C )A = BA + CA, indeed neither of (B + C )A, BA, or CA exist 406
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(ii) −6
8. (i) 14 (v) 0
(iii) −18
(iv) 4
(vi) 1
1 2 0 2 1 + + 2 0 9. (i) 3 4 −1 −1 2 4 2 −1 2 + 1 3 2 − 2 3 −1 (ii) −0 −1 2 4 2 4 −1 0 3 −1 3 −1 1 (iii) 2 −2 + 2 4 −1 4 −1 0 1 −1 2 3 2 3 −1 (iv) 4 +1 + 2 1 2 0 2 0 1
All equal to −4
10. (i)
−3/5 2/5
4/5 −1/5
1 (iii) 14 1 (v) 26
1 (ii) 18
3 5 −1
−1 5 3 −1 5 3
6 10 −2
12 −6 −4
−8 4 7
1 (iv) 5
(ii) x = 1, y = −3, z = 2
11. (i) No solution
1 7 −5
−5 7 1 −5 7 1
−10 4 9 15 −4 −14 −5 1 6
(iii) x = 1, y = 2, z = 3
12. x = 1 or 4 13. (i) x = 1, y = 0
(ii) x =
3 29 ,y=− 62 124
(iii) x =
1 3 , y = 2, z = − 2 2
(iv) No solution 14. (i) Trivial solution only
(ii) Non-trivial solution
(iii) Trivial solution only
(iv) Non-trivial solution
(v) Non-trivial solution
(vi) Trivial solution only
15. Example:
x+y +z =0 x + 2y + 3z = 0 2x + 3y + 4z = 0
16. (i) 1, 2 (v) 0, 1, 2
(ii) 3, 4
(iii) 1, −1
(vi) 1 (twice)
(vii) 1, 2, 3
(iv) 4, 6 (viii) 1, −2, 3
(ix) 1, 1 ± 2j 407
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
17.
(i) (ii) (iii) (iv)
(v)
(vi)
(vii)
(viii)
1 0 1, ; 2, 0 1 1 1 1 3 3, √ ; 4, √ 1 13 2 2 1 1 −3 1 1, √ ; −1, √ 1 10 2 −1 1 1 1 2 4, √ ; 6, √ 1 5 1 2
1 1 1 1 1 1 0, √ 1 ; 1, √ 2 ; 2, √ 3 3 1 46 6 14 3 0 1 (twice), 1
0 1 1 1 1 1, √ 0 ; 2, 1 ; 3, √ 0 2 1 2 −1 0
1 1 1 1 1 1 1, 2 ; −2, √ −1 ; 3, √ 1 3 −2 3 2 0 1
1 (ix) 1, √ 17
408
2 0 0 −3 ; 1 + 2j , j ; 1 − 2j , 1 2 1 j
14
Analysis for Engineers – Limits, Sequences, Iteration, Series and All That The topics considered in this chapter are often regarded as something of a luxury for engineers and scientists, who are normally more concerned with using techniques rather than worrying too much about the underlying theory. However, the ideas are not really that difficult, and there are in fact many engineering situations where it is necessary to pay particular attention to things such as continuity and differentiability. Also, even though some of the techniques may not be of immediate practical use, they are important in applications of numerical methods in engineering. Thus, before engaging in costly computational approaches, it is important to check that the problem is mathematically well defined. Does a ‘solution’ exist? Is it unique? Will the computational scheme converge to it? How long will it take? What are the error bounds? . . . etc. These are the sorts of questions that analysis addresses.
Prerequisites It will be helpful if you know something about: ➤
different types of number (5 ) elementary notion of a limit (231 ) properties of zero (6 ) sketching graphs (91 ) the binomial theorem (71 ) properties of rational functions (56 ) slope of a curve (230 ) inequalities (97 ) sequences and series (105 ) the geometric series (105 ) differentiation (Chapter 8 ) the modulus sign (96 ) elementary functions – trig, exponential, etc. (Chapters 4 and 6 ➤
➤
➤
➤
➤ ➤ ➤
➤
➤ ➤
➤
➤
• • • • • • • • • • • • •
)
Objectives In this chapter you will find: • more on irrational numbers 409
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
• • • • • • • •
evaluation and properties of limits continuity slope of a curve and theory of differentiation infinite sequences iteration and Newton’s method infinite series infinite power series convergence of sequences and series
Motivation You may need the material of this chapter for: • understanding when particular mathematical methods are applicable • solving equations by iteration • testing convergence of numerical methods
14.1 Continuity and irrational numbers What do we mean by a ‘continuous curve’? Plotting the result of an experiment on a graph will lead to a series of points separated by gaps (which may be small, but will always be there). We can never plot a continuous curve, although we usually draw one through the points. In fact, the idea of a continuous curve is a convenient mathematical abstraction which allows us to use geometry to talk about slopes and rates of change. When we draw a continuous curve we tacitly assume that the curve passes through every point on it (which it doesn’t – there will at least be gaps between the molecules in the chemicals of the ink!). To plot a point on a curve we must measure its distance from some origin. This can only be done to a certain level of accuracy and so can only be done using a terminating decimal, e.g. 3.412. As noted in Chapter 1 such numbers can always be written as rational numbers – those which can be expressed in the form m/n where m and n are integers.
Problem 14.1 Write the decimal 3.412 as a rational number. Quite simply in this case we have 3.412 =
3412 1000
However, there are numbers which cannot be written in this form as fractions – i.e. there exist quantities which we can never measure exactly and yet which do have a real existence! These can never be plotted on a graph and so represent ‘holes’ in the apparently continuous curve. An elementary example of such a number is the diagonal of the unit square. By Pythagoras’ theorem (154 ) we know that the unit square has diagonal √ 2 units. Clearly, this number ‘exists’, otherwise we couldn’t cross a square diagonally. ➤
410
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
However, we will show that it cannot in fact be represented by a decimal with a finite number of places – i.e. it is not a rational number, and so therefore it cannot be ‘measured’ √ or ‘plotted’ exactly. The method of proof is by contradiction, that is, we assume that 2 can be written as a rational number and then derive a contradiction. The proof is one of the prettiest in elementary pure mathematics and it has great physical significance, demonstrating that there is a real physical quantity of great importance that we cannot actually measure. It also gives good practice in elementary algebra, so try to work through it. √ Assume that we can write 2 as a rational number: √
2=
m n
where m, n are integers, each cancelled down to their lowest form (i.e. m and n have no factors in common (12 )). Then ➤
2= or
m2 n2
m2 = 2n2
This implies that m2 is even. Since the square of an odd number is odd m must also be even. Let’s write it m = 2k where k is an integer. Then: m2 = 4k 2 = 2n2 or
n2 = 2k 2
By the same argument as for m, this implies that n is even. We have therefore shown that both m and n are even and therefore contain (at least) the factor 2 in common. This is a contradiction√since we assumed that m and n have no factors in common. So we have √ to conclude that 2 cannot be written as a rational number. Numbers such as 2, which cannot be written in the form m/n, are called irrational numbers. They are clearly of more than academic interest because we cannot draw a continuous curve without them. So, if we definitely cannot plot all points on a continuous curve, how do we define such a curve mathematically? To define continuity precisely we have to introduce the idea of a limit of a function at a point. This is the value of the function as we approach closer and closer to the point indefinitely, without actually reaching the point. It might or might not exist.
Exercises on 14.1 22 . Explain why this expression cannot be exactly 1. π is often approximated crudely by 7 equal to π. √ 2. Using a calculator or computer evaluate 2 to as many decimal places as you can. Square your result – do you retrieve 2?
Answers 1.
22 is rational, whereas it can be shown that π is not. 7 411
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
√ 2. On my calculator 2 = 1.41421356237. My calculator squares this to 1.9999999998, so it is clearly not the square root of 2.
14.2 Limits Suppose we are trying to find the velocity of a particle at a time t. As velocity is distance moved divided by time taken we have to measure a small distance moved and divide by the time taken for this. But this will only give us the average velocity over this small interval. Actually, at the point t there is zero movement in zero time – is the velocity 0/0? Remember that in Chapter 1 we said this is not defined (7 ). The way out of this is to consider smaller and smaller intervals and find the average velocity over these intervals. As the interval decreases, the average velocity over it should be nearer to the actual velocity at t. We say that we find the limit of the velocity as the interval goes to zero. Notice that we never actually evaluate the velocity at the point t – because this just gives 0/0, as seen above – we just get nearer and nearer to it without actually reaching it. This is formalised in the following definition. The limit of f .x/ as x tends to a is defined as the value of f (x) as x approaches closer and closer to a without actually reaching it and is denoted by: ➤
lim f (x)
x→a
There are some points to note: We do not evaluate the limit by actually substituting x = a in f (x) in general, although in some simple cases it is possible. The value of the limit can depend on ‘which side it is approached’ – from ‘above’ or ‘below’, i.e. through values of x less than a or through values of x greater than a respectively. The two possible values may not be the same – in which case the limit does not exist. The limit may not exist at all – and even if it does it may not be equal to f (a).
(i) (ii)
(iii)
The sort of limits that cause most difficulty and which are probably the most important are those arising from so called ‘indeterminate forms’. Any expression that yields results of the form 0/0, ∞/∞, or 0 × ∞ is called an indeterminate form. Examples are x2 − 1 0 = at x = 1 x−1 0
and
sin x 0 = at x = 0 x 0
Even though the function does not exist at such points, its limit at the point may exist. For example as we will see below,
lim
x→1
both exist. 412
x2 − 1 x−1
and
lim
x→0
sin x x
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Problem 14.2 Evaluate f .x / = x 2 Y 2x Y 3 for x = 1.1, 1.01, 1.001, 1.0001. What do you think f .x / approaches as x gets closer and closer to 1? We obtain the values in the table below x
f (x)
1.1 1.01 1.001 1.0001
6.41 6.0401 6.004001 6.00040001
So as x gets closer and closer to 1, f (x) gets closer and closer to 6 – we say that the limit as x tends to 1 is 6. Similar results are obtained if we consider values of x less than and increasingly closer to 1. The results get increasingly closer to 6. This is also the value of f (x) at x = 1 of course. Graphically, the situation is illustrated in Figure 14.1. y
y = x 2 + 2x + 3
6
3
−2
−1 0
1
x
Figure 14.1 The graph of y = x2 + 2x + 3.
Problem 14.3 x2 − 1 Evaluate the function f .x / = for x = 1.2, 1.02, 1.002, x −1 1.0002 – what do you think is the limit as x tends to 1? We obtain the table below x
f (x)
1.2 1.02 1.002 1.0002
2.2 2.02 2.002 2.0002 413
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
The table of values suggests that as x → 1, f (x) → 2 (the arrow represents ‘tends to’). However, of course, f (1) =
0 12 − 1 = 1−1 0
which is indeterminate indicating that in this case we cannot evaluate the limit simply by substituting the value of x = 1. Instead, we proceed as follows: x2 − 1 (x − 1)(x + 1) = lim = lim (x + 1) = 2 x→1 x − 1 x→1 x→1 (x − 1) lim
The cancellation of the x − 1 factor under the limit is permissible because in the limit we only consider values of x arbitrarily close but never equal to 1. So x − 1 is never zero and so can be cancelled under the limit. See Figure 14.2. y
2 y = x −1 x −1
2
The point (1,2) is omitted from the curve.
0
Figure 14.2 The graph of y =
x
1
x2 − 1 . x−1
Problem 14.4 1 as x tends to 1. x −1 The graph of this function is shown in Figure 14.3 and it is clear that the limit at x = 1 does not exist. If we approach x = 1 from below the limit tends to −∞. If we approach from above it tends to +∞. We say there is a discontinuity at x = 1. Investigate the limit of f .x / =
y
0
Figure 14.3 The graph of y =
414
1 . x−1
1
x
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
The properties of limits are fairly well what we might expect. Thus, if lim f (x) = b
x→a
then
L1. L2.
lim g(x) = c
x→a
lim kf (x) = kb for any fixed k
x→a
lim [f (x) ± g(x)] = lim f (x) ± lim g(x) = b ± c
x→a
x→a
x→a
lim [f (x)g(x)] = lim f (x) lim g(x) = bc x→a x→a f (x) limx→a f (x) b = L4. lim = if c = 0 x→a g(x) limx→a g(x) c
L3.
x→a
1
L5.
1
1
1
lim [f (x)] n = b n provided [f (x)] n and b n are real.
x→a
NB. We must always check that limx→a f (x), limx→a g(x) exist before applying the above results, all of which are proved rigorously in pure maths books, but are fairly ‘obvious’.
Problem 14.5 Evaluate the limits 2 x −1 × .x 2 Y 2x Y 3/ (i) lim x →1 x − 1
(ii) lim
x →1
x2 − 1 √ .x − 1/ x 2 Y 2x Y 3
We know from Problems 14.2 and 14.3 that x2 − 1 =2 x→1 x − 1 lim
and
lim (x 2 + 2x + 3) = 6
x→1
(i) Using rule L3, we have
lim
x→1
x2 − 1 x2 − 1 × (x 2 + 2x + 3) = lim × lim (x 2 + 2x + 3) x→1 x − 1 x→1 x−1
= 2 × 6 = 12 which you can see we also get from: lim [(x + 1) × (x 2 + 2x + 3)] = 12
x→1
(ii) Using rules L4 and L5, we have
x2 − 1 x2 − 1 ÷ lim x 2 + 2x + 3 √ = lim lim x→1 (x − 1) x 2 + 2x + 3 x→1 x − 1 x→1 = 2 ÷ lim x 2 + 2x + 3 x→1
=2÷
√
√ 2 6 6= √ = 3 6 415
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
and again you can see we get this directly from 2 x+1 =√ lim √ 2 x→1 6 x + 2x + 3 Note that it would not be correct to write x2 − 1 lim = lim (x 2 − 1) ÷ lim ((x − 1) x 2 + 2x + 3) √ x→1 (x − 1) x 2 + 2x + 3 x→1 x→1 since the last limit, which we are trying to divide by, is zero.
Exercises on 14.2 1 1. Investigate the (very useful) limit of as x tends to infinity, i.e. gets infinitely large. x Evaluate (i) lim
x→∞
1 2x (ii) lim x→∞ x−1 x−4
2. Consider the values of the following functions as x gets closer and closer (but not equal) to x = 2: (i) x − 2 1 (iv) 2 x −4
(ii) x + 2 x−2 (v) x2 − 4
(iii) x 2 − 4
In each case evaluate the limit as x → 2 using the techniques of this section. 3. Evaluate the limits (i) lim x 2 x→0
(ii) lim
x→0 x 2
x −x
(iii) lim
x→1 x 2
x−1 − 3x + 2
Answers 1 =0 x→∞ x 2. (i) 0
(i) 0
(ii) 2
(ii) 4
(iii) 0
3. (i) 0
(ii) −1
(iii) −1
1.
lim
(iv) doesn’t exist
(v)
1 4
14.3 Some important limits There are further examples of limits that are very important in calculus and approximations. If you wish, simply remember the results and how to use them, but working through the proofs will give you good practice in basic mathematics as well as enhancing your understanding of the results. sin θ =1 θ→0 θ When θ = 0 this yields the indeterminate form 0/0.
(i) lim
416
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
P 1 q
B A
Figure 14.4
From Figure 14.4 we see that if P A is an arc of a unit circle subtending an angle θ at the centre (173 ), then we have: ➤
PB = sin θ 1 and P A = 1 × θ (rads). sin θ PB sin θ So = and clearly as θ → 0, P B → P A, so →1 θ PA θ Thus we obtain the given result. This limit implies that for θ small we have sin θ θ . The same sort of reasoning can also be used to show that for very small θ , cos θ 1. It is also useful to note that provided k = 0, lim
θ →0
sin kθ =1 kθ
So, for example lim
θ →0
sin 6θ =1 6θ
Once again, remember that in all of this discussion, and in use of the limits defined, q must be in radians. n x − an (ii) lim = na n−1 x→a x−a When x = a this has the form 0/0. To find the value of the limit as x → a we consider values of x close to a and therefore take x = a + h so as x → a, h → 0. Using the binomial theorem (71 ), we have n(n − 1) n−2 2 a n + na n−1 h + a h + · · · − an (a + h)n − a n 2 = lim lim h→0 h→0 a+h−a h ➤
n(n − 1) n−2 = lim na n−1 + a h + · · · = na n−1 h→0 2 ➤
This result is essentially the differentiation of x n from first principles (231 xn x2 ex 1 + ··· + +··· (iii) limx→∞ n = limx→∞ n 1 + x + x x 2! n! (126 ) x 1 1 1 + + · · · + + · · · + = limx→∞ xn x n−1 n! (n + 1)!
).
➤
=∞ 417
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
So as x → ∞, example:
ex → ∞ – i.e. ex is ‘stronger’ than x n ; for any positive integer n. So for xn
xn = x n e−x → 0 ex
as x → ∞
In fact, it is not difficult to extend the above proof to apply for any value of n, not necessarily integer. This limit is very useful in Laplace transforms and should be thoroughly understood (➤ 502).
Exercise on 14.3 Evaluate the following limits x 3 − 27 x→3 x − 3
sin 2x x→0 x
(i) lim
(ii) lim
(iii)
2x 3 − x x→∞ e3x lim
Answer (i) 2
(ii) 27
(iii) 0
14.4 Continuity We can now use the idea of a limit to put the concept of continuity into mathematical form. If we focus on a particular point x = a on the curve of a function f (x), then clearly if the curve is continuous at that point then we would want the limit at x = a to be the same ‘from both sides’ and to be equal to f (a). Only in this way can the two parts of the curve on either side of x = a ‘join up’ without leaving a hole in the curve. We express this formally in the following definition: A function f (x) is continuous at x = a if limx→a f (x) = f (a). The graphs of continuous functions are continuous curves, and some examples of continuous and discontinuous curves are illustrated in Figure 14.5. y
y Continuous and smooth
Finite discontinuity at x = a
0
x
y
Continuous but not differentiable at x = a
0
a
x
Figure 14.5 Continuous and discontinuous curves.
418
x=a
0
y
0
x Infinite discontinuity at x = a
x=a
x
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
A function f (x) such that lim f (x) = f (a)
x→a
is said to be discontinuous at x = a. x+3 For example, f (x) = is discontinuous at x = 1 and x = −5. Another (x − 1)(x + 5) example of a discontinuous function is the tan x function (see Figure 6.10). In general, discontinuous functions are a nuisance in mathematics, but various techniques have been devised to deal with them. They are sometimes useful to approximate rapid continuous variations, as for example the use of the step function, H (t) = 0 for t < 0 and = 1 for t > 0, in representing the ‘instantaneous’ throwing of a switch (Figure 14.6). H (t )
0
t
Figure 14.6 The step function H(t).
Although we have used limits to define continuity, in practice we often know that a given function f (x) is continuous, and then we can simply put x = a to find the ‘limit’ or value of f (x) at x = a. For example, the general rational function P (x)/Q(x) can only have discontinuities where Q(x) = 0 and these are infinite if P (x) is non-zero. If however, at x = a, P (a) = Q(a) = 0, then we have an indeterminate form 0/0 (the same discussion applies for ∞/∞) and a more detailed study is required. This can take the form of a substitution such as z = a + h and studying the limit as h → 0. This is equivalent to focusing attention on the point x = a and looking closely at the behaviour near this point. We can perform any algebraic operations on P (x)/Q(x) to simplify it, or rearrange it to a more convenient form for taking the limit – we can for example, cancel factors like x − a, because we never actually consider what happens at x = a. Another approach is to expand the function in a power series. In fact our main concern with limits and continuity lies in the theory of differentiation, where we need to consider indeterminate expressions such as 0/0.
Problem 14.6 Investigate the continuity of the function f .x / =
x −3 x 2 − 4x Y 3
Sketch the function and define a new function, g.x /, that is continuous and such that g.x / = f .x / for all x > 2, except at x = 3. 419
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
This is a rather sophisticated problem, but is worth working through because it brings together a number of the key subtleties of limits and continuity, and is very instructive. We have f (x) =
x−3 x−3 = x 2 − 4x + 3 (x − 3)(x − 1)
This has two discontinuities, at x = 1 and x = 3. At x = 3 the function is indeterminate, but otherwise we can cancel the x − 3 and write f (x) =
1 provided x = 3 x−1
At x = 1 the discontinuity is infinite, of the same kind as that of 1/x at x = 0 (cf: Problem 14.4), except that the point x = 3 must be omitted, see Figure 14.7. y
0
1
3
x
−1
Figure 14.7 The function f(x) =
(x − 3) . (x − 3)(x − 1)
While f (x) does not exist at x = 3, the limit of the function does: x−3 1 = lim x→3 (x − 3)(x − 1) x→3 (x − 1)
lim f (x) = lim
x→3
=
1 2
So we can ‘plug the gap’ and form a continuous function from f (x) for x > 2 by defining a new function g(x) that is equal to f (x) for x > 2, x = 3, but is equal to 12 at x = 3: g(x) = f (x) = 420
1 2
x > 2, x = 3 at x = 3
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
The function g(x) is continuous and indeed is equivalent to g(x) =
1 for x > 2 x −1
Exercise on 14.4 Consider the following functions for 0 < x < ∞, and discuss whether or not they are continuous for these values of x. (i) x + 1
(ii)
(iv) sin x (vii) (ix)
1 x
1 x −1 x2 − 1 (vi) x+1
(iii)
(v) ln x
x +1 x2 − 1
(viii)
x2 − 4 x−2 =4
f (x) =
x2 − 4 x+2
x = 2 x=2
Answer (i) C
(ii) C
(iii) D
(iv) C
(vi) C
(vii) D
(viii) C
(ix) C
(v) C
14.5 The slope of a curve The slope of a curve at a point is defined as the slope of the tangent at that point. It can be evaluated by a limiting process illustrated in Figure 14.8 (We adopted a similar approach in Chapter 8, using a different but equivalent notation (230 ).) ➤
y y = f (x )
0
a a+h
x
Figure 14.8 Definition of the derivative.
The value of the function at x = a is f (a), and the value at x = a + h is f (a + h), so the slope of the extended chord (also called the secant) joining these two points on the 421
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
curve is f (a + h) − f (a) f (a + h) − f (a) = a+h−a h As h → 0, the chord approaches the tangent to the curve at x = a, so the slope of the curve at x = a is lim
h→0
f (a + h) − f (a) h
An equivalent and possibly more useful form is lim
x→a
f (x) − f (a) x −a
Note that when h = 0, or x = a, this is of the indeterminate form 0/0. It is called the derivative of f .x / at x = a (231 ). We use the notation ➤
lim
x→a
f (x) − f (a) x −a
=
d f (x) at x = a dx
Problem 14.7 Determine the slope of the curve f .x / = x n at the point x = a. From above, the slope of f (x) = x n at x = a is given by lim
x→a
n f (x) − f (a) x − an = lim = na n−1 h→0 x −a x−a
from Section 14.3.
Exercise on 14.5 Evaluate the slope of the function f (x) = 3x 3 using the limit definition.
Answer 9x 2
14.6 Introduction to infinite series The purpose of this section is to ease you gently into the topic of infinite series, before we embark on a more formal treatment. How would you evaluate cos x for x = 0.1 radians? Probably tap it out on your calculator. But suppose you wanted greater accuracy than your calculator can give? Writing a short computer programme might be the answer. But how do you instruct the computer? You can’t tell it to evaluate cos x from its geometrical definition ‘adjacent over hypotenuse’. The logic circuits of computers can only do very simple 422
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
arithmetic operations such as addition and multiplication. Fortunately, we can express cos x (x in radians!) in terms of just such operations by an infinite power series (107 ): ➤
cos x = 1 −
x2 x4 x6 + − + ··· 2! 4! 6!
If this is new to you, don’t worry where it comes from just now. Because the series is infinite – the terms go on forever – we can’t even total all of the terms and so can never write down the exact value of, for example, cos 0.1: cos 0.1 = 1 −
(0.1)2 (0.1)4 (0.1)6 + − + ··· 2! 4! 6!
However, by taking a sufficient number of terms we can obtain the value of cos 0.1 with as much accuracy as we desire. The terms in the series only involve multiplication and division, which a computer can do easily. So such series are just the thing for evaluating complicated functions. They are also useful in mathematical methods too – for example if x is small enough then we might be able to neglect terms such as x 4 , x 6 , . . . and take the approximation: cos x 1 −
x2 2
The advantage here is that the right-hand side is much easier to work with than the left-hand side. We will look at how we find such series later, in Section 14.11. Here we will focus on issues arising from the fact that we have an infinite series. Because it is infinite, we can never see directly what is going to happen when we ‘gather up’ all the terms. For the cos x (0.1)r example above, the terms got smaller and smaller, so maybe we can feel confident r! that we are all right to neglect the remaining infinity of terms after we cut the series off. Well, look at another series, S =1+
1 2
+
1 3
+
1 4
+···
The terms get smaller and smaller – maybe we can get a good approximation by ‘truncating’ the series? In fact, we can’t. This can be seen by a very pretty argument. Because S is the sum of only positive terms, we can obviously get a quantity less than S by replacing some of its terms by smaller values. Suppose we did this as follows
S > 1 + 12 + 14 + 14 + 18 + 18 + 18 + 18 + · · · You can see the pattern: =1+
1 2
+
1 2
+
1 2
+···
But this clearly adds up to an infinite total and yet we know by construction that this is less than S – so S must also be infinite, showing that the series diverges. This is typical of the sort of ‘strange’ results and pretty arguments one meets in the theory of series. From a practical point of view it means we have to be very careful when dealing with infinite series. 423
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Exercise on 14.6 Adapt the argument of this section to show that the series 1 1 1 1 1 + √ + √ + √ + ··· + √ + ··· r 3 2 4 does not add up to a finite quantity, i.e. it diverges.
14.7 Infinite sequences ➤
As a prelude to infinite series we look at infinite sequences (102 ), which are simply lists that continue indefinitely – adding terms of an infinite sequence produces an infinite series. Such sequences arise naturally in such infinite processes as iteration, where we continually improve an approximation by recycling it until we get the accuracy we want. An ordered set of numbers: u1 , u2 , u3 , . . . , un , . . . ➤
is called a sequence or infinite sequence. un is called the nth term (105 term may be defined by a formula:
). The nth
un = f (n) or by a recurrence relation (difference equation), such as: un = un−1 + un−2
u1 = a,
u2 = b
Problem 14.8 Write down an expression or a recurrence relation for the nth term un in each of the following cases: 1 1 1 1 (i) 1, 4, 9, 16, 25, . . . (ii) 1, , , , , . . . . 2! 3! 4! 5! (iii) 1, 4, 7, 10, . . . (iv) 2, 4, 10, 24, 58 . . .
This is really a matter of educated guesswork – find a result that fits the first few terms of the sequence, check that it holds for the other terms and assume that it holds in general for all terms, even those that are not explicitly written down. (i)
We note that the terms can be written as 12 , 22 , 32 , 42 , 52 , . . . which suggests that in general we can take un = n2
(ii) 424
The same idea suggests un =
1 in this case. n!
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(iii) (iv)
In this case un = 1 + (n − 1)3 is pretty obvious. In this case it is perhaps not quite so easy to spot a pattern for an explicit expression for un . You might spot more easily that there is a relation between un and un−1 , un−2 . Explicitly we find the recurrence relation un = 2un−1 + un−2 ; u1 = 2, u2 = 4.
In case you are wondering what the explicit expression for un would be in (iv) that is equivalent to the recurrence relation, it is actually √ √ 1 1 un = √ (1 + 2)n − √ (1 − 2)n 2 2 Not something that readily springs to mind, as do (i) – (iii)! This illustrates why recurrence relations are sometimes to be preferred. As a useful exercise in surds you might like to check that this explicit result does generate the given sequence. Also, you may like to check, using the binomial expansion that an equivalent form to the above result, not involving surds, is un =
n
Cr 2(r+1)/2
r=1
where the sum ranges only over odd values of r. Again, not a form that springs immediately to mind! An obvious question is, as we continue along an infinite sequence, does the nth term tend to a definite limit? That is, what is the behaviour of un as n → ∞? Symbolically, what is limn→∞ un ? Clearly this depends on the form of the nth term.
Problem 14.9 Examine the limits of the following sequences as n increases indefinitely: n 1 1 1 1 1 1 3 7 ,.... (i) 1, , , , . . . , , . . . (ii) , , ,...,1 − 2 3 4 n 2 4 8 2 (iii) 0, 3, 8, . . . , n 2 − 1, . . . Essentially we have to examine the limit as n tends to infinity. (i) (ii)
1 =0 n
n In this case we have limn→∞ un = limn→∞ 1 − 12
In this case we have limn→∞ un = limn→∞
= lim 1 − lim n→∞
(iii)
1 n
n→∞ 2
=1−0=1
where we have used the fact that an ‘infinite power’ of any number between 0 and 1 is zero. Fairly straightforward in this case
lim un = lim n2 − 1 = ∞ n→∞
n→∞
So this sequence ‘diverges’ – the terms get larger and larger indefinitely. 425
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
l
n
Figure 14.9 A sequence approaching a limit l.
If a sequence has a finite limit, we say it converges, if not, it diverges. Graphically, a sequence converges if the points plotted for values of n approach a definite line (Figure 14.9). Note that the behaviour of the sequence depends not at all on the first terms of the sequence, but rather on the ‘infinite tail’ – i.e. on the last infinity of terms!
Exercise on 14.7 Investigate the convergence of the sequences un =
n
(i) (−1) (v)
1 rn
(ii) 2
|r| > 1
(vi)
n 1 (iii) 3
n
1 rn
(iv) −
1 n
|r| < 1
Answer (i) D (‘oscillating’)
(ii) D
(iii) C
(iv) C
(v) C
(vi) D
14.8 Iteration One of the most important practical applications of the theory of sequences is in the discussion of iterative methods used for example in numerical methods for solving equations. In an iterative method for solving an equation we assume an initial guess and use it in some rearrangement of the equation to calculate a (hopefully) improved approximation to the solution. We will describe two methods for this, but mainly as examples of convergence of sequences. One way of finding an approximate solution to the equation f (x) = 0 is to write it in the form f (x) ≡ F (x) − x = 0 and solve this equation by iteration: xn+1 = F (xn ) 426
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
where xn is the nth approximation. Starting with a first approximation x1 we find another by: x2 = F (x1 ) and another x3 = F (x2 ) and so on. This generates a sequence of approximate solutions: x1 , x2 , x3 , . . . , xn , . . . and under favourable circumstances the limit of this sequence is the solution of the equation. To get a good enough approximation we then take n large enough. Clearly, whether this is possible will depend on the form of the function F . Perhaps the most popular iteration method is Newton’s method. In this method the (n + 1)th approximation, xn+1 , to the solution of an equation f (x) = 0 is calculated from the nth approximation xn , subject to certain conditions, using the relation xn+1 = xn −
f (xn ) f (xn )
Again we generate an infinite sequence of approximate solutions that (we hope) will eventually converge on the actual solution.
Exercise on 14.8 Rewriting the equation x 3 − 5x − 3 = 0 in the form x = 15 (x 3 − 3) and starting with the value x0 = −1, use your calculator to generate a sequence of approximate solutions to the equation. Do you think this sequence converges to a solution ? What happens if you try x0 = −2? Now rewrite the equation in the form x=
5x + 3 x2
and again start with x0 = −2. What happens?
Answer Starting with x0 = −1 the first rearrangement leads quickly to the approximation x = −0.657. Starting with x0 = −2 leads to a divergent sequence and no solution. Starting with x0 = −2 in the second rearrangement however leads quickly to an approximate solution x = −1.83. Note that some other starting values x0 might not lead to a root at all. 427
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
14.9 Infinite series ➤
An infinite series (105
) is one of the form
S = u1 + u2 + u3 + · · · + un + · · · i.e. the sum of the terms of an infinite sequence. To consider the convergence of such a series, i.e. whether it adds up to a finite quantity, we introduce some definitions. Firstly, we pretend that the series is finite and define the nth partial sum of the series as the sum of the first n terms: Sn = sum to n terms = u1 + u2 + u3 + · · · + un Then the infinite series can be regarded as this nth partial sum as n tends to infinity, i.e. S = sum to infinity = lim Sn n→∞
If S = limn→∞ Sn = l, a definite value, then we say that the series converges to the value l. Otherwise the series is divergent. In terms of sigma notation (102 ) we write: ➤
Sn =
n
ur
r=1
S=
∞
ur
r=1
Clearly, whether or not a series converges depends on the terms ur and also on their relation to each other – i.e. on ur /ur−1 . This last quantity appears in the ratio test for convergence. One way of testing for convergence, of course, is to investigate the limit of the nth partial sum directly.
Problem 14.10 Investigate the convergence of the geometric series S = a Y ar Y ar 2 Y · · · Y ar n −1 Y · · · ➤
(105
)
We looked at this in Section 3.2.10. We have Sn = a + ar + ar 2 + · · · + ar n−1 a(1 − r n ) ( Section 3.2.9) 1−r a a rn − = 1−r 1−r
=
428
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Now, provided −1 < r < 1 we have r n → 0 as n → ∞, so a 1−r
lim Sn =
n→∞
Thus, the sum to infinity of the geometric series is a 1−r
S=
provide |r| < 1. On the other hand, if |r| ≥ 1 then r n → ∞ as n → ∞ and so the series diverges.
Problem 14.11 Show that the infinite arithmetic series S = a Y .a Y d / Y .a Y 2d / · · · diverges for any value of the common difference d (104 ➤). Again, we found in Section 3.2.9 that Sn = a + (a + d) + (a + 2d) + · · · + (a + (n − 1)d) = 12 n(2a + (n − 1)d) Now, as n → ∞ , Sn → ∞, whatever the value of d, so lim Sn = ∞
n→∞
and therefore the arithmetic series diverges. It is not always possible to use the nth partial sum in this way. For example the nth partial sum of the harmonic series 1 1 1 1 + + + ··· + + ··· 2 3 4 n
S =1+ is
Sn = 1 +
1 1 1 + +··· + 2 3 n
In this case there is no simple formula for Sn , and so we have to find other ways to test convergence. We did actually do this in Section 14.6 where it was shown that the harmonic series diverges. We will look at other tests of convergence in the next section.
Exercise on 14.9 Find Sn for the series 1+
1 3
+
1 2 3
+··· +
1 r 3
+···
and hence evaluate the sum to infinity. 429
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Answer 3 2
1−
1 n , 3
3 2
14.10 Tests for convergence As noted in the previous section, if we can calculate the general form for Sn then we can find limn→∞ Sn and check convergence directly, but this is not always possible. Fortunately, a number of different tests have been developed to determine whether a series converges by considering its general form. Before we even start to discuss the convergence of a series, we must first check that limn→∞ un = 0, because if this is not so then the series cannot converge. To see this suppose that the series converges. Then from: un = Sn − Sn−1 we have
lim (Sn − Sn−1 ) = 0 = lim un
n→∞
n→∞
So, if the series converges, limn→∞ un = 0. However, the converse is not true, i.e. limn→∞ un = 0, does not imply that the series converges. Thus, we saw in Section 14.6 that the harmonic series actually diverges and yet it clearly satisfies 1 limn→∞ un = limn→∞ = 0. On the other hand, for the arithmetic series (Problem 14.11) n limn→∞ un = ∞ and we do know that this series always diverges. Having verified that limn→∞ un = 0, we can continue to apply the tests for convergence given below. First, a couple of general points: (1) (2)
In studying the convergence of a series it is only the ‘infinite tail’ which is important, not an initial finite number of terms. Some of the tests given below apply only to series whose terms all eventually become positive.
The comparison test This is essentially a generalisation of the method we used for the harmonic series. Suppose we wish to study the convergence of the series of positive terms: U = u1 + u2 + · · · + un + · · · Then in the comparison test we compare this with a known series. Thus, let V = v1 + v2 + · · · + vn + · · · be a known standard series. Then if ur ≤ cvr , c = a constant and V is convergent, then so is U . If ur ≥ cvr and V diverges, then so does U . This test is intuitively obvious. 430
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Problem 14.12 Apply the comparison test to the series (i) U = 1 Y
1 1 Y Y · · · = e1 − 1 2! 3!
(ii) U =
1 1 1 Y Y Y··· 2 4 6
(i) As standard series take the geometric series 1 1 + 2 +··· 2 2
V =1+
Clearly, ur ≤ 1vr and we know that V converges because its common ratio is less than 1, and so U also converges. (ii)
U=
1 2
+
+
1 4
Take V = 1 +
+
1 2
+···
1 6
+
1 3
+ · · ·, the harmonic series
1 4
Then ur = 12 vr and since V diverges, so does U .
Alternating series In the particular case of an alternating series, such as: 1−
1 2
+
−
1 3
1 4
+···
where the signs alternate, there is a very simple test for convergence. Thus, let S = u1 − u2 + u3 − u4 + · · · (all ui ≥ 0). Then if lim un = 0 and un ≤ un−1 for all n > N
n→∞
(N a certain finite number) then the series converges.
Problem 14.13 Examine the convergence of the series S =1−
1 2
Y
1 3
−
1 4
Y···
In this case it is clear that (i) limn→∞ un = 0
(ii) un < un−1 for all n
So the required conditions are satisfied and therefore the series converges. Notice the difference a sign or two makes – if all the signs are positive, then we have the harmonic series, which we know diverges. 431
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
D’Alembert’s ratio test Lest, as an engineer, you doubt the relevance of all this pure mathematics to your studies, a few words about Jean Le Rond D’Alembert (1717–1783). Thought to be the illegitimate son of a Parisian noble who paid for his education, he was found as a baby on the steps of the church of St Jean Le Rond. He is most famous for his work in the field of dynamics (d’Alembert’s Principle) where he made great contributions to applying Newton’s Laws to the motion of complicated systems of planets. In this he helped lay the foundations for the approximation methods now used routinely in the analysis of complex mechanical systems occurring in all aspects of engineering. His convergence test described here is just one small example of the sorts of mathematical tool one needs to apply and justify such approximation methods. This useful test, the d’Alembert ratio test, deals with the positive values of the ratio of successive terms. For the series S = u1 + u2 + · · · + un + · · · un+1 =l lim n→∞ un
let
Then the series is divergent if l > 1 convergent if l < 1 and if l = 1 the test fails and we have to find some other test, for example, the comparison test. un+1 gives the We can see roughly why the ratio test works. We note that limn→∞ un behaviour of the ‘last terms of the series’ – after a large number of terms the series will have terms un , un+1 . . . which we can compare with a geometric series with common ratio un+1 u . If the common ratio is less than 1 the series will converge, otherwise it will diverge n (unless possibly it is equal to 1, in which case further investigation is needed).
Problem 14.14 Examine the convergence of the following series by the ratio test: 1 1 1 Y Y Y··· 2! 3! 4! 1 1 1 1 (iii) 1 Y 2 Y 2 Y 2 Y 2 Y · · · 2 3 4 5 (i) 1 Y
(i) We have un = So
432
1 , n!
un+1 =
(ii) 1 Y
2 22 23 24 25 Y Y Y Y Y··· 1 2! 3! 4! 5!
1 (n + 1)!
un+1 1 = lim lim n! = 0 < 1 n→∞ un n→∞ (n + 1)!
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
So the series converges, as we already know from Problem 14.12. It is in fact the series for e1 − 1. 23 24 25 2 22 2n + + + + · · · we have un = . (ii) For 1 + + 1 2! 3! 4! 5! n! So n+1 un+1 2 1 n! =0<1 lim = lim = lim 2 n→∞ un n→∞ (n + 1)! 2n n→∞ n + 1 Therefore the series converges. 1 1 1 1 (iii) For the series 1 + 2 + 2 + 2 + 2 + · · · we have 2 3 4 5 un+1 1 2 lim = lim n =1 n→∞ un n→∞ (n + 1)2 So in this case the ratio test is inconclusive. However, it is possible to extend the method used for the harmonic series to prove that the above series converges and in fact more generally, the series 1+
1 1 1 1 + p + p + p +··· 2p 3 4 5
converges if p > 1 and diverges if p ≤ 1. This series provides a good standard series for use in a comparison test.
Absolute convergence The infinite series u1 + u2 + u3 + · · · is said to be absolutely convergent if the corresponding series of positive terms |u1 | + |u2 | + |u3 | + · · · is convergent. If the series u1 + u2 + u3 + · · · is convergent, but the series |u1 | + |u2 | + |u3 | + · · · is divergent, we say the series is conditionally convergent. For example: 1− 1−
1 2
+
1 1 + 2 − · · · is absolutely convergent (see Problem 14.14(iii)). 22 3 1 3
−
1 4
+ · · · is conditionally convergent (by the harmonic series).
The real power of absolute convergence comes in when we consider infinite power series. If a power series in x is absolutely convergent, then we can differentiate or integrate it with respect to x – term by term, which may not be possible otherwise.
Convergence testing summary Below we summarise a systematic approach to testing the convergence of a series – not foolproof, but a good start. When testing the series: S = u1 + u2 + u3 + u4 + · · · follow the steps below: (i)
Check that un → 0 as n → ∞. If un does not tend to zero then the series diverges. 433
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(ii)
Apply the ratio test: un+1 l = lim n→∞ un
if
(iii) (iv)
then the series converges if l < 1 and diverges if l > 1. If l = 1, use a comparison test with a known standard series. If the series is alternating then it is convergent if un → 0, as n → ∞.
Exercise on 14.10 Test the following series for convergence 3 2r−1 1 1 5 1 1 7 1 1 1 + + + ··· + + ··· 2 5 2 7 2 2r − 1 2 1 1 1 3 1 1 5 1 1 7 1 1 2r−1 (ii) + − + − + − + ··· + − ··· 2 3 2 5 2 7 2 2r − 1 2 1 1 1 (iii) 2 + 23 + 25 + · · · + 22n−1 + · · · 3 5 2n − 1
(i)
1 1 + 2 3
Answer (i) C
(ii) C
(iii) D
14.11 Infinite power series A series of form a0 + a1 x + a2 x 2 + a3 x 3 + · · · ➤
where the coefficients are constants, is called an infinite power series in x (107 ). Such series are used to provide useful alternative forms for functions – for example ex = 1 + x + cos x = 1 −
x3 x2 + + ··· 2! 3!
x2 x4 + − ··· 2! 4!
(x in radians)
The right-hand sides have the advantage that they can, subject to convergence, be used to evaluate the function to any required accuracy. In general such series are obviously most helpful for small values of x. We say they give approximations near to the origin x = 0 and they are also called power series about the origin, or Maclaurin’s series. If we require series that approximate a function near to some particular non–zero value of x, say x = a, then we use a Taylor series about x = a: f (x) = a0 + a1 (x − a) + a2 (x − a)2 + · · · 434
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
A Maclaurin’s series is thus just a Taylor series about the origin. Note that by changing the variable, X = x − a we can always convert a Taylor series to a Maclaurin’s series, so we will confine our attention to the latter here. The coefficients in a Maclaurin’s series can be found by a nice argument, which also illustrates the condition that a Maclaurin’s series for a function f (x) only exists if f (x) is differentiable an infinite number of times. We start with the series: f (x) = a0 + a1 x + a2 x 2 + · · · The job is to find the coefficients ar . a0 is easy, just put x = 0: a0 = f (0) We now get the a1 , a2 . . . by differentiating enough times to isolate each of them as the constant term, and then put x = 0. Thus: f (x) = a1 + 2a2 x + 3a3 x 2 + · · · so
f (0) = a1 f (x) = 2a2 + 3 × 2a3 x + · · ·
so and
f (0) = 2a2 a2 = 12 f (0) f (x) = 3 × 2a3 + · · ·
so
f (0) = 3 × 2a3
and a3 =
1 1 f (0) = f (0) 3×2 3!
You should now be able to see that in general ar =
1 (r) f (0) r!
where f (r) (0) denotes the rth derivative of f (x) at x = 0. So the Maclaurin’s series for f (x) may be written as: f (x) = f (0) + f (0)x + =
f (0) 2 f (r) (0) r x +··· + x +··· 2! r!
∞ f (r) (0)x r r=0
r!
where f (0) (0) means f (0). 435
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Problem 14.15 Obtain the Maclaurins series for the functions (i) e x
(ii) cos x
(i) ex is the easy one – it just keeps repeating on differentiation and we have f (r) (x) = ex so
for all r
f (r) (0) = e0 = 1
So the series is ex = 1 + x +
x2 x3 + + ··· 2! 3!
(ii) cos x is almost as easy: f (0) = cos 0 = 1 f (0) = − sin 0 = 0 f (0) = − cos 0 = −1 f (0) = sin 0 = 0 f (iv) (0) = cos 0 = 1 and so on, giving the series cos x = 1 −
x2 x4 + −··· 2! 4!
So far as the convergence of power series is concerned we can use tests such as the ratio test described in Section 14.10. The results of such tests will usually depend on x and so the series may only converge for certain (if any) values of x. The values of x for which the series converges is usually called the radius of convergence. For example, the binomial series for (1 − x)−1 only converges for |x| < 1. Clearly, if a series does not converge for a particular value of x, then it cannot represent a sensible function at that value.
Problem 14.16 Investigate the convergence of x2 x3 x4 (i) e x = 1 Y x Y Y Y Y··· 2! 3! 4!
(i) For 1 + x +
436
(ii) x −
x2 x4 x3 − Y Y··· 2 3 4
x3 x4 x2 xn + + + · · · we have un = and so 2! 3! 4! n! n+1 un+1 x x n! = 0 for all finite x lim = lim = lim n→∞ un n→∞ (n + 1)! x n n→∞ n + 1
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
So the ratio test tells us that this series converges for all finite x. It is, of course, the series for ex . n x x3 x4 x2 + − + · · ·, we have |un | = and so (ii) For x − 2 3 4 n n+1 un+1 nx n = lim x = |x| lim = lim n→∞ u n→∞ (n + 1) x n n→∞ n + 1 n
So by the ratio test the series is convergent if |x| < 1 and divergent if |x| > 1. If |x| = 1 the ratio test is inconclusive and we have to consider this case separately. There are two cases to consider, x = 1 and x = −1. If x = 1 the series is S =1−
1 2
+
1 3
−
1 4
+···
and this is an alternating series with decreasing terms that tend to zero, and so it converges. If x = −1: S = −1 −
1 2
−
1 3
−
1 4
+ ···
and this is the negative of the harmonic series and so diverges. Thus we can summarize our results: x−
x2 x3 + −··· 2 3
converges if −1 < x ≤ 1 and diverges if x > 1 or x ≤ −1. This is in fact the series for log(1 + x). Note that the ratio test ensures absolute convergence, since it involves taking the modulus of the term of the series. Thus the series for tan−1 x (see Exercise on 14.11) is absolutely convergent for x 2 < 1 and in particular can be differentiated term by term to give 1 = 1 − x2 + x4 − x6 + · · · 1 + x2 ➤
which can be checked by the binomial theorem (71
).
Exercise on 14.11 Derive the series tan−1 x = x − its convergence.
x3 x 2n−1 x5 x7 + − + · · · + (−1)n+1 + · · · and discuss 3 5 7 2n − 1
Answer The Maclaurin’s series for tan−1 x is valid for −1 ≤ x ≤ 1. 437
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
14.12 Reinforcement 1. (i) Find the values of the function (3x + 1)/x when x has the values 10, 100, 1000, 1,000,000. (ii) What limit does the function approach as x becomes infinite? x2 − 4 x→2 x 2 − 2x 4x 2 + x − 1 3. Find lim x→∞ 3x 2 + 2x + 1 4. The distance fallen by a particle from rest is given by s = 16t 2 m. Representing an increase in time by δt and the corresponding increase in s by δs, find an expression for δs in terms of δt and hence find δs/δt. Using this result find the average velocity for the following intervals: 2. Find lim
(i) 2 secs. to 2.2 secs.
(ii) 2 secs. to 2.1 secs.
(iii) 2 secs. to 2.01 secs.
(iv) 2 secs. to 2.001 secs.
From these results infer the velocity at the end of 2 secs. 5. Which of the following functions exist at the stated values of x? If the functions do not exist, find the limit of the function at the values concerned, if it exists. (x − 1)(x + 2) (x + 4)4 (i) x 2 |x=4 (ii) (iii) x=1 x−1 (x + 4) x=−4 1 x2 − 4 x2 + 1 (iv) (v) (vi) x x=0 x + 2 x=−2 x 4 + 1 x=−1 x+1 x 4 − 16 (vii) (viii) x − 1 x=1 x − 2 x=2 6. Given lim
x→0
sin x = 1 find the following limits: x
sin 2x 2x sin x 3 (iv) lim x→0 x sin x (vii) lim x→0 π − x (i) lim
x→0
sin 3x x sin αx γ (v) lim x→0 βx
(ii) lim
x→0
(iii) lim
x→0
sin αx βx
α=
0 β=
0
sin2 x x→0 x
(vi) lim
7. Which of the functions in Q5 are continuous for all x? Give any points of discontinuity and where possible give a function which is continuous everywhere and is equal to the given function away from the points of discontinuity. (x + h)3 − x 3 as h → 0. Hence find the slope of the curve y = x 3 h at the point x = 1.
8. Find the limit of
438
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
9. Write down the first four terms of the sequence whose nth term is: (iii) cos 12 nπ (iv) (1 + (−1)n )/n (ii) (n2 + 3n)/5n
√ (v) 1/ n (vi) n + sin 12 nπ (2n + 1) (vii) ar n−1 (i) n
(viii) (−1)n x 2n+1 /(2n + 1) Investigate the limits of these sequences. Hints (vii) limit depends on r (viii) limit depends on x 10. Write down the nth terms of the sequences 1 2 3 4 1 1 1 1 1 1 1 , , , ,... (ii) 0, , , , , . . . (iii) , , ,... 2 4 8 16 2 3 4 5 1.2 2.3 3.4 1 1 1 1 3 5 9 17 , , , ,... (v) −1, , − , , − ,... (iv) 2 4 8 16 2 6 24 120 x 2x 2 3x 3 x3 x5 x7 x 2x 3x 4x (vi) , , , . . . (vii) − , , − , . . . (viii) , , , ,... 2.3 3.4 4.5 3 5 7 2 3 4 5 (i)
Investigate the limits of these sequences. Hints (vi), (vii), and (viii) depend on x. 11. Evaluate the following limits: (i)
1 n→∞ n x (v) lim n→∞ n + 1
lim x 2 e−x
(ii)
x→∞
1 n→∞ n! xn (vi) lim n→∞ n + 1
(iii)
lim
n n+2 a(l − r n ) (vii) lim n→∞ l−r un+1 find l in the following cases: 12. If l = limn→∞ un (iv)
lim
n→∞
(i) un =
1 n2
(ii) un =
1 n!
(iii) un =
lim
(−1)n (x/2)n (n + 1)
13. Plot or sketch the function f (x) = 3x 3 − 4x + 5 and verify that it has a root near x = −1.5. Use the Newton–Raphson method to obtain this root to 2 decimal places. 14. Using the Newton–Raphson method find to 2 decimal places the value of (i)
√
291.7
(ii)
√ 3
3.074
Hint (i) Treat as the equation x 2 − 291.7 = 0. Similarly for (ii). 15. Find the sequence of the nth partial sums for the following series, i.e. the sequence: S1 , S2 , S3 , . . . If possible, find a formula for Sn and thus evaluate lim Sn . n→8
439
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(i) 1 +
1 1 1 1 + 3 + 4 +··· + 2 22 2 2
1 1 1 − 3 + ··· + 3 32 3 1 1 1 + + + ··· (iv) 1 + 1 + 2! 3! 4! (ii) 1 −
(iii) 1 + 3 + 5 + 7 + · · · (v) 1 +
1 1 1 + + +··· 2 3 4
16. Obtain a formula for the nth partial sum Sn for the following series and hence investigate their convergence (or otherwise). 4 4 4 + 2 + 3 +··· 3 3 3 2 3 (iii) 1 + 2 + 2 + 2 + · · · (i) 4 +
(ii) −6 − 2 + 2 + 6 + 10 + 14 + · · · x x 2 x 3 (iv) 1 + + + +··· 2 2 2
17. State, without proof, which of the following series are convergent/divergent. Write down the nth term of each series. (i) −1 + 1 − 1 + 1 − 1 + · · · (iii) (.99)2 + (.99)3 + (.99)4 + · · ·
(ii) 1.01 + (1.01)2 + (1.01)3 + · · · 1 1 1 1 (iv) + + + +··· 50 51 52 53 1 1 1 1 (vi) − + − +··· 40 50 60 70
105 104 103 + + + ··· 2 3 4 2 3 4 3 2 3 2 3 2 3 +3 +4 +· · · (vii) +2 4 4 4 4 1 2 3 4 (viii) + + + +··· (ix) 1 + (.2) + (.2)2 + (.2)3 + · · · 2 3 4 5 (v) 106 +
18. Find the nth term of the following series and test for convergence. (i) 1 + 1 + 1 + 1 + · · ·
(ii) 1 − 2 + 3 − 4 + 5 + · · ·
(iii) 1 + 2(.9) + 3(.9)2 + 4(.9)3 + · · · (v) 13 + 23 (.95) + 33 (.95)2 + · · · (vii)
1 3 5 7 − + − + ··· 2 4 6 8
1 1 (iv) 1 − √ + √ − · · · 3 2 1 3 5 (vi) + + +··· 2 4 6 1 1 3 1 5 1 7 (viii) 1 · + · + · + · + · · · 2 2 4 3 6 4 8
19. Find the range of values for x for which the following series are convergent. x3 x4 x2 + − + ··· 2 3 4 2 3 x x + +··· (iii) 1 + x + 2! 3! (v) 12 + 22 x + 32 x 2 + 42 x 3 + · · · (i) x −
(ii) 2x + (2x)2 + (2x)3 + (2x)4 + · · · (iv) 15 + 25 x + 35 x 2 + 45 x 3 + 55 x 4 + · · ·
un+1 m − n + 1 |x| and deduce that 20. For the binomial series (1 + x) show that = un n the series converges if |x| < 1 and diverges if |x| > 1 (m not a positive integer). m
440
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
3
21. Expand (1 + 2x) 2 as far as the term in x 2 . How many terms of the series would be 3
required to give (1.02) 2 correct to three decimal places? For what range of values of x is the series valid? 22. Obtain terms up to x 4 in the Maclaurin’s series for the functions (ii) ex
(i) sin 2x (iv) ln(1 + 2x)
1 1 − 3x 1 (vi) (1 + x)2
2
(iii)
(v) tan x
State the values of x for which the series are convergent.
14.13 Applications 1. Since the derivative is defined in terms of a limit, the whole of the theory of differentiation can be based on limits and their properties. While an engineer may not need to know much about the details of this theory, it is useful to have an idea of the basic principles, since limits tell us when we can, for example, approximate a derivative by a simple algebraic difference, for the purposes of numerical methods. This is important in such things as numerical solution of differential equations, which is a common task faced by the engineer. Using the limit definition of the derivative, prove the rules of differentiation: sum, product, quotient, and chain rule (see Chapter 8). 2. Show that if h is small then near to a point x = a any differentiable function, f (x), can be approximated by f (x) = f (a + h) f (a) + hf (a) This is a linear (in h) approximation to f (x) near to x = a. It is often used as a basis for numerical differentiation. It essentially replaces the curve f (x) near x = a by a portion of the tangent – Figure 14.10. y
f (a) + hf ′(a)
y = f (x )
f (a +h) f (a)
0
a
a +h
x
Figure 14.10 Linear approximation to a function.
441
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
For y = f (x) = x 2 obtain a linear approximation to f (x), and hence evaluate (1.01)2 approximately. 3. You may have heard talk of ‘chaos’ in recent years. This question, using an iterative process, gives you a simple introduction to this notion. It is based on what is called the ‘logistic map’, which is an iteration scheme given by xn+1 = Axn (1 − xn ) where A is some constant. Don’t worry where this comes from, just accept that it has a wide applicability in science and engineering and it is important to consider when it yields a convergent solution for xn – i.e. when the sequence it generates converges to a definite value as we perform the iterations, as we did in Section 14.8. It is found that this depends crucially on the value of A. Experiment with the √ iterations (15–20 should do, on calculator or computer) for the cases of A = 2, 1 + 5 and 4, with a starting value of x0 = 0.4. The case A = 4 gives a ‘chaotic’ result as you will soon discover.
14.14 Answers to reinforcement exercises 1. (i) 3.1, 3.01, 3.001, 3.000001
(ii) 3
2. 2 3. 4/3 4. δs = 32tδt + 16(δt)2 (i) 67.2 5. (i) 16 (v) −4
(ii) 65.6
(iii) 64.16
(iv) 64.016
(ii) 3
(iii) 0
(iv) limit does not exist
(vi) 1
(vii) 32
(viii) limit does not exist
6. (i) 1 (v) (α/β)γ 7.
δs = 32t + 16(δt) δt
(ii) 3
(iii) α/β
(vi) 0
(vii) 0
(i) continuous for all x (iii) discontinuous at x = −4 (v) discontinuous at x = −2 (vii) discontinuous at x = 2
64 m/sec.
(iv) 1
(ii) discontinuous at x = 1 (iv) discontinuous at x = 0 (vi) continuous for all x (viii) discontinuous at x = 1
8. 3x 2 , 3 9.
(i) 1, 2, 3, 4, (∞) (iv) 0, 1, 0,
442
1 , (0) 2
4 6 7 , 1, , , (∞) 5 5 5 1 1 1 (v) 1, √ , √ , , (0) 3 2 2
(ii)
(iii) 0, −1, 0, 1 (divergent) 2 2 2 4 1 (vi) , , , , 3 5 7 9 2
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(vii) a, ar, ar 2 , ar 3 , (divergent if |r| > 1, limit = a if r = 1, convergent to 0 if |r| < 1 and oscillating if r = −1) x7 x9 x3 x5 (viii) − , , − , , (limit = 0 if |x| < 1 and divergent otherwise) 3 5 7 9 1 n−1 1 , (1) (iii) , (0) (ii) 10. (i) n , (0) 2 n n(n + 1) (−1)n 2n + 1 , (0) , (1) (v) (iv) n 2 n! nx n (vi) , (0 if |x| = 1, divergent otherwise) (n + 1)(n + 2) x 2n+1 , (0 if |x| = 1, divergent otherwise) (vii) (−1)n 2n + 1 nx , (x) (viii) n+1 11.
(i) 0
(ii) 0 (iii) 0 (iv) 1 a if |r| < 1, divergent otherwise (vii) 1−r
12. (i) 1
(v) 0
(vi) |x|
x (iii) 2
(ii) 0
13. −1.55 14. (i) 17.08
(ii) 1.45
n−1 1 15. (i) Sn = 2 − , lim Sn = 2 n→∞ 2 n−1 1 1 3 (ii) Sn = 3− − , lim Sn = n→∞ 4 3 4
(iii) Sn = n2 , limn→∞ Sn = ∞ (iv) No simple expression for Sn , but in fact lim Sn = e n→∞
(v) No simple expression for Sn , but in fact lim Sn = ∞ n→∞
16.
17.
n (i) 6 1 − 13 (C) (ii) 2n(n − 4) (D) x n x 1− (C for |x| < 2) (iv) 1 − 2 2
(i) (−1)n
(D)
1 (D) (49 + n) n 3 (C) (vii) n2 4 (iv)
(ii) 1.01(1.01)n−1
(D)
(iii) 2n − 1 (D)
(iii) (.99)n+1
7−n
10 n n (viii) n+1 (v)
(C)
n+1
(−1) 10(n + 3)
(C)
(vi)
(D)
(ix) (.2)n−1
(C)
(C) 443
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
18.
(i) 1 (D) (−1)n+1 √ (C) (iv) n 2n − 1 (vii) (−1)n+1 2n
19. (i) |x| < 1
(ii) (−1)n+1 n
(D)
(v) n3 (.95)n−1 (C) (D)
(viii)
(ii) |x| <
2n − 1 2n2
1 2
(iii) n(.9)n−1 (C) 2n − 1 (D) (vi) 2n
(D)
(iii) all x
(iv) |x| < 1
(v) C for |x| < 1, D for |x| > 1, D for x = ±1 21. 1 + 3x + 32 x 2 + · · · , 22.
4,
|x| <
1 2
x4 + ··· (ii) 1 + x 2 + 2! 1 |x| < 3 1 1 − <x< 2 2
4 (i) 2x − x 3 All x 3 (iii) 1 + 3x + 9x 2 + 27x 3 + 81x 4 + · · ·
All x
8 (iv) 2x − 2x 2 + x 3 − 4x 4 + · · · 3 π2 1 3 (v) x + x + · · · x 2 < (You are not expected to derive this condition, 3 4 but it is obvious from the graph of tan x!) (vi) 1 − 2x + 3x 2 − 4x 3 + 5x 4 + · · ·
444
|x| < 1
15
Ordinary Differential Equations Ordinary differential equations bring together all the calculus that we have done so far in the book into one of the most powerful and useful tools of engineering mathematics. In this chapter we concentrate on the principles of the key methods, rather than the intricate details of manipulation. It helps to keep in mind the main steps of solving any differential equation: • • • •
identify the type of the differential equation by inspecting its form choose a method of solution appropriate to the type solve the equation, including any extra conditions check the solution by substituting back into the differential equation
The last point may seem tedious at times, but not only does it give you greater confidence in the solution, but it gives you essential practice in differentiation and other areas of mathematics.
Prerequisites It will be helpful if you know something about: ➤
elementary algebra such as partial fractions (62 ) the exponential function and its properties (Chapter 4) differentiation (Chapter 8) integration (Chapter 9) sines and cosines and their properties (Chapter 6) exponential form of a complex number (361 ) solving simultaneous equations (391 ) ➤
➤
• • • • • • •
In particular, it will be of greatest benefit if you know and fully understand the following results: If y = Aekx , where A and k are constants then dy = kAekx = ky dx If y = A cos kx or A sin kx then d 2y = −k 2 y d x2 These two results are fundamental to differential equations and represent protype equations of first and second order to which we already know the solutions.
445
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Objectives In this chapter you will find: • • • • • •
definitions and terminology for differential equations initial and boundary conditions direct integration and separation of variables of first order equations linear equations and integrating factors second order linear homogeneous equations – auxiliary equation second order linear inhomogeneous equations – complementary function and particular integral
Motivation You may need the material of this chapter for: • • • • •
modelling the motion of particles in mechanics modelling the time behaviour of electrical and electronic circuits the study of fluid flow modelling of chemical reactions modelling economic and financial systems and manufacturing processes
15.1 Introduction Differential equations are often introduced by talking about rates at which radioactive substances decay. All very well, but how many of us have a nice handy sample of plutonium to play with? Now, bacterial growth – plenty of that found on mouldy bread in the average student kitchen. If you can contain your queasiness long enough to take a detached view of it, that grey, dusty, inedible square of once-bread can in fact provide a ready made mini-laboratory for introducing differential equations. If you keep a record of the growth of the mould with sufficient accuracy (or, better, let somebody else do it) you will find that the rate at which the bacteria multiply at a given time is roughly proportional (14 ) to the number present at that time. Mathematically: if n is the number of bacteria present at time t, then n is a function of t, which we write n = n(t), and it satisfies ➤
dn ∝n dt or
dn = kn dt
(15.1)
where k is some constant. This is called a differential equation (DE) for the dependent variable n in terms of the independent variable t. It’s a little bit more complicated than it need be, so let’s tidy it up. 446
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Dividing by k: dn dn = =n k dt d (kt) and if we now introduce new variables: x = kt, y = n it becomes dy =y dx
(15.2)
This is a good example of mathematical modelling. By changing the mathematical variables we have tidied up the equation and reduced the problem to its simplest mathematical form. We always do this when we can. The differential equation (15.2) is about as simple as you can get for a non-trivial example. Yet it is an extremely important and basic equation. It occurs throughout the theory of DEs, and it can be used directly to solve many more complicated equations, including some of higher order (see Section 15.5).
Problem 15.1 Solve the equation (15.2) – i.e. find y as a function of x . ➤
The simplest approach is to turn the derivative upside down (235
):
dx 1 = dy y Now it is simply integration with respect to y dx 1 dy = d y = ln y + C x= dy y where C is an arbitrary constant. So ln y = x − C y = ex−C = e−C ex = Aex where A is another (positive) arbitrary constant. dy = y is y = Aex with A an arbitary constant. dx Points to note are:
So, a solution to
• • •
The DE is said to be first order because the highest derivative involved is first order. The solution contains one arbitrary constant, A, giving us an infinity of solutions. Just one arbitrary constant arose precisely because to solve a first order DE we need to integrate just once. 447
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
•
The solution obtained is, in this case, the most general solution – there are no others. To fix A we would have to specify an extra condition on y – such as its ‘initial value’ – its value at x = 0. If this is y0 then:
•
y0 = Ae0 = A, so A = y0 and the solution is y = y0 ex
Exercise on 15.1 Solve the more general equation (15.1) in the case when the initial number of bacteria is n0 = 4. If time is measured in seconds, and after 5 seconds it is found that the number of bacteria is 10, what is the value of k?
Answer n = 4ekt , k =
1 5
ln(5/2)
15.2 Definitions An ordinary differential equation (DE) for a dependent variable y in terms of an independent variable x is any equation that contains one or more derivatives of y with respect to x, and possibly x and y. The order of the highest order derivative in the equation defines the order of the DE. A DE in which the only power to which y or any of its derivatives occurs is zero or one is called a linear DE. Any other DE is said to be nonlinear. Except for some special cases nonlinear equations are very difficult to deal with. Often, particularly in engineering, they are solved by approximating them by linear equations, although there are many cases where the full nonlinearity must be confronted. Most of this chapter will be devoted to linear equations.
Problem 15.2 State the order of each DE, and state which are nonlinear. 2 dy dy = x2 (ii) Yy =x (i) dx dx (iii) (i) (ii) (iii) (iv)
is is is is
d 2y Y 4y = 0 dx 2
(iv)
d 2y Y 4y 2 = 0 dx 2
first order and linear first order and nonlinear second order and linear second order and nonlinear, because of the y 2 .
A solution of a DE for y in terms of x is any function, y = f (x), which when substituted into the equation reduces it to an identity – that is, it satisfies it identically, for all values of x (50 ). We then say f (x) satisfies the equation. In general a DE can have more than one such solution. Sometimes a single function can be found which incorporates ➤
448
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
all possible solutions of the DE – this is then referred to as the general solution. Such solutions contain one or more arbitrary constants, usually depending on the order of the DE. Any other solution than the general solution is called a particular solution. Particular solutions can often be found by guesswork (or ‘by inspection’), but general solutions are usually much harder to find. The arbitrary constant(s) occurring in the general solution can be determined by supplementing the DE by specified conditions in which y, or a sufficient number of its derivatives, is given for some particular value(s) of x. Such conditions are called initial or boundary conditions. The difference between initial and boundary conditions can be seen by considering a projectile such as a shell from a gun. Even if you don’t know the differential equation that describes its motion under gravity alone, you can perhaps appreciate that you could specify the motion completely in one of (at least) two ways: • •
Specify the position and velocity at the initial point of projection – initial conditions Specify two separate points on the trajectory – say point of projection and the furthest point reached, the landing point – boundary conditions
Problem 15.3 x3 Y 1 is a solution of Problem 15.2(i). Can you find any 3 other solutions? Show that y =
If y =
x3 dy + 1 then = x 2 and the DE is clearly satisfied. Therefore 3 dx y=
x3 + 1 is a solution 3
You may realise that in fact any function of the form y=
x3 +C 3
Where C is an arbitrary constant is also a solution, because C is knocked out by the differentiation.
Problem 15.4 Show that the following are solutions of Problem 15.2(iii): (a) y = sin 2x
(b) y = 3 cos 2x
(c) y = 2 sin 2x − cos 2x Can you suggest any more solutions? Is 2 sin x a solution? (a) Differentiating twice we have d 2y = −4 sin 2x = −4y d x2 449
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
giving the required DE d 2y + 4y = 0 d x2 (b) Similarly:
so
d 2y = −12 cos 2x = −4y d x2 d 2y + 4y = 0 d x2
i.e. this function is also a solution. (c)
d 2y = −8 sin 2x + 4 cos 2x d x2 = −4(2 sin 2x − cos 2x) = −4y and again therefore d 2y + 4y = 0 d x2
You may again realise that since both sin 2x and cos 2x are solutions of the equation, and since it is a linear equation, then any function of the form y = A cos 2x + B sin 2x where A and B are arbitrary constants is also a solution. If we try y = 2 sin x we have d 2y = −2 sin x = −y d x2 so this satisfies d 2y +y =0 d x2 which is not the required equation.
Problem 15.5 Find the general solution of Problem 15.2(i) and find particular solutions satisfying (a) y = 1 at x = 0
(b) y = 0 at x = 1
dy In Problem 15.3 we were asked to check a given solution to the equation = x 2 . Here dx we wish to actually find the most general possible solution. We can in fact directly integrate the equation in this case, remembering to add an arbitrary constant. 450
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
From
dy = x 2 we have dx x3 +C y = x2 d x + C = 3
which is the required general solution. (a) If y = 1 when x = 0 then we have: y =1=0+C
x3 so C = 1 and the required particular solution is y = +1 3 (b) y = 0 when x = 1 gives 0=
1 13 +C = +C 3 3
so C = − 13 and the required particular solution is y=
1 x3 − 1 x3 − = 3 3 3
Exercises on 15.2 1. State the order of the following differential equations. Which are nonlinear? dy = ex + 1 dx d 2y (iii) y 2 + cos x = 0 dx d 2y dy + 3y = 3x + 2 (v) −4 2 dx dx (i)
d 2y − 9y = 0 d x2 d y d 3y (iv) + 2y 2 = 1 d x d x3 (ii)
2. Verify that the following functions are each solutions of one of the equations in Q1, and match the solution to its equation. (b) ex + x + 2
(a) 2e3x (c) e3x + x + 2
3. Find the general solution of Q1(i) and the particular solution that satisfies y(0) = 1.
Answers 1. (i) 1
(ii) 2
(iii) 2
(iv) 3
(v) 2 (iii) and (iv) are nonlinear. 2. (a) 1 (ii)
(b) 1 (i)
(c) 1 (v)
3. y = ex + x + C; y = ex + x 451
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
15.3 First order equations – direct integration and separation of variables We will only consider cases where we can solve the given DE to give an equation for of the form
dy dx
dy = F (x, y) dx where F (x, y) is a ‘well behaved’ (i.e. we can do whatever we wish with it) function of x and y. The ease with which we can solve such a DE will depend on the form of F (x, y). We will build up from the simplest cases. The simplest case is an equation of the form dy = f (x) dx which can be easily ‘solved’ in principle by direct integration: y = f (x) d x + C The only difficulty here lies in actually performing the integration. Such simple equations illustrate many of the key points of DEs in general. A less trivial variation on this is an equation of the form dy = g(y) dx We can in fact turn this upside down [not a trivial matter, but permissible with care (235 )]: ➤
1 dx = dy g(y) Now this can be integrated directly, with respect to y: dy +C x= g(y) This results in principle in a solution of the form x = G(y) + C where G(y) is some function of y. We may or may not be able to solve this integrated equation for y in terms of x. If we are also given an initial condition, then we can find the value of C by substituting this in the result. 452
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Problem 15.6 Find the general solution of the DEs: dy = x cos x (i) dx
(ii)
dy = cos2 y dx
p In (ii) find the particular solution satisfying y = when x = 0. 4 Check your answers by substituting back into the equations. (i) Direct integration gives y = x cos x d x + C ➤
and the task is simply to do the integration. Integration by parts (273 y = x sin x − sin x d x + C
) gives
= x sin x + cos x + C which is the required solution, as you should check by substituting back into the DE. dy = cos2 y dx In this case, turn both sides upside down dx 1 = = sec2 y dy cos2 y
Integrating: x=
sec2 y d y + C = tan y + C
This is the implicit form of the solution (91
➤
(ii)
). For the explicit form we solve for y:
tan y = x − C So, as you can check in the DE, the general solution is y = tan−1 (x − C) If y =
π when x = 0 then we have 4 y=
π = tan−1 (−C) 4
from which C = −1 and the required solution is y = tan−1 (x + 1) 453
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Note that because of the multi-valued nature of the inverse tan function we have to restrict the region on which the DE is defined in order get a unique solution. The previous cases dealt with either dy = f (x) dx
dy = g(y) dx
or
It is also quite easy to treat equations of the form dy = f (x)g(y) dx These are called variables separable because the expression for d y/d x can be separated into a product of separate functions of x and y alone. In this case we literally move all y’s to one side and x’s to the other: dy = f (x) d x g(y) hence, integrating both sides with respect to their respective variables
dy = g(y)
f (x) d x + C
Of course the left-hand side is now an integral with respect to y, the right-hand side with respect to x. Note that we only need one arbitrary constant. Again, our only real problem arises in actually doing the integrations.
Problem 15.7 Solve the initial value problems dy = xy y = 1 when x = 0 dx dy (ii) = e 2x Yy y = 0 when x = 0 dx (i)
(i) For
dy = xy we separate to give dx dy = x dx y
so
dy = y
x dx + C
and integrating both sides with respect to their respective variables gives ln y = 454
x2 +C 2
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
STOP AND THINK! The next step is one where many beginners slip up. To solve for y we ‘take the exponential’ of both sides (131 ): ➤
y = eln y = e
x2 2 +C
NOT ‘y = e
x2 2
+ eC ’ ➤
We now use (129 ) – AGAIN BE CAREFUL, MANY BEGINNERS MAKE MISTAKES HERE TOO. eA+B = eA eB to obtain y=e
x2 2 eC
= Ae
x2 2
where we have replaced eC by A, another (positive) arbitrary constant. Given that y = 1 when x = 0 we have 1 = Ae0 = A so the required solution is (again, check it in the DE) y = ex (ii)
2
/2
dy = e2x+y = e2x ey and so, separating the variables dx e−y d y = e2x d x Integrating both sides gives
e
−y
dy =
or −e−y =
e2x d x + C
e2x +C 2
We might as well find C now −e0 =
e0 +C 2 455
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
or since e0 = 1, C = − 32 and the solution can be written e−y =
3 e2x − 2 2
Note that since e−y must be positive, we are here restricted to e2x ≤ 3. Solving for y gives 3 e2x −y = ln − 2 2 2 e2x y = − ln − 3 2
or
The form of variables separable equations is rather restrictive. Even such a simple function as F (x, y) = x + y wouldn’t fit into it. However, there are many types of equation that may be reduced to variables separable by some kind of substitution. Consider, for example the equation dy x+y = = F (x, y) dx x where F (x, y) is of the form F (x, y) = f
y
x
Such an equation is said to be homogeneous (not to be confused with later use of this y term). If we change our variables from x, y to x and v = we have y = xv and so x dv dy =v+x dx dx and the equation becomes dy dv =v+x = f (v) dx dx or x
dv = f (v) − v dx
This is separable and its solution is dv dx = + C = ln x + C f (v) − v x After evaluating the integral on the left we can then replace v by y/x to get the solution in terms of x and y. 456
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Problem 15.8 By substituting y = xv find the general solution of the DE x Yy dy = dx x We note that y y dy = 1 + = a function of dx x x and so this equation is homogeneous. So we substitute y = xv as suggested. We have dy d (xv) dv = =v+x dx dx dx dy y = 1+ =1+v dx x
But So
x
dv =1 dx
or, separating the variables and integrating dx dv = + C = ln x + C x Hence
v=
y = ln x + C x
and therefore y = x ln x + Cx Remember to multiply the C by x also!
Exercise on 15.3 Solve the differential equations (i) y = sin x (iii) y = x 2 y
(ii) y = y 2 (iv) xy = 2x + y
In (i), (ii), (iii) give the particular solutions satisfying the condition y(0) = 1. In (iv) give the solution satisfying y(1) = 0.
Answer (i) y = C − cos x, y = 2 − cos x 3 3 x x , y = exp (iii) y = C exp 3 3
(ii) y = −
1 1 ,y= x+C 1−x
(iv) y = 2x ln x + Cx, y = 2x ln x 457
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
15.4 Linear equations and integrating factors This class of DEs is absolutely fundamental. Such equations occur throughout science and engineering. A linear equation of the first order is one that can be put in the form dy + P (x)y = Q(x) dx
(15.3)
where P (x) and Q(x) are functions of x. It is called ‘linear’ because the non-derivative part is linear in the dependent variable y: dy = −P (x)y + Q(x) dx
(cf: ay + b)
This is key to the method of solution – if any other power of y but 0 or 1 occurred then what we are about to do would not be possible. We notice that the left-hand side of equation (15.3) looks very much like the derivative of a product: dy + Py dx compared to say d (uy) dy du =u + y dx dx dx The resemblance can be improved if we multiply through by a function of x, I = I (x), yet to be determined (called an integrating factor because it enables us to integrate the equation). So, compare I with
dy + IPy = IQ dx
dy dI d (Iy) = I + y dx dx dx
Now I Q is a function of x alone, with no y. It can therefore be integrated with respect to x. On the other hand, if we now take I to be such that dI = IP dx then I
dy dy dI + IPy = I + y dx dx dx d (Iy) = dx
and we have d (Iy) = IQ dx 458
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
This can now be solved by direct integration: Iy = I Q d x + C and we finally get the solution 1 y= IQ dx + C I 1 C = IQ dx + I I Thus, the purpose of multiplying by the integrating factor is to convert the left-hand side to the derivative of a product so that we can integrate the resulting equation directly. But all this depends on finding I from the equation dI = IP dx This equation is separable:
so
dI = P dx I dI = P (x) d x I
Note that we needn’t bother to introduce an arbitrary constant here – you can if you like, but it will simply cancel out in the end. Thus, for I we obtain ln I = P (x) d x So the integrating factor is given by I = e P (x) dx I don’t encourage you to remember the above results, either for I or the solution for y. Rather, you should try to remember how to reproduce the above arguments to derive solutions directly yourself. This may seem daunting, but with plenty of practice it is not too bad, and is a very useful skill. To help with this the following problems work through the procedure step by step. It also illustrates that you can often short cut the process of finding the integrating factor by rearranging the left-hand side of the original equation to be the derivative of a product ‘by inspection’.
Problem 15.9 Convert the DE xy Y y = x 2 to standard linear form. 459
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Dividing by x to make the coefficient of the derivative unity gives 1 dy + y=x dx x
Problem 15.10 Write down the DE satisfied by the integrating factor. Multiplying through by an, as yet unknown, integrating factor, I , gives I Now
dy I + y = xI dx x
d (Iy) dy I =I + y dx dx x
will be satisfied if I dI = dx x which is the required equation for the integrating factor. Note that it is separable.
Problem 15.11 Determine the integrating factor I . Separating the variables of the last equation we have dI dx = I x or, integrating through dI dx = I x Performing the integrations gives ln I = ln x So in this case we have I =x for the integrating factor. Note that we don’t need to include an arbitrary constant at this stage.
Problem 15.12 Solve the original equation. Multiplying the linear form by the integrating factor x we now have x 460
dy + y = x2 dx
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(back where we started, but bear with me on this – we’ll come back to it later). We know that the left-hand side must now be the derivative of a product, namely Iy, because that is precisely why we chose the integrating factor: d d (Iy) = (xy) = x 2 dx dx Integrating both sides finally gives xy =
x3 +C 3
(Now we introduce the arbitrary constant), so the general solution is y=
C x2 + 3 x
Problem 15.13 Repeat the solution but dispense with the integrating factor and solve the original equation directly. We ended up, in Problem 15.12, after finding the integrating factor, with the original equation: x
dy + y = x2 dx
In fact, in this case, the IF is really using a sledgehammer to crack a nut. Simply notice that by reversing the product rule x
dy d +y ≡ (xy) dx dx
and we have d (xy) = x 2 dx which is where we got to after finding the integrating factor. We are therefore led directly to the result x3 +C xy = 3 In general of course it may not be quite so easy to spot the required derivative of a product, and we may need to go through the full procedure of finding the IF, but try to avoid it when you can. You can in any case see that the better developed your skills of differentiation, the easier it will be to spot such short cuts.
Exercise on 15.4 Find integrating factors for the following equations and hence obtain the general solution (i) xy + y = x
(ii) xy − 2y = x 3 + 2
Can you dispense with the integrating factor, by finding a derivative of a product? 461
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Answer (i) y =
C x + 2 x
(ii) y = x 3 + Cx 2 − 1
15.5 Second order linear homogeneous differential equations If you found the previous section difficult then you may be approaching this section with some trepidation – surely second order will be worse than first order? Relax. We only consider a simple, but extremely important, type of second order equation and it turns out that this is relatively straightforward to solve. The particular type of linear second order equation that we will consider is one of the form a
d 2y dy +b + cy = f (x) 2 dx dx
(15.4)
where a, b, c are constants (and a = 0, otherwise it wouldn’t be second order!). For such equations the basic tools that you need are simply solution of quadratics (including complex roots) and solution of simultaneous linear equations. Equation (15.4) occurs everywhere in science and engineering, most notably in the modelling of vibrating springs in a resisting medium, and in electrical circuits. We need some terminology. The equation: a
d 2y dy + cy = 0 +b 2 dx dx
(15.5)
is the associated homogeneous equation, while equation (15.4), with f (x) = 0, is the inhomogeneous form. The general solution to the homogeneous equation is called the complementary function, while any solution to equation (15.4) is called a particular integral. The general solution of equation (15.4) is the sum of the complementary function and a particular integral. For example the differential equation d 2y dy +3 + 2y = 2ex d x2 dx is inhomogeneous, and the corresponding homogeneous form is dy d 2y +3 + 2y = 0 2 dx dx The general solution of this homogeneous equation is the complementary function of the first, inhomogeneous, equation. In this case it happens to be (see below) yc = Ae−x + Be−2x where A and B are two arbitrary constants. 462
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Any particular solution of the inhomogeneous equation is a particular integral of the equation. By substituting it in the equation you should check that a particular integral in this case is yp = 13 ex The general solution of the inhomogeneous equation is thus y = yc + yp = Ae−x + Be−2x + 13 ex We therefore have two jobs – to find the complementary function and to find a particular integral. We first concentrate on finding the complementary function and look for general solutions of equations of the form of equation (15.5). There is an additional result which helps us here: If y1 and y2 are two solutions of the homogeneous linear equation a
dy d 2y +b + cy = 0 d x2 dx
then y1 + y2 is also a solution. Thus, the sum (or any other linear combination) of two solutions is also a solution. To see this important result in its most general form let y1 , y2 be two solutions of the DE and consider the linear combination y = αy1 + βy2 . Substituting this in the DE gives a
d 2 (αy1 + βy2 ) d 2y dy d (αy1 + βy2 ) + cy = a + c(αy1 + βy2 ) + b +b 2 2 dx dx dx dx 2 2 d y1 d y1 d y2 d y2 =α a 2 +b + cy1 + β a 2 + b + cy2 dx dx dx dx = α(0) + β(0) = 0
So the general linear combination y = αy1 + βy2 is also a solution. In fact, finding the complementary function, i.e. the general solution to equation (15.5), is not as difficult as might be thought. Note that if we put a = 0 then we are back to the simple equation b
dy + cy = 0 dx ➤
and we know that this has an exponential solution (447 ). This encourages us to try a similar exponential function for the second order equation. We therefore take a trial solution y = eλx where λ is some constant parameter to be determined. Substituting into the equation: y = λeλx , y = λ2 eλx gives
(aλ2 + bλ + c)eλx = 0 463
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Since eλx = 0 we have aλ2 + bλ + c = 0 So λ satisfies a quadratic equation with the same coefficients as the DE itself, ay + by + cy. This equation in λ is called the auxiliary or characteristic equation (AE). As with all quadratics with real coefficients (66 ) there are three distinct types of solution: ➤
• • •
Real distinct roots Real equal roots Complex conjugate roots
Each leads to a different type of solution to the DE. In each case we get two distinct types of solution, and the general solution is formed from these. Below we summarise the forms of these solutions. In each case you should verify the stated solutions by substituting in the equations. The problems which follow will confirm the results in particular cases.
Roots of AE real and distinct α1 , α2 This gives two solutions e α1 x , e α2 x and the general solution is then y = Aeα1 x + Beα2 x
Roots real and equal, α In this case two distinct solutions can be found: eαx , xeαx and the general solution is then y = (Ax + B)eαx
Roots complex, α ± jβ This gives two solutions e(α+jβ)x , e(α−jβ)x giving a general solution y = Ae(α+jβ)x + Be(α−jβ)x = eαx (Aejβx + Be−jβx )
ejβx = cos βx + j sin βx e−jβx = cos βx − j sin βx y = eαx ((A + B) cos βx + (A − j B) sin βx) 464
➤
The imaginary j is not always welcome here, so we use Euler’s formula (361 the solution into real form
) to put
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
or with
C = A + B and D = A − j B y = eαx (C cos βx + D sin βx)
Note: Although we usually prefer such a real form of the solution, particularly in actual physical applications, there are times when the complex exponential form is in fact most convenient – for example when we are using phasors in alternating current electrical work. We now work through a number of problems to illustrate the above results. As always, you will benefit greatly by checking the solutions obtained by substituting back into the DE.
Problem 15.14 Find values of l for which y = e lx satisfies the DE y Y 3y Y 2y = 0 and hence determine its general solution. Find the particular solution satisfying the initial conditions y.0/ = 0, y .0/ = 1. We have y = λeλx , y = λ2 eλx Substituting into the equation gives (λ2 + 3λ + 2)eλx = 0 or the auxiliary equation: λ2 + 3λ + 2 = 0 (λ + 1)(λ + 2) = 0 So
λ = −1, −2
We therefore have two solutions to the DE e−x , e−2x The general solution is then y = Ae−x + Be−2x containing two arbitrary constants A, B, as we might expect for a second order DE. To find d (eax ) them we apply the given initial conditions (remember that e0 = 1 and = aeax ): dx y(0) = A + B = 0 y (0) = −A − 2B = 1 465
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Solving these two equations gives A = 1, B = −1 and the particular solution satisfying the initial conditions is y = e−x − e−2x
Problem 15.15 Find the general solution of the DE y − 6y Y 9y = 0 Substituting y = eλx gives, in this case, the AE λ2 − 6λ + 9 = 0 or
(λ − 3)2 = 0
We therefore have two equal roots, λ = 3 (rather than a single root of λ = 3!). One solution of the DE is therefore obviously y = e3x But we expect two. On such occasions we try to guess other, similar, types of solution. While there is a full justification for our guesswork in the advanced theory of differential equations here I ask you to simply accept and confirm for yourself that the simplest guess that works is y = xe3x This gives y = (3x + 1)e3x y = 3e3x + 3(3x + 1)e3x = (9x + 6)e3x Substituting in the equation gives (9x + 6)e3x − 6(3x + 1)e3x + 9xe3x ≡ 0 so this is indeed a solution. The general solution in this case is therefore y = Axe3x + Be3x = (Ax + B)e3x
Problem 15.16 Find the general solution of the equation y Y 2y Y 2y = 0 466
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
The AE is λ2 + 2λ + 2 = 0 which has the complex roots λ = −1 ± j This gives the two solutions e(−1+j )x , e(−1−j )x and the general solution y = e−x (Aej x + Be−j x ) ➤
Now, using Euler’s formula (361
)
e±j x = cos x ± j sin x we get
y = e−x (A(cos x + j sin x) + B(cos x − j sin x)) = e−x ((A + B) cos x + j (A − B) sin x) = e−x (C cos x + D sin x)
on writing C = A + B and D = j (A − B). In this ‘real form’ the j is hidden and for physical problems where y represents a real quantity, such as distance or current, never resurfaces. However, as noted previously the complex exponential form is sometimes useful in applications such as alternating current theory. In the above list of solutions we essentially have just three distinct types of functions: eαx , xeαx , and eαx sin βx. Each of these functions has a particular sort of behaviour which typifies the class to which it belongs, and the type of physical system it represents. 1.
eαx gives an increasing (α > 0) or decaying (α < 0) exponential function: e ax a < 0
y
e ax a > 0
x
Figure 15.1 The function eαx .
2.
3.
xeαx gives a similar type of function, but with a kink in it, and it also passes through the origin. Examples of this function were sketched in Chapter 10. eαx sin βx gives either a simple oscillating wave (α = 0), or a sinusoidal wave with amplitude that decreases (α < 0) or increases (α > 0) as 467
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
y
a=0
x
y a<0
x
Figure 15.2 Undamped and damped oscillations.
x increases. This could represent an oscillating system in a resisting medium for example.
Exercises on 15.5 1. Solve the following initial value problems: (i) y − y − 6y = 0
y(0) = 1
y (0) = 0
(ii) 2y + y − 10y = 0
y(0) = 0
y (0) = 1
2. Solve the following boundary value problems: (i) y + 4y + 13y = 0
(ii) y − 4y + 4y = 0
y(0) = 0 y(0) = 0
π
=1 2 y(1) = 1 y
Answers 1. (i)
2 3x 3 −2x e + e 5 5
2. (i) −eπ−2x sin 3x
(ii)
2 2x 2 −5x/2 e − e 9 9
(ii) xe2(x−1)
15.6 The inhomogeneous equation We now turn to the solution of the full inhomogeneous equation a
dy d 2y +b + cy = f (x) 2 dx dx
We now know the general form of the CF, so we just need to find integrals (PI). These depend on the form of f (x). In fact, in many cases of the PI mirrors precisely that of the function f (x) itself. The general is to make a trial solution which has the same form as f (x). This 468
particular the form approach does not
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
always work, but is a good start, and we will come back to exceptional cases later. This approach is called the method of undetermined coefficients. It in fact works for equations of any order, provided the coefficients are constant, as we are assuming here. Table 15.1 f(x)
Trial solution
Polynomial of degree n
Polynomial of degree n:
f (x) = an x n + an−1 x n−1 + · · ·
yp = Lx n + Mx n−1 + · · ·
Exponential:
Similar exponential
f (x) =
yp = Lekx
ekx
Sinusoidal function: f (x) = sin ωx or cos ωx
Linear combination of similar sinusoidals: yp = L cos ωx + M sin ωx
‘Damped’ sinusoidal:
Linear combination of similar damped sinusoidals yp = Lekx cos ωx + Mekx sin ωx
f (x) = ekx cos ωx or ekx sin ωx
The ‘forcing functions’ f (x) given in Table 15.1 cover most cases of physical interest at the elementary level. They can in fact be used for much more complicated functions, f (x), using linearity and the techniques of Fourier analysis (➤ 517) for example, so they are in fact more general than you might think. We will give an example of each of them before discussing the complications of exceptional cases.
Problem 15.17 Find a particular integral for the equation y Y 2y Y y = x Y 2 Hence determine the general solution. Find the particular solution satisfying the initial conditions y.0/ = 0, y .0/ = 0. For reasons that become clear later, we will always find the CF first. In this case you can treat it as an exercise to check that yc = (Ax + B)e−x Now for the PI we note that f (x) is in this case a first degree polynomial – i.e. a linear function. We therefore try a solution of the same form: yp = Lx + M, so yp = L, yp = 0 Substituting in the equation gives 0 + 2L + Lx + M = Lx + (2L + M) ≡ x + 2
L=1
➤
Solving this identity (50
) gives
2L + M = 2 469
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
so M = 0. Thus, the PI is yp = x, as you can (should!) check by substituting back into the equation: y + 2y + y = 0 + 2(1) + x = x + 2 The GS to the inhomogeneous equation is therefore y = (Ax + B)e−x + x Applying the initial conditions we have (remember e0 = 1) y(0) = B = 0 y (0) = A + 1 = 0 so A = −1, B = 0 and therefore y = x − xe−x = x(1 − e−x ) NB: When applying the initial or boundary conditions to solutions of inhomogeneous equations you must apply them to the full general solution – complementary function plus particular integral, as we have done here. It is a common mistake for beginners to apply such conditions simply to the complementary function.
Problem 15.18 Find a particular integral for the equation y Y 3y Y 2y = 3e 2x Hence determine the general solution. The CF is yc = Ae−x + Be−2x (see Problem 15.14). For the PI we try a solution similar to the right-hand side: yp = Le2x ,
yp = 2Le2x ,
yp = 4Le2x
Substituting in the equation gives (4L + 6L + 2L)e2x ≡ 12Le2x = 3e2x so
L=
1 4
and the PI is yp = 14 e2x
(check this back in the equation). The full GS is therefore y = Ae−x + Be−2x + 14 e2x
Problem 15.19 Find the general solution to the equation y Y 2y Y 2y = 2 cos 3x The CF is yc = e−x (A cos x + B sin x), from Problem 15.16. 470
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
For the PI you might be tempted to try yp = L cos 3x, but in fact we need both cos 3x and sin 3x terms because of the first order derivative on the left-hand side. We therefore try yp = L cos 3x + M sin 3x yp = −3L sin 3x + 3M cos 3x yp = −9L cos 3x − 9M sin 3x substituting in the DE gives, on collecting cos and sin terms: (−7L + 6M) cos 3x + (−6L − 7M) sin 3x ≡ 2 cos 3x So
−6L − 7M = 0 −7L + 6M = 2
whence L=−
14 , 85
M=
12 85
and the PI is yp = −
14 12 cos 3x + sin 3x 85 85
and the GS is y = e−x (A cos x + B sin x) −
14 12 cos 3x + sin 3x 85 85
(again, check back in the equation).
Problem 15.20 Find the general solution to the equation y Y 4y = e −x cos x The CF is
yc = A cos 2x + B sin 2x
For the PI choose yp = Le−x cos x + Me−x sin x ➤
Then, as an exercise in differentiation by the product rule (234
), you can check that
yp = e−x (2L sin x − 2M cos x) Substituting in the equation gives, after simplification e−x [(4L − 2M) cos x + (2L + 4M) sin x] ≡ e−x cos x 471
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Or, cancelling e−x and equating coefficients of cos x and sin x 4L − 2M = 1 2L + 4M = 0 These give L=
1 , 5
M=−
1 10
1 −x 1 So finally, the GS is y = A cos 2x + B sin 2x + e−x cos x − e sin x 5 10 Two points to note: •
•
The above method of undetermined coefficients is not the only method – there are others that are more powerful in some cases – Doperators, complex variable methods, Laplace transform, etc. But it is systematic and routine. It doesn’t always work in such a straightforward way.
To see how the method can break down, and what to do about it, try the following problem.
Problem 15.21 Investigate the particular integral for the following equation y − y − 2y = e −x Trying y = Le−x for a PI, as we might be tempted, gives ‘0 = e−x ’ and clearly does not work. In fact in this case the reason a trial function similar to the righthand side won’t work is that it is already a solution of the corresponding homogeneous equation – that is, it is part of the complementary function. This is when the method breaks down – when the right-hand side is part of the CF. And that’s why we always evaluate the CF first, to check whether it does contain the right-hand side. In this case the CF is the GS of y − y − 2y = 0 which you can check is y = Ae−x + Be2x . The right-hand side is indeed included in the CF. So, what do we do in such cases? As usual in mathematics we do as little as possible – that is we look for alternatives that are as close to what we have as possible. Remember that in the case of equal roots for the auxiliary equation, when looking at the CF, we tried – successfully – replacing eαx by xeαx (466 )? Perhaps a similar strategy works this time? ➤
Problem 15.22 Try yp = Lxe −x in the differential equation of Problem 15.21, where L is to be determined. 472
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
We have yp − yp − 2yp = L(x − 2)e−x − L(1 − x)e−x − 2Lxe−x = −3Le−x = the RHS = e−x So Lxe−x is indeed a solution of the DE if L = − 13 and therefore a particular solution is yp = − 13 xe−x . Now, you may feel uncomfortable with all this guesswork. Don’t worry, it can all be put on a formal basis and derived rigorously, but we do not have the space to go into it here. So, we will simply collect all the necessary results together and state them without proof, for your reference. The method to be described actually works for arbitrary order linear equations with constant coefficients and so we will formulate it in quite general terms. To specialise to the second order case we have been considering so far just take n = 2. However, you may meet the general case of higher order n in, for example, control systems. So, consider the general nth order linear differential equation with constant coefficients dry (y (r) (x) denotes the rth order derivative ): d xr an y (n) (x) + an−1 y (n−1) (x) + · · · + a1 y (1) (x) + a0 y(x) = f (x) Then in the following cases: (1)
f (x) an mth degree polynomial (a) If a0 = 0 – i.e. the equation contains a non-derivative term, then we choose a particular solution of the form yp = Lm x m + Lm−1 x m−1 + · · · + L1 x + L0 (b)
If a0 = 0 so that there is no non-derivative term in the differential equation and if the lowest order of derivative is r, then choose yp = Lm x m+r + Lm−1 x m+r−1 + · · · + L1 x r+1 + L0 x r
(2)
f (x) of the form sin ωx or cos ωx (a) If sin ωx or cos ωx do not occur in the complementary function, then take a particular solution of the form yp = L cos ωx + M sin ωx (b)
If the complementary function contains terms of the form x r sin ωx or x r cos ωx for r = 0, 1, . . . , m, take yp to be the form Lx m+1 cos ωx + Mx m+1 sin ωx
(3)
f (x) an exponential function, f (x) = ekx (a) If ekx is not contained in the complementary function, take yp (x) to be of the form yp = Lekx 473
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(b)
If the complementary function contains terms ekx , xekx , . . . , x m ekx , take yp (x) to be of the form yp = Lx m+1 ekx
(4)
f (x) of the form ekx cos ωx or ekx sin ωx (a) If these terms are not contained in the complementary function, then simply take yp (x) to be of the form yp = Lekx cos ωx + Mekx sin ωx (b)
If terms of the form x r ekx cos ωx or x r ekx sin ωx, for r = 0, 1, . . . , m, are contained in the complementary functions, then include terms of the form Lx m+1 ekx cos ωx + Mx m+1 ekx sin ωx in yp .
Some obvious patterns may be seen in the above particular integrals. Essentially, if the complementary function does not contain terms identical to the inhomogeneous term, then the particular integral looks much the same as the inhomogeneous term. However, if the inhomogeneous term occurs in the complementary function, then we must modify the particular integral and this is done by multiplying by an appropriate power of x. In general, by superposition of terms we see that we can treat particular integrals for expressions of the form f (x) = P (x)ekx cos ωx + Q(x)ekx sin ωx where P (x), Q(x) are polynomials in x. This essentially comes about because any order derivative of such an expression results in an expression of the same form. Having found the particular integral, we can find the general solution by adding it to the complementary function. Note again that when applying boundary or initial conditions these must always be applied to the full solution – complementary function plus particular integral – and not simply to the complementary function alone.
Exercises on 15.6 1. Find the solutions to each of the following second order equations, with the specified conditions. Remember to apply the conditions to the full solution – CF Y PI. (i) y + 4y + 3y = 2ex
y(0) = 0
(ii) y + 4y = x + 1
y(0) = 0
(iii) y + y = sin 2x
y(0) = 0
y (0) = 1 π y = 14 4 y (0) = 0
2. Solve the initial value problem y − 4y + 3y = 3x 474
y(0) = 0
y (0) = 0
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Answers 1 x (e − e−3x ) 4 2 1 (iii) sin x − sin 2x 3 3
1. (i)
2.
1 π 1 1 (ii) − cos 2x − sin 2x + x + 4 16 4 4
4 1 3x 3 x e − e +x+ 6 2 3
15.7 Reinforcement In all these exercises check your results by substituting back to the equation – the practice will do you good! 1. Radioactive material decays at a rate proportional to the amount present. Construct and solve a mathematical model giving the amount of material remaining after a given time. 2. Solve the following differential equations subject to the conditions given: (i) y = x
y(0) = 1
(ii) y = cos x
y(π) = 0
y(1) = 0
(iii) xy = x + 1 2
(iv) y = 4
y(0) = 1
y (0) = 2
(v) y = x 2 − 1
y(0) = 0
y(2) = 1
y(0) = 0
y(π) = 1
(vi) y = cos x
(vii) y = 3y
2
(viii) y = sec y
y(0) = 1 y(0) = π
3. Find the general solution of the differential equations y = f (x, y) where f (x, y) is given by: (i) xy 2 (iv) ex+y 2x (vii) 5 − sin y (x) y(x + 2y)/[x(2x + y)]
y x (v) 10 − 2y
(ii)
(viii) y ln x
(iii) x sec y (vi) e2x−3y (ix) (x − y)/x
(xi) 3(y 2 − 3y + 2)
4. Solve the equations: (i) y = e2x − y (iv) xy = 3y − 2x (vi) (x − 1)y = 3x 2 − y
(ii) y + 2y = 3ex
(iii) y + xy = x 3
(v) (x 2 − 1)y + 2y = 0 (vii) xy − 2y = x 3 e−2x 475
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
5. Solve the following initial value problems (i) y − 3y = e5x
2
2
(ii) xy − 2y = x
y(0) = 0 y(1) = 2
(iii) xy + 2y = x sin x (iv) xy + 3y = 2 x
y(1) = 0 y(π) = 0
6. Solve the following second order equations (i) y + y − 2y = 0
(ii) y − 4y + 4y = 0
(iii) y + 4y + 5y = 0
(iv) y + 4y = 0
(v) y − 9y = 0
(vi) y + y = 0
7. Obtain the general solution of the inhomogeneous equations formed by adding the following right-hand sides to each of the equations of Q6. (b) x + 1
(a) 2
(c) e−2x
(d) 2 sin x 8. Solve the initial value problem y(0) = 0, y (0) = 0 for each of the equations solved in Q7(a). If you feel really keen press on with the other questions – you can check your answers by substituting into the equation. 9. Solve the boundary value problem y(0) = y(1) = 0 for each of the equations solved in Q7(a). Again press on with the rest of Q7 if you need more practice.
15.8 Applications There are a number of well known applications of first order equations which provide classic prototypes for mathematical modelling. These mainly rely on the interpretation of d y/d t as a rate of change of a function y with respect to time t. In everyday life there are many examples of the importance of rates of change – speed of moving particles, growth and decay of populations and materials, heat flow, fluid flow, and so on. In each case we can construct models of varying degrees of sophistication to describe given situations. 1. The rate at which a radioactive substance decays is found to be proportional to the mass m(t) present at time t. Write down and solve the differential equation expressing m0 this relation, given that the initial mass is m(0) = m0 and when t = 1, m = . 2 2. Newton’s law of cooling states that the rate at which an object cools is proportional to the difference between the temperature at the surface of the body, and the ambient air temperature. Thus, if T is the surface temperature at time t and Ta is the ambient temperature, then dT = −λ(T − Ta ) dt 476
T (0) = T0
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
where λ > 0 is some experimentally determined constant of proportionality, and T0 is the initial temperature. Solve this to give the temperature at t > 0. 3. In Applications, Chapter 2, we saw how the differential equation dx = k(x − a)(x − b)(x − c) dt typical of models of chemical reactions, describes the reaction between three gases A, B, C in a vapour deposition process. Find the general solution of the equation for a number of examples of values of k, a, b, c, starting with a simple case such as k = a = b = 1, c = 0 and building up to more complicated examples. Also consider various initial conditions. Study the nature of the solutions for the various values of the parameters k, a, b, c. 4. The classic application of differential equations is, of course, in Newtonian mechanics. The differential equations arise from either the kinematic relation d x/d t = v, the velocity, or the dynamical relation (Newton’s second law) md v/d t = md 2 x/d t 2 = mass × acceleration = force. In general we have d 2x dy = f (x, y, ) dt2 dt This reduces to a first order equation in a number of cases. For example, if f is independent of x we have dv = f (t, v) dt or if it is independent of t we can write dv dx dv dv = =v = f (x, v) dt dt dx dx With sufficiently complex force laws, we can obtain a variety of differential equations sufficient to keep the most ardent mathematician satisfied – indeed, much of the modern theory of nonlinear differential equation is dynamics, and you will find books on ‘dynamical systems’ shoulder to shoulder with textbooks on differential equations on the library bookshelves. A particle falling vertically under gravity, subject to a resistance proportional to its velocity, v, satisfies the equation of motion m
dv = mg − kv dt
where m is its mass, g the acceleration due to gravity and k a positive constant. Solve this equation and interpret the motion. Assume the initial velocity is v = v0 at t = 0. 5. Many complicated physical, biological, and commercial situations can be modelled by a system of interconnected units or ‘compartments’ between which some quantity flows or is communicated. Examples include the distribution of drugs in various parts 477
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
of the body, water flow between connected reservoirs, or financial transactions in a commercial environment. This exercise illustrates the basic ideas in this topic. Take as our compartment a tank containing 100L of water, into which a brine solution flows at a rate of 5L/min and out of which solution flows at 5L/min. The concentration of the incoming brine solution is 1 kg/L. Construct a model, based on reasonable assumptions, which will enable you to determine the concentration of salt in the tank at any time after inflow commences. 6. There are many areas of science and engineering where second order linear differential equations provide useful models. Rather than become enmeshed in the technical details of specific applications, we will look at generic models which have utility across a wide range of applications. The general second order inhomogeneous linear equation with constant coefficients a x¨ + bx˙ + cx = f (t)
(15.6)
arises naturally in dynamics as a consequence of Newton’s second law mx¨ = F (t, x, x) ˙ in which the force F arises from a particular physical set up. For example if we are talking about the motion of a particle of mass m attached to a spring, oscillating in a resisting medium, and subject to an additional time dependent force f (t), then we might model the forces acting as follows, taking x as the displacement from equilibrium: (i) spring restoring force, −αx α > 0 (ii) resistance force proportional to velocity, −β x˙ (iii) forcing term f (t)
β>0
Newton’s second law then gives mx¨ + β x˙ + αx = f (t) ➤
A similar equation was mentioned in Chapter 2 (79 ) for the capacitor voltage in a source free electrical circuit containing an inductance L, resistance R, capacitance C. With an appropriate source term f (0) this becomes 1 R dV d 2V + V = f (t) + 2 dt L dt LC which is, apart from the physical constants, the same as the Newton’s law equation above. The same sort of equation describes many other systems of widely varying types – this is mathematical technology transfer! Such equations are used to describe some type of oscillatory behaviour, with some degree of damping. We will concentrate our attention on the general properties of such behaviour, and adopt the mechanical notation of the first equation above. The case β = 0 = f (t) is the simplest to deal with, yielding unforced, undamped simple harmonic motion: mx¨ + αx = 0 478
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Show that the solution in this case is x = A sin(ωt + φ) where ω2 = α/m. In the presence of damping, but no forcing terms, the equation becomes mx¨ + β x˙ + αx = 0 Find the general solution in this case, and consider the cases of (i) overdamping, β 2 > 4α (ii) critical damping, β 2 = 4α (iii) underdamping, β 2 < 4α If f (t) = 0 in equation (15.6) then we have an additional forcing term, impelling the particle to respond not just to the spring tension and the resistance, but to some additional force (such as gravity for example). One of the most interesting cases occurs when the forcing term is periodic itself, resulting in an equation of the form mx¨ + β x˙ + αx = f0 cos υt Show that the general solution in this case is
x(t) = Ce
−βt/2
sin
4α − β 2 f0 t +φ + sin(υt + δ) 2 (α − υ 2 )2 + β 2 υ 2
where tan δ = (α − υ 2 )/(βυ). The first term represents damped oscillatory motion and will eventually die out if β > 0. For this reason it is called the transient solution. The second term, on the other hand, originating from the forcing term, persists so long as the forcing term does, with the same frequency, but a modified amplitude and phase (this is a characteristic of linear systems – any sinusoidal input is output with the same frequency but modified amplitude and phase). This second term is therefore referred to as the steady state solution – it is what is left after the transients decay away. Note that the amplitude of the steady state solution
f0 (α − υ 2 )2 + β 2 υ 2
depends on the relation between the damping β, the forcing frequency v and the natural frequency α. Show that if β 2 < 4α (i.e. the system is underdamped), then the amplitude of forced motion has a maximum at β2 υ = υr = α − 2 At this value of υ we say the system is at resonance and υr /2π is called the resonant frequency. 479
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
15.9 Answers to reinforcement exercises 1. m = mo e−λt 2.
(i)
x2 +1 2
(ii) sin x
(iv) 2x 2 + 2x + 1 1 (vi) − cos x − x + 1 π (viii) sin−1 x (i) −
3.
2 2 x +C
(iii)
x4 x2 5 − + x 12 2 6 1 (vii) 1 − 3x (v)
(iii) sin−1
(ii) Cx
(iv) − ln |C − ex | (vii) 5y + cos y = x 2 + C (x) (y − x)3 = Cx 2 y 2
(v)
1 (10 − Ce−2x ) 2
(viii) Cx x e−x y−2 (xi) = Ce3x y−1
1 (i) Ce−x + e2x 3
4.
1 5x (e − e3x ) 2 1 1 (iii) x2 − 2 4 x
6. (i) Aex + Be−2x (iii) e−2x (A cos x + B sin x) (v) Ae
+ Be
−3x
7. (a) (i) Aex + Be−2x − 1 2 (iii) e−2x (A cos x + B sin x) + 5 2 (v) Ae3x + Be−3x − 9 480
x2 +C 2
(iv) x + Cx 3 (vi)
x3 + C x−1
(ii) x 2 (ln x + 2) (iv) −
1 3 ln |C + e2x | 3 2 x (ix) (1 − Cx) 2 (vi)
x 2 −2x e 2
5. (i)
3x
(ii) ex + Ce−2x
(iii) x 2 − 2 + C exp(−x 2 /2) x−1 (v) C x+1 (vii) Cx 2 −
1 2 (x 1) + ln x 2
1 (cos x + 1) x3
(ii) (Ax + B)e2x (iv) A cos 2x + B sin 2x (vi) A cos x + B sin x 1 2 1 (iv) A cos 2x + B sin 2x + 2 (vi) A cos x + B sin x + 2 (ii) (Ax + B)e2x +
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
1 3 (b) (i) Aex + Be−2x − x − 2 4
1 1 (ii) (Ax + B)e2x + x + 4 2
1 1 (iii) e−2x (A cos x + B sin x) + x + 5 25 1 1 (iv) A cos 2x + B sin 2x + x + 4 4 (vi) A cos x + B sin x + x + 1 1 (c) (i) Aex + Be−2x − xe−2x 3 −2x (iii) e (A cos x + B sin x) + e−2x 1 (iv) A cos 2x + B sin 2x + e−2x 8 1 (v) Ae3x + Be−3x − e−2x 5
1 1 (v) Ae3x + Be−3x − x − 9 9
(ii) (Ax + B)e2x +
1 −2x e 16
1 (vi) A cos x + B sin x + e−2x 5
3 1 cos x − sin x 5 5 8 6 (Ax + B)e2x + cos x + sin x 25 25 1 1 e−2x (A cos x + B sin x) − cos x + sin x 4 4 2 A cos 2x + B sin 2x + sin x 3 1 Ae3x + Be−3x − sin x 5 A cos x + B sin x − x cos x
(d) (i) Aex + Be−2x − (ii) (iii) (iv) (v) (vi)
2 x 1 −2x e + e −1 3 3 1 2x 1 e + (ii) x − 2 2 2 2 4 (iii) −e−2x cos x + sin x + 5 5 5
8. (a) (i)
(v)
1 3x (e + e−3x − 2) 9
(iv)
1 (1 − cos 2x) 2
(vi) 2(1 − cos x)
e+1 e2 x e e−2x − 1 + e2 + e + 1 e2 + e + 1 1 2x 1 1 e + (ii) (1 − e−2 )x − 2 2 2 2 2 2 cos 1 − e2 −2x − cos x + sin x + (iii) e 5 5 sin 1 5
9. (a) (i)
481
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
1 cos 2 − 1 1 1 (iv) − cos 2x + sin 2x + 2 2 sin 2 2 3
3
2 2e3 2 2 e − 1 3x 2 3 e − 1 −3x 2 3x e = e e−3x − e + e − + (v) 6 6 2 3 9 e −1 9 e −1 9 9(e + 1) 9(e + 1) 9
(vi) −2 cos x +
482
2(cos 1 − 1) sin x + 2 sin 1
16
Functions of More than One Variable – Partial Differentiation This chapter deals with functions of more than one variable and the rates of change of such functions as the different variables change. It involves some visualisation in three dimensions, but on the other hand the manipulation and methods involved are usually quite straightforward – essentially, there is little more to it than ordinary differentiation.
Prerequisites It will be helpful if you know something about ➤
➤
function notation (90 ) limits (412 ) rules of differentiation (234 ) three dimensional coordinates and graphs (323 parametric differentiation (240 ) implicit differentiation (238 ) ➤
➤
➤
➤
• • • • • •
)
Objectives In this chapter you will find • • • • •
functions of two variables definition of partial differentiation rules of partial differentiation higher order partial derivatives the total differential and total derivative
Motivation You may need the material of this chapter for • • • • • •
thermodynamics partial differential equations vector calculus electromagnetic field theory fluid and solid mechanics least squares in statistics
483
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
16.1 Introduction Often, topics in engineering mathematics can be presented most clearly by means of diagrams rather than symbols. This topic is perhaps the opposite to this – the pictures used in illustrating calculus of more than one variable are sometimes not easy to visualise – but don’t worry, in this case the symbols are much easier to handle. Previously we have considered mainly functions of a single variable, e.g. y = f (x) In practice, in engineering and science, we usually have to deal with functions of many variables. For example the pressure P of a perfect gas depends on its volume and temperature: P =
RT = P (V , T ) V
R being the gas constant. We want to consider such questions as, how does P change if V and T vary at given rates? In general we will restrict consideration to functions of two variables, because these can be portrayed graphically. A function of two variables can be represented by a surface in 3-dimensional space. However, most of the ideas we cover are easily extended to functions of more than two variables, even if the pictures are not.
Exercises on 16.1 1. In the relation between P , V , and T , how does P vary with (i) T , (ii) V ? How does V vary with (iii) T , (iv) P ? 2. If V increases by 10% while T remains constant, by what percentage, approximately, does P change?
Answers 1. (i) In proportion; (ii) In inverse proportion; (iii) In proportion; (iv) In inverse proportion. 2. Decreases by approximately 10%.
16.2 Function of two variables Let z = f (x, y) be a function of two variables. If we take a 3-dimensional Cartesian coordinate system as described in Section 11.4 then any point in 3-dimensional space can be represented by a point referred to this system, P (x, y, z). For each point (x, y) of the xy plane, we can calculate the value of z from z = f (x, y) and plot this at an appropriate z-level fixed by the z-axis. In this way, the function f (x, y) gives a surface in 3 dimensions, as shown in Figure 16.1. 484
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
z
x = f (x,y )
y
(x,y )
x
Figure 16.1 Surface defined by z = f(x, y). z
by +c
z=
ax + c
z=
y y +c ax +b
=0
x
Figure 16.2 The linear function z = ax + by + c.
For example, the linear function: z = ax + by + c represents a plane in 3-dimensional space, as shown in Figure 16.2 (only the portion in the first octant is sketched). In the theory of single variable we measure the rate of increase or slope of a curve by the slope of the tangent to the curve at a given point. In the case of functions with two variables, where we have to deal with a surface, we measure the rate of increase or slope of a surface by the orientation or slope of a tangent plane to the surface. Thus at any point on the surface we can define a unique plane, the tangent plane, which touches the surface at just that one point, locally. The orientation of this plane clearly gives a measure 485
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
z Tangent plane
z = f (x,y )
0
y
x
Figure 16.3 The tangent plane.
of the slope and rate of change of the surface at the point of tangency (Figure 16.3 – think of the mortar-board you may one day be wearing!). Any line in the tangent plane is also tangent to the surface. In particular, the lines parallel to the xz and yz planes – the slopes of these lines give the slope of the surface in the x-direction and y-direction respectively.
Exercise 16.2 Sketch the surface representing the function z = x2 + y2
Answer
z
z = x 2 +y 2 = 2
1 0 1
x
Figure 16.4
486
2
y
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
16.3 Partial differentiation The lines in the tangent plane parallel to the xz-plane, give the slope of the surface in the x-direction at each point. When considering rate of change in the x-direction alone, the y-coordinate in z = f (x, y) can be regarded as constant. Then for this fixed valued of y z = f (x, y) is a function of x, a curve parallel to the xz plane. The slope of this curve can be obtained in the usual way by differentiating: dz df = dx dx However, this notation is not appropriate because f is now a function of two variables, so we use: ∂z ∂f = (x, y) ∂x ∂x read ‘curly dee dee ex’. This is called the partial derivative of z with respect to x , and represents the rate of change of z with respect to x assuming y is constant. We will also denote it by fx . It gives the rate of change in z in the x-direction, or the slope of the surface in the x-direction (see Figure 16.5). We can define the partial derivative rigorously in terms of a limit as follows: ∂f f (x + h, y) − f (x, y) = lim h→0 ∂x h Similarly, we can define the partial derivative with respect to y: ∂f f (x, y + k) − f (x, y) = lim k→0 ∂y k which is the derivative of f with respect to y assuming x constant. We will sometimes use fy . It gives the rate of change of f in the y-direction, or the slope of the surface in the y-direction. The rules of partial differentiation are the same as those in ordinary differentiation, so long as we remember which of the variables to hold constant. Specifically (234 ): ➤
∂ ∂f ∂g (f ± g) = ± ∂x ∂x ∂x ∂ ∂g ∂f (fg) = f + g ∂x ∂x ∂x g ∂f − f ∂g ∂ f = ∂x 2 ∂x ∂x g (g) ∂f ∂g ∂f (g(x), y) = (g, y) ∂x ∂x ∂g 487
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Tangent line with slope ∂ z ∂x
Plane y = y 0
z
z = f (x,y )
(x 0,y 0,z 0)
y
0
x
Figure 16.5 Definition of the partial derivative
∂z . ∂x
➤
The last rule is the generalisation of the function of a function rule (235 ), which may look a little strange in the new notation – again it helps to think of the undifferentiated variable (y in this case) as a constant. Similar results apply for the partial derivatives with respect to y.
Problem 16.1 Evaluate the partial derivatives y x (i) z = Y (ii) z = y sin.2x Y 3y/ x y (i) Treating y as a constant and differentiating with respect to x gives 1 y ∂z =− 2 + ∂x x y Similarly, keeping x constant and differentiating with respect to y gives ∂z 1 x = − 2 ∂y x y (ii)
∂z ∂z = 2y cos(2x + 3y) and = sin(2x + 3y) + 3y cos(2x + 3y) ∂x ∂y
Exercise on 16.3 Find fx , fy for the following functions (i) f (x, y) =
xy x+y
(ii) f (x, y) = e3x+cos(xy)
Answer (i) fx =
y2 x2 , fy = 2 (x + y) (x + y)2
(ii) fx = e3x+cos(xy) (3 − y sin(xy)), fy = −xe3x+cos(xy) sin(xy) 488
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
16.4 Higher order derivatives ∂z is also a function of x and y and so ∂x ∂ ∂z or with respect to y, may itself be partially differentiated with respect to x, ∂x ∂x ∂ ∂z . We write such second order derivates as: ∂y ∂x If z = f (x, y) is a function of x and y, then
∂ 2z ∂ 2z ∂ 2z ∂ 2z , , , ∂x 2 ∂x∂y ∂y∂x ∂y 2 which we will sometimes write as zxx , zxy , zyx , zyy , respectively. For all functions we are interested in we may assume that ∂ 2z ∂ 2z = ∂x∂y ∂y∂x
or
zxy = zyx
Similarly, higher order derivates may be defined, such as
∂ 3z = zxxy , etc. ∂x 2 ∂y
Problem 16.2 Evaluate all second order derivatives of the function f .x , y/ = x 3 Y y 3 Y 2xy Y x 2 y and verify that @2 f @2 f = @x @y @y@x The differentiation of f (x, y) = x 3 + y 3 + 2xy + x 2 y is routine and we obtain fx = 3x 2 + 2y + 2xy
fxx = 6x + 2y
fy = 3y 2 + 2x + x 2
fyy = 6y
fxy = (fx )y = (3x 2 + 2y + 2xy)y = 2 + 2x fyx = (fy )x = (3y 2 + 2x + x 2 )x = 2 + 2x = fxy
Exercises on 16.4 1. Find all first and second order partial derivatives of the following functions, f (x, y), checking the equality of the mixed derivatives (i) f (x, y) = x 3 y 2 + 4xy 4
(ii) f (x, y) = exy cos(x + y) 489
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
2. Show that f (x, y) = ln(x 2 + y 2 ) satisfies the partial differential equation: ∂ 2f ∂ 2f + =0 ∂x 2 ∂y 2 This is called the Laplace equation in two-dimensional rectangular coordinates. It is very important in fluid mechanics, electromagnetism, and many other areas of science and engineering, as well as being a key equation in pure mathematics.
Answers 1. (i) fx = 3x 2 y 2 + 4y 4 , fy = 2x 3 y + 16xy 3 , fxx = 6xy 2 , fyy = 2x 3 + 48xy 2 , fxy = 6x 2 y + 16y 3 (ii) fx = exy (y cos(x + y) − sin(x + y)), fy = exy (x cos(x + y) − sin(x + y)), fxx = exy ((y 2 − 1) cos(x + y) − 2y sin(x + y)), fyy = exy ((x 2 − 1) cos(x + y) − 2x sin(x + y)), fxy = exy (xy cos(x + y) − (x + y) sin(x + y))
16.5 The total differential ∂z ∂z , give the rates of increase of z = f (x, y) in the x and y directions respec∂x ∂y tively – what about the increase in a general direction? I.e. if x, y increase by δx, δy, by how much does z increase? From Figure 16.6 we can see that the increase in z, δz, is given approximately by δz δz δx + δy δx δy
δz
Such diagrams are not to everyone’s taste, so a few examples might help.
Problem 16.3 Obtain expressions for dz in the cases (i) z = x Y y (ii) z = xy
(iii) z = x 2 Y y 2
What happens if dx , dy are so small that products of them can be neglected? (i) is not so bad: δz = x + δx + y + δy − (x + y) = δx + δy This result is exact. There are no products of δx, δy. (ii) is a little more complicated: δz = (x + δx)(y + δy) − xy = yδx + xδy + δxδy 490
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
z
dz 2 = ∂ z dy ∂x dz1= ∂ z dx ∂x
y
0
(x +dx,y )
x
(x +dx, y +dy )
(x,y )
Figure 16.6 The total derivative.
This is exact. However, if we neglect δxδy then we get an approximation: δz yδx + xδy Notice that since zx = y and zy = x this may be written δz zx δx + zy δy (iii) δz = (x + δx)2 + (y + δy)2 − x 2 − y 2 = 2xδx + 2yδy + (δx)2 + (δy)2 2xδx + 2yδy if we neglect the δ products. Again, notice that this is δz zx δx + zy δy These examples illustrate the result δz zx δx + zy δy stated above. Note that this is an approximate formula between increments δx, δy, δz. It is useful to define differentials d x, d y, d z which satisfy: dz =
∂z ∂z dx + dy ∂x ∂y 491
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
d z is called the total differential of z. The d x, d y, d z are not actually numerical quantities, but simply symbolise quantities that can be taken as small as we wish, but never zero. They really only serve to define derivatives. Thus, if x, y, are both functions of a parameter t (e.g. in dynamics t = time) we can formally ‘divide by d t’ and write: ∂z d x ∂z d y dz = + dt ∂x d t ∂y d t and this gives the total rate of change of z with t given the rate of change of x and y with t. d z/d t is called the total derivative of z with respect to t. Both the formula for d z and d z/d t extend in an obvious way to functions of greater than two variables, although the geometrical significance is not so easy to visualize.
Problem 16.4 Find dz at the point (1, 2, 5) for z = x 2 Y y 2 . Essentially, all we need are the first partial derivatives. We have ∂z = 2x, ∂x
∂z = 2y ∂y
The total differential is therefore given by dz =
∂z ∂z dx + dy ∂x ∂y
= 2x d x + 2y d y So at (1, 2, 5) this gives d z = 2(1) d x + 2(2) d y = 2 d x + 4 d y This is a formal relation between d x, d y, d z, which can for example be used to evaluate the total derivative of z at the point (1, 2, 5) as dx dy dz =2 +4 dt dt dt This gives us the rate of change of z at (1, 2, 5) in terms of the rates of change of x and y at that point. However, the above relation between differentials can also be regarded as an approximate relation between small increments δx, δy, δz to give δz 2δx + 4δy This gives us the approximate change in z at (1, 2, 5) if x and y are changed by small amounts δx, δy respectively. As an example of the use of the total differential in approximations consider the problem of finding the percentage error in functions of the form z = xα yβ due to given percentage errors in x and y. 492
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
We have (treating d x, d y, etc. as small increments here) d z = αx α−1 y β d x + βx α y β−1 d y so the relative error in z due to ‘errors’ d x, d y in x, y respectively is dz αx α−1 y β βx α y β−1 = dx + dy z z z =α
βx α y β−1 x α−1 y β d x + dy xα yβ xα yβ
=α
dy dx +β x y
So the percentage error in z is dz dy dx × 100 = α +β 100 z x y dx dy =α × 100 + b × 100 x y = α percentage error in x + β percentage error in y Notice the pattern in which the exponents in the original expression become the linear weightings in the expression for the percentage error. An easier derivation is to first take logs ln z = ln(x α y β ) = α ln x + β ln y Now differentiate through dx dy dz =α +β z x y and then multiplying through by 100 gives the required relation between percentage errors. Extension to functions of more than two variables is obvious.
Problem 16.5 Find the percentage error in the volume of a rectangular box in terms of the percentage errors in the sides of the box. With sides a, b, c the volume of the box is V = abc = a 1 b1 c1 So the percentage error in V is dV da db dc × 100 = 1. × 100 + 1. × 100 + 1. × 100 V a b c = percentage error in a + percentage error in b + percentage error in c 493
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Note also that these error problems can be taken over directly to problems of small increases – e.g. the expansion of a rectangular box due to heating, etc. (using coefficients of linear expansions). In fact, we have already met the total differential disguised as implicit differentiation (238 ). ➤
Problem 16.6 If z = x 2 Y 5x 2 y Y 2xy 2 − y 3 = 4 find
dy . dx
dy by noting that d z = 0, using the total differential, and solving the resulting dx dy equation to obtain a relation between d x and d y which we then solve for . Thus dx
We find
d z = 2x d x + 10xy d x + 5x 2 d y + 2y 2 d x + 4xy d y − 3y 2 d y = 0 Dividing by d x gives 2x + 10xy + 5x 2 and solving for
dy dy dy + 2y 2 + 4xy − 3y 2 =0 dx dx dx
dy gives dx
dy 2x + 10xy + 2y 2 = 2 dx 3y − 5x 2 − 4xy
Exercises on 16.5 1. Find the total differential d z when (i) z = ln(cos(xy))
(ii) z = exp
x y
dz from the total derivative formula and 2. If z = e2x+3y and x = ln t, y = t 2 , calculate dt show that it agrees with the result obtained by substitution for x and y before differentiating.
Answers 1. (i) − tan(xy)(y d x + x d y)
(ii)
1 x exp (y d x − x d y) 2 y y
2. 2t (3t 2 + 1) exp(3t 2 )
16.6 Reinforcement 1. Find the values of the following functions at the points given: (i) f (x, y) = 2xy 3 + 3x 2 y at the point (2, 1) (ii) g(x, y) = (x + y)ex sin y at the point (0, π/2) 494
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
x 2 + y 2 + z2 at the points (− 1, 2, 2) and (3, 2, 4) π 2 (iv) l(x, y, z) = ex y 4 cos z at 0, −2, 3 2. Sketch the surfaces represented by z = f (x, y) where
(iii) h(x, y, z) =
(ii) x 2 + y 2 + z2 = 9
(i) z = 1 − 3y 3. Determine ∂z/∂x, ∂z/∂y in each case (i) z = x 2 + y 2 (iv) z =
(ii) z =
1 x2
x y
(iii) z = x 3 + x 2 y + y 4
(v) z = exy cos(3y 2 )
+ y2
(vi) z = ln(1 + xy)
x2 + y2 3 −1 x (viii) z = √ (ix) z = x tan (vii) z = e (2 + 3xy) y 1+y ∂z ∂z 4. For each of the functions in Q3 evaluate (0, 0), (1, 2) whenever possible. ∂x ∂y 5. Determine all first order partial derivatives −xy
(i) w = x 2 + 2y 2 + 3z2 (iii) w = xyz
1 (ii) w = 1 − x 2 − y 2 − z2 (iv) w = x cos(x + yz)
(v) w = exy ln(x + y + z) 6. Determine all second order partial derivatives for the functions in Q3. 7. Determine all second order partial derivatives for Q5(i), (iii), (iv). 8. Show that T (x, t) = ae−b t cos bx, where a and b are arbitrary constants, satisfies the equation 2
∂ 2T ∂T = ∂t ∂x 2 9. Determine d z for the functions (i) z = x 2 − 3y 2 (iii) z = ln(x 2 + y 2 )
(ii) z = 3x 2 y 3 (iv) z = cos(x + y)
(v) z = x 2 e−xy 10. If z = 3x 2 + 2xy − y 2 and x and y vary with time t according to x = 1 + sin t and dz y = 3 cos t − 1 evaluate directly and by using the total derivative (chain) rule. dt
16.7 Applications 1. Partial differential equations are equations containing partial derivatives – analogous to ordinary differential equations of Chapter 15. Such equations occur frequently in 495
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
∂ 2f ∂ 2f + =0 ∂x 2 ∂y 2 which arises in electromagnetic field theory and fluid flow, for example. Verify that each of the following functions satisfies Laplace’s equation
science and engineering. An important example is Laplace’s equation
(ii) f (x, y) = e−3y cos 3x
(i) f (x, y) = ln(x 2 + y 2 ) (iii) f (x, y) = ex (x cos y − y sin y)
(iv) f (x, y) = x 2 − y 2
2. An important application of the total differential occurs in estimating the change in a function of a number of variables resulting from changes in the variables. The following give a number of examples of this. (i) From the ideal gas law P V = nRT , where nR is constant, estimate the percentage change in pressure, P , if the temperature, T , is increased by 3% and the volume, V , is increased by 4%. (ii) Given that time, T , of oscillation of a simple pendulum of length l is
T = 2π
l g
determine the total differential d T in terms of l and the gravitational and constant g. Estimate the percentage error in the period of oscillation if l is taken 0.1% too large and g 0.05% too small. (iii) The total resistance of three resistors R1 , R2 , R3 , in parallel is given by R, where 1 1 1 1 + + = R R1 R2 R3 If R1 , R2 , R3 , are measured as 6, 8, 12 respectively with respective maximum tolerances of ±0.1, ±0.03, ±0.15 , estimate the maximum possible error in R. 3. The total derivative is used to determine the rate of change of a function of a number of variables in terms of the rates of change of the variables. The following examples illustrate this. (i) The radius of a cylinder decreases at a rate 0.02 ms−1 while its height increases at a rate 0.01 ms−1 . Find the rate of change of the volume at the instant when r = 0.05 m and h = 0.2 m. (ii) Find the rate of increase of the diagonal of a rectangular solid with sides 3, 4, 5 m, if the sides increase at 13 , 14 , 15 ms−1 respectively.
16.8 Answers to reinforcement exercises 1. (i) 16 496
(ii)
π 2
(iii) 3,
√
29 (iv) 8
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
2. (i) z 1
0
y
1 3
x
(ii) z 3
1 −3
−1
0
3
y
x
3.
x 1 ,− 2 y y x y (iii) 3x 2 + 2xy, x 2 + 4y 3 (iv) − 2 ,− 2 2 3/2 (x + y ) (x + y 2 )3/2 x y , (v) yexy cos(3y 2 ), exy (x cos(3y 2 ) − 6y sin(3y 2 )) (vi) 1 + xy 1 + xy (i) 2x, 2y
(ii)
(vii) e−xy (y − 3xy 2 ), e−xy (x − 3x 2 y) (ix) 3x 2 tan−1
yx 3 x4 x + 2 ,− 2 2 y x +y x + y2
4. (i) 0, 6 2 (iv) Does not exist, − √ 5 5
(viii) √
2x 3y 2 + 4y − x 2 , 2(1 + y)3/2 1+y
(ii) Does not exist, −
1 4
(iii) 0, 33
(v) 0, e2 (cos(12) − 12 sin(12)) 497
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(vi) 0,
1 3
(vii) 0, −5e−2
1 5 5. Answers listed in the order zx , zy , zz
19 (viii) 0, √ 6 3
(ix) Doe not exist, −
(i) 2x, 4y, 6z
(ii)
x y z , , where d = (1 − x 2 − y 2 − z2 )3/2 d d d
(iii) yz, xz, xy (iv) cos(x + yz) − x sin(x + yz), −xz sin(x + yz), −xy sin(x + yz) 1 1 (v) exy y ln(x + y + z) + , exy x ln(x + y + z) + , x+y+z x+y+z exy x+y +z 6. Answers are given in the order wxx , wyy , wxy (i) 2, 2, 0 2x 1 ,− 2 3 y y
(ii) 0,
(iii) 6x + 2y, 12y 2 , 2x (iv)
2y 2 − x 2 3xy 2x 2 − y 2 , , 2 2 2 5/2 2 2 5/2 (x + y ) (x + y ) (x + y 2 )5/2
(v) y 2 exy cos(3y 2 ), exy (x 2 cos(3y 2 ) − 12xy sin(3y 2 ) − 6 sin(3y 2 ) −36y 2 cos(3y 2 )), exy (cos(3y 2 ) + xy cos(3y 2 ) − 6y 2 sin(3y 2 )) (vi) −
x2 1 y2 , − , (1 + xy)2 (1 + xy)2 (1 + xy)2
(vii) e−xy (3xy 3 − 4y 2 ), e−xy (3x 3 y − 4x 2 ), e−xy (3x 2 y 2 − 7xy + 1) 2 x 3y 2 + 8y + 3x 2 + 8 ,− , 5/2 4(1 + y) (1 + y)3/2 1+y x 2x 4 y + 6x 2 y 3 2x 4 y −2x 5 − 4x 3 y 2 (ix) 6x tan−1 + , , , y (x 2 + y 2 )2 (x 2 + y 2 )2 (x 2 + y 2 )2 7. Answers in the order wxx , wyy , wzz , wxy , wxz , wyz (viii) √
(i) 2, 4, 6, 0, 0, 0 (iii) 0, 0, 0, z, y, x (iv) −2 sin(x + yz) − x cos(x + yz), −xz2 cos(x + yz), −xy 2 cos(x + yz), −z sin(x + yz) − xz cos(x + yz), −y sin(x + yz) − xy cos(x + yz), −x sin(x + yz) − xyz cos(x + yz) 498
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
8. Determine d z for the functions (i) 2x d x − 6y d y (iii)
2y 2x dx + 2 dy x2 + y2 x + y2
(ii) 6xy 3 d x + 9x 2 y 2 d y (iv) − sin(x + y) d x − sin(x + y) d y
(v) xe−xy ((2 − xy) d x − x 2 d y) 9.
dz = 6 cos 2t + 12 sin 2t − 12 sin t + 4 cos t dt
499
17
An Appreciation of Transform Methods 17.1 Introduction We have already met situations in which changing the variable in a mathematical problem works wonders – as for example in substitution in integration. In fact, this idea of transforming variables to a new set is a useful one throughout applied mathematics. In this chapter we are going to look at two particular types of transforms that are virtually essential in engineering and science: • •
Laplace transform Fourier series (transform)
Both serve useful roles in two key engineering topics: • •
the study of initial value problems in control theory, where one is interested in stability properties of a system harmonic analysis of signals in which a periodic input to a system is decomposed into sinusoidal components which may be individually processed and the results recombined to produce the output of the system
Although I will try to explain how the transforms arise, the topic may still require something of a leap of faith on your part, particularly in the definitions of the Laplace transform and the Fourier series. This is a place where accepting the results blindly and understanding later is not necessarily a bad learning strategy! Also, we will not prove very much in detail. The priority will be to equip you with the main tools and give you an appreciation of the concepts and methods. This topic is also useful in that it brings together so much of the basic mathematical material that we have covered in this book, perhaps justifying all the hard work put in!
Prerequisites It will be helpful if you know something about
➤ ➤
500
the exponential function (Chapter 4) integration, particularly integration by parts (Chapter 9) trig functions (Chapter 6) integration of products of sines and cosines (270 ) limits at infinity (417 ) function notation (90 ) ➤
• • • • • •
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
continuous and discontinuous functions (418 partial fractions (60 ) completing the square (60 ) differential equations (Chapter 15) sigma notation (102 ) infinite series (428 )
➤
)
➤
➤
➤ ➤
• • • • • •
Objectives In this chapter you will find: • • • • • • • • •
definition of the Laplace transform Laplace transforms of elementary functions properties of Laplace transforms solution of initial value problems by Laplace transform the inverse Laplace transform linear systems and superposition definition of Fourier series orthogonality of trig functions determination of the coefficients in a Fourier series
Motivation You may need the material of this chapter for: • solving differential equations in electrical circuits • analysing the behaviour of control systems • signal analysis
17.2 The Laplace transform Problem 17.1 Integrate the following, where s and a are constants a te −st dt 0
Let a → ∞ in the result, assuming that s > 0. This integral has a number of features that we need to look at to get us into the mood for Laplace transforms. Expressions that contain a number of symbols, some constant and some variable, often appear daunting to the most experienced of us. Just take it steady and pick the bones out of the thing. Firstly, since a and s are to be regarded as constant 501
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
in doing the integral they play no role in the actual integration (other than getting in the way!), which is basically an integration with respect to the variable t. If it helps, think of a and s simply as particular constants, say 3 and 4 respectively, while doing the integration. Then you can concentrate on the actual job of integration and effectively the problem is to integrate something like te−4t , for example. This is a classic case of integration by parts (273 ) which you really should revise if you have the slightest doubts. We obtain, on integrating the exponential first, ➤
te
−4t
te−4t 1 dt = e−4t d t − − −4 4
1 1 = − te−4t − e−4t 4 16 Count the signs carefully here! If we had s instead of 4 then you should now recognise more easily that
te
−st
te−st 1 dt = e−st d t − − −s s
1 1 = − te−st − 2 e−st s s
a
te 0
−st
➤
Now we must put the limits in (279
) to get
te−st a 1 a −st dt = + e dt −s 0 s 0 −st a a 1 te = − 2 e−st 0 −s 0 s
1 1 1 = − ae−sa − 2 e−sa + 2 s s s Agreed, this is somewhat messy. For the next step, taking the limit of a as it tends to infinity, it again helps to keep thinking of s as some constant, but it is important to remember that it is a positive constant. Then we need the limit result (418 ) ➤
x n e−x → 0 as x → ∞ for any non-negative number n. Then, applying this, since s is positive, we get e−sa → 0 and ae−sa → 0
and so as a → ∞ 0
a
te−st d t →
We write this as ∞ 1 te−st d t = 2 s 0 502
1 . s2
as a → ∞
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Don’t let anyone tell you all this is easy! There is a great deal of sophisticated mathematics to deal with in this problem, and I have spelt it out carefully now because you will need to do a lot of it later – I wanted to get the main difficulties out of the way up front so that we are not too distracted later on. We will now get down to the main business of defining the Laplace transform. In a similar way to how we transform a variable to simplify some mathematical problem such as integration, we can often similarly transform a function to facilitate the solution to a differential equation. The most common way to do this is by means of an integral. Thus, if f (t) is a function of t (it is usual to use t as the independent variable, since in applications it usually refers to time), then we transform to a new function f˜(s) of a new variable s by an expression of the form: f˜(s) =
b
k(s, t)f (t) d t a
The notation ‘f twiddle’, f˜(s), is a standard mathematical way of reminding us that the new function of s comes from f , but is completely different to f , which is a function of t. In Problem 17.1 we had f (t) = t, k(s, t) = e−st , a = 0 and b = ∞, and the integral, which 1 would correspond to what we have called f˜(s) here, came out to be 2 . The above integral s expression is called an integral transform. Essentially, it replaces the function f (t) by a different function f˜(s), which may be easier to deal with in certain circumstances. There are many such integral transforms, usually going under the name of some famous mathematician – Laplace, Fourier, Mellin, Hilbert. The Laplace and Fourier transforms are particularly useful, in scientific and engineering applications such as control theory and signal analysis, and in statistical and commercial applications. I would certainly not waste your time by introducing such complicated objects if they were not so useful! It is worth noting that such transforms were often first invented and developed by scientists and engineers, long before mathematicians got their hands on them. When we consider a transform such as the Laplace transform we are interested in such questions as: • • • • •
What are the Laplace transforms of the elementary functions? What general properties does the transform have? How does the Laplace transform relate to other mathematical operations (such as differentiation, integration, etc.)? How can the transform be ‘inverted’, i.e. given the transform f˜(s) of a function f (t), how do we reverse the transform and find the original function f (t)? What applications does the Laplace transform have?
We now give the formal definition of the Laplace transform. We have already looked at the technical details of integration needed to deal with it, in Problem 17.1, so it should be less of a shock! Be assured that, strange though it might appear, it is absolutely invaluable in engineering mathematics. Suppose f (t) is a function defined for t ≥ 0. Then the integral f˜(s) =
∞
f (t)e−st d t
0
503
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
is called the Laplace transform of f .t/. Other notations used are F (s) (lower case goes to upper case when we transform) or L[f (t)], the square brackets denoting that the Laplace transform acts on a function. The appearance of the exponential function here should perhaps come as no surprise when one considers the predominant role that this function plays in, for example, differential equations. Note that improper infinite integrals of the type occurring in the definition above are defined by: ∞ a g(t) d t = lim g(t) d t a→∞ 0
0
and this shows how they are evaluated in practice – i.e. do the integral first and then take the limit, as we did in Problem 17.1.
Exercises on 17.2 1. Write down the values of the following limits: e−st s>0 (ii) t→∞ s te−st s>0 (iv) (iii) lim t→∞ s 2. Find the Laplace transform of f (t) = 3. (i)
lim
e−st t→∞ s 2 lim
s>0
lim t n e−st
t→∞
s > 0, n positive
Answers 1. (i) 0
(ii) 0
(iii) 0
(iv) 0
2.
3 s
17.3 Laplace transforms of the elementary functions Assembling the Laplace transforms of the elementary functions is simply a matter of integration. We flagged up the main points in Problem 17.1, and now you can try developing a table of Laplace transforms for yourself.
Problem 17.2 Find the Laplace transform of the constant function f .t/ = 1. From the definition we have ∞ L[1] = 1e−st d t 0
= lim
a→∞
e−st −s
a
= 0
1 provided s > 0 s
Problem 17.3 Evaluate L[t], L[t 2 ], L[t 3 ] and look for a pattern for L[t n ]. 504
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
We have already found L[t] in Problem 17.1, and as a reminder:
∞
L[t] =
te−st d t =
0
te−st −s
∞
+ 0
1 s
∞
e−st d t (by parts) =
0
1 s2
For L[t 2 ] the integration is more lengthy, but follows the same pattern – first integrate with the limits 0, a then let a → ∞. ∞ L[t 2 ] = t 2 e−st d t 0
=
2 by integrating by parts twice s3
L[t 3 ] is even more of a slog, but with care and patience you should find that L[t 3 ] =
6 3! = 4 4 s s
So, summarising, we have L[1] =
0! , s
L[t] =
1! , s2
L[t 2 ] =
2! , s3
L[t 3 ] =
3! s4
➤
where we have used the convention 0! = 1 (16 ), which we also used in the binomial theorem. These results lead us to suspect that in general L[t n ] =
n! s n+1
for n a positive integer. In fact this is a correct generalisation, although we will not prove it. Proceeding as in the above, exercising your integration, you can if you wish verify the results given in Table 17.1 for the Laplace transforms of the elementary functions (see Exercises on this section and page 285). There are a number of points to note: • • •
the restrictions on s, which we have assumed to be real results involving the exponential function, which clearly has the effect of replacing s by s − a – i.e. of shifting or translating s the results for t sin ωt, t cos ωt can be obtained by differentiation of those for sin ωt, cos ωt with respect to ω.
Note an important implication of the fact that the Laplace transform is defined by an integral. Specifically, recall that in any mathematical operation, such as differentiation for example, there are precise conditions under which the operations are allowed – for example a function must be continuous at a point if it is to be differentiable there. On the other hand an integrable function does not have to be continuous in order to integrate it, meaning that we can apply the Laplace transform to a wider range of functions than continuous ones. A large and important class of functions to which we can apply the Laplace transform includes the class of piecewise continuous functions. A piecewise continuous function f (t) on an interval a ≤ t ≤ b is a function which consists of continuous sections separated by a finite number of isolated points at which the function may not be continuous, but the 505
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Table 17.1 f˜(s) = F (s) = L[f (t)]
f (t) 1 t t n (n a positive integer)
s
1 (s > 0) s 1 (s > 0) s2 n! (s > 0) n+1
1 (s > a) s−a n! (s > a) (s − a)n+1 ω (s > 0) s 2 + ω2 s (s > 0) s 2 + ω2 2ωs (s > 0) (s 2 + ω2 )2
eat t n eat sin ωt cos ωt t sin ωt
s 2 − ω2 (s > 0) (s 2 + ω2 )2 ω (s > a) (s − a)2 + ω2 s−a (s > a) (s − a)2 + ω2
t cos ωt eat sin ωt eat cos ωt
discontinuity must be finite. We can integrate such a function by integrating the continuous sections separately. A well known example of a piecewise continuous function is the unit (or Heaviside) step function, shown in Figure 17.1, defined by H (t) = 0 t < 0 =1 t >0 H (t )
1
0
t
Figure 17.1 The step function.
This function is discontinuous at t = 0 and yet has a continuous Laplace transform, namely 1/s. Integration effectively smoothes things out. 506
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Another well known piecewise continuous function is the square wave, shown in Figure 17.2 and defined by f (t) = −1
−1
=1
0
f (t + 2) = f (t)
1
−2
t
−1 0
1
2
3
−1
Figure 17.2 The square wave.
This is discontinuous at t = 1, 2, 3, etc. and as the name suggests is a periodic function. The ideal tool for dealing with such functions is Fourier series, which again involves an integration that smoothes things out. Integral transforms can also deal with functions that may be continuous but have discontinuous slope, such as the saw-tooth wave shown in Figure 17.3. In this case the derivative fails to exist at the ‘corners’, and yet it still has a Fourier series. Such functions are called piecewise smooth.
0
t
Figure 17.3 The sawtooth wave.
Note that, as mentioned above, the discontinuities must be finite jumps. Thus, 1/t is not piecewise continuous – see Figure 17.4.
Problem 17.4 Evaluate the Laplace transform of the function f .t/ = 0
0
=1
1
=0
2
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
1/t
0
Figure 17.4 An infinite discontinuity.
Note that the value of the integrals involved is unaffected by the absence of the isolated points such as t = 1, 2. The Laplace transform of f (t) is L[f (t)] =
∞
f (t)e
−st
2
dt =
0
e 1
−st
e−st dt = −s
2
= 1
e−s − e−2s s
This result again illustrates the useful property of the Laplace (and other integral) transforms, that the transform of a discontinuous function may be continuous. Taking the transform improves the behaviour of the function.
Exercises on 17.3 1. Derive each of the Laplace transforms in Table 17.1. The results for sin and cos are obtained by integration by parts and from these differentiations with respect to ω will give the results for t sin ωt and t cos ωt. 2. Find the Laplace transform of the piecewise continuous function f (t) = −1 0 < t < 2
Answers
2. 508
=t
2
=0
3
1 3 1 + (e−2s − e−3s ) − 2 s s s
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
17.4 Properties of the Laplace transform Having seen how to obtain elementary Laplace transforms we now turn to the general properties of the transform. These enable us to calculate more complicated transforms and also to apply the Laplace transform to such things as differential equations. We will not be very rigorous about the proofs, the emphasis being on getting across the key ideas.
1. The Laplace transform is linear The Laplace transform is a linear operation. That is, if f (t), g(t) are two functions with Laplace transforms f˜(s), g(s) ˜ and a, b are constants then L[af (t) + bg(t)] = a L[f (t)] + bL[g(t)]
= a f˜(s) + bg(s) ˜ Or, briefly:
Laplace transform of sum = sum of Laplace transforms.
2. The first shift theorem The exponential function eat is a mainstay of applied mathematics, and it plays a particularly special role in the theory of the Laplace transform, embodied in the first shift theorem (in case you are wondering, there is a ‘second shift theorem’ but we won’t be needing it in this book). Suppose L[f (t)] = f˜(s) for s > s0 , and let a be any real number. Then L[eat f (t)] = f˜(s − a)
for s > s0 + a
This can be proved by coupling the eat in the Laplace transform with the est and noting that this effectively replaces s by s − a. Note that the results for eat t n , eat sin ωt, eat cos ωt given in Table 17.1 can be obtained using the shift theorem.
3. The Laplace transform of the derivative This is the crucial property for the application of Laplace transforms to the solution of differential equations. Suppose that f (t) and its derivative f (t) have Laplace transforms. Then L[f (t)] = s L[f (t)] − f (0)
This follows on integrating by parts: ∞ L[f (t)] = f (t)e−st d t 0
=
[f (t)e−st ]∞ 0
+s
∞
f (t)e−st d t
0
= −f (0) + s L[f (t)] on assuming that the limit at infinity vanishes. 509
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Note how differentiation with respect to t in ‘t-space’ becomes multiplication by s in ‘s-space’. Also, note the appearance of the initial value, f (0), of f (t). This makes the Laplace transform particularly suitable for solving initial value problems. We transform a differential equation from t-space to s-space, thereby obtaining an algebraic equation for the Laplace transform of the solution. We solve this algebraic equation to get the Laplace transform of the solution of the differential equation, which we then invert, going back to t-space to get the solution as a function of t. This methodology is characteristic of ‘transform methods’ in mathematics, whatever the particular type of transform. We can now derive the Laplace transform of the second order derivative.
Problem 17.5 Show that L[f .t/] = s 2 L[f .t/] − sf .0/ − f .0/
We only have to apply the derivative rule twice in succession: L[f
(t)] = s L[f (t)] − f (0)
= s(s L[f (t)] − f (0)) − f (0) = s 2 L[f (t)] − sf (0) − f (0) The general result for the Laplace transform of the nth derivative is L[f (n) (t)] = s n L[f (t)] − s n−1 f (0) − s n−2 f (0) − · · · − sf (n−2) (0) − f (n−1) (0)
Note again the occurrence of the initial values. To see how we can use the Laplace transform to solve initial value problems, consider the following problem.
Problem 17.6 Solve the initial value problem y Y y = 1
y.0/ = 0
as follows: take the Laplace transform of the equation and obtain an equation for the Laplace transform y˜ .s/ of y. Solve this equation. By taking the Laplace transform of the solution found by, say, separation of variables, confirm that y˜ .s/ is the Laplace transform of the solution y.t/. Taking the Laplace transform of the equation gives, using linearity and the derivative rule L[y + y] = L[y ] + L[y] = L[1]
or s y(s) ˜ − y(0) + y(s) ˜ = 510
1 s
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Since y(0) = 0 this becomes (s + 1)y(s) ˜ =
1 s
Solving for y(s) ˜ now gives 1 s(s + 1) ➤
Now by separation of variables (454 initial value problem is
), or integrating factor (458
➤
y(s) ˜ =
), the solution of the
y(t) = 1 − e−t Taking the Laplace transform of this: L[y(t)] = L[1 − e−t ]
1 1 − s s+1 1 = y(s) ˜ = s(s + 1) =
which is indeed the Laplace transform of the solution as obtained above. So the Laplace transform of the equation did lead us to the Laplace transform of the solution. In fact, in this case it is not too difficult to find the inverse Laplace transform of y(s) ˜ directly. Denoting the inverse Laplace transform by L−1 1 −1 −1 y(t) = L [y(s)] ˜ =L s(s + 1) 1 1 − = L−1 s s+1 ➤
on splitting into partial fractions (60 ) 1 1 =L−1 − L−1 s s+1 Now read Table 17.1 backwards to give 1 −1 1 −1 L = 1, L = e−t s s +1 so
y(t) = 1 − e−t
The above example contains all the essential elements of using the Laplace transform to solve initial value problems. The main new feature is the occurrence of the inverse Laplace transform. Also note that in this method the initial values are actually incorporated in the 511
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
method of solution – we do not have to find the general solution first and then apply the initial conditions afterwards.
Exercises on 17.4 1. Evaluate the Laplace transforms of (i) 3t 2 + cos 2t
(ii) 2t + t 3 + 4tet
2. Solve the following initial value problem by using the Laplace transform y + 2y = 3
y(0) = 0
Answers 6 s + 2 3 s s +4
1. (i) 2.
3 2 (1
(ii)
2 6 4 + 4+ 2 s s (s − 1)2
− e−2t )
17.5 The inverse Laplace transform If f˜(s) is some function of the Laplace transform variable s, then that function f (t) whose Laplace transform is f˜(s) is called the inverse Laplace transform of f˜(s) and is denoted: f (t) = L−1 [f˜(s)] Crudely, we may think of L−1 as ‘undoing’ the Laplace transform operation. Table 17.1 gives a number of important inverse transforms, simply by reading it from right to left.
Problem 17.7 Find the inverse transforms of 3=s 2 , 1=.s − 4/, 4=.s 2 Y 9/, .s 2 − 9/=.s 2 Y 9/2 , .s − 1/=[.s − 1/2 Y 1], from Table 17.1. Check your results by taking their transform. Many more inverse transforms may be obtained by algebraic and mathematical manipulation on the transform to put it into a suitable form for inversion by already known inverses. Like the Laplace transform itself, the inverse Laplace transform is a linear operator, and this alone accounts for a large number of inverses. Also completing the square (66 ) can be useful as for example in s−1 s−1 −1 −1 L =L s 2 − 2s + 2 (s − 1)2 + 1 ➤
= e−t cos t
Exercise on 17.5 Find the inverse Laplace transform in each case and check by taking the Laplace transform of your results. 512
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
2s 2 − 3s + 1 2s 3 5 (v) 2 s +4 1 (viii) (s + 1)(s + 2)(s + 3) (i)
1 s+1 3s (vi) 2 s +9 (ii)
1 s −3 s+1 (vii) 2 s − 5s + 6 (iii)
(iv)
4 2s − 1
Answer (i) 1 − 32 t + 14 t 2 (v) (vi)
5 2
sin 2t
1 −t e 2
(ii) e−t
(iii) e3t
(vi) 3 cos 3t
(vii) 4e3t − 3e2t
(iv) 2et/2
− e−2t + 12 e−3t
17.6 Solution of initial value problems by Laplace transform The inverse Laplace transform enables us to solve linear initial value problems. With what you now know about the inverse transform, try this on your own.
Problem 17.8 Solve the initial value problem y Y y = 1
y.0/ = 1
by Laplace transform. Taking the Laplace transform of the equation: L[y + y] = L[y ] + L[y]
= s y(s) ˜ − y(0) + y(s) ˜ = (s + 1)y(s) ˜ − 1 = L[1] = Hence y(s) ˜ =
1 s
1 s
so the solution is y(t) = 1 which you can check by direct solution of the equation. The above example illustrates the general approach to solving linear initial value problems by Laplace transform: 513
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
1. Take the Laplace transform of the equation, inserting the initial values. 2. Solve for the transform of the solution, obtaining y(s) ˜ = f (s) 3. Invert this transform to obtain the solution y(t) = L−1 [f (s)] Note an important feature of the Laplace transform method concerning initial conditions. In most elementary methods for solving differential equations we first find the general solution, involving the appropriate number of arbitrary constants. These constants are then found by applying the initial or boundary values, producing a number of equations which are solved for the constants. In the Laplace (and other) transform method however the initial conditions are automatically included, and there is no need to find the general solution. The extension of this method to second and higher order initial value problems is conceptually simple and merely requires more complicated manipulation and inversion.
Problem 17.9 Solve the initial value problem y Y y = 0
y.0/ = 1,
y .0/ = 0
by Laplace transform. Taking the Laplace transform through the equation and applying the initial conditions gives L[y
] + L[y] = (s 2 + 1)y˜ − s = 0
Hence y(s) ˜ =
s2
s +1
so y(t) = L
−1
s = cos t s2 + 1
Exercises on 17.6 1. Solve the initial value problems (i) y + 3y = 2
y(0) = 4
(ii) y − y = t
y(0) = 0
Check by using alternative solutions, or substituting back in the equations. 2. Solve the initial value problem y
+ 3y + 2y = 20e−3t
y(0) = y (0) = 0
Verify that your solution satisfies the equation and the initial conditions. 514
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Answers 10 −3t 2 e + (ii) et − 1 − t 3 3 2. 10e−t − 20e−2t + 10e−3t 1. (i)
17.7 Linear systems and the principle of superposition Before we move on to a different type of transform, we will look briefly at the sort of systems for which it is used. Consider a system whose response to a time dependent input x(t) is an output y(t). The system is called linear if the output of the sum of two inputs is the sum of the separate outputs to the two inputs. That is, if x1 (t) → y1 (t) and y2 (t) → y2 (t) implies x1 (t) + x2 (t) → y1 (t) + y2 (t). Many, but not all, systems behave in this way – any that do not are called non-linear and are very difficult to analyse. This additivity of outputs of linear systems is called the principle of superposition. If a complicated signal can be split up into a linear combination of simpler signals then the effect of a linear processing system on the total signal can be analysed by adding up the separate effects on the component input signals. This is the philosophy behind Fourier analysis. A Fourier series splits a periodic input (such as a square wave) into a sum of sinusoidal components of different amplitude and frequency. The effect of a linear system on each separate sinusoid is easy to determine in general and the separate outputs can be added up to synthesize the total output corresponding to the original periodic interval. This is illustrated in Figure 17.5.
Linear system Input
Output
Input F.S.
System
Output F.S.
Figure 17.5 Fourier decomposition of input and output.
We will now summarise some terminology for a general sinusoidal function: f (t) = A sin(ωt + α) A is called the amplitude, ω the angular frequency (radians per second) and α is the phase relative to A sin ωt. The period of such a sinusoid is T = 2π/ω. The inverse of T , ω/2π, is the frequency in cycles per second, or Hertz (Hz). See Figure 17.6. Linear operations such as differentiation, integration, addition, etc. change the amplitude and phase of such a sinusoid, but not its frequency. For example d [A sin(ωt + α)] = Aω cos(ωt + α) dt = Aω sin(ωt + α + π/2) which has the same frequency as the original, but a modified amplitude and phase. 515
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
2p w
A
t
0 a t=−w
Figure 17.6 Sinusoidal function A sin(ωt + α).
Exercise on 17.7 Show that (i) the sum of two sinusoids with the same frequency. A sin(ωt) + B sin(ωt + α) and (ii) the integral of a sinusoid a sin(ωt + φ) d t each have the same frequency as the original sinusoids, and determine the amplitude and phase of the result in each case.
Answer
(A + B cos α)2 + B sin2 α B sin α Phase is β where tan β = A + B cos α a π (ii) Amplitude is . Phase is shifted by ω 2 (i) Amplitude is
17.8 Orthogonality relations for trigonometric functions In the process of expressing a general waveform of a given period in terms of sinusoids of given frequency – the object of Fourier analysis – we will need certain integral formulae. These are so important that we devote this whole section to them. Make sure that you fully understand what they mean, and can derive them (285 ). We will only consider integrals and sinusoids defined over a period of 2π, usually taken to be −π to π. This is no real restriction – if we have a region of different length then we can simply scale it to 2π. Our integrals concern products of sines and cosines over the range −π to π. ➤
516
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
If m, n are any integers, then:
π
−π π −π π −π π −π π −π π −π
sin mt sin nt d t = 0 if
m = n
sin2 nt d t = π cos mt cos nt d t = 0
if
m = n
cos2 nt d t = π sin mt cos nt d t = 0 for all
sin mt d t =
π −π
m, n
cos mt d t = 0
These are called the orthogonality relations for sine and cosine. The limits −π, π on the integrals may in fact be replaced by any integral of length 2π, or integer multiple of 2π. The orthogonality relations should not be thought of as simply specific integral relations – many other functions satisfy similar orthogonality relations (often called special, or orthogonal functions) and can be used in a similar way to expand in a ‘generalised Fourier series’.
Exercise on 17.8 Prove the orthogonality relations.
17.9 The Fourier series expansion A Fourier series is essentially a means of expressing any periodic function f (t) as a sum (possibly infinite) of sines or cosines of different frequencies. The point is of course that sine and cosine are relatively simple functions to deal with. Let f (t) be a function with period 2π. It may be a square wave, or triangular wave, for example. If we compare it with a sine or cosine wave with the same period there may be little resemblance, on the face of it. However, it turns out that if we combine a large enough number of sine and/or cosine waves of appropriate amplitudes and frequencies then it is possible, under certain conditions, to approximate to any function of period 2π. This is certainly not obvious, but is mathematically well established and so here we will simply assume that f (t) can be expanded in a series of sines and cosines in the form ∞
f (t) =
∞
a0 an cos nt + bn sin nt + 2 n=1 n=1
This is called a Fourier (series) expansion for f (t). Note that each term on the righthand side has period 2π, like f (t), but as n increases cos nt and sin nt oscillate an 517
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
increasing number of times in this period. The above series is therefore adding together a (possibly infinite) number of different oscillatory functions, with different amplitudes or weighting. The hope is that by suitably choosing these weightings, one can approximate any other function of the same period, 2π. The problem is of course to find the appropriate ‘weightings’ or coefficients, a0 , an , bn for any given function f (t). The notation in the above series is conventional, as is the factor 12 with a0 , which simplifies later results. a0 , an , bn are constants which will depend upon f (t) and which are to be determined. Particularly in the case of time dependent periodic functions, it is usual to speak of the n = 1 term in the Fourier decomposition as the ‘fundamental component’ (it is often the dominant one) and the nth term (n > 1) as the nth harmonic. As an example of a Fourier series, consider the square wave period of 2π and amplitude A, shown in Figure 17.7. A
−p
0
t p
2p
Figure 17.7
This can be described by the function f (t) =
−A −π < t < 0 A 0
f (t + 2π) = f (t)
Mathematically this is a difficult functional form to handle and to process – for example we cannot differentiate it, and if it appeared as a ‘forcing function’ (469 ) in a differential equation then there is not a lot we could do with it as it is. However, the fact that it is periodic with period 2π does mean that we can express it as a superposition of sinusoids of the same period – i.e. as a Fourier series. We will show in Section 17.10 that the corresponding Fourier series is in fact 4A 1 1 f (t) = sin t + sin 3t + sin 5t + . . . π 3 5 ➤
4A . Now although this series looks nothing like nπ the original functional form of the square wave it is in fact equivalent to it. If you have a graphical calculator you might like to try plotting each of the harmonics and the sum of the first few. You will see that the result starts to look like a humpy square wave, and gets more and more like it as you take more and more terms in the series. The whole point of course is that the sinusoidal functions to which we have converted the wave are continuous and far easier to handle than the original discontinuous form. There are, it is true, now an infinite number of them – but as with all such series we can get as good an approximation as we please by taking enough terms in the series. The amplitude of the nth harmonic is
518
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
There are a number of points that are worth noting, although we do not want to be too picky at this stage, so treat these as refinements for (much) later assimilation. (i) At a discontinuity (e.g. at t = 0 in the above example) the Fourier series gives the ’average value’: 1 2 [f− (t0 )
+ f+ (t0 )]
where f− (t0 ) denotes the limiting value of f (t) as t approaches the discontinuity at t = t0 from below, f+ (t0 ) denotes the limit as t approaches from above. (ii) The Fourier series of an even function can contain only the constant and the cosine terms, because cosine is an even function. The Fourier series of an odd function can contain only the sine terms, since sine is odd. (iii) Interesting results for infinite series can be deduced from Fourier series. In the above example, putting t = π/2 gives:
π 4A 1 1 f =A= 1 − + − ··· 2 π 3 5 1 1 1 π + − + ··· = 3 5 7 4 (iv) While the Fourier series represents a periodic function, it can be used to represent a non-periodic function just over one period if required. For example the square wave considered above can be represented by a Fourier series over just one period −π < t < π. or 1 −
Exercise on 17.9 Sketch the triangular wave f (t) = t = −t
0
f (t) = (t + 2π) for −5π < t < 5π. Is the function odd or even? The corresponding Fourier series is f (t) =
π 4 − 2 π
cos t +
1 1 cos 3t + · · · + cos(2r + 1)t + · · · 32 (2r + 1)2
(you will be asked to derive this in Section 17.10). What is the average value of the function over all time (consider the average value of any sinusoid over a complete period)? What is the fundamental component? Write down the amplitude of the nth harmonic. Deduce from the series that 1+
1 1 1 π2 + 2 + ··· + + ··· = 2 2 3 5 (2r + 1) 8
519
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
Answer
−3p
Even;
−2p
−p
0
p
2p
3p
t
π 4 4 if n = 2r + 1 is odd ; − ; 0 if n is even, and − 2 π π(2r + 1)2
17.10 The Fourier coefficients There are, in general, an infinite number of the coefficients an , bn of the Fourier series. So we cannot expect to determine them ‘all at once’. We had a similar situation with power series in Section 14.11 (435 ). There we found the coefficients one at a time by successive differentiation to remove all terms except the one that we wanted to determine at each stage. Such an approach won’t work in this case because no matter how many times you differentiate a sinusoidal function, it won’t go away! However, the integral formulae or ‘orthogonality relations’ given in Section 17.8 can serve a similar purpose in enabling us to eliminate all coefficients except the one we want, one at a time. We do this by multiplying through by cos nt or sin nt, integrating over a single period and using the orthogonality relations to remove all but the desired coefficient. An example will illustrate this more clearly. Suppose we want to find a3 in the series ➤
∞
f (t) =
∞
a0 + an cos nt + bn sin nt 2 n=1 n=1
Multiply through by cos 3t, the sinusoid that goes with a3 , and integrate over (−π, π) (any interval of length 2π will do). By the orthogonality relations of Section 17.8 every resulting integral on the right-hand side of the series will vanish except that corresponding to cos 3t itself, and we will obtain π π f (t) cos(3t) d t = a3 cos2 (3t) d t −π
−π
= πa3 So
520
1 a3 = π
−π
f (t) cos(3t) d t π
from Section 17.8
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
In general, we have an =
1 π
1 bn = π
π −π
f (t) cos nt d t
n = 0, 1, 2, . . .
f (t) sin nt d t
n = 1, 2, . . .
π −π
Problem 17.10 Verify the series for the square wave given in Section 17.9. We have f (t) = −A
−π
=A
0
Since the function has period 2π, we can take its series to be: ∞
f (t) =
∞
a0 + an cos nt + bn sin nt 2 n=1 n=1
Also, since the function is odd it can’t contain any even terms in the series, so we can take all an = 0, and write the series as f (t) =
∞
bn sin nt
n=1
We therefore have to find the bn . Multiplying through by sin mt and integrating over [−π, π] we have
π
−π
f (t) sin mt d t = =
π
∞
−π n=1 ∞
bn
n=1
= bm since
π −π
Now
bn sin nt sin mt d t π −π
sin nt sin mt d t
π
−π
sin2 mt d t
sin nt sin mt d t = 0 if m = n
π
1 sin mt d t = 2 −π =π
π
2
−π
(1 − cos 2mt) d t
521
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
So we get
πbm =
π
−π
=
0
−π
=A
f (t) sin mt d t
(−A) sin mt d t + cos mt m
0
−π
−A
π
A sin mt d t 0
cos mt m
π 0
A A = (1 − (−1)m ) − ((−1)m − 1) m m m (cos mπ = (−1) ) 2A (1 − (−1)m ) m
Note that since f (t) is odd we could have used (284 π π f (t) sin mt d t = 2 f (t) sin mt d t −π
So finally
➤
=
)
0
2A (1 − (−1)m ) mπ = 0 if m even 4A = if m odd mπ
bm =
or, reverting to n bn =
2A (1 − (−1)n ) nπ
The series is thus f (t) =
∞
bn sin nt =
n=1
∞ 2A (1 − (−1)n ) sin nt nπ n=1
4A 4A 4A sin t + sin 3t + sin 5t + · · · π 3π 5π 4A 1 1 = sin t + sin 3t + sin 5t + · · · π 3 5 =
Exercise on 17.10 Verify the series given in Exercise on 17.9 for the triangular wave f (t) = t −t
0
f (t) = f (t + 2π) 522
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
17.11 Reinforcement 1. Find the Laplace transforms of (i) 2 + t + 3t 2 (iii) et cos(2t)
(ii) 2 sin 3t + e−2t (iv) sin2 t
2. Write down the inverse Laplace transforms of (i) (iii) (v) (vii) (ix)
1 8 + 3 s4 s 1 s−4 2 4s − 3 s 2 s +9 5s + 4 s2 + 9
(ii) (iv) (vi) (viii) (x)
s 2 + 5s + 7 s4 1 s+4 c as + b 6 2 s +9 as + 6 s 2 + c2
where a, b, c are constants. 3. Find the inverses of the following Laplace transforms: (i)
s +3 s(s + 2)
s2 + 2 (s 2 + 1)(s + 1) 1 (v) (s − 1)(s + 2)2
(iii)
(ii)
1 (s + 1)(s − 3)
1 − 4) 1 (vi) (s 2 + 4)(s 2 + 9)
(iv)
s 2 (s
4. Solve the following initial value problems using the Laplace transform, and the results of Question 3. (i) y + 2y = 3
y(0) = 1
(ii) y − 3y = e−t
y(0) = 0
(iii) y + y = 2 sin t
y(0) = 2
(iv) y + 4y = t
y(0) = 0
(v) y − y = te−2t
y(0) = 0
(vi) y
+ 9y = 3 sin 2t
y(0) = y (0) = 0
In each case check your result by solution by another means (e.g. undetermined coefficients). 523
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
5. State which of the following functions of t are periodic and give the period when they are. √ 3πt (iii) cos( t) (i) tan 2t (ii) cos 2 (iv) sin t + cos 2t 2π (vii) sin t L
(v) sin |t|
(vi) | cos t| (ix) 4 cos 2t + 3 sin 4t
(viii) cos(4ωt)
(x) t 2 cos t. 6. What is the period of f (t) =
∞ 1 (an cos nωt + bn sin nωt)? a0 + 2 n=1
7. Obtain the Fourier series for the following functions defined on −π < t < π: (i) 2|t| (iii) t
2
−π
(ii) t
−π
(iv) f (t) = 0 =t
−π
(vi) f (t) = 0 =1
−π
(v) f (t) = −t 2 = t2 1 2 (vii) f (t) = 1 0
−π
−π
π −π < t < − 2 π π −
17.12 Applications Transform methods form a vast area of engineering mathematics, and this chapter only scratches the surface. In these applications we just flag up some of the key fundamental ideas which may come up in your engineering subjects. 1. One of the most important applications of Laplace transforms in engineering is in the solution of initial value problems of the sort discussed in Chapter 15. Particularly important are the sorts of engineering models described by inhomogeneous second order differential equations of the type covered in Chapter 15, Applications, question 6: mx¨ + β x˙ + αx = f (t) In Chapter 15 we solved this type of equation by the auxiliary equation and the method of undetermined coefficients. In the case when we have initial conditions, specifying x and x˙ at t = 0, the Laplace transform provides a powerful tool for solving such 524
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
equations and studying the properties of the solutions. This question is a significant project in which you are asked to repeat as much of the Chapter 15, Applications, Question 6 as you can using Laplace transform methods. Show that with zero initial conditions (i.e. a system that is initially at rest) the Laplace transform of x(t) can be written L[x(t)] = x(s) ˜ =
ms 2
f˜(s) + βs + α
where f˜(s) is the Laplace transform of the right-hand side f (t). Find the solutions x(t) for the constant forcing function f (t) = F0 H (t)
(H (t) the unit stepfunction)
for various values of m, β, α, considering cases of real, equal and complex roots of the quadratic. Consider also the sinusoidal forcing function f (t) = f0 cos υt and compare your solutions with the results of Chapter 15, Applications, Question 6. 2. The sorts of equations considered in question 1 are often used to describe a control system in which x(t) represents the response or output of the system to an input f (t). In this case the Laplace transform of the equation plays an important role in control theory, and the connection between the Laplace transform of the input to that of the output is called the transfer function of the system, denoted F (s). We write: x(s) ˜ = F (s)f˜(s) So, for example the transfer function of the system described in question 1 would take the form F (s) =
1 ms 2 + βs + α
The stability of the control system depends crucially on the poles of the transfer function – that is the roots of the denominator, ms 2 + βs + α, in this case. Control systems can obviously be of great complexity, and a particularly important feature is that of feedback. A control system has feedback when the output or some other signal is fed back to the input as a means of influencing the behaviour of the control system. A simple example is shown in Figure 17.8. Here, the input xi (t) is modified by subtraction of a feedback xf (t) to form xi (t) − xf (t) which is input to the control system which has transfer function G(s). The feedback xf (t) is formed by a modifying control system that converts the output xo (t) to xf (t) with a transfer function F (s), thus forming a feedback loop. If x˜i (s) and x˜o (s) are respectively the Laplace transforms of the input and output, show that the overall transfer function of the feedback system is G(s) 1 + F (s)G(s) 525
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
i.e. x˜o (s) =
G(s) x˜i (s) 1 + F (s)G(s) Control
x∼i
x∼i − x∼f
G (s )
x∼o
x∼f F (s )
x∼o
Feedback
Figure 17.8
By such means we can derive the transfer functions for ever more complex control systems. Many linear control systems have a transfer function that is a rational function. Show that if F (s) and G(s) are rational functions then so is the overall transfer function derived above. Discuss the poles of the overall transfer function in terms of those of the F (s) and G(s). Essentially, the study of the stability of a control system reduces to the study of the poles of such transfer functions – this is where all the work we did on rational functions in Chapter 2 comes in handy. 3. We have already emphasised the use of Fourier series in, for example, breaking up periodic signals into sinusoidal components that are more easily analysed and then recombined in a linear system. No doubt you will see more of this in your engineering subjects, whether it be in the analysis of coupled dynamical systems, heat transfer in solid bodies, or analysis of electronic and optical signalling systems. Here we look at a use of Fourier series in providing a succinct expression for the power in a periodic signal. The average power in a periodic signal x(t) (assumed to be of period 2π) is defined by π 1 x 2 (t) d t P = 2π −π If the signal can be expressed as a Fourier series in the form ∞
x(t) =
∞
a0 + an cos nt + bn sin nt 2 n=1 n=1
show that the average power can be written as ∞
P =
a02 1 2 + (a + bn2 ) 4 2 n=1 n
This is a particular case of a famous mathematical result called Parseval’s theorem, and the general principle it expresses is a key principle of the study of any sort of 526
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
periodic motion – the energy/power in any periodic phenomenon is proportional to the sum of the squares of the amplitudes of the sinusoidal components. If this reminds you of Pythagoras’ theorem, well . . .
17.13 Answers to reinforcement exercises 1.
2.
(i)
2s 2 + s + 2 s3
(ii)
s 2 + 6s + 21 (s + 2)(s 2 + 9)
(iii)
s−1 s 2 − 2s + 5
(iv)
2 s2 + 4
(i)
t2 (t + 24) 6
7 5 (ii) t + t 2 + t 3 2 6 (iv) e−4t
(iii) e4t (v)
1 3t/4 e 2
(vi)
(vii) cos 3t
(viii) 2 sin 3t
(ix) 5 cos 3t + 3.
4.
4 sin 3t 3
(x) a cos ct +
3 1 −2t − e 2 2 3 −t 1 1 (iii) e − cos t + sin t 2 2 2 1 t 1 −2t 1 −2t (v) e − e − te 9 9 3
1 3t (e − e−t ) 4 1 −4t 1 1 (iv) e − + t 16 16 4 1 1 (vi) sin 2t − sin 3t 10 15 1 3t (e − e−t ) 4 1 1 −4t 1 e − + t (iv) 16 16 4 3 2 (vi) sin 2t − sin 3t 5 5
3 1 −2t − e 2 2
(ii)
(iii) 3e−t − cos t + sin t (v) 5.
1 t 1 −2t 1 −2t e − e − te 9 9 3
(i) Period
π 2
(iv) Period 2π (vii) Period L
b sin ct c
(ii)
(i)
(i)
c −bt/a e a
(ii) Period
4 3
(v) Not periodic (viii) Period
π 2ω
(iii) Not periodic (vi) Period π (ix) Period π
(x) Not periodic 2π 6. ω 527
U n d e r s t a n d i n g E n g i n e e r i n g Ma t h e ma t i c s
(i) π −
7.
(ii) 2
∞ 8 cos(2n − 1)t π n=1 (2n − 1)2
∞ (−1)n
n
n=1
sin nt
(iii)
∞ (−1)n π2 +4 cos nt 3 n2 n=1
(iv)
∞ ∞ π (−1)n 1 ((−1)n − 1) cos nt + + sin nt 4 π n=1 n2 n n=1
∞ 2π 4 n n ((−1) − 1) − (v) (−1) sin nt πn2 n n=1 ∞
(vi)
(vii)
528
1 (1 − (−1)n ) + sin nt 2 n=1 nπ ∞ ∞
nπ
nπ 1 3 1
π + + sin cos nt + cos nπ − cos sin nt 2 8 n=1 2nπ 2 2nπ 2 n=1
Index
Absolute convergence 433 Acute angles 149 Addition of integrals 257 Addition of matrices 383 Adjoint matrix 393 Algebra 40 Algebra of complex numbers 353 Algebraic division 60 Algebraic equation 40 Algebraic expression 40 Alternate angles 149 Alternating series 431 Amplitude 182 Analytical geometry 205 Angle 148 Angle between two lines 327 Angle bisector theorem 153 Anti-derivative 253 Arc of a circle 156 Area under a curve 305 Argand plane 355 Argument 90 Argument of a complex number 355 Arithmetic series 104 Associative rule 41 Asymptotes 300 Auxiliary equation 464 Axioms 147 Base 18, 122 Base of natural logarithms 124 Basis vectors 328 Binomial 43, 72 Binomial theorem 72 BODMAS 11 Boundary conditions 449 Calculators 2 Cartesian coordinate system 91, 205 Centre of mass 312 Centroid 312
Chain rule 235 Chaos 442 Choosing integration methods 276 Chord 157 Closed interval 98 Coefficients 43 Cofactor 388 Complementary angles 149, 177 Common ratio 103 Commutative rule 41 Comparison test 430 Complementary function 462 Completing the square 66, 265 Complex number 353 Complex root 44 Components of a vector 328 Composition of functions 97 Compound angle formulae 187 Congruent triangles 152 Constant of integration 254 Constant 40 Continuity 418 Convergence 426, 428 Coordinate geometry 205 Coordinates 91, 205 Corresponding angles 149 Cosec 175 Cosine 175 Cosine rule 179 Cotangent 175 Cramer’s rule 391 Curve sketching 299 Cyclic quadrilateral 159 D’Alembert’s ratio test 432 De Moivre’s theorem 362, 365 Definite integral 278 Degree of polynomial 43 Degrees 148 Denominator 12, 55 Dependent variable 90
529
I n d e x
Derivative 231 Derivative of a vector 340 Determinant 388 Difference 10 Differential coefficient 231 Differential equation 246, 446 Differentiation 231 Differentiation from first principles 230 Direction cosine 325 Direction ratio 326 Discontinuity 414, 419 Discriminant 66 Distance between two points 208, 324 Distributive rule 41, 45 Divergence 426, 428 Division of a line 147 Domain 90 Dot product 334 Double angle formulae 188 Dummy index 102 Eigenvalue equation 398 Eigenvalue 398 Eigenvector 398 Electrical circuits 13, 31, 247, 371, 403 Equation 52 Equation of a circle 217 Equation of a line 212 Equilateral triangle 150 Equivalent fractions 12 Estimation 25 Euler’s formula 361, 464 Even function 94 Exponent 24 Exponential form of a complex number 361 Exponential function 122, 126 Expression 52 Exterior angle 151 Factor 8, 45, 52 Factor theorem 52 Factorial 16 Factorising 8, 45 First order equations 452 First shift theorem 509 Forced damped oscillations 477 Forcing functions 469 Formulae 93 Fourier coefficients 520 Fourier expansion 517 Fourier series 285, 515 Fraction 6, 12 Function 90
530
Function of a function 97 Function of a function rule 235 Function of two variables 484 Fundamental component 518 Fundamental theorem of algebra 44 General solution 449, 463 Geometric progression 103 Gradient of a curve 230, 292 Gradient of a line 210 Graph 91 Half angle formulae 188 Heron’s formula 178 Higher order derivatives 241 Higher order partial derivatives 489 Highest common factor (HCF) 9 Homogeneous equations 49 Homogeneous first order equation 456 Homgeneous system 397 Hyperbolic functions 138 Ideal gas law 94 Identity 50 Image 90 Imaginary axis 355 Imaginary number 19 Imaginary part 353 Implicit differentiation 238, 494 Implicit function 91 Improper fraction 12 Improper integral 279 Incompatible equations 49 Indefinite integral 253 Independent variable 90 Indeterminate form 412 Index 18, 70 Index of summation 102 Inequality 7, 97 Infinite arithmetic series 429 Infinite binomial series 106 Infinite geometric series 428 Infinite powers series 106, 423, 434 Infinite sequence 424 Infinite series 423, 428 Infinity 6 Inhomogeneous equation 462, 468 Initial conditions 449 Initial value problems 513 Integers 5 Integral transform 503 Integrand 253 Integrating factor 458
I n d e x
Integrating rational functions 265 Integration 253 Integration by parts 273 Intercept of a line 212 Intercept theorem 153 Intersecting lines 216 Interval 98 Inverse Laplace transform 512 Inverse matrix 381, 395 Inverse of a function 100 Inverse trig functions 184 Irrational number 6, 411 Isosceles triangle 150 Iteration 426
Monomial 43 Multiplication by a scalar 322, 331 Multiplication of matrices 383
Kinematics 311
Obtuse angles 149 Odd function 95 Open interval 98 Opposite angles 149 Order of differential equation 448 Ordinary differential equation 448 Orthogonality relations 517 Orthonormal basis 329 Orthonormal set 329
Laplace equation 490 Laplace transform 285, 504 Laplace transform of the derivative 509 Law of natural growth 127 Limit 125, 412 Line 147 Line segment 147 Linear approximation 441 Linear combination 463 Linear equation 48, 65 Linear expression 40 Linear first order equation 458 Linear inequality 99 Linear programmming 223 Linear substitution 260 Linear superpositions 515 Linear systems 515 Logarithm 130 Lowest common multiple (LCM) 9 Maclaurin’s series 434 Magnitude of a vector 320, 331 Mantissa 24 Mapping 90 Matrix 378 Maximum 294 Mean 110, 314 Method of least squares 312 Midpoint of a line 209 Minimum 294 Mixed fraction 12 Modulus 8 Modulus function 96 Modulus of a complex number 355 Moment of a force 347 Moment of inertia 313
Natural exponential function 124 Natural logarithm 130 Natural numbers 5 Negative numbers 5 Newton’s laws 245, 477 Newton’s method 427 Normal to a curve 230, 293 nth harmonic 518 nth term 105 Numerator 12, 55
Parallel lines 149, 214 Parallelogram law 321 Parametric differentiation 240 Parametric representation 91 Parametric representation of curves 219 Partial differential equation 490 Parseval’s theorem 526 Partial derivative 487 Partial fractions 62, 265 Partial sum 428 Particular integral 462, 469 Particular solution 449 Percentage 13 Period 182 Periodic functions 180 Permutation 16 Perpendicular lines 214 Phasors 198, 371 Piecewise continuous function 505 Plane 485 Plane geometry 149 Plotting a graph 92 Point 147 Point of inflection 294 Polar coordinates 206 Polar form of a complex number 355 Polynomial 43, 52 Polynomial equation 43, 52
531
I n d e x
Position vector 319 Power 18, 70 Prime number 8 Principal value 184 Product rule 234 Proof 155 Proof by contradiction 411 Proper fraction 12 Proportion 14 Pythagoras’ theorem 154 Pythagorean identity 185 Quadratic equation 65 Quadratic expression 41 Quadratic inequality 99 Quotient 10 Quotient rule 235 Radians 148, 173 Radius of convergence 436 Range 90 Rate of change 292 Ratio 14 Rational function 54 Rational number 6, 12, 410 Rationalisation 20 Rationalisation of complex numbers 355 Real axis 355 Real line 6 Real numbers 6 Real part 353 Reciprocal 13 Reciprocal function 90 Rectangular coordinate system 205 Reflex angles 149 Remainder theorem 61 Restrictions 300 Right angle 149 Right-angled triangle 150 Right-handed set 323 Rigour 88 Root mean square 314 Roots 44 Rounding 24 Rules of algebra 41 Rules of arithmetic 10 Rules of differentiation 234 Rules of indices 18 S(ketch) GRAPH 299 Scalar 318 Scalar product 334 Scalene triangle 150
532
Scientific notation 24 Secant 157 Second order equations 462 Sequence 102 Series 102 Sigma notation 102 Significant figures 23 Similar triangles 152 Simple harmonic oscillator 404 Simultaneous equations 48 Sine 175 Sine rule 178 Sine wave 182 Sinusoidal function 182, 515 Sketching a graph 92 Slope of a curve 230, 292, 421 Slope of a line 210 Solution 52 Solution of triangles 180 Solving inequalities 98 Square root 19 Stability 525 Standard derivatives 232 Standard integral 255 Stationary points 294 Step function 419, 506 Subscript 43 Substitution 260 Sum 10 Sum to infinity 105 Supplementary angles 148 Surd 20 Surface 485 Symbols 40 Symmetry 299 Tangent 157, 175 Tangent plane 486 Tangent to a curve 230, 293 Taylor series 434 Tensor 318 Torque 347 Total derivative 492 Total differential 492 Transfer function 525 Transpose 381 Transposing a formula 94 Transversal 149 Trap-door principle 9 Triangle 150 Triangle law 321 Triangular wave 507, 519 Trig identities in integration 269
I n d e x
Trig substitutions in integration 272 Trigonometric equations 191 Trigonometric functions 175 Trigonometric ratios 174 Trivial solution 397 Turning point 294 Undetermined coefficients Unit matrix 381 Unit vector 331 Variables 40 Variables separable 454
469
Variance 110 Vector 318 Vector function 339 Vector product 336 Volume of revolution 308 Vulgar fraction 12 Work done 334 Zero matrix 381 Zero vector 319 Zeros 6, 44
533