I saw a tweet this morning from Patrick Honner pointing to a blog post asking how you might teach derivatives of sines and cosines differently.

One thing I think deserves more emphasis is that “co” in cosine etc. stands for “complement” as in complementary angles. The cosine of an angle is the sine of the complementary angle. For any function *f*(*x*), its complement is the function *f*(π/2 – *x*).

When memorizing a table of trig functions and their derivatives, students notice a pattern. You can turn one formula into another by replacing every function with its co-function and adding a negative sign on one side. For example,

(*d*/*dx*) tan(*x*) = sec^{2}(*x*)

and so

(*d*/*dx*) cot(*x*) = – csc^{2}(*x*)

In words, the derivative of tangent is secant squared, and the derivative of cotangent is negative cosecant squared.

The explanation of this pattern has nothing to do with trig functions *per se*. It’s just the chain rule applied to f(π/2 – x).

(*d*/*dx*) *f*(π/2 – *x*) = – *f*‘(π/2 – *x*).

Suppose you have some function banana(*x*) and its derivative is kiwi(*x*). Then the cobanana function is banana(π/2 – *x*), the cokiwi function is kiwi((π/2 – *x*), and the derivative of cobanana(*x*) is –cokiwi(*x*). In trig-like notation

(*d*/*dx*) ban(*x*) = kiw(*x*)

implies

(*d*/*dx*) cob(*x*) = – cok(*x*).

Now what *is* unique to sines and cosines is that the second derivative gives you the negative of what you started with. That is, the sine and cosine functions satisfy the differential equation *y*” = –*y*. That doesn’t necessarily happen with bananas and kiwis. If the derivative of banana is kiwi, that doesn’t imply that the derivative of kiwi is negative banana. If the derivative of kiwi is negative banana, then kiwis and bananas must be linear combinations of sines and cosines because all solutions to *y*” = –*y* have the form *a* sin(*x*) + *b* cos(*x*).

**Footnote**: Authors are divided over whether the cokiwi function should be abbreviated cok or ckw.

**Related post**: How many trig functions are there?

Re your footnote

I would have thought that authors would be more divided over the existence of cobananas given that bananas reproduce asexually.

Also of interest:

tan’ x = 1 + tan^2 x

cot’ x = -1 – cot^2 x

For some reason, these seem more natural to me than the usual alternative, possibly because they are more useful for integration.

I think the function that satisfy y” – y = 0 are banh and kiwh, although there’s a great deal of head-scratching about how to pronounce kiwh.

SAS does not support the cobanana or cokiwi function. However, R supports the functions as part of the ‘bananas’ package on CRAN.

Inspired by your post, and the original, I decided to work out the derivatives geometrically here