Talk:Function composition
From Wikipedia, the free encyclopedia
(*/Archive: someone's homework problem)
[edit] I am surprised this article was not categorized so far. Thanks Paul.
Oleg Alexandrov 01:34, 16 Jun 2005 (UTC)
[edit] typography
Any better way to write the operator than the current f o g? ?
- Now I saw someone convert small o in another article into Unicode U+2218 ∘ so I looked at this again. 2218 seems to be the right character, but on Talk:Category theory someone points out that it "doesn't display correctly on some browsers, most notably Internet Explorer." Anyway, I suppose other articles in Wikipedia should follow the choice made in this article. See also Template_talk:Unicode. --TuukkaH 18:05, 3 October 2005 (UTC)
-
- I agree that the unicode character is best. It doesn't display because IE just doesn't support Unicode. I use Mozilla.He Who Is 21:41, 4 June 2006 (UTC)
[edit] negative functional powers
There is an error in the definition of negative functional powers. -- Wasseralm 19:51, 17 August 2005 (UTC)
- I don't see it. Can you be more specific? Oleg Alexandrov 20:41, 17 August 2005 (UTC)
- I fixed it. It basically said fk = (f − 1)k. Rasmus (talk) 20:46, 17 August 2005 (UTC)
- Looking at the timestamps, I had seen the article after the error was fixed. :) Thanks, Oleg Alexandrov 20:47, 17 August 2005 (UTC)
- OK, this was the easy part. There is another intricate problem in the section, due to the fact that you consider f: X -> Y, where Y can be a proper subset of X. According to the definition of "composition" given at the beginning of the article, f o f cannot be formed (at this point). Intuitively (or with a slightly different definition of composition) f o f is defined and a function X -> Y. Thus all positive powers are defined. f^0 is a problem, becaus it has to be a function X -> X. It gets worse for the negative powers: If f: X -> Y is bijective, then f^(-1) : Y -> X. Thus, F^(-1) cannot composed with itself. To get rid of this problems, better take f : X -> X (compare the german article ("Deutsch"). Yours, -- Wasseralm 20:52, 19 August 2005 (UTC)
-
-
- You write in your edit summary : "Functional powers - actually, for negative power of function to make sence one would need f:X->X.".
- If f:X->Y is bijective, its inverse function f -1:Y->X should be self-composable if and only if X⊂Y. Of course in that case, unless X=Y, f is not itself self-composable, so it does not admit positive functional powers, but I do not see why it can't admit negative functional powers. Obviously it is not a necessary condition for negative functional powers that X=Y (quick counter-example: f(x)=2x, X=[0,1], Y=[0,2], f -1(x)=x/2 and f -2 is a nice function with domain [0,2] and codomain [0,0.5]). Rasmus (talk) 16:03, 20 August 2005 (UTC)
-
OK, you are right. But in this case I would claim we should not try to be too general. The condition f:X->X is in my opinion a very reasonable one to talk about negative functional powers. If the negative functional powers were a really important concept, then maybe it would be worth be general. But since it is just a curiosity, I would think it is not worth the trouble putting the most general condition.
But it is up to you. If you feel like going back to If f:X->Y with Y a subset X, be my guest. :) Oleg Alexandrov 17:34, 20 August 2005 (UTC)
- It seems you must have Y = X. Otherwise, there is an element x in X − Y. If f is a bijection onto its image, then x has nowhere to go without making the proposed "inverse" function no-longer 1-1. Revolver 16:47, 7 October 2005 (UTC)
[edit] Composition notation
We say:
- "In the mid-20th century, some mathematicians decided that writing "g o f" to mean "first apply f, then apply g" was too confusing and decided to change notations. They wrote "xf" for "f(x)" and "xfg" for "g(f(x))". However, this movement never caught on, and nowadays this notation is found only in old books."
Does anyone have a reference for this? I'm sure I recall the left-to-right notation being used in my undergrad maths degree, which was only three years ago. — Matt Crypto 11:55, 19 August 2005 (UTC)
- I've seen John Baez, who is thoroughly modern , use the left to right notation for composition, especially in the context of category theory. -Lethe | Talk 18:45, 3 October 2005 (UTC)
- Edit: actually, I've seen Baez write gf for first act with g and then with f, but I have never seen him write xf for f(x). That notation seems pretty rare to me. -Lethe | Talk 18:48, 3 October 2005 (UTC)
- Maybe you just didn't realise it. In any case, it is typical in category theory to conceptualise "elements" of a set as a certain type of morphism, so in that case, it would be perfectly correct and consistent to write xfg for g(f(x)). Revolver 16:47, 7 October 2005 (UTC)
- Just a passing note from a Haskell programmer: xfg and fg cannot both be correct type-wise, assuming an unambiguous definition of the notation. That is, h = f o g is correct, and Haskell has $ for correctly expressing y = f $ g $ x as well, but o and $ are not interchangeable. Of course, mathematicians needn't fear type errors like Haskell programmers need. In any case, you can see some programmers and programming languages prefer a left-to-right notation, such as cat file | sort | uniq for composition in shell. --TuukkaH 20:36, 3 October 2005 (UTC)
- Edit: actually, I've seen Baez write gf for first act with g and then with f, but I have never seen him write xf for f(x). That notation seems pretty rare to me. -Lethe | Talk 18:48, 3 October 2005 (UTC)
- Is it worth noting that most (if not all) concatenative programming languages use a direct equivalent of the xfg syntax to express their programs? --Piet Delport 10:59, 2 January 2006 (UTC)
Sometmes I wish god had only given us only one hand. I suffer from terrible left/right confusion. A kind of dyslexia I suppose, for example I'm always confusing east and west. Which reminds me of the old conundrum: "why does a mirror reverse left and right, but not top and bottom?" Paul August ☎ 17:30, 7 October 2005 (UTC)
Having functions act on the right of their arguments is still quite common among algebraists. See, for instance, Smith's Postmodern Algebra for a recent book that does this. Since there are obviously some folks who have put a lot of time into this, I will not edit the paragraph myself, but I strongly recommend that it be rewritten to suggest that the other convention is still in common use.Mkinyon 21:22, 21 February 2006 (UTC)
- Note the discussion of this convention at Group homomorphism. I will try to come up with a rewrite for the offending paragraph in the next few days. It is not correct as written, and the pseudo-historical "In the mid-20th century, some mathematicians..." is not up to encyclopedia standards. Michael Kinyon 21:37, 13 March 2006 (UTC)
[edit] Fun with composition signs
JA: As for typography, these tricks work in some settings:
- "ο"
- f ο g
- F ο G
- L ο M
JA: Jon Awbrey 03:20, 27 January 2006 (UTC)
[edit] Derivative of composite function
Would a derivative of a composite function be a "composite derivative"? ~Kaimbridge~ 20:23, 30 January 2006 (UTC)
- I don't know what you mean by a "composite derivative". The derivative of a composition of two functions is given by the chain rule. Paul August ☎ 20:47, 30 January 2006 (UTC)
- The "composition of two functions" is technically a "composite function", so I was just inquiring if its derivative would be a "composite derivative"——okay, I'll inquire over at chain rule. ~Kaimbridge~ 20:15, 3 February 2006 (UTC)
- JA: A function that arises through the composition of functions is just a function. Once it's composed, you cannot say for sure where it came from, since the return decomposition is not in general unique. Hence its derivation, oops, mode of arising, is not its essence, in other words, not a part of its "ontology". Jon Awbrey 13:28, 14 March 2006 (UTC)
[edit] Upper Limit of the Composition of Tan and Cos
Consider the graph of the following function:
As the exponent converges to infinity, the function assumes a quizzical shape. A cyclical zig-zag made up of boxes set side by side. Wach one peaks at about 1.5614, and has a width of about 1.52. The latter seems to is about pi/2, which makes sense, since that makes pi its period. As for the former, I have been trying to find a connection between it and other known constants, and have yet to find anything. Any suggestions? He Who Is 21:54, 4 June 2006 (UTC)
Woops... Wasn't thinking when I wrote that. Tangent and cosine. Also, I looked at it more closely and realized that 1 is the maximum of cosx, and the peak of tancostancos...x is tan1. But I still think it is a rather interesting operation, since for everything between pi/4 + npi/2, for all integer n, it converges to tan1. Also, if one looks closely, you can see it has no zeroes, nor does it converge to zero. It actually grows to a value of about .002, shich I assume equals:
. He Who Is 22:00, 4 June 2006 (UTC)
- Those are just the solutions of . Repeated iteration of will tend to attractors, such as fixed points of f. –EdC 17:08, 5 February 2007 (UTC)
[edit] undefined?
I'm a bit confused by the line "For example, only when ; for all negative x, the first expression is undefined." For x < 0 don't we have ? TooMuchMath 05:06, 20 September 2006 (UTC)
- Not if f and g are defined to be real-valued functions, which I think is being assumed in the context. Profzoom 22:38, 26 September 2006 (UTC)
- I have to go with TooMuchMath on this. The domain was not specified and the commmutativity is invalid anyhow. Let's not say is undefined for x < 0 since this is false.--134.117.28.234 18:54, 30 November 2006 (UTC)
[edit] Something more general than function composition?
I'm wondering if there is something more general than function composition.
Example, I have a function f that maps elements of X onto real numbers. I use this function to define another function g that maps subsets of X onto real numbers--perhaps g gives an average, median, total, minimum, maximum etc.
How can I describe the relationship between f and g? Clearly I cannot say g is composed of f. I want to say something like g is 'based on' f. Anyone know of anything in the literature? If so, I guess there should be a link to funciton composition... —The preceding unsigned comment was added by 220.253.86.44 (talk) 00:03, 24 April 2007 (UTC).
- Perhaps what you are looking for is the idea of an operator. Operators take one function as input, and spew out another function (or spew out a number, or a set ...). Operators that take two functions as input, and spew something out, are called binary operators. There are many, many operators. The classic example is D, which, given any function, spews out its derivative. One can certainly find ways of defining avg so that it is an operator. linas 03:01, 24 April 2007 (UTC)
-
- Thanks for the suggestion and links. So, in my example, g would be an operator and f its operand. In this article composition is an operator, as is the function g o f. My main problem with this is that "operators" appear to be poorly defined and have multiple--conflicting--meanings.220.253.85.77 03:35, 26 April 2007 (UTC)
-
-
- Don't know how to help you. As the article on operator says, an operator is "just a function". That's all, nothing more. That's neither poorly defined, nor is it conflicting. But you have to think "outside the box" to understand why "composition" (and things like it) are operators (i.e. are "just functions"). You have to answer the questions: what is the domain? what is the range? The domain and range of operators are typically not numbers of any sort. You might be looking for the concept of a dual space. In particular, you might be intersted in the space that is dual to the space of all functions-- see functional analysis. Or perhaps you're just looking for the concept of an integral -- the average of a function is just its integral...linas 04:53, 26 April 2007 (UTC)
-
-
-
- To be fair, if an operator were "just a function" then there would be no point to operators at all! We already have functions! For operators to be useful, they must be a _type_ of function. There appears to be some ambiguity with precisely what type of function an operator is!InformationSpace 02:56, 27 April 2007 (UTC)
-