This whole subtopic is higher level. Nothing in it is on an SL paper.
Educerie · IB Diploma · Mathematics: analysis and approaches
IB Mathematics AA 5.15 · HL only
Further derivatives and integrals
How do you differentiate tanx, secx, cosecx, cotx, ax, logax and the inverse trigonometric functions, and how does reading those results backwards let you integrate expressions such as x2+6x+101 that SL calculus could not touch?
What you will learn
HL Know the derivatives of tan, sec, cosec, cot, a to the x, log base a and the three inverse trigonometric functions
HL Understand that each of these derivatives read backwards gives a standard integral, including with ax + b inside
HL Understand how completing the square and partial fractions turn a quadratic denominator into an arctan, arcsin or logarithm integral
HL Understand an indefinite integral as a family of curves, one of which is fixed by a given point
You must be able to
HL Find integrals of the form 1 ÷ a² + x² and 1 ÷ √(a² − x²), including after completing the square
HL Differentiate composites and products involving tan, sec, cosec, cot, a to the x and log base a
HL Show that the derivative of arcsin x, arccos x or arctan x is the standard result, by implicit differentiation
HL Use partial fractions to integrate a rational function and give the answer as a single logarithm
HL Integrate a standard derivative with a linear function inside, dividing by the coefficient of x
HL Find the equation of a curve from its gradient function and a point on it
In the exam. mostly Paper 1 (no calculator): differentiate or integrate with the booklet's standard results, usually 2 to 4 marks a part; "show that x2−10x+26=(x−5)2+1 and hence find the exact value of…", ending in known arctan or arcsin values (about 4 or 5 marks); partial fractions followed by an integral with modulus signs (about 4 marks). Paper 2: the same results inside a longer problem, such as a model solved with partial fractions. Paper 3: ax and logax inside an investigation, for example finding the base for which the line y=x touches y=logax.
1Four more trigonometric derivatives
tanx. Write it as cosxsinx and apply the quotient rule.
cosecx and cotx come out the same way from (sinx)−1 and sinxcosx. All four are in the formula booklet; a "show that" can ask you to derive one.
f(x)
f′(x)
tanx
sec2x
secx
secxtanx
cosecx
−cosecxcotx
cotx
−cosec2x
To remember them, swap each function for its "co-" partner and add a minus sign. tan→sec2 becomes cot→−cosec2, and sec→sectan becomes cosec→−coseccot. The minus belongs to the co-functions, as it does in dxd(cosx)=−sinx.
Figure 1 shows the first result: sec2x≥1, so tanx rises on every branch, with gentlest slope 1 at x=0 and unbounded gradient near each asymptote.
Figure 1 · y = tan x and its gradient function y = sec²x
For composites, differentiate the outer function, then multiply by the derivative of the inside.
dxd(sec4x)=4sec4xtan4xdxd(tanx3)=3x2sec2(x3)dxd(cot(2x+1))=−2cosec2(2x+1)dxd(x2tanx)=2xtanx+x2sec2xproduct ruledxd(tan3x)=3tan2x⋅sec2xa power of a function: outer power, then inner derivativedxd(sec2x)=2secx⋅secxtanx=2sec2xtanx
Worked example 1. Paper 1. Let f(x)=tanx−2x for −2π<x<2π. Find the stationary points and classify them.
The point (4π,1−2π) is a local minimum, and (−4π,2π−1) is a local maximum.
2ax and logax
ax
Rewrite any positive base in base e: a=elna, so ax=exlna.
The chain rule gives the result.
ax=exlnadxd(ax)=exlna×lna=axlna
A second route, for "by taking logarithms": let y=ax, so lny=xlna. Differentiate both sides with respect to x: y1dxdy=lna, so dxdy=ylna=axlna.
logax
Change the base first: logax=lnalnx. Because lna is a constant, dxd(logax)=xlna1.
Both are in the booklet, for a>0, a=1 (and x>0 for the logarithm).
Figure 2 draws 2x, ex and 3x with their tangents at x=0. Each passes through (0,1) with gradient lna: about 0.693, exactly 1, about 1.10. That is why e is the natural base: the factor lna vanishes.
The 4 cancels because log3(4x)=log34+log3x and log34 is a constant.
Worked example 2. Paper 2. A culture of bacteria has N=250×1.3t cells after t hours. Find the rate of growth when t=4, and the equation of the tangent to y=log2x at the point where x=8.
dtdN=250×1.3tln1.3dtdNt=4=250×2.8561×0.26236…≈187 cells per houry=log2x:dxdy=xln21,so at x=8 the gradient is 8ln21,and y=3y−3=8ln21(x−8)
3arcsinx, arccosx and arctanx
These follow from implicit differentiation (AHL 5.14). The booklet gives them, but a "show that" can ask for the proof.
arcsinx. Let y=arcsinx, so siny=x, with −2π≤y≤2π.
siny=xcosy⋅dxdy=1differentiate both sides with respect to xdxdy=cosy1cosy=1−sin2y=1−x2positive root, because cosy≥0 when −2π≤y≤2πdxd(arcsinx)=1−x21
arccosx
Let y=arccosx, so cosy=x with 0≤y≤π. Then −sinydxdy=1, and siny=+1−x2 on [0,π], so dxd(arccosx)=−1−x21.
It is the exact negative of the arcsin result. That must be so: arcsinx+arccosx=2π is constant, so the derivatives sum to zero.
Figure 3 sets arcsin and arctan beside their gradient functions. arcsin becomes vertical at x=±1, so its derivative has asymptotes there. arctan is steepest at x=0, with maximum gradient 1, and flattens towards y=±2π.
Figure 3 · arcsin x and arctan x, with their gradient functions
dxd(arcsin3x)=1−9x23dxd(arctan5x)=1+25x251=25+x25multiply top and bottom by 25dxd(arccosx2)=−1−x42xdxd(x2arccosx)=2xarccosx−1−x2x2product rule
Worked example 3. Paper 1. Show that dxd(arctanx1)=−1+x21 for x>0.
dxd(arctanx1)=1+x211×(−x21)=x2+1x2×(−x21)=−1+x21chain rule, inner derivative of x−1
Worked example 4. Paper 1. Let g(θ)=tanθ+2cotθ for 0<θ<2π. Show that g has a minimum at θ=arctan2 and find its value.
g′(θ)=sec2θ−2cosec2θ=01+tan2θ=2(1+tan2θ1)⇒tan4θ−tan2θ−2=0⇒tan2θ=2tanθ=2(positive on the interval),θ=arctan2g(θ)=2+22=22
For the second derivative, g′′(θ)=2sec2θtanθ+4cosec2θcotθ. Draw a right triangle with opposite side 2 and adjacent side 1, so tanθ=2; the hypotenuse is 3. Then sec2θ=3 and cosec2θ=23, and cotθ=21.
g′′(θ)=2(3)(2)+4(23)21=62+32=92>0
So the stationary point is a minimum, with value 22. Use the triangle for any exact trigonometric value at an arctan, arcsin or arccos.
4Reading the derivatives backwards
Each derivative gives an integral for free. The guide asks for the indefinite integrals of all of them.
Integral
Result
∫sec2xdx
tanx+C
∫secxtanxdx
secx+C
∫cosecxcotxdx
−cosecx+C
∫cosec2xdx
−cotx+C
∫axdx
lnaax+C
∫1−x21dx
arcsinx+C
∫1+x21dx
arctanx+C
The booklet gives the last two with a constant a:
∫a2+x21dx=a1arctanax+C and ∫a2−x21dx=arcsinax+C, for ∣x∣<a.
Differentiating confirms the first: a1×a1×1+a2x21=a2+x21. The arctan result carries a factor a1. The arcsin result does not. This is the commonest slip in the subtopic.
The integral of −1−x21 can be written −arcsinx+C or arccosx+C. Both are right. They differ by 2π, which C absorbs.
Definite versions give exact answers at known angles:
tan2x is not in the table, but 1+tan2x=sec2x rewrites it: ∫tan2xdx=∫(sec2x−1)dx=tanx−x+C.
The same step turns cot2x into cosec2x−1, giving −cotx−x+C.
Splitting a fraction first. Split a fraction in sinx and cosx and rename each piece (sinx1=cosecx, sinxcosx=cotx), after any identity that tidies the denominator.
Worked example 5. Paper 1. Find ∫1−cos2x3cosx−2dx.
When the coefficient sits on x2, take it out first so the booklet form appears.
Worked example 6. Paper 1. Find (a) ∫25+4x21dx and (b) ∫9−4x21dx.
25+4x2=4(425+x2)so a=25factor out the coefficient of x2∫25+4x21dx=41⋅52arctan52x+C=101arctan52x+C9−4x2=4(49−x2)=2(23)2−x2the square root of 4 comes out as 2∫9−4x21dx=21arcsin32x+C
The 4 outside the bracket became 41 in (a) but 21 in (b), because it sat under a square root.
Worked example 7. Paper 2. Find the exact value of k such that ∫1k2xdx=ln212, where k>1.
∫1k2xdx=ln22k−2=ln2122k=14⇒k=log214=ln2ln14
6Completing the square
A quadratic denominator that does not factorise can be written as (x+p)2+q2. That is the arctan shape with x+p in place of x, a linear composite with coefficient 1, so section 5 applies.
Worked example 8. Paper 1. Find ∫x2+8x+201dx.
x2+8x+20=(x+4)2+4half of 8 is 4; 20 - 16 = 4∫(x+4)2+221dx=21arctan2x+4+C
Under a square root the same move gives the arcsin shape. Factor out the minus sign first.
When the top is linear, write it as a multiple of the derivative of the bottom, plus a constant.
The multiple integrates to a logarithm (reverse chain rule, SL 5.10). The constant gives an arctan.
Worked example 11. Find ∫x2+4x+85x+4dx.
5x+4=25(2x+4)−6the bottom has derivative 2x + 4∫x2+4x+85x+4dx=25∫x2+4x+82x+4dx−6∫(x+2)2+41dx=25ln(x2+4x+8)−6⋅21arctan2x+2+C=25ln(x2+4x+8)−3arctan2x+2+Cthe quadratic is always positive, so no modulus
7Partial fractions: when the denominator factorises
If the quadratic factorises, split into partial fractions (AHL 1.11). Each piece is a logarithm, because ∫x+k1dx=ln∣x+k∣+C. Here the denominator has at most two distinct linear factors. The numerator has lower degree.
Worked example 12. Paper 1. Find ∫46(x−2)(x+5)2x+17dx, giving your answer as a single logarithm.
The discriminant decides the method. Figure 4 lays out the choice.
Figure 4 · Which method for ∫ 1 ÷ quadratic dx
8An indefinite integral is a family of curves
∫f(x)dx=F(x)+C does not name one function. It names infinitely many, one for each value of C. Their graphs are vertical translations of each other.
At any fixed x every member has the same gradient. That is what "the derivative is f(x)" says. Figure 5 draws several members of the family y=arctan2x+C.
Figure 5 · The family y = arctan 2x + C, and the member through (½, π)
One extra fact, such as a point the curve passes through, picks a single member.
Worked example 13. Paper 1. A curve has gradient function dxdy=1+4x22 and passes through (21,π). Find its equation.