Markbook Study
Back to reading

Can one function feed another?

Diagram

Composition maps into reached subsets

In fg, apply g first and f second. The direct composite arrow reaches the same output as the two successive arrows.

  1. Apply g, then f

    This mapping uses the whole domain of g only when every output reached by g is accepted by f.

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

    Rg⊆Df.R_g\subseteq D_f.

    Dfg=Dg.D_{fg}=D_g.

    Intermediate outputsA subset of the outer domain

    Rg⊆DfR_g\subseteq D_f: only inputs reached by g are passed into f. They need not fill the whole domain of f.

    Final outputsA subset of the outer range

    Rfg=f(Rg)⊆RfR_{fg}=f(R_g)\subseteq R_f. The composite’s reached outputs can form a smaller set than the whole range of f.

    If the inclusion fails, fg does not exist on the whole stated domain of g. Any restriction must be stated explicitly. Changing the order requires a different range–domain check.

Open original diagram (new tab)
Back to reading