Derivatives of algebraical and trigonometrical functions
§§119–12035 min
Rational powers, implicit functions, the six trigonometrical functions and their inverses, with the sign conventions that Hardy’s many-valued inverse functions require.
§119 and §120 complete the table of standard derivatives for every function so far defined in the book: powers with rational exponents, functions defined implicitly by an algebraic equation, the trigonometrical functions, and their inverses. Two ideas carry most of the weight. The inverse-function rule produces the derivatives of qx, arcsinx and arctanx from those of xq, sinx and tanx. Implicit differentiation finds the slope of a curve such as x3+y3=3axy without solving for y.
The idea
The inverse-function rule says that reflecting a graph in the line y=x turns each tangent slope m into 1/m. Every derivative of an inverse function in this lesson is that one picture, plus a formula that rewrites 1/ψ′(y) in terms of x.
ExploreReflect the graph, invert the slope
Try this.With sin and arc sin, move y and compare the two slopes in the read-out. Then push y all the way to 21π. Switch to y3 and 3x and move y through 0.
x=ψ(y)=siny, inverse y=ϕ(x)=arcsinx
xy
y = φ(x), the inverse
its mirror image, the graph of ψ
tangent to φ
the mirror line y = x
At y=0.6, x=ψ(y)=0.5646. Slope of ψ: ψ′(y)=0.8253. Slope of ϕ: ϕ′(x)=1/ψ′(y)=1.212, in general ϕ′(x)=cosy1=1−x21.
What to notice
The two tangents are mirror images, so their slopes are reciprocal: ϕ′(x)=1/ψ′(y). When ψ′(y)=0 (sine at y=21π, cube at y=0) the reflected tangent is vertical, and the inverse function has no derivative there. That is why (arcsinx)′=1/1−x2 blows up at x=±1 and (3x)′ at 0.
Rational powers. For y=xp/q, with q>0 and x>0, put z=x1/q. Then x=zq and y=zp are integer powers of z, and the rules for those combine:
Implicit functions. If y is defined by an equation such as x3+y3−3axy=0, we differentiate the equation through, treating y as a function of x and using the chain rule on y3 and the product rule on xy:
3x2+3y2dxdy−3a(y+xdxdy)=0,sodxdy=y2−axay−x2.
Hardy notes that this method takes for granted that yis a differentiable function of x near the point in question. That is a real theorem (the implicit function theorem), and he returns to it in Chapter VII. In practice the calculation is exactly as shown.
Precise statements
TheoremRational powersHardy: §119
For every rational m, dxdxm=mxm−1 when x>0, and also for x<0 whenever xm is defined there. More generally dxd(ax+b)m=ma(ax+b)m−1.
Here y denotes the value of the inverse function in question. For arc sin and arc cos the upper sign holds when cosy>0 and when siny>0 respectively; for arc sec and arc cosec, when siny>0 and when cosy>0 respectively. For the usual principal values (−21π≤arcsinx≤21π, 0≤arccosx≤π, 0≤arcsecx≤π, −21π≤arccosecx≤21π) the upper signs hold: for example (arcsinx)′=1/1−x2 and (arccosx)′=−1/1−x2 for −1<x<1.
Combined with the chain rule these give, for a=0, dxdarcsinax=±a2−x21 and dxdarctanax=x2+a2a, which return in Hardy’s integration sections.
Proofs
ProofDxtanx=sec2x and Dxsecx=tanxsecx
Strategy
Write each function as a quotient or reciprocal of sin and cos, whose derivatives are known (Examples XXXIX, 4), and apply rules (4) and (5).
Tangent
tanx=sinx/cosx, so wherever cosx=0, (tanx)′=cos2xcosxcosx−sinx(−sinx)=cos2x1=sec2x.
Secant
secx=1/cosx, so (secx)′=−cos2x−sinx=cosxsinx⋅cosx1=tanxsecx.
The other two
cotx=cosx/sinx and cosecx=1/sinx are handled in the same way, giving −cosec2x and −cotxcosecx.
∎
ProofDxarcsinx=±1/1−x2, with the right sign
Strategy
Apply rule (7) to x=siny on an interval where sine is strictly monotonic, then express cosy in terms of x. The square root loses the sign of cosy, which is where the ambiguous sign comes from.
Choose a branch
On an interval of y such as −21π<y<21π (or 21π<y<23π, and so on), siny is continuous and strictly monotonic, so it has a continuous inverse y=arcsinx there (§110).
Apply rule (7)
dx/dy=cosy=0 inside such an interval, so dy/dx=1/cosy.
Express in terms of x
cos2y=1−sin2y=1−x2, so cosy=±1−x2, with the sign of cosy. On the principal branch cosy>0 and (arcsinx)′=1/1−x2; on the branch 21π<y<23π, cosy<0 and the derivative is −1/1−x2. At x=±1, cosy=0: vertical tangents, no derivative.
∎
ProofDxarctanx=1/(1+x2)
Strategy
The same argument with x=tany. This time no square root appears, so there is no ambiguity of sign.
Rule (7)
On any branch, say −21π<y<21π, tany is strictly increasing with dx/dy=sec2y>0. So dy/dx=1/sec2y.
In terms of x
sec2y=1+tan2y=1+x2. Hence (arctanx)′=1/(1+x2) on every branch.
∎
ExploreDrill: powers, trigonometry and inverses
Try this.Work each derivative on paper first. For arc sin, think about which sign the principal value needs. For the last one, simplify before you choose.
1 of 5: differentiate ϕ(x)=tanx
xy
φ′(x) from chord slopes
Hint: use the quotient rule (sin x / cos x). The dashed curve is the true derivative, found numerically; pick the formula you think matches it.
Right first time: 0 of 0 tried.
What to notice
The last function, arctan{(1+x)/(1−x)}, has exactly the same derivative as arctanx. That is no accident: by the addition formula for tangents it equals arctanx+41π for x<1. Hardy’s Examples XLIV, 3 asks you to explain such simple results.
Worked examples and exercises
Exercise●○○Hardy: Examples XLIII, 1
Differentiate 1−x1+x for −1<x<1.
Hint
Write y=u1/2 with u=(1+x)/(1−x), and use the chain rule and the quotient rule.
For the curve x3+y3=3axy (a>0), find dy/dx, and find the points where the tangent is horizontal.
Hint
Differentiate implicitly, as in the text. A horizontal tangent needs ay−x2=0; substitute y=x2/a back into the equation of the curve.
Solution
As in the text, dy/dx=(ay−x2)/(y2−ax) wherever y2=ax. The slope is 0 where ay=x2 (and y2=ax). Substituting y=x2/a into x3+y3=3axy gives x3+x6/a3=3x3, so x3(x3−2a3)=0. The root x=0 gives the origin, where also y2=ax=0 and the formula is 0/0: the origin is a node where the curve crosses itself, and the method says nothing there. The other root is x=21/3a, y=x2/a=22/3a, and there y2−ax=24/3a2−21/3a2=21/3a2=0. So the tangent is horizontal at (21/3a,22/3a), the highest point of the loop.
Exercise●●○Hardy: Examples XLIV, 3
Differentiate arcsinx+arccosx, arctanx+arccotx and arctan1−axa+x, and explain why the results are so simple.
Hint
For principal values, what is sin(21π−arccosx)? For the third, compute 1+u2 with u=(a+x)/(1−ax) and factorise.
Solution
With principal values, (arcsinx+arccosx)′=1/1−x2−1/1−x2=0, and (arctanx+arccotx)′=1/(1+x2)−1/(1+x2)=0. Both sums are constant: 21π in each case, since sin(21π−y)=cosy and tan(21π−y)=coty.
For the third, with u=(a+x)/(1−ax): u′=(1−ax)2(1−ax)+a(a+x)=(1−ax)21+a2 and 1+u2=(1−ax)2(1−ax)2+(a+x)2=(1−ax)2(1+a2)(1+x2). So the derivative is u′/(1+u2)=1/(1+x2). The reason: by the addition formula tan(A+B)=(tanA+tanB)/(1−tanAtanB), the function equals arctana+arctanx (up to a multiple of π on each interval where ax=1), which differs from arctanx by a constant.
Exercise●○○Hardy: Examples XLIV, 12
Show that the derivative of y=(tanx+secx)m is mysecx.
Solution
By the chain rule, y′=m(tanx+secx)m−1(sec2x+secxtanx)=m(tanx+secx)m−1secx(secx+tanx)=m(tanx+secx)msecx=mysecx.
Exercise●●○Hardy: Examples XLIV, 16
Let ϕ(x)=x2sin(1/x) for x=0 and ϕ(0)=0. Find ϕ′(x) for x=0 and for x=0, and show that ϕ′ is not continuous at 0.
Hint
For x=0 use the product and chain rules; at x=0 go back to the definition.
Solution
For x=0: ϕ′(x)=2xsin(1/x)+x2cos(1/x)⋅(−1/x2)=2xsin(1/x)−cos(1/x). At 0 the rules do not apply (the formula for ϕ is different there), so use the definition: {ϕ(h)−ϕ(0)}/h=hsin(1/h)→0, so ϕ′(0)=0. As x→0, 2xsin(1/x)→0 while cos(1/x) oscillates between −1 and 1. So ϕ′(x) oscillates between −1 and 1 and has no limit: ϕ′ exists everywhere but is discontinuous at 0. This example returns in §125 and §129.
Exercise●○○Hardy: Examples XLIV, 17
Find the tangent and normal to the circle x2+y2=a2 at (x0,y0), and reduce them to xx0+yy0=a2 and xy0−yx0=0.
Solution
Differentiating implicitly, 2x+2ydy/dx=0, so the slope at (x0,y0) is −x0/y0 (when y0=0). The tangent is y−y0=−(x0/y0)(x−x0), that is, yy0−y02=−xx0+x02, or xx0+yy0=x02+y02=a2. The normal has slope y0/x0 and passes through (x0,y0): y−y0=(y0/x0)(x−x0), that is, x0y=y0x, or xy0−yx0=0, the line through the centre, as it should be. Both final forms also cover the points where y0=0 or x0=0.
Check yourself
Check yourselfEnter a number
Using principal values, what is the derivative of arcsinx at x=21? (Give a decimal.)
Why
1/1−41=1/3/4=2/3≈1.1547. The principal value arcsin21=61π has cosy>0, so the sign is +.
Check yourselfEnter a number
What is dy/dx for the circle x2+y2=25 at the point (3,4)?
Why
Implicitly, 2x+2yy′=0, so y′=−x/y=−3/4. The tangent is perpendicular to the radius, whose slope is 4/3.
Check yourselfTrue or false?
The rule (xm)′=mxm−1 with m=31 shows that 3x has a derivative at x=0.
Why
False. The rule is proved for x=0, and at 0 the formula 31x−2/3 is not even defined. Directly: the chord slope h−2/3 tends to +∞, a vertical tangent. In the language of rule (7): ψ(y)=y3 has ψ′(0)=0, so the inverse has no derivative there.
Check yourselfChoose one
With the principal value 0≤arccosx≤π, which is the derivative of arccosx for −1<x<1?
Why
x=cosy gives dy/dx=−1/siny, and siny>0 for 0<y<π. So the derivative is −1/1−x2 throughout: the principal arc cos is a decreasing function. The sign changes only if we move to another branch, never within the principal one.
Hardy’s language
Summary
Summary
(xm)′=mxm−1 for every rational m (with x=0): write x=zq, y=zp and divide derivatives.
Implicit differentiation: differentiate the defining equation through, treating y as a function of x, then solve for y′.
sin′=cos, cos′=−sin, tan′=sec2, sec′=tansec, and so on, from the quotient rule.
Inverse functions: reflect the graph, invert the slope. (arctanx)′=1/(1+x2); (arcsinx)′=±1/1−x2, with + on the principal branch.
Where ψ′=0 the inverse function has a vertical tangent and no derivative.