Mathematica Lab

A practice space where NAMSSN UI students can learn Mathematica from scratch and grow into confident users who can differentiate, integrate, sum, plot, and test identities in carefully structured notebooks.

How this lab fits together

Mathematica is a symbolic assistant for serious mathematics. It can keep track of long expressions, compute derivatives and integrals exactly, explore series, and draw pictures that reveal hidden structure. This lab teaches you to treat it as a disciplined partner, not a mysterious black box.

  • • This page: a notebook sketch pad plus a compact learning path.
  • • Subpages: slower, more detailed walkthroughs for students and tutors.
  • • Goal: by the end, you can open a fresh notebook and structure an exploration on your own.
🌱First notebook & syntax Calculus & special functions Series, sums & transforms 📈Plots & visual structure 🧠Identities & pattern hunting

Students who patiently move through the modules and use Mathematica on real UI problems will soon be able to read, edit, and design research-style notebooks, not just press buttons.

Mathematica Lab path
Choose a stage, study the detailed page, then come back here to sketch and refine your own notebooks.

🌱 Foundations & interface

First contact: notebook layout, cells, basic syntax, function calls, lists, and your first plots. Ideal for students who have never opened Mathematica before.

Best place to start Open foundations

📐 Calculus, series & sums

Dedicated to calculus and real analysis: derivatives, integrals, limits, power series, and classical special functions appearing in UI courses and contests.

For analysis courses Open analysis track

🧪 Identities & mini research

Pattern hunting with Mathematica: exploring sequences, integral families, transforms, and candidate identities that link back to the ODE–Integration Bee and project work.

For more confidence Open projects

Module 0 • First contact with Mathematica Beginner

Start here if you have never used Mathematica, Wolfram|One, or Wolfram Cloud before. By the end of this module, you should know how to type into a notebook, run cells, and read the structure of simple examples.

0.1 Cells, input, and output

A notebook is built from cells. Each input cell starts with In[ ]:= and produces an Out[ ]= when you press Shift+Enter. You will practise running simple expressions:

  • 2 + 3
  • 2^10
  • Sin[Pi/4]
Read the slow walkthrough

Goal: feel comfortable with “type → Shift+Enter → read output”.

0.2 Syntax: brackets, lists, and function names

Mathematica uses [ ] for function arguments and { } for lists. Function names start with capital letters:

  • Sqrt[2], Exp[1], Log[10]
  • {1, 2, 3, 4}
  • Mean[{1,2,3,4}]
Syntax explained in detail
0.3 Getting help & using documentation

You do not need to memorise every function. The documentation is your friend:

  • ?Integrate
  • ??Plot
  • Right-click a function name or use the built-in help browser.
Learn a help routine

Module 1 • Core symbolic calculus Intermediate

This module connects Mathematica directly to calculus courses at UI. You differentiate, integrate, take limits, and cross-check numerical and symbolic answers.

1.1 Derivatives and gradients

You begin with D for derivatives and test standard patterns:

  • D[Sin[x], x]
  • D[Exp[-x^2], x]
  • D[x^2 y^3, x], D[x^2 y^3, y]
See derivative notebook
1.2 Integrals: exact and numeric

You use Integrate and NIntegrate, and compare results:

  • Integrate[1/(1 + x^2), {x, 0, 1}]
  • NIntegrate[Exp[-x^2], {x, 0, 10}]
  • Compare Integrate[f[x], {x, a, b}] with an approximation.
Study integral notebook

Goal: always ask “Do the exact and numeric answers agree to a good precision?”.

1.3 Limits and local behaviour

Use Limit to study behaviour near singularities or interesting points:

  • Limit[Sin[x]/x, x -> 0]
  • Limit[(1 + 1/n)^n, n -> Infinity]
Limits in context

Module 2 • Series, sums, and transforms Intermediate

Now you explore series expansions, infinite sums, and simple transforms. This is where Mathematica becomes very powerful for pattern spotting in analysis courses.

2.1 Power series with Series

You practise series expansions around a point:

  • Series[Exp[x], {x, 0, 5}]
  • Series[Sin[x]/x, {x, 0, 6}]
  • Normal[%] to convert a series object into a polynomial.
Study full series notebook
2.2 Sums with Sum and numeric checks

You use Sum for closed forms and compare with partial sums:

  • Sum[1/n^2, {n, 1, Infinity}]
  • Table[Sum[1/n^2, {n, 1, N}], {N, 5, 50, 5}]
See convergence experiments
2.3 Simple transforms and changes of variables

You start to treat Mathematica as a tool for transforms: substitutions, parameter differentiation, or integrating families of functions.

Example patterns (explored step by step in the subpage):

  • Integrals depending on a parameter a and differentiating under the integral sign.
  • Relating two integrals by a substitution and asking Mathematica to verify.
Work through transform notebook

Module 3 • Identities, integral families, and mini research Advanced

In this module you use Mathematica like a research assistant. You generate data, guess identities, and organise your findings into shareable notebooks linked to UI courses and the ODE–Integration Bee.

3.1 Pattern hunting via tables

You build tables and try to recognise patterns before attempting a proof:

Table[Integrate[x^n, {x, 0, 1}], {n, 0, 6}]

You then compare the output with conjectured formulas.

Tables & conjectures
3.2 Designing an “integral family” notebook

Here you create a notebook that studies a family of integrals depending on parameters (e.g. an exponent or a shift), collects special cases, and records conjectured patterns.

The project subpage shows how to:

  • State the family clearly at the top of the notebook.
  • Use Table, Integrate, and numeric checks in a systematic way.
  • Reserve a section for “Conjectures and questions”.
See integral family template
3.3 Presenting your findings

Finally, you practise turning your exploration into something readable by others: clear headings, commented code, well-chosen plots, and short summaries.

  • Explain what the notebook is about in 3–5 sentences at the top.
  • Write comments before each important block of code.
  • Use plots only when they clarify a point.
Read presentation guide

Ambition for this lab: a NAMSSN UI student who completes Modules 0–3 and keeps using Mathematica on real course problems should be able to design useful notebooks for coursework, mini-projects, and contests.

Notebook sketch pad

Draft your Mathematica cells here, then copy into a real notebook (Desktop or Wolfram Cloud).

Use this pad to plan the structure of a Mathematica exploration: comments, input cells, and expected outputs. Think of it as a “storyboard” for your notebook.

Load a template:
Quick patterns:
Notebook plan
Write comments with (* ... *), group related cells together, and mark sections with headings.
Copy the text into Mathematica Desktop or Wolfram Cloud, then evaluate cells with Shift+Enter. Copied!

Working habits in the Mathematica Lab

To avoid treating Mathematica as a “magic answer machine”, the lab encourages a few habits:

  • Write your mathematical question as a comment before the code: (* What am I trying to compute? *).
  • Predict the shape of the answer (polynomial, rational function, special function) before running the cell.
  • Check symbolic answers numerically with N[expr] or by comparing to NIntegrate.
  • Simplify complicated expressions step by step using Simplify or FullSimplify, not just once.
  • Keep a separate section for “Examples that surprised me” — these often become good project topics.

Using Mathematica with courses and projects

Lecturers, tutors, and project supervisors can connect this lab to their activities:

  • • Assign a small Mathematica notebook instead of some routine exercises.
  • • Ask students to verify key identities or integrals from lectures using Integrate, Sum, and numeric checks.
  • • Encourage students to explore families of examples (e.g. varying parameters) before attempting proofs.
  • • Use well-prepared notebooks as supporting material for mini-seminars, the ODE–Integration Bee, and project days.