Math With AmarA C A D E M Y
All math animations

Grade 9 · Functions

Ticket model: Preserve function-machine order

Ticket model investigation: preserve function-machine order. Change the quantities, follow the motion, and explain the result using the displayed mathematical relationship.

Predict what will happen, press Play, then pause and explain what changed. Every control also works without playback.

Watch the relationship

Paused
Ticket model: Preserve function-machine order. Stage: Input. Current value: -2. f(g(x)): 10. g(f(x)): 64Function order changes the calculationInput-2Square first4Then linear rule10Current stage value: -2Reversed order gives 64
Both functions are defined for all real inputs; no denominator or square-root domain restriction is hidden. Stage boxes represent ordered operations rather than a spatial graph. The readouts compare the same input in both orders.

Starts paused. Play once, pause anywhere, or use Step to inspect the mathematics. Playback stops when this panel leaves the screen.

Make it your experiment

Change one value. Notice what follows.

The controls adjust the model. Numbers below describe the current frame. Decimals are rounded.

Stage
Input
Current value
-2
f(g(x))
10
g(f(x))
64

HD animation studio

From experiment to screen.

Present a crisp Canvas scene, save a full-HD image, or capture your model as a silent video.

Understand what you are seeing

The idea behind the motion.

Composition feeds one function's output into the next function's input. The order matters because squaring after a shift is not the same operation as shifting after a square. Tracking the intermediate value prevents treating composition as multiplication of the rules. This investigation begins with outer multiplier a = 3; outer shift b = -2; input x = -2. Treat the named setting as a constructed classroom model, then explain which relationships would still hold if its numbers changed.

A relationship to keep

f(u)=au+b, g(u)=u²; f(g(x))=ax²+b

Read the symbols alongside the explanation. A diagram shows the relationship; the assumptions tell you when it applies.

  1. STEP 1

    Represent the given quantities

    Begin with the selected input x and identify g as the inside function.

  2. STEP 2

    Follow the changing model

    Playback sends x through the square machine first, then applies the linear rule to that complete result.

  3. STEP 3

    Check and explain the relationship

    Reverse the machines and compare (ax+b)² with ax²+b. They can coincide at special inputs without being identical rules.

Your turn to explain

Make a prediction. Test your reasoning.

Ticket model: If f(u)=3u+(-2) and g(u)=u², compare f(g(-2)) and g(f(-2)).

Use the values specified in the question. Reset restores the initial values for this investigation.

Compare your explanation

f(g(-2))=10; g(f(-2))=64. Work from the inner rule outward.

Connect the animation to a worked example and practice questions.