Click to run and edit this dialog:

Run in SolveIt

Spaced Repetition Learning

When we first learn new information, we quickly begin forgetting it. The Ebbinghaus Forgetting Curve shows how memory retention declines with time. Reviewing the information sparks our memory.

CleanShot 2026-07-18 at 08.55.11.png

Image from here

When you first learn something new, you need to review it relatively soon before you forget. Over time, the forgetting curve becomes less steep, and you can wait longer and longer before you need to review the piece of information. The optimal time to review is right before you would forget something.

Anki Flashcards

Spaced-repetition learning has been implemented in a convenient way with Anki flashcards.

You create Anki flashcards and can put anything you want on them. The flashcards can be synced between your computer, phone, ipad, and SolveIt.

There is an algorithm that keeps track of which cards to show you when.

When you first create an Anki flashcard, it will show it to you again the following day. If you get it right, it will wait longer to show it to you the next time. And then even longer to show it to you a 3rd time.

You enter whether you forgot the information, or found it hard, good, or easy. Anki handles all the calculations of when to show you the card again.

This shows the options Anki gives on 3 different cards: a brand new one, one I’ve seen a few times, and one I’ve gotten correct many times (and likely won’t need to see again for many months).

image.png

If you get a card wrong, Anki will reset it to show more frequently again.

To get started with Anki, create a free account here: https://ankiweb.net/account/signup

Next, add your Anki username (the email you used to sign up) and password to your SolveIt secrets. This is near the middle right when you are in your SolveIt directory. You must call the secrets ANKI_USER and ANKI_PASS

CleanShot 2026-07-18 at 10.29.31@2x.png

The Anki apps are much nicer than the web interface. The Anki app is free for MacOS, Windows, Linux, and Android. There is a paid version for iOS. You can download all versions here: https://apps.ankiweb.net/#downloads

CleanShot 2026-07-18 at 11.55.12@2x.png

Once installed, you will need to log in with your username/email and password. This will let you sync with your AnkiWeb account.

Rules for Good Anki Cards

You don't want to just put anything in a flash card. There are principles that make for more effective learning. We've shared these principles with SolveIt to help it create useful cards, and we wanted to share them with you as well!

The below Super Memo page contains rules on how to effectively learn using spaced repetition. I would like to apply these principles together with the fastanki library, documented above, to make Anki flashcards to cement the math that I'm studying. Could you create 10 principals that we can use together for you to help me create mathematics flashcards?

https://www.supermemo.com/en/blog/twenty-rules-of-formulating-knowledge

Let me fetch that Super Memo page first.

read_url(url="https://www.supermemo.com/en/blog/twenty…")→"<TRUNCATED>…in content\\n\\n-35% on Premiu…"
{
  "id": "chatcmpl-tool-8a5c95e6f1f0867a",
  "name": "read_url",
  "args": {
    "url": "https://www.supermemo.com/en/blog/twenty-rules-of-formulating-knowledge"
  },
  "result": "<TRUNCATED>…in content\n\n-35% on Premium annual subscription for SuperMemo’s 35th anniversary with code **35YEARS**\n\nshow top banner:\n````\n1\n````\n\nMain navigation\n\n[ ![Go to the homepage of SuperMemo](https://www.supermemo.com/wp-content/uploads/2022/05/logo-1.png) ](https://www.supermemo.com/en)\n\n  * [Courses](https://www.supermemo.com/en/courses)\n    * [Learn English](https://www.supermemo.com/en/courses/english)\n      * [Level](https://www.supermemo.com/en/courses/english)\n        * [Basic](https://www.supermemo.com/en/courses/english/basic)\n        * [Intermediate](https://www.supermemo.com/en/courses/english/intermediate)\n        * [Advanced](https://www.supermemo.com/en/courses/english/advanced)\n      * [Learning purpose](https://www.supermemo.com/en/courses/english)\n        * [Business](https://www.supermemo.com/en/courses/englishbusiness)\n        * [Exam](https://www.supermemo.com/en/courses/english/exam)\n        * [For Kids](https://www.supermemo.com/en/courses/english/for-kids)\n        * [General](https://www.supermemo.com/en/courses/english/general)\n        * [Grammar](https://www.supermemo.com/en/courses/english/grammar)\n        * [Pronunciation](https://www.supermemo.com/en/courses/english/pronunciation)\n        * [Vacation](https://www.supermemo.com/en/courses/englishvacation)\n        * [Vocabulary](https://www.supermemo.com/en/courses/english/vocabulary)\n      * [Bestsellers](https://www.supermemo.com/en/courses/english)\n        * [Olive Green](https://www.supermemo.com/en/courses/english?language_of_instruction=english&bestseller=olive-green)\n        * [Extreme](https://www.supermemo.com/en/courses/english?language_of_instruction=english&bestseller=extreme)\n        * [Business English](https://www.supermemo.com/en/courses/english?bestseller=business-english)\n        * [Hello!](https://www.supermemo.com/en/courses/english?language_of_instruction=english&bestseller=hello)\n        * [Young Learners](https://www.supermemo.com/en/courses/english?language_of_instruction=english&bestseller=young-learners)\n        * [Memo The Dragon](https://www.supermemo.com/en/courses/english?language_of_instruction=english&bestseller=memo-le-dragon)\n    * [Learn German](https://www.supermemo.com/en/courses/german)\n      * [Level](https://www.supermemo.com/en/courses/german)\n        * [Basic](https://www.supermemo.com/en/courses/german/basic)\n        * [Intermediate](https://www.supermemo.com/en/courses/german/intermediate)\n        * [Advanced](https://www.supermemo.com/en/courses/german/advanced)\n      * [Learning purpose](https://www.supermemo.com/en/courses/german)\n        * [For kids](https://www.supermemo.com/en/courses/german/for-kids)\n        * [Grammar](https://www.supermemo.com/en/courses/german/grammar)\n        * [Vacation](https://www.supermemo.com/en/courses/german/vacation)\n        * [Vocabulary](https://www.supermemo.com/en/courses/german/vocabulary)\n      * [Bestsellers](https://www.supermemo.com/en/courses/german)\n        * [Extreme](https://www.supermemo.com/en/courses/german?language_of_instruction=english&bestseller=extreme)\n        * [Hello!](https://www.supermemo.com/en/courses/german?language_of_instruction=english&bestseller=hello)\n        * [Phrasebook](https://www.supermemo.com/en/courses/german?language_of_instruction=english&bestseller=guide-de-conversation)\n        * [Memo the Dragon](https://www.supermemo.com/en/courses/german?language_of_instruction=english&bestseller=memo-le-dragon)\n    * [Learn Spanish](https://www.supermemo.com/en/courses/spanish)\n      * [Level](https://www.supermemo.com/en/courses/spanish)\n        * [Basic](https://www.supermemo.com/en/courses/spanish/basic)\n        * [Intermediate](https://www.supermemo.com/en/courses/spanish/intermediate)\n        * [Advanced](https://www.supermemo.com/en/courses/spanish/advanced)\n      * [Learning purpose](https://www.supermemo.com/en/courses/spanish)\n        * [For kids](https://www.supermemo.com/en/courses/spanish/for-kids)\n        * [General](https://www.supermemo.com/en/courses/spanish/general)\n        * [Grammar](https://www.supermemo.com/en/courses/spanish/grammar)\n        * [Vacation](https://www.supermemo.com/en/courses/spanish/vacation)\n        * [Vocabulary](https://www.supermemo.com/en/courses/spanish/vocabulary)\n      * [Bestsellers](https://www.supermemo.com/en/courses/spanish)\n        * [No problem](https://www.supermemo.com/en/courses/spanish?language_of_instruction=english&bestseller=no-problem)\n        * [Extreme](https://www.supermemo.com/en/courses/spanish?language_of_instruction=english&bestseller=extreme)\n        * [Hello!](https://www.supermemo.com/en/courses/spanish?language_of_instruction=english&bestseller=hello)\n        * [Phrasebook](https://www.supermemo.com/en/courses/spanish?language_of_instruction=english&bestseller=guide-de-conversation)\n        * [Memo the Dragon](https://www.supermemo.com/en/courses/spanish?language_of_instruction=english&bestseller=memo-le-dragon)\n    * [Learn Italian](…</TRUNCATED>"
}

Great article! I've read through all twenty rules. Here are 8 principles adapted for creating mathematics flashcards together, inspired by Wozniak's rules and tailored to your precalculus study:


1. Understand before you memorize. We only make a card after you've worked through the concept and can explain it. No card for something that still feels fuzzy — that's a signal to go back to the text first.

2. One fact per card. Each card tests a single, specific piece of knowledge. Instead of "What are the exponent rules?" we make five separate cards, one per rule. Short questions, short answers.

3. Test recognition both ways. For key relationships, create cards in both directions: given the formula, name what it's for; given the name, recall the formula. This redundancy strengthens memory.

4. Include worked examples as cards. Don't just memorize rules — memorize the steps of a representative problem. E.g., Front: "Complete the square: x^2 + 6x" → Back: "1. Half the coefficient: 3. 2. Square it: 9. 3. (x+3)^2 - 9."

5. Combat interference between similar concepts. When two formulas or rules look alike (e.g., x^nx^m = x^{n+m} vs. (x^n)^m = x^{nm}), make dedicated cards that highlight the difference, and add context cues to the question so there's no ambiguity.

6. Connect to the big picture. Periodically create a "summary" card that asks where a concept fits. E.g., Front: "What single property justifies FOIL, factoring, and minus-times-minus?" → Back: "The distributive property." This keeps individual facts anchored to the structure.

7. Card the "why," not just the "what." For a rule like x^0=1, make a card asking why it must equal 1 (from x^{1-1}=x/x), not only the bare fact. This matches the book's whole philosophy and resists forgetting.

8. Card derivation steps separately (good redundancy). Wozniak explicitly recommends memorizing individual derivation steps for math problem-solving. So "completing the square" becomes a small ordered chain of step-cards, not one giant card.


Would you like to start creating some cards for what you've studied so far?

Using Anki in SolveIt

Code and instructions

You can copy the messages in this section your CRAFT file (if you have one) or just make sure they are present wherever you are using SolveIt to create flashcards.

!pip install -U fastanki
from fastanki import *
import os, tempfile
user,passw = os.environ['ANKI_USER'],os.environ['ANKI_PASS']
allow(add_fb_card, find_notes, find_cards, get_note, update_fb_note, del_note, sync)

Please get familiar with the fastanki pyskill. Summarize what you know about it.

Let me read the docs:

python(code="import fastanki.skill; doc(fastanki.skil…")→"# module fastanki.skill:\\n\\n\"\"\"Anki flas…"

Code:

import fastanki.skill; doc(fastanki.skill)

Output:

# module fastanki.skill:

"""Anki flashcard tools for LLM-driven spaced repetition. Direct sqlite + AnkiWeb sync, no Anki app needed.

fastanki reads and writes Anki's collection format and speaks the AnkiWeb sync protocol
directly in Python. Cards live in a local sqlite file and reach desktop/phone via AnkiWeb
sync. Media files aren't synced yet — create text-only cards.

## Workflow

- `add_fb_card(Front='...', Back='...')` — create a Basic card (use `deck=`, `tags=`, `model=` to customize)
- `find_cards(deck='Math')` / `find_notes(deck='Math')` — search by deck, tag, field substring, or due status
- `get_note(id)` — retrieve a single note by ID
- `update_fb_note(id, Front='...')` — modify fields; `add_tags='tag'` adds tags without replacing
- `del_card(notes=id)` — delete by note ID
- `sync()` — push/pull to AnkiWeb (pass `user=`/`passw=` the first time; credentials are cached)

## Flashcard principles for mathematics

1. Understand before you memorize — only card things you've already worked through.
2. One fact per card — split complex topics into atomic Q&A pairs.
3. Test both directions — for key relationships, card formula→name and name→formula.
4. Include worked examples — card the *steps* of a representative problem, not just the result.
5. Combat interference — when two formulas look alike, make dedicated cards highlighting the difference.
6. Connect to the big picture — periodically create summary cards that anchor facts to structure.
7. Card the "why," not just the "what" — ask for the reasoning behind a rule, not only the bare fact.
8. Card derivation steps separately — break multi-step derivations into a chain of step-cards.

## Example: creating precalculus cards

For each concept, create a theory card (what something is) and an applied
card (a specific example). Keep cards short — if a derivation has many steps,
split it into separate cards or focus on the key insight. Show the student
your proposed cards and let them approve before adding.

### Distributive property — theory + applied

    # Student: I like them! Please add :)
    add_fb_card(
        Front='What is the distributive property?',
        Back='\(a(b + c) = ab + ac\)<br><br>Multiplying something by a sum equals multiplying by each term separately, then adding.'
    )
    add_fb_card(
        Front='Expand using the distributive property: \(5(x + 3)\)',
        Back='\(5x + 15\)'
    )

### Minus times minus — break down long cards

A first draft was too long (full derivation in one card). The student asked to
break it down. We focused on the key insight, then swapped front/back so the
question asks what the working proves:

    # Student: Can we break down the theory one a bit? Feels like too many steps!
    # Student: Let's switch the front and back around.
    # Student: Perfecto!
    add_fb_card(
        Front='What does this prove, and how?<br>\(0 = (-1)(0) = (-1)(-1 + 1)\)<br>Distributing: \((-1)(-1) + (-1)(1) = 0\)',
        Back='Proves that \((-1)(-1) = 1\) (minus times minus is plus), using the distributive property.'
    )

### Fraction rules — one fact per card

The student corrected a proposal to combine two rules into one card:

    # Student: No that would break our rule! :D Two cards, please
    add_fb_card(
        Front='Intuitive Fraction Rule 1: What does \(\frac{a}{b}\) equal?',
        Back='\(a\left(\frac{1}{b}\right)\)<br><br>(A fraction is the numerator times one over the denominator)'
    )
    add_fb_card(
        Front='Intuitive Fraction Rule 2: What does \(\left(\frac{1}{a}\right)\left(\frac{1}{b}\right)\) equal?',
        Back='\(\frac{1}{ab}\)<br><br>(A third of a tenth is a thirtieth)'
    )

### Exponent rule — theory + applied

    # Student: Can you suggest cards for Exponent Rule 4?
    add_fb_card(
        Front='\((xy)^n = \) ?',
        Back='\(x^n y^n\)'
    )
    add_fb_card(
        Front='Simplify: \((2x)^3\)',
        Back='\(8x^3\)'
    )
"""

## functions:
- def add_fb_card(front: str, back: str, profile: str = None, model: str = None, deck: str = None, tags: str = None): ...  # Add a card with a `Front` and `Back` and return the id.
- def find_notes(query: str, profile: str = None): ...  # Find notes matching query string. Returns list of Note objects.
- def find_note_ids(query: str, profile: str = None): ...  # Find note ids matching query string.
- def find_cards(query: str, profile: str = None): ...  # Find cards matching query string. Returns list of Note objects.
- def find_card_ids(query: str, profile: str = None): ...  # Find card ids matching query string.
- def get_note(note_id: int, profile: str = None): ...  # Retrieve a note by ID.
- def del_card(notes: int, profile: str = None): ...  # Delete card(s) by Note(s) or note id(s).
- def update_fb_note(note_id: int, front: str = '', back: str = '', profile: str = None, tags: str = None, add_tags: str = None): ...  # Update an existing note's front/back fields and/or tags. Pass a Note object or note ID.
- def sync(profile: str = None, user: str = None, passw: str = None, media: bool = True): ...  # Sync collection, handling open/close automatically.

Here's a summary of fastanki:

It lets you create, search, update, and delete Anki flashcards directly from Python — no Anki desktop app required. It works by writing to Anki's sqlite database and syncing to AnkiWeb.

Key functions:

  • add_fb_card(front, back) — create a card (with optional deck=, tags=)
  • find_notes(query) / find_cards(query) — search cards
  • get_note(id) — retrieve a specific note
  • update_fb_note(id, front=, back=) — edit a card
  • del_card(notes=id) — delete a card
  • sync() — push/pull to AnkiWeb

Flashcard principles for math (from the docs):

  1. Only card things you've already understood
  2. One fact per card
  3. Test both directions for key relationships
  4. Include worked examples
  5. Card the "why," not just the "what"
  6. Break multi-step derivations into separate cards

The docs also include examples of creating precalculus cards — conveniently matching the book you're studying! The workflow is: I propose cards, you approve them, then we add them.

How to use fastanki to create cards

The below code syncs with your AnkiWeb deck of cards. It is a good idea to sync at the beginning and end of your study sessions:

sync(user=user, passw=passw)

Below are some examples of how I've asked SolveIt to help me create Anki card within my study dialogs:

Can you help me come up with some Anki cards about Part 1 of the Precalculus book? Maybe for most we can do one theory one (i.e remembering what something is) and one applied one (i.e a specific set of numbers or whatever). WDYT?

Great plan! Theory + applied pairs is exactly what the fastanki docs recommend. Let's start with the first big concept and see if you like the style before we do a bunch.

Distributive Property — proposed pair:

Card 1 (Theory):

  • Front: What is the distributive property?
  • Back: a(b + c) = ab + ac — Multiplying by a sum equals multiplying by each term separately, then adding.

Card 2 (Applied):

  • Front: Expand: 2a(a - b + c)
  • Back: 2a^2 - 2ab + 2ac

How do those feel? Too easy, too hard, or about right? Once we agree on the style I can propose more pairs covering the other key concepts from Part 1 (FOIL, factoring, difference of squares, fraction rules, exponent rules, completing the square, quadratic formula, etc.).

Please add Card 2 to my Anki deck

python(code="add_fb_card(front=r'''Expand: \\(2a(a - b…")→"1784434719900"

Code:

add_fb_card(front=r'''Expand: \(2a(a - b + c)\)''', back=r'''\(2a^2 - 2ab + 2ac\)''')

Output:

1784434719900

Card added! Now let's keep going — here's the next pair I'd propose:

Difference of Squares — proposed pair:

Card 3 (Theory):

  • Front: What is the difference of squares identity?
  • Back: a^2 - b^2 = (a - b)(a + b)

Card 4 (Applied):

  • Front: Factor: 9x^2 - 4
  • Back: (3x - 2)(3x + 2)

Want me to add either or both?

Can you search my Anki deck and tell me what, if any, cards I already have about the distributive property?

python(code="find_notes('distributive')")→"[Note(1784148705894, Front='What is the …"

Code:

find_notes('distributive')

Output:

[Note(1784148705894, Front='What is the distributive property?', Back='\\(a(b + c) = ab + ac\\). Multiplying something by a sum equals multiplying by each term separately, then adding.', tags=[]),
 Note(1784148705994, Front='Expand using the distributive property: \\(5(x + 3)\\)', Back='\\(5x + 15\\)', tags=[]),
 Note(1784148764112, Front='What does this prove, and how?<br>\\(0 = (-1)(-1 + 1)\\). Distributing: \\((-1)(-1) + (-1)(1) = 0\\), so \\((-1)(-1) = 1\\).', Back='Proves that minus times minus is plus, using the distributive property.', tags=[])]

You already have three cards about the distributive property:

  1. Theory — "What is the distributive property?" → a(b + c) = ab + ac
  2. Applied — "Expand 5(x + 3)" → 5x + 15
  3. Minus × minus — Shows the proof that (-1)(-1) = 1 via distribution

So you've already got the theory Card 1 I proposed earlier! The Card 2 we just added (2a(a - b + c)) is a nice complement since it's a bit harder than the 5(x + 3) one you already have. Want to continue with the difference of squares pair I proposed?

Can you delete the 5(x+3) card? I think the new one is similar enough.

python(code="del_card(notes=1784148705994)")→"<div class=\"prose\" markdown=\"1\">\\n\\n✓ 1 …"

Code:

del_card(notes=1784148705994)

Output:

<div class="prose" markdown="1">

✓ 1 change(s)

</div>

Done — the 5(x + 3) card is deleted. You still have the theory card and the minus-times-minus one, plus the new 2a(a - b + c) applied card.

Want to continue with the difference of squares pair?

I would like something slightly harder for the applied card.

How about this instead?

Card 2 (Applied):

  • Front: Expand: 3(x - 2) - 5(2x + 1)
  • Back: 3x - 6 - 10x - 5 = -7x - 11

This tests distributing a negative as well as combining like terms. Does that hit the right level?

Once I'm done making cards for now, I will sync my Anki deck. This will let me access the updated cards through AnkiWeb or the Anki App.

sync(user=user, passw=passw)
required: NORMAL_SYNC

Within the Anki App, I can click on Sync to sync my deck and see the new cards.

CleanShot 2026-07-20 at 17.28.55@2x.png