An interactive simulation of a hard concept with Gemini

The struggle: Your students cannot picture how the concept works, and a static diagram on the board does not help.

What you end up with: A small interactive simulation of one concept, checked for accuracy before it reaches a class.

Canvas can build a small interactive app from a description. You build a simulation with sliders, test it against known answers, and only then show it to students.

Tools: Gemini. Level: Free to start. Time: 45 min.

Use it if

  • You teach a concept that depends on change, such as supply and demand, orbits or pH
  • You can check the model against a textbook
  • You want something to show on a screen in class

Skip it if

  • The topic needs exact numerical results for an exam or lab
  • You would share it publicly with student data inside

What you need first

  • The Gemini app on the web
  • The concept, the two or three variables, and 2 known results you can test it against

The method

  1. Describe the simulation (Gemini: Canvas)

    Click Add Files below the text box, choose Canvas, and paste the prompt. Gemini builds an app and shows a preview next to the chat.

    Prompt to copy:

    Build a small interactive simulation in Canvas that shows [concept] for students aged [age]. Let the user change [variable 1] and [variable 2] with sliders and see [output] update live with a simple chart. Label units. Add a one-line caption saying what each change shows. If any rule is unclear, ask me before guessing.

    You get: A first working simulation in the preview.

    Tip: Name the variables and their ranges. Vague prompts give pretty but wrong models.

  2. Test it against known answers (Gemini: Canvas)

    Set the sliders to the two cases you know from your textbook and compare the output. If it differs, tell Gemini which case failed and what the right answer is.

    Prompt to copy:

    When [variable 1] is [value] and [variable 2] is [value], the correct result is [value]. The simulation shows something different. Explain what rule in the code is wrong, then fix it.

    You get: A simulation that matches your known results.

    Tip: Test an extreme value too. Models often break at the edges.

  3. Read the code and console (Gemini: Canvas)

    At the top right of the Canvas panel click Code to read what the model does, and Show console if something fails. Ask Gemini to explain each formula in plain words and compare it with the one in your course.

    Prompt to copy:

    Explain in plain words every formula this simulation uses and list the simplifications it makes. Say where the real world differs.

    You get: A model whose formulas you have read.

    Tip: Ask which simplifications it made. Teach them as limits of the model.

  4. Add questions for students (Gemini: Canvas)

    Ask for a short prediction panel: before moving a slider, students pick what will happen, then check. Run through it yourself once.

    Prompt to copy:

    Add a panel with 3 prediction questions for students. Each asks what will happen before they change a slider, then reveals the answer when they do. Keep wording simple.

    You get: A simulation that makes students predict first.

    Tip: Predict-then-test teaches more than watching sliders.

  5. Show it in class (Gemini: Canvas)

    Use the Canvas preview on your own screen. If you want a link, open Share & export, then Share, but read the warning first: anyone with the public link can view and edit data tied to the app.

    You get: A simulation on your screen, or a link shared knowingly.

    Tip: Showing it from your own screen is the safe default.

Where this goes wrong

  • Check the model against your course material before any student sees it.
  • A shared public link lets anyone with it view and edit data associated with the app, so put no student names or answers inside.
  • Shared links open only at gemini.google.com, not in the mobile app.

Sources

More like this

Updated . Written with AI help and checked by an independent review step, as described in our editorial standards.