Article 4V9PR arctan( k tan(x) )

arctan( k tan(x) )

by
John
from John D. Cook on (#4V9PR)

I recently had to work with the function

f(x; k) = arctan( k tan(x) )

The semicolon between x and k is meant to imply that we're thinking of x as the argument and k as a parameter.

This function is an example of the coming full circle theme I've written about several times. Here's how a novice, a journeyman, and an expert might approach studying our function.

  • Novice: arctan( k tan(x) ) = kx.
  • Journeyman: You can't do that!
  • Expert: arctan( k tan(x) ) a kx for small x.

Novices often move symbols around without thinking about their meaning, and so someone might pull the k outside (why not?) and notice that arctan( tan(x) ) = x.

Someone with a budding mathematical conscience might conclude that since our function is nonlinear in x and in k that there's not much that can be said without more work.

Someone with more experience might see that both tan(x) and arctan(x) have the form x + O(x^3) and so

arctan( k tan(x) ) a kx

should be a very good approximation for small x.

Here's a plot of our function for varying values of k.

atanktan2.png

Each is fairly flat in the middle, with slope equal to its value of k.

As k increases, f(x; k) becomes more and more like a step function, equal to -I/2 for negative x and I/2 for positive x, i.e.

arctan( k tan(x) ) a sgn(x) I/2

for large k. Here again we might have discussion like above.

  • Novice: Set k = a. Then a tan(x) = a and arctan(a) = I/2.
  • Journeyman: You can't do that!
  • Expert: Well, you can if you interpret everything in terms of limits.
Related postseuI01OX3Mlw
External Content
Source RSS or Atom Feed
Feed Location http://feeds.feedburner.com/TheEndeavour?format=xml
Feed Title John D. Cook
Feed Link https://www.johndcook.com/blog
Reply 0 comments