Jump to content

Wikipedia:Reference desk/Archives/Mathematics/2009 March 1

From Wikipedia, the free encyclopedia
Mathematics desk
< February 28 << Feb | March | Apr >> March 2 >
Welcome to the Wikipedia Mathematics Reference Desk Archives
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages.


March 1[edit]

LaTeX question[edit]

Hello, I type lots of things with LaTeX, mostly homework and notes. I recently made a separate file with many of my own commands/shortcuts. But, since I have a separate folder for each class, I have to put my shortcut file in every folder. Then, if I want to make a change, I have to change one and then copy and paste to a few other folders. So, is it possible to do this a better way? Is it possible, for example, to put my shortcut file in the same directory as things such as the amsmath file I can invoke with \usepackage, so that I can just do \usepackage{MyShortcuts} or something like that?

Thanks, any help would be much appreciated. Also, of course this is not a math question but I thought this would be the best place to put this as mathematicians/scientists are the most likely to use LaTeX and be proficient. StatisticsMan (talk) 01:25, 1 March 2009 (UTC)[reply]

Where tex looks for files varies based on the actual software you are using. On unix like systems (linux, Mac OS X) you can put the files in a directory "texmf" in your home directory, but you need to run a command like "texhash" or "mktexlsr" to let tex know about them. For miktex, there is something similar, but you would have to read the documentation. Just putting your file with the others won't be sufficient, you have to have it "rehash" or look again at what files it has. I think you have to do this whenever you install a new package in miktex, say from CTAN. JackSchmidt (talk) 02:25, 1 March 2009 (UTC)[reply]
I found using the texmf directory stucture rather confusing, so I have a bash script which takes a given file, copies it to a fixed temporary directory, copies my personal style file to that temporary directory, compiles the file, and copies the result back to the starting location. Although this isn't a very nice solution (and causes a bit of a mess when you include images in your document) it's less of a learning curve and easier to do then the "right" way. As an added bonus I don't have a ton of ".log" and ".aux" files scattered everywhere -- those stay in my temporary directory. Eric. 131.215.158.184 (talk) 08:45, 1 March 2009 (UTC)[reply]
Instead of maintaining separate copies of your macro file, you can keep one copy and use symbolic links in the other locations. This works great on unix-like systems (including Mac OS X). Not sure about Windows. Staecker (talk) 13:35, 1 March 2009 (UTC)[reply]
Use the TEXINPUTS environment variable to specify a path to search. In modern implementations of latex it understands a trailing "//" to mean recursive search of that directory. — Charles Stewart (talk) 14:04, 1 March 2009 (UTC)[reply]

Equality of some differentiated inner products[edit]

I'm trying to work through the details of lemma 16.1 in this book, and have gotten stuck on the following:

Finally, taking the inner product in (16.15) with , we obtain
(...)

Here (16.15) is a generalized version of the heat equation, . A is a linear transformation satisfying and for any v, w. (The inner products are done over the space domain; the dependence of u on a space variable is implicit.)

Following the hint,

and so to reach the desired result it must be that

Why is this equation true / how do I derive this? (Or am I making an error somewhere?) Fredrik Johansson 22:47, 1 March 2009 (UTC)[reply]

Just compute
--pma (talk) 00:03, 2 March 2009 (UTC)[reply]
Thank you! I had the idea, but got stuck somewhere... Fredrik Johansson 00:19, 2 March 2009 (UTC)[reply]

Infinity Norm of A Fourier Series[edit]

Hi, I was wondering how to compute the infinity norm of a finite Fourier series with the function its approximating.

My starting point is:

From looking at the graph of the two functions together, it is pretty obvious the maximum lies at the ends of the interval but i don't know how to prove it.

The function i am approximating is , and my approximation is

The Fourier series is 2 periodic, so the graphs disperse at and , the Fourier series continuing periodicly and the graph increasing quickly. So in the [] interval the difference is very small, but outside of this it grows so i'm guessing the greatest point is on the edge of the [] interval. (The edge of the interval also happens to be very close to a minimum of the Fourier series, if not the minimum.)

Any help is greatly appreciated. Thanks —Preceding unsigned comment added by 82.32.212.250 (talk) 23:35, 1 March 2009 (UTC)[reply]

Anyone? (Sorry about not signing)
144.173.6.74 (talk) 15:04, 2 March 2009 (UTC)[reply]
So you are intersted in , that is, the uniform distance on the interval [-2π,2π], where , is it so? By the uniform convergence you have immediately that , and that is attained in a point , as . The stronger statement that is eventually attained at , shall follow proving for instance that converges to uniformly in a nbd of (therefore, by periodicity, to uniformly in a nbd of ). Indeed, this implies that there exists a left nbd of such that it eventually holds true that has positive derivative for , so it is increasing there. This implies that as soon as : and we do know that the latter eventually holds true. Is it clear? Then, should you need it, you can make everything quantitative and compute an such that is attained at for all . Warning: your lacks the term, and should be squared.
Just for completeness: showing that converges uniformly for x bounded away from odd multiples of . You can write
.
Now, putting , the stated convergence is just the convergence of the logarithm series , which is uniform on compacta of the unit circle non containing 1. --pma (talk) 19:10, 2 March 2009 (UTC)[reply]