Consider the following definitions of operations in functions:
(f + g)(x) = f(x) + g(x)
(f - g)(x) = f(x) - g(x)
(fg)(x) = f(x)g(x) and
(f/g)(x) = f(x)/g(x)
consider, f(x) = $\sqrt{x}$ and g(x) = $\sqrt{1-x}$,
here, the domain of f(x) = [0, ∞), and the range is also the same,
for g(x) the domain is [- ∞, 1] and the range is [0, ∞).
Now, consider the following operations from this function:
(f+g)(x)--------------> $\sqrt{x}$ + $\sqrt{1 -x}$(domain: [0,1]
(f-g)(x)--------------> $\sqrt{x}$ - $\sqrt{1- x}$(domain: [0,1]
(f.g)(x)--------------> $\sqrt{x}$.$\sqrt{1-x}$---->$\sqrt{x(1-x)}$(domain:[0,1]
(f/g)(x)------------>$\sqrt{x/(1-x)}$(domain: [0, 1)
(g/f)(x)------------->$\sqrt{(1-x)/x}$(domain: (0,1]
It is quite obvious for the domain to be the common interval of both the functions, since the operated function(e.g. (h: (f+g)(x)), must satisfy for both the intervals for both the functions.
But, What follows for the range? Below I have presented a graph of the two operations plotted on geogebra:
click to enlarge, the equations are on left
Example for the operation (f-g)(x), the range is not [0,∞), nor something related to the union or intersection of the two ranges.
A bit down the list, the more interesting of all is the division, (f/g) omits the right interval of the domain and (g/f) omits the left. Is this a coincidence or a general rule, if so, is there a proof for this?
And, lastly, is there a general rule to guide the values of domain and ranges for such algebraic operations?