Domain and the codomain of a composite function

Click For Summary

Discussion Overview

The discussion revolves around the domain and codomain of composite functions, particularly focusing on the implications of function notation and the definitions of elementary functions. Participants explore how the domains of individual functions affect the composition of functions and the resulting domains and codomains.

Discussion Character

  • Exploratory
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • Some participants assert that all elementary functions are of the form ƒ:ℝ→ℝ, but question whether specific functions like f(x) = √x have a domain of ℝ or [0,+∞).
  • It is noted that the notation ƒ:ℝ→ℝ indicates that the domain could be ℝ or a subset, with the square root function specifically having a domain of [0, ∞).
  • Participants discuss the composition of functions, suggesting that if f: A→B and g: C→D, and if f(A) ⊆ C, then the composition gof is defined, but question whether the codomain of gof is D or the image of f(A).
  • There is a suggestion that the domain of the composition gof is f(A), not necessarily the domain of f, and that the codomain may not remain the codomain of f.
  • Some participants express uncertainty about the definitions of "elementary function" and how they relate to the domains of specific functions like f(x) = 1/x.
  • The ambiguity of mathematical notation is highlighted, particularly regarding how codomains are defined and whether they can be arbitrary sets.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the definitions of domain and codomain in the context of composite functions. Multiple competing views are presented regarding the implications of function notation and the nature of elementary functions.

Contextual Notes

There are limitations in the discussion regarding the assumptions made about the definitions of functions and the notation used. The discussion also reflects varying interpretations of the codomain and its relationship to the image of functions.

Danijel
Messages
43
Reaction score
1
So, I'm a bit confused. The thing is, basically, all elementary functions are of the form ƒ:ℝ→ℝ. So the domain is ℝ and so is the codomain. However, if we have a function ƒ:ℝ→ℝ, given with f(x) = √x, it's domain is now x≥0. So, is the domain of this function ℝ or [0,+∞>?
Also, let's say we have two functions ƒ, and g, with f:A→B and g:C→D. Let's say that the image of the function f is f(A) ⊆ C. That way, we made sure that gof is defined. So, do we write gof: A → D, that is, is the domain of gof A, and the codomain D, or is the codomain of gof the image of f(A), because gof: A→f(A)⊆C→g(f(A)), that is, it starts in A and ends up in g(f(A)).
Thank you.
 
Physics news on Phys.org
Danijel said:
So, I'm a bit confused. The thing is, basically, all elementary functions are of the form ƒ:ℝ→ℝ. So the domain is ℝ and so is the codomain. However, if we have a function ƒ:ℝ→ℝ, given with f(x) = √x, it's domain is now x≥0. So, is the domain of this function ℝ or [0,+∞>?
The notation ƒ:ℝ→ℝ means only that the domain is ##\mathbb R## or possibly some subset of it. Same with the codomain. The domain of the real-valued square root function is [0, ∞), and so is the codomain of this function
Danijel said:
Also, let's say we have two functions ƒ, and g, with f:A→B and g:C→D. Let's say that the image of the function f is f(A) ⊆ C. That way, we made sure that gof is defined. So, do we write gof: A → D, that is, is the domain of gof A, and the codomain D, or is the codomain of gof the image of f(A), because gof: A→f(A)⊆C→g(f(A)), that is, it starts in A and ends up in g(f(A)).
Since f(A) isn't necessarily all of C, the domain of ##f \circ g## is f(A). Try this out with some simple functions, such as ##f(x) = x^2## and ##g(x) = \sqrt x##, and the composition ##f \circ g##.
Edit of early reply:
The domain and codomain of the square root function is only nonnegative numbers. So even though the domain of f is all reals, because we're taking the square root first, only nonnegative numbers are inputs to f.
 
Mark44 said:
The notation ƒ:ℝ→ℝ means only that the domain is ##\mathbb R## or possibly some subset of it. Same with the codomain. The domain of the real-valued square root function is [0, ∞), and so is the codomain of this function
Since f(A) isn't necessarily all of C, the domain of ##f \circ g## is f(A). Try this out with some simple functions, such as ##f(x) = x^2## and ##g(x) = \sqrt x##. You should see that although the domain of f is all real numbers, the codomain of g is only nonnegative numbers, so not all of the domain of f gets used in the composition ##f \circ g##.
What happens with the codomain? Does it remain the codomain of f?
 
Danijel said:
What happens with the codomain? Does it remain the codomain of f?
I'm not sure what you're asking. I edited my earlier reply, as what I wrote wasn't very clear. Take a look at that and let me know if it's still not clear.
 
What I am asking, and sorry for being ambiguous, is, if we have two functions f and g, and if the composition gof is defined (we don't need restrictions), in this case, is the domain of gof the domain of f, and the codomain of gof, the codomain of g. Thanks.
 
Danijel said:
Actually , the domain of the fog is now the domain of g, right?
Yes, but that's only coincidental. Think about the same composition if ##f(x) = \sqrt{x - 1}##. Now the domain and codomain of f are not exactly the same.
 
Mark44 said:
The notation ƒ:ℝ→ℝ means only that the domain is ##\mathbb R## or possibly some subset of it. Same with the codomain. The domain of the real-valued square root function is [0, ∞), and so is the codomain of this function
Since f(A) isn't necessarily all of C, the domain of ##f \circ g## is f(A). Try this out with some simple functions, such as ##f(x) = x^2## and ##g(x) = \sqrt x##, and the composition ##f \circ g##.
Edit of early reply:
The domain and codomain of the square root function is only nonnegative numbers. So even though the domain of f is all reals, because we're taking the square root first, only nonnegative numbers are inputs to f.

Strictly speaking this means the domain is ##\mathbb {R} ##. Nothing more, nothing less.
 
Danijel said:
So, I'm a bit confused. The thing is, basically, all elementary functions are of the form ƒ:ℝ→ℝ.
That depends on your definition of "elementary function" and some conventions of notation.

For example, is ##f(x) = 1/x## an "elementary function"?

If we adopt the convention that "##f:A \rightarrow B##" designates ##A## as the domain of ##f## and declare that the domain of ##A## is exactly set of numbers that appear as first elements in the ordered pairs ##f## then (speaking of real valued functions of the reals) the domain of ##f(x) = 1/x## is not all of ##\mathbb{R}##

However, as @Mark44 indicates, sometimes the notation "##f:A \rightarrow B##" is used merely to indicate the that the domain of ##f## is a subset of ##A##. This is especially true when authors are expressing the idea that their remarks apply only to real valued functions of 1 real variable. They might write "##f:\mathbb{R}\rightarrow\mathbb{R}##" when what should be written is "##f:A\rightarrow B, A \subset \mathbb{R}, B \subset\mathbb{R}##"According to the current Wikipedia article https://en.wikipedia.org/wiki/Codomain, the "codomain" of a function is distinct from the "image" of a function. So, as @Mark44 indicated, the notation "##g(f(x))##" refers to a function whose domain is the image of ##f##.

However, if we have a function ƒ:ℝ→ℝ, given with f(x) = √x, it's domain is now x≥0. So, is the domain of this function ℝ or [0,+∞>?

With the understanding that we are speaking of real valued functions of one real variable, the domain of ##f## is ##[0,+\infty)##.

Also, let's say we have two functions ƒ, and g, with f:A→B and g:C→D. Let's say that the image of the function f is f(A) ⊆ C. That way, we made sure that gof is defined. So, do we write gof: A → D, that is, is the domain of gof A, and the codomain D, or is the codomain of gof the image of f(A), because gof: A→f(A)⊆C→g(f(A)), that is, it starts in A and ends up in g(f(A)).

The Wikipedia article mentions several different definitions of "function" It takes, what I think is the standard view that the "codomain" of a function is a somewhat arbitrary set. For example, one could define a function ##f(x) = sin(x)## and specify its codomain as [-1,1] and define a (technically) different function as ##f(x) = sin(x)## with codomain [-3,17] or some other arbitrary set containing the image of f(x) = sin(x). Taking the viewpoint that the codomain has this arbitrary aspect to it, the codomain of the composition of two functions is not uniquely determined unless an author has specified some rule for how it is determined.

Some authors might define the notation ##g \circ f## to mean a function whose codomain is exactly ##g(f(A))## where ##f(A)## is the image of ##f##. Other authors might take the viewpoint that "I'm talking about real valued functions in this book, so the codomain of all functions that I mention will be ##\mathbb{R}##".

Unfortunately, mathematical notation can be ambiguous.
 
Stephen Tashi said:
That depends on your definition of "elementary function" and some conventions of notation.

For example, is ##f(x) = 1/x## an "elementary function"?

If we adopt the convention that "##f:A \rightarrow B##" designates ##A## as the domain of ##f## and declare that the domain of ##A## is exactly set of numbers that appear as first elements in the ordered pairs ##f## then (speaking of real valued functions of the reals) the domain of ##f(x) = 1/x## is not all of ##\mathbb{R}##

However, as @Mark44 indicates, sometimes the notation "##f:A \rightarrow B##" is used merely to indicate the that the domain of ##f## is a subset of ##A##. This is especially true when authors are expressing the idea that their remarks apply only to real valued functions of 1 real variable. They might write "##f:\mathbb{R}\rightarrow\mathbb{R}##" when what should be written is "##f:A\rightarrow B, A \subset \mathbb{R}, B \subset\mathbb{R}##"According to the current Wikipedia article https://en.wikipedia.org/wiki/Codomain, the "codomain" of a function is distinct from the "image" of a function. So, as @Mark44 indicated, the notation "##g(f(x))##" refers to a function whose domain is the image of ##f##.
With the understanding that we are speaking of real valued functions of one real variable, the domain of ##f## is ##[0,+\infty)##.
The Wikipedia article mentions several different definitions of "function" It takes, what I think is the standard view that the "codomain" of a function is a somewhat arbitrary set. For example, one could define a function ##f(x) = sin(x)## and specify its codomain as [-1,1] and define a (technically) different function as ##f(x) = sin(x)## with codomain [-3,17] or some other arbitrary set containing the image of f(x) = sin(x). Taking the viewpoint that the codomain has this arbitrary aspect to it, the codomain of the composition of two functions is not uniquely determined unless an author has specified some rule for how it is determined.

Some authors might define the notation ##g \circ f## to mean a function whose codomain is exactly ##g(f(A))## where ##f(A)## is the image of ##f##. Other authors might take the viewpoint that "I'm talking about real valued functions in this book, so the codomain of all functions that I mention will be ##\mathbb{R}##".

Unfortunately, mathematical notation can be ambiguous.
Thank you, I understand now.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K