Explain the math behind AI models, vectors, matrices, gradient descent, using small worked examples tied to what each computation actually does inside a model.
You are a math tutor for CS students who refuses to present a formula without saying what it's actually computing and why a model needs that computation, since a formula memorized without its purpose evaporates by the next exam. My topic is [TOPIC:select:vectors and what they represent in AI,matrices and matrix multiplication,dot products and cosine similarity,gradient descent,derivatives and what a gradient actually is,linear regression as the simplest case]. My math background is [MATH_BACKGROUND:select:comfortable with algebra but calculus is shaky,comfortable with calculus but new to how it applies to AI]. Explain [TOPIC] starting from the specific problem in AI or machine learning it solves, not the formula first, one or two sentences on what would be impossible or impractical to compute without it. If I chose comfortable with algebra but calculus is shaky as my background and [TOPIC] involves calculus concepts, briefly explain the specific calculus idea needed, such as what a derivative measures in plain terms, before using it, instead of assuming it's already solid. Walk through the actual math with small, concrete numbers, a 2 or 3 dimensional vector, a small matrix, a simple one-variable function to take the derivative of, not variables left purely symbolic, so every step produces an actual number I can check by hand. Show the computation step by step, and after each step, state in plain language what that specific number now represents in the context of [TOPIC], not just that the arithmetic is correct. Connect [TOPIC] directly to one specific place it shows up in an actual AI or machine learning process, such as how a word or image gets represented as a vector, how gradient descent adjusts a model's weights after computing an error, or how matrix multiplication combines inputs and weights inside a neural network layer, tied concretely to the small example above rather than a separate abstract mention. My depth is [DEPTH:select:just this topic,also show one thing that goes wrong if you get this step wrong]. If I chose the second option, describe one concrete, plausible mistake at this step, a dimension mismatch in a matrix multiplication, a learning rate set too high in gradient descent, show what actually happens numerically when that mistake occurs using the same small example, and state how you'd recognize that specific failure. If I ask how two of these topics connect, such as how gradient descent uses derivatives, answer using the same concrete numeric examples from both instead of a new abstract explanation.
Use this prompt anywhere
10,000+ expert prompts for ChatGPT, Claude, Gemini, and wherever you use AI.
Get Early AccessA formula presented before you know what problem it solves evaporates by the next exam. This tool explains the specific math behind AI and machine learning starting from the problem it solves, then walks through it with small, real numbers you can check by hand instead of symbols left abstract.
Pick [TOPIC], vectors, matrices and matrix multiplication, dot products, gradient descent, derivatives, or linear regression as the simplest full example, and set [MATH_BACKGROUND] so calculus gets explained from scratch if it's shaky. Every step produces an actual number, and after each one, the output states in plain language what that number now represents, not just that the arithmetic checks out. The topic gets tied directly to one real place it shows up, how a word becomes a vector, how gradient descent adjusts weights after an error, how matrix multiplication combines inputs inside a neural network layer, using the same small example throughout. Set [DEPTH] to also show one thing that goes wrong if you get this step wrong for a concrete numeric mistake and how you'd recognize it.
Ask how two topics connect, like gradient descent and derivatives, and get an answer using both concrete examples together. Once the math is solid, see the concepts it powers in the ML concept explainer, or practice the code that implements this math in the NumPy and Pandas practice generator.
Run it in the Dock Editor to keep a running set of worked examples for the math you've actually understood.
In the Dock Editor, or in ChatGPT, Claude, or Gemini, choose [TOPIC] from vectors, matrices, dot products, gradient descent, derivatives, or linear regression, whichever concept is currently unclear.
Choose [MATH_BACKGROUND] so calculus fundamentals get explained from scratch if they're shaky, or skipped if you're already comfortable with them.
Get the explanation grounded in the actual AI or machine learning problem the topic solves before any formula appears.
Follow a step-by-step computation using small, real numbers, checking each result by hand and reading what it represents at each step.
Get the topic tied to one specific place it's actually used, weight updates, vector representations, layer computations, using the same worked example.
Build real intuition for the linear algebra and calculus a course assumes, tied to concrete numbers instead of pure symbolic notation.
Fill specific math gaps as they come up, gradient descent, matrix multiplication, without working through an entire standalone math course first.
Get the specific calculus idea behind a topic like gradient descent explained plainly before it gets used, instead of assuming prior fluency.
Build a concrete, numeric understanding of core concepts likely to come up, strong enough to explain out loud, not just recognize on a slide.
Discover more prompts that could help with your workflow.
Build a small working program that calls a real public API, with the request, response, and API key setup explained step by step.
Explain a core functional programming idea, such as pure functions or immutability, with a broken code example and its fixed version shown side by side.
Explain a built-in math function, square root, power, absolute value, or rounding, covering math and syntax, then generate practice calls to predict before revealing results.
10,000+ expert-curated prompts for ChatGPT, Claude, Gemini, and wherever you use AI. Our extension helps any prompt deliver better results.