A function is described in terms of its domain, its range (image) and its codomain. The first two are well defined sets but I found the codomain of a function as a bit ambiguous as according to me a function can have infinite codomains, as codomain is merely defined as a set containing the range of the function, and their can be many such sets in most cases.
Then my question is that how we can define codomain of a function uniquely and what is its use ?
To specify, I also found similar questions on the site but I could not be satisfied and want someone to help me in this by explaining this in detail as this is really confusing.
Thanks for help.