Algebra of functions. Let f and g be functions with domains A and B respectively. Then the four combined functions f+g, f−g, fg, gf are all defined on the intersection A∩B (the set of inputs valid for bothf and g at once), as follows: (f+g)(x)=f(x)+g(x); (f−g)(x)=f(x)−g(x); (f⋅g)(x)=f(x)⋅g(x); (gf)(x)=g(x)f(x) where g(x)=0 (this last one needs the further restriction that g(x) isn't zero).
Ex. 1: If f(x)=x2+2 and g(x)=5x−8, find (i) (f+g)(1), (ii) (f−g)(−2), (iii) (fg)(3m), (iv) gf(0).
Ex. 2: Given f(x)=5x2 and g(x)=4−x, find the domain of (i) (f+g)(x), (ii) (f∘g)(x) [as printed — really the product/combination], (iii) gf(x).
Solution: (i) Domain of f(x)=5x2 is (−∞,∞). To find the domain of g(x)=4−x: 4−x≥0⟹x≤4, so domain is (−∞,4]. Therefore, domain of (f+g)(x) is (−∞,∞)∩(−∞,4]=(−∞,4]. …