1 Calculus 1.1 Gradients and the Derivative π π (π₯+β) πΏπ¦ ((((π (( ( ( ( (((( π (( π π (π₯) πΏπ₯ 0 π₯ π₯+β Let π (π₯, π (π₯)) and π(π₯+β, π (π₯+β)) denote two points on the curve of the function π¦ = π (π₯) and let π denote the point of intersection of the horizontal through π with the vertical through π. Let πΏπ₯ = (π₯ + β) β π₯ = β and πΏπ¦ = π (π₯ + β) β π (π₯). Then the gradient of the chord π π is given by πΏπ¦ π (π₯ + β) β π (π₯) ππ = = . ππ πΏπ₯ β Let π π denote the tangent to the curve at π . The gradient to the curve π¦ = π (π₯) at π may be approximated by the chord π π by taking the point π to be suο¬ciently close to π . Let π take a succession of values taking it closer and closer to π then the straight line through π and π approaches closer and closer to the tangent π π . As π becomes arbitrarily close to, but never coinciding with π , the line through π π becomes arbitrarily close to the tangent π π . We shall write π β π , and say that βπ tends to π β. We shall also say that π tends to the limit π . Finally, we shall say that in the limit as π tends to π the gradient of the chord π π tends to the gradient of the tangent π π . The notion of limit may then be extended from points to numbers by saying that in the limit as π β π we have that πΏπ₯ β 0, β β 0 and π (π₯ + β) β π (π₯). It is clear now why we stipulate that π must not coincide with π, for in this case, πΏπ₯ = 0, β = 0, π (π₯ + β) = π (π₯) and the ratio ππ is indeterminate, being of the form β0/0β, sometimes called ππ an indeterminate form. We now abbreviate the phrase βin the limit as β tends to zeroβ by limββ0 and similarly for πΏπ₯ tending to zero, we write limπΏπ₯β0 . We deο¬ne the gradient of the tangent of the curve at the point π to be the limiting value of the gradient of the chord π π as π β π and we call this the derivative of the function π¦ = π (π₯) at π₯. Formally, Deο¬nition 1.1 The derivative of the function π¦ = π (π₯) at π₯ is ( ) π (π₯ + β) β π (π₯) β² π (π₯) = lim ββ0 β 1 or equivalently, ππ¦ πΏπ¦ = lim ππ₯ πΏπ₯β0 πΏπ₯ Notes 1. if π approaches π from the right (left) then β > 0 (β < 0). 2. the notation 1.2 ππ¦ ππ₯ does not indicate a ratio, it represents the limit of a ratio. Limits In the above diagram, π¦ = π (π₯), π is a ο¬xed point, π is a variable point, so π₯ is a ο¬xed number, and β is a variable. Let π β π from either the left (β < 0) or right (β > 0), and consider the values of π (π₯ + β) as β β 0. If β β 0 and β > 0 (β < 0) write β β 0+ (β β 0β). Consider the limits πππββ0β π (π₯ + β), πππββ0+ π (π₯ + β). If a limit gives a deο¬nite value, the limit is said to exist. If it does not give a deο¬nite value, the limit does not exist. For the function whose graph is shown in the diagram, the three numbers π (π₯), πππββ0+ π (π₯ + β), πππββ0β π (π₯ + β) all exist and are equal. In this case π¦ = π (π₯) is said to be continuous at π₯. If it happens that the three numbers are not all equal or some of them do not exist, then π¦ = π (π₯) is discontinuous at π₯. Many of the functions that we are familiar with are continuous, for example all polynomials, sinπ₯, cosπ₯, expπ₯. But, many, while being continuous for most values of π₯ also have some points of discontinuity, for example rational functions (at points where the denominator is zero but the numerator is not), tanπ₯, cosecπ₯, secπ₯, cotπ₯. Let π (π₯) = π₯2 and π₯ = 2 then πππββ0β (2 + β)2 = 22 = πππββ0+ (2 + β)2 . In this case, both limits and the value of the function exist and all three numbers are equal. Example 1.2 1. 2. Let π (π₯) = π₯1 and π₯ = 0 then π (0) is not deο¬ned. Also, if π₯ = β and β > 0 then as β β 0, β1 takes larger and larger values without bound. We write π (π₯) β β as π₯ β 0+. Similarly, if β < 0, β1 takes negative values with larger and larger magnitude. We write π (π₯) β ββ as π₯ β 0β. In this case, the value of the function is not deο¬ned and either the limits do not exist, or if one allows the possibility of ±β as a limit, then the limits are not equal. 3. The function π₯2 + π₯ π₯ is not deο¬ned at π₯ = 0 since division by zero is not allowed. It is not the same function π (π₯) = as π(π₯) = π₯ + 1. But for any value of π₯ other than 0, we do have π (π₯) = π(π₯) = π₯ + 1 and hence, since g(x) is continuous, lim π (π₯) = 1 π₯β0 i.e. as π₯ becomes closer and closer to 0, π (π₯) becomes closer and closer to 1. In this case the value of the function does not exist, while the limits exist and are equal. 2 Now we change notation and allow π₯ to be a variable. Theorem 1.3 Properties of Limits Let π be a ο¬xed number, and π (π₯) and π(π₯) functions of π₯. Then provided the limits exist ( ) ( ) lim (π (π₯) + π(π₯)) = lim π (π₯) + lim π(π₯) π₯βπ π₯βπ π₯βπ i.e. the limit of a sum equals the sum of the limits. ( )( ) lim (π (π₯)π(π₯)) = lim π (π₯) lim π(π₯) π₯βπ π₯βπ π₯βπ i.e. the limit of a product equals the product of the limits. The proof is beyond the scope of this course. An important example of a limit is the following: Theorem 1.4 For π measured in radians, as π β 0, we have sin π β 1. π Alternatively, sin π = 1. πβ0 π lim Proof: Once again, we cannot substitute π = 0 as this gives a division by zero. We use a geometric argument. Let the circle be of radius π. Z Z Z Z Z π· Z AZ AZ Z Z A π Z πΆ A Z A Z π΄ π΅ Z Z Z Z Since the line πΆπ· is a tangent to the circle, angle π΄π·πΆ is a right angle. Now consider the three areas: β³π΄π·π΅ < sector π΄π·π΅ < β³π΄π·πΆ. The area of β³π΄π·π΅ is 21 π2 sin π, the area of the π 1 sector is × ππ2 = π2 π and the area of β³π΄π·πΆ is 12 π2 tan π. Hence, 2π 2 1 2 1 1 π sin π < π2 π < π2 tan π 2 2 2 3 dividing by 12 π2 gives sin π < π < tan π The ο¬rst inequality gives sin π <1 π while the second gives cos π < Now let π β 0 then cos π β 1 and so Hence the result. 1.3 sin π . π sin π is trapped between 1 and a number tending to 1. π Diο¬erentiation The process of ο¬nding the derivative of a function is called diο¬erentiation. Having deο¬ned the derivative as the gradient of a curve, we now show how to use the deο¬nition to ο¬nd derivatives algebraically. Example 1.5 Let π¦ = π₯2 . Then we have ( ) ) ( ππ¦ π (π₯ + β) β π (π₯) (π₯ + β)2 β π₯2 = lim = lim ββ0 ππ₯ ββ0 β β ( 2 ) ( ) π₯ + 2π₯β + β2 β π₯2 2π₯β + β2 = lim = lim = lim (2π₯ + β) = 2π₯ ββ0 ββ0 ββ0 β β So, the derivative of π₯2 is 2π₯. The next example generalises this result to higher powers of π₯. Example 1.6 Let π¦ = π₯π , with π a positive integer. Then ( ) ( ) ππ¦ π (π₯ + β) β π (π₯) (π₯ + β)π β π₯π = lim = lim ββ0 ππ₯ ββ0 β β Expand (π₯ + β)π using the binomial theorem β only the ο¬rst few terms will be needed: ( π ) π₯ + ππ₯πβ1 β + 21 π(π β 1)π₯πβ2 β2 + 16 π(π β 1)(π β 2)π₯πβ3 β3 + ... + βπ β π₯π = lim ββ0 β ( ) 1 1 πβ1 πβ2 πβ3 2 πβ1 = lim ππ₯ + π(π β 1)π₯ β + π(π β 1)(π β 2)π₯ β + ... + β ββ0 2 6 cancelling ο¬rst the π₯π βs and then an β from the numerator and denominator. Now, let β β 0 then all but the ο¬rst term becomes zero, so ππ¦ = ππ₯πβ1 ππ₯ Note: Cancelling the ββs, eliminated the problem of division by 0 and eο¬ectively enabled us to put β = 0 in the remaining formula. 4 Example 1.7 Let π¦ = sin π₯. Then ( ) ( ) ππ¦ π (π₯ + β) β π (π₯) sin (π₯ + β) β sin π₯ = lim = lim ββ0 ππ₯ ββ0 β β Now, in the identity sin π β sin π = 2 cos ( π+π ) sin ( πβπ ), let π = π₯ + β, π = π₯ then 2 2 ( ) β 2 cos ( 2π₯+β ) sin ( ) ππ¦ 2 2 = lim ππ₯ ββ0 β ( ) β sin ( β2 ) = lim cos (π₯ + ) β ββ0 2 2 ) ( ( ) β ) sin ( β 2 = lim cos (π₯ + ) lim β ββ0 ββ0 2 2 and from theorem 1.4, sin ( β2 ) β 2 β 1 as β β 0, which leaves us with ( ) β ππ¦ = lim cos (π₯ + ) = cos π₯ ππ₯ ββ0 2 Similarly, we may diο¬erentiate π₯βπ for positive integral π, and cos π₯ (see example sheets) and also the functions ππ₯ and ln π₯. We summarise a few important derivatives which should be committed to memory. 1.3.1 Some Important Derivatives Function Derivative π₯π ππ₯πβ1 sin π₯ cos π₯ cos π₯ βsin π₯ π₯ π ππ₯ ln π₯ 1 π₯ Multiplication by a Scalar and a Sum of two functions Let π’(π₯) and π£(π₯) be functions of π₯ whose derivatives are known and let π be a constant number. Theorem 1.8 1. Then the derivative of the function π π’(π₯), is given by π ππ’ (π π’) = π ππ₯ ππ₯ 2. Then the derivative of their sum π’(π₯) + π£(π₯), is given by π ππ’ ππ£ (π’ + π£) = + ππ₯ ππ₯ ππ₯ 5 Proof: Using the deο¬nition of derivative, let π (π₯) = π’(π₯) + π£(π₯) ( ) ( ) ππ π (π₯ + β) β π (π₯) π’(π₯ + β) + π£(π₯ + β) β π’(π₯) β π£(π₯) = lim = lim ββ0 ππ₯ ββ0 β β ( ) π’(π₯ + β) β π’(π₯) π£(π₯ + β) β π£(π₯) = lim + ββ0 β β ) ( ) ( π£(π₯ + β) β π£(π₯) ππ’ ππ£ π’(π₯ + β) β π’(π₯) + lim = + = lim ββ0 ββ0 β β ππ₯ ππ₯ A function π (π₯) may be the product of two simpler functions, e.g. π (π₯) = (π₯2 + 1)ππ₯ is a product of π₯2 + 1 and ππ₯ . Then π (π₯) may be diο¬erentiated using the product rule. Theorem 1.9 Product Rule Let π (π₯) = π’(π₯)π£(π₯), where π’(π₯) and π£(π₯) are functions of π₯. Then π ππ’ ππ£ (π’(π₯)π£(π₯)) = π£ +π’ ππ₯ ππ₯ ππ₯ Proof: First Method. Let π¦(π₯) = π’(π₯)π£(π₯). As π₯ is incremented to π₯ + πΏπ₯, let π’, π£, π¦ change to π’ + πΏπ’, π£ + πΏπ£, π¦ + πΏπ¦ then π¦(π₯ + πΏπ₯) = π¦ + πΏπ¦ = (π’ + πΏπ’)(π£ + πΏπ£) and so πΏπ¦ = (π’ + πΏπ’)(π£ + πΏπ£) β π’π£ i.e. πΏπ¦ = π’πΏπ£ + π£πΏπ’ + πΏπ’πΏπ£ Using the deο¬nition of derivative, ( ) ππ¦ πΏπ¦ = lim ππ₯ πΏπ₯β0 πΏπ₯ ( ) π’πΏπ£ + π£πΏπ’ + πΏπ’πΏπ£ = lim πΏπ₯β0 πΏπ₯ i.e. ( ) πΏπ£ πΏπ’ πΏπ£ = lim π’ + π£ + πΏπ’ πΏπ₯β0 πΏπ₯ πΏπ₯ πΏπ₯ now using the theorems about limits, ( ) ( ) ( ) πΏπ£ πΏπ’ πΏπ£ = lim π’ + lim π£ + lim πΏπ’ πΏπ₯β0 πΏπ₯β0 πΏπ₯β0 πΏπ₯ πΏπ₯ πΏπ₯ ( ) πΏπ£ πΏπ’ πΏπ£ = π’ lim + π£ lim + lim πΏπ’ lim πΏπ₯β0 πΏπ₯ πΏπ₯β0 πΏπ₯ πΏπ₯β0 πΏπ₯β0 πΏπ₯ ππ£ ππ’ =π’ +π£ ππ₯ ππ₯ 6 which is the required formula, and completes the proof. Second method. Again, using the deο¬nition of derivative, ( ) ππ π (π₯ + β) β π (π₯) = lim ππ₯ ββ0 β ) ( π’(π₯ + β)π£(π₯ + β) β π’(π₯)π£(π₯) = lim ββ0 β ) ( π’(π₯ + β)π£(π₯ + β) β π’(π₯ + β)π£(π₯) + π’(π₯ + β)π£(π₯) β π’(π₯)π£(π₯) = lim ββ0 β ) ( )) ( ( π’(π₯ + β) β π’(π₯) π£(π₯ + β) β π£(π₯) + π£(π₯) = lim π’(π₯ + β) ββ0 β β but the limit of a sum is the sum of the limits ( ( )) ( ( )) π£(π₯ + β) β π£(π₯) π’(π₯ + β) β π’(π₯) = lim π’(π₯ + β) + lim π£(π₯) ββ0 ββ0 β β and letting β β 0, π’(π₯ + β) β π’(π₯), giving ( ) ( ) π£(π₯ + β) β π£(π₯) π’(π₯ + β) β π’(π₯) = π’(π₯) lim + π£(π₯) lim ββ0 ββ0 β β =π’ ππ’ ππ£ +π£ ππ₯ ππ₯ which is the required formula. Example 1.10 Let π¦ = π₯2 sin π₯. Let π’ = π₯2 and π£ = sin π₯. Then ππ¦ π ππ’ ππ£ = (π’π£) = π£ +π’ = (sin π₯)2π₯ + π₯2 (cos π₯) ππ₯ ππ₯ ππ₯ ππ₯ = 2π₯ sin π₯ + π₯2 cos π₯ Example 1.11 Let π¦ = π₯ln π₯. We can let π’ = π₯ and π£ = ln π₯. Then ( ) ππ¦ π ππ’ ππ£ 1 = (π’π£) = π£ +π’ = (ln π₯)1 + π₯ ππ₯ ππ₯ ππ₯ ππ₯ π₯ = 1 + ln π₯ Suppose we wish to diο¬erentiate the function π¦ = sin (π₯2 ). This is a function of a function in the sense that the output from the function π₯2 is the input for the π πππ function. Let π’ = π₯2 , then π¦ = sinπ’, and we now have two simpler functions, each of which we can diο¬erentiate diο¬erentiate. The following theorem enables us to diο¬erentiate the composite function π¦ = sin (π₯2 ). A function like this is called a function of a function. In the example, π¦ is the function sin of the function π₯2 . 7 Theorem 1.12 Chain Rule or Function of a Function Rule Let π¦ = π (π’) and π’ = π(π₯) then the derivative of the function π¦ = π (π(π₯)) is given by ππ¦ ππ¦ ππ’ = ππ₯ ππ’ ππ₯ Proof: From the deο¬nition of derivative ππ¦ πΏπ¦ = lim ππ₯ πΏπ₯β0 πΏπ₯ where πΏπ₯ represents an increment in π₯ and πΏπ¦ representing the corresponding increment in π¦. Let the change in π’ corresponding to an increment πΏπ₯ in π₯ be πΏπ’ then πΏπ¦ πΏπ¦ πΏπ’ = πΏπ₯ πΏπ’ πΏπ₯ and so ππ¦ πΏπ¦ πΏπ’ = lim . ππ₯ πΏπ₯β0 πΏπ’ πΏπ₯ Using the theorems on limits, ππ¦ = ππ₯ ( πΏπ¦ lim πΏπ₯β0 πΏπ’ ) ( πΏπ’ lim πΏπ₯β0 πΏπ₯ ) . ππ¦ ππ’ ππ’ ππ₯ which is the derivative of π¦ with respect to π’ multiplied by the derivative of π’ with respect to π₯. = Example 1.13 Diο¬erentiate π¦ = sin (π₯2 ). Let π’ = π₯2 then π¦ = sinπ’ and ππ¦ = cos π’, ππ’ ππ’ = 2π₯. ππ₯ Hence, using the chain rule ππ¦ ππ¦ ππ’ = = (cos π’)2π₯ = 2π₯ cos π₯2 ππ₯ ππ’ ππ₯ With practice it is possible to use the chain rule without explicitly making the substitution. Example 1.14 Let π¦ = πsin π₯ . Let π’ = sin π₯, then π¦ = ππ’ . Now, applying the chain rule: ππ¦ ππ¦ ππ’ = = ππ’ cos π₯ = cos π₯ πsin π₯ ππ₯ ππ’ ππ₯ Example 1.15 Let π¦ = ln (π₯ + 3). Let π’ = π₯ + 3, then π¦ = ln π’. Now, applying the chain rule: ππ¦ ππ¦ ππ’ 1 1 = = 1= ππ₯ ππ’ ππ₯ π’ π₯+3 8 Example 1.16 Let π¦ = 1 π€ = π€β1 for any function π€ of π₯. Now, applying the chain rule: ππ¦ ππ¦ ππ€ ππ€ 1 ππ€ = = βπ€β2 =β 2 ππ₯ ππ€ ππ₯ ππ₯ π€ ππ₯ Theorem 1.17 Quotient Rule. Let π’ = π’π£ β1 π£ for any functions π’ and π£ of π₯. Let π€ = π£ β1 and apply the product rule: ( ) ππ¦ ππ’ ππ€ 1 ππ£ β1 ππ’ =π€ +π’ =π£ +π’ β 2 ππ₯ ππ₯ ππ₯ ππ₯ π£ ππ₯ π¦= = ππ£ π£ ππ’ β π’ ππ₯ ππ₯ π£2 This is known as the quotient rule. Example 1.18 Let π¦ = ππ₯ . So, using the quotient rule: π₯ π£ ππ’ β π’ ππ£ π₯ππ₯ β ππ₯ ππ¦ = ππ₯ 2 ππ₯ = = ππ₯ π£ π₯2 Example 1.19 Let π¦ = tan π₯ = ( π₯β1 π₯2 ) ππ₯ sin π₯ . So, we using the quotient rule: cos π₯ π£ ππ’ β π’ ππ£ cos π₯ cos π₯ β sin π₯ (βcos π₯) ππ¦ = ππ₯ 2 ππ₯ = ππ₯ π£ cos2 π₯ 1 = = sec2 π₯ 2 cos π₯ Using the basic functions, and the rules for diο¬erentiating products, quotients and functionβ ofβaβfunction, it is possible to diο¬erentiate a wide range of functions. Two last examples should suο¬ce: 2 ππ₯ 2 Example 1.20 Let π¦ = . This is a quotient, so we use that rule, but along the way ππ₯ sin π₯ needs to be diο¬erentiated using the chain rule. 2 2 π£ ππ’ β π’ ππ£ ππ¦ (sin π₯)(2π₯ππ₯ ) β (ππ₯ )(cos π₯) = ππ₯ 2 ππ₯ = ππ₯ π£ sin2 π₯ 2 ππ₯ = (2π₯sin π₯ β cos π₯) 2 sin π₯ Example 1.21 Let π¦ = (1 + cos π₯2 )6 . This is a function of a function of a function: let π’ = 1 + cos π₯2 then π¦ = π’6 may be diο¬erentiated with respect to π’. To diο¬erentiate π’ = 1 + cos π₯2 we may use the chain rule again to diο¬erentiate π’ w.r.t π₯. So let π£ = π₯2 then π’ = 1 + cos π£. The formula for the derivative becomes ππ¦ ππ¦ ππ’ ππ£ = ππ₯ ππ’ ππ£ ππ₯ 9 Note: this is the product of all the functions, diο¬erentiated with respect to their argument and multiplied together (justifying the term chain rule). Hence, ππ¦ = 6π’5 (βsin π£) 2π₯ ππ₯ = 6(1 + cos π₯2 )5 (β2π₯ sin π₯2 ) = β12π₯ sin π₯2 (1 + cos π₯2 )5 1.4 Implicit Diο¬erentiation Let π¦ = π (π₯) then π¦ is called an explicit function of π₯, e.g. π¦ = π₯2 . Substituting a value of π₯ gives a value of π¦. However, consider the example π₯2 + π¦ 2 = 1. which represents the equation of a circle. In this case substituting a value of π₯ such that β1 β€ π₯ β€ +1 merely gives a value for π¦ 2 . To ο¬nd π¦ further operations are required, including taking theβsquare root. Here, π¦ is not a function of π₯, since rearranging the expression to get π¦ = ± 1 β π₯2 , we may have two values for π¦, or 1 value or even none ( a function must give exactly one value). The general case is often written π (π₯, π¦) = 0 and is called an implicit relation between π₯ and π¦. In order to diο¬erentiate an implicit expression, we proceed as follows. Example 1.22 In chapter 2 we obtained the trigonometric identity sin 2π₯ = 2sin π₯ cos π₯. Suppose we diο¬erentiate both sides (the left is a function of a function, while the right is a product): 2 cos 2π₯ = 2(sin π₯)(βsin π₯) + (cos π₯)(cos π₯) = 2(cos2 π₯ β sin2 π₯) and cos2 π₯βsin2 π₯ is the formula for cos2π₯, so, diο¬erentiating an identity also gives an identity. We can also diο¬erentiate: ) π ( 2 π (1) π₯ + π¦2 = ππ₯ ππ₯ π ( 2) π ( 2) π₯ + π¦ =0 ππ₯ ππ₯ π To obtain ππ₯ (π¦ 2 ) we use the chain rule: let π’ = π¦ 2 , then ππ’ ππ’ ππ¦ ππ¦ = = 2π¦ . ππ₯ ππ¦ ππ₯ ππ₯ Hence 2π₯ + 2π¦ ππ¦ =0 ππ₯ and rearranging this gives: ππ¦ π₯ =β ππ₯ π¦ Note that the right hand side contains π¦, and this may be obtained by solving the implicit relation for π¦, if required. Implicit diο¬erentiation is very useful in ο¬nding the derivatives of inverse functions. 10 1.5 Example Let π¦ = tanβ1 π₯, the inverse tan function (and not 1 ). tan π₯ We can rearrange the formula so as to eliminate the inverse function in favour of π‘ππ by taking the tangent of both sides, to obtain π₯ = tan π¦ and then diο¬erentiate both sides: π π (π₯)= (tan π¦) ππ₯ ππ₯ ππ¦ ππ₯ Now, from the identity sec2 π¦ = 1 + tan2 π¦ = 1 + π₯2 , we get 1 = sec2 π¦ ππ¦ 1 = ππ₯ 1 + π₯2 which is the formula for the derivative of tanβ1 π₯. We end this section on diο¬erentiation by a summary of results. Some of these have been proved, or solved in examples. Others are on exercise sheets. Function Derivative π₯π ππ₯πβ1 sin π₯ cos π₯ cos π₯ βsin π₯ tan π₯ sec2 π₯ cot π₯ βcosec2 π₯ sec π₯ sec π₯ tan π₯ cosec π₯ βcosec π₯ cot π₯ π₯ π ππ₯ ln π₯ 1 π₯ sinβ1 π₯ β cosβ1 π₯ tanβ1 π₯ 2 1 1 β π₯2 β1 β 1 β π₯2 1 1 + π₯2 Applications of the Derivative ππ¦ The derivative has been deο¬ned as the gradient of a curve. In other words, ππ₯ represents the rate of change of π¦ with respect to π₯. As an example, if π¦ represents distance, and π₯ time, this becomes the rate of change of distance with respect to time, i.e. speed. Note also, if we diο¬erentiate again, we measure the rate of change of speed, i.e. acceleration. ππ Suppose we have a function π (π₯). We may interpret ππ₯ = 0 as follows. 11 π (π₯) ππ = 0, the gradient of the graph is zero and the tangent to the curve is horizontal. When ππ₯ A point at which this happens is called a stationary point or critical point. There are three possibilities. The diagram shows a local maximum and the gradient is changing from positive to negative as we move from left to right through the stationary point. Similarly, we may draw a local minimum and in this case the gradient changes from negative to positive as we move from left to right through the stationary point. Such points are called turning points. The third possibility is that the sign of the gradient remains the same (either positive or negative) either side of the stationary point and this is called a point of inο¬ection. An example is provided by the curve of π¦ = π₯3 at the point π₯ = 0, the gradient is zero there but the gradient is positive everywhere else. 2.1 Example Find the maximum value of the function π¦ = 2 + 3π₯ β π₯2 Solution: Diο¬erentiating, ππ¦ = 3 β 2π₯ = 0 ππ₯ which gives π₯ = 1.5. Substituting this into the equation, we get π¦ = 4.25. To see whether it is a maximum or a minimum, we may calculate the gradient either side of π₯ = 1.5, π β² (1.4) = 0.2 > 0 π β² (1.6) = β0.2 < 0 so we deduce that 4.25 is the maximum. ππ¦ A function may have several values of π₯ where ππ₯ = 0, for example, sin π₯ has many (in fact inο¬nitely many) maxima and minima. There is an alternative way of classifying stationary points, which involves ο¬nding the second derivative of the function and evaluating it at the stationary point. Theorem 2.1 Second derivative test. Let π¦ = π (π₯) and let if π2 π¦ >0 ππ₯2 12 ππ¦ ππ₯ = 0 at the point π₯ = π₯0 . Then 1. at π₯ = π₯0 then the stationary point is a minimum. 2. if π2 π¦ <0 ππ₯2 at π₯ = π₯0 then the stationary point is a maximum. 3. if π2 π¦ =0 ππ₯2 at π₯ = π₯0 then the test fails and further investigation is needed. Example 2.2 Find and classify the turning points of the function π¦ = π₯3 β 3π₯ + 1. Solution: Diο¬erentiating, ππ¦ = 3π₯2 β 3 = 0 ππ₯ so there are two turning points at π₯ = 1 and π₯ = β1. Using the second derivative test: π2 π¦ = 6π₯ ππ₯2 2 π π¦ If π₯ = +1 then ππ₯ 2 = +6 which is positive, so we have a minimum. π2 π¦ If π₯ = β1 then ππ₯2 = β6 which is negative, so we have a maximum. Let π₯ = 0 then π¦ = 1. This gives suο¬cient information to sketch the curve. 13 3 1 1 β1 β1 More examples of maxima and minima can be found on the problem sheets. 14
© Copyright 2026 Paperzz