Author an equation sub-type

This sub-type is authored by selecting the Equation option from the Sub-type drop-down list during mathematical formula question authoring.

Examples of accepted syntax for defining the Answer field value for this sub-type are:

  • x = 1 - 2y
  • y = 4*(x+1) +2
  • y = 8*(x-2) + 7

The equation sub-type Answer field:

  • Accepts the use of an "=" sign in the correct answer.
  • Accepts any equation that's algebraically equivalent to the correct answer as an equivalent response.
  • Requires the correct answer expression to have only a single variable on the left-hand side of the equation and a formula that doesn't involve that variable on the right-hand side (an implicit formula can't be specified).

NOTE: Students don't need to isolate a variable of the equation like question authors do. Students can enter any equivalent form of the correct answer. Example — if the equation sub-type question has y = 4*(x+1)+ 2 in the Answer field, a student could respond with y-2 = 4*(x+1) and be graded correctly.

NOTE: This question sub-type allows the student to choose whether they want to submit their response using Symbol Mode (using the Equation Editor) or Text Mode (as a single line using their keyboard).

NOTE: The equation question is one of the ten sub-types of the mathematical formula question. Check out Choose a mathematical formula question sub-type for an explanation of each of the ten available mathematical formula question sub-types.

TIP: Check out Author a mathematical formula question for full question authoring instructions.

Example of this sub-type

  • Question statement:

What is the equation of the straight line passing through the point (2, 7) with slope 8?

  • Answer field syntax:

y = 8*(x-2) + 7

Example of this sub-type with an algorithm

  • Question statement:

What is the equation of the straight line passing through the point ($xone, $yone) with a slope $m?

  • Algorithm:
Copy this code
$xone = rint(-10,10);
$yone = decimal(1, rand(-10,10));
$m = rint(2, 10);

  • Answer field syntax:

y = $m*(x-$xone) + $yone

NOTE: The dollar sign ($) character can only be used in mathematical formula questions when it's a part of a variable name. Be sure to define algorithmic variables in the Algorithm pane in order to use them in the Answer field.