> ## Documentation Index
> Fetch the complete documentation index at: https://docs.uflo.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Math Expressions

> Set a math answer and learn how Uflo compares expressions.

A **Math Input** question asks students for an expression or an equation, such as `v = d/t`.
Uflo checks their answer against yours for mathematical equivalence.

> [!WARNING]
>
> Paper exams and LMS imports can't grade this type. Use **Number** for a single value or **Free Response** for an expression there.

## Set the Answer

**1. Choose the Type**

In the [question form](https://docs.uflo.io/instructors/assessments/manage-questions.md#add-a-question), set the question type to **Math Input**.

**2. Add a Template (Optional)**

In the **response template**, add the starting template students start from, like `v =`.

**3. Write the Model Answer**

Under **Model answer**, enter the correct expression or equation.

The math field formats as you go:

* `/` starts a fraction.
* `^` starts an exponent.

The [math editor guide](https://docs.uflo.io/general/tools/math-editor) covers the rest.

![Math Input answer fields with v = as the student response template and v = d over t as the model answer.](https://mintcdn.com/uflo/SKdI6adHFChqjgkO/images/illustrations/screenshot/math-expressions-answer-fields/light.webp?fit=max\&auto=format\&n=SKdI6adHFChqjgkO\&q=85\&s=0705532aaed9973845f1acfed3ca1c4b)

Students start from v =, and Uflo grades against v = d/t.

## How Answers Are Compared

A Math Input question earns either full credit or no credit at all.

Uflo checks whether the student's answer is mathematically equivalent to your answer. All of these answers match:

| Your answer | Matching answers |
| - | - |
| `2x + 6` | `6 + 2x`, `2(x + 3)` |
| `1/2` | `0.5`, `2/4` |
| `(x + 1)^2` | `x^2 + 2x + 1` |
| `sin^2 x + cos^2 x` | `1` |
| `v = d/t` | `v = d ÷ t`, `d/t = v`, `d = vt` |

These forms don't match, so steer students away from them in the prompt or template:

* **Letter case:** `X` and `x` are different variables.
* **Units:** `v = 15 m/s` doesn't match `v = 15`. Ask for the answer without units.
* **A missing left side:** `d/t` doesn't match `v = d/t`. Add `v =` as a template.
* **Listed solutions:** `x = 2, x = -2` doesn't match `x = ±2`.
* **Inequalities times -1:** `-x < -2` doesn't match `x > 2`.

> [!TIP]
>
> For a single number, use [Number](https://docs.uflo.io/instructors/assessments/questions/numerical.md) instead; it allows rounding and a margin.

## What Students See

Students get one math field below the prompt, holding your template if you set one.
When you [show answers](https://docs.uflo.io/instructors/results/release-grades.md), they also see your model answer.

![Question asking for an equation for average speed v using distance d and time t, with v equals d over t entered in its math response field.](https://mintcdn.com/uflo/SsxKXTLLIMsISdPB/images/illustrations/tools-math-response/light.webp?fit=max\&auto=format\&n=SsxKXTLLIMsISdPB\&q=85\&s=20f02d4a60556ba3982409bcc3550977)

A student's answer in the math field.

See the [student guide](https://docs.uflo.io/students/assessments/questions/math-expressions.md) for how students enter math.

> [card] [Next: Drawing Questions](https://docs.uflo.io/instructors/assessments/questions/drawing.md)
>
> Ask students to draw their answer, graded against your rubric.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.