6.2 Operations on Functions

Now we will define how to combine functions together to create new functions. Let f,g be functions with domains and ranges in .

Definition 6.3 (Basic Arithmetic).

Firstly, it is useful to have a working definition of equality.

  • f=gD:=dom(f)=dom(g)andf(x)=g(x)xD.

For simple operations like the sum and product, we define the new domain simply as the common domain of the operands.

  • dom(f+g)=dom(fg)=dom(f)dom(g).

  • (f+g)(x)=f(x)+g(x).

  • (fg)(x)=f(x)g(x).

In the special case of multiplying by a constant function c given by xk,k,

  • (cf)(x)=c(x)f(x)=kf(x).

Using this definition with the constant function x1, we can define the differences of functions.

The reciprocal 1/g is defined where g is not zero.

  • dom(1g)={xdom(g):g(x)0}.

  • (1g)(x)=1g(x).

Using this we can define quotients of functions as a product of a function with a reciprocal.

Definition 6.4 (Composition).

The composition fg:dom(g)range(f) is defined only where im(g) overlaps with dom(f), so we say:

  • dom(fg)={xdom(g):g(x)dom(f)}.

  • (fg)(x)=f(g(x)).