 5.7 Mathematical Formula Questions - Maple T.A. 2016 Help Instructor
Select your version: Maple T.A. 2017 | Maple T.A. 2016 | Maple T.A. 10

## 5.7 Mathematical Formula Questions

### Description

Mathematical Formula questions allow instructors to compare a student response (generally a mathematical expression) to a specified answer. Mathematical Formula is the general term, encompassing nine different subcategories of formula type questions. Table 5.2 discusses these ten subtypes in detail and provides an example response of each.

#### Mathematical Formula Question Types Comparison Table

Table 5.2: Mathematical Formula Subtypes Comparison Table

For a detailed example of each subtype of Mathematical Formula, see:

Question Designer

Student responses must contain a mathematical expression including numbers or mathematical formulas. The system grades a student response by comparing it with the correct answer. If the student response and the correct answer are algebraically or numerically equivalent, the response is graded correctly. To require that the response have a specified form, use the form subtype.

### Instructions

To create a Formula question:

1. From the Class Homepage, click the Content Repository.
1. From the Create New drop-down menu, select Question/Text.
1. On the Question Designer screen:
• Enter a title for the question under the Question Name panel.
• Enter the Question Text: input the question statement. To include complicated mathematical expressions, click the Equation Editor icon ( ) in the toolbar. For more details, see Editing with the Equation Editor.
1. Click Response Area ( ).
1. Under Question Type, select Mathematical Formula.
1. Weighting: specify the weight of this response area in the overall question. (By default, the Weighting is set to 1).
1. From the Sub-type drop-down list, select the formula math grader you would like to use.
1. Enter the Answer: input the correct answer in symbolic math. Your answer must be in the correct format. For example, for a restricted formula question, you cannot use sin.
1. Select a Type of expression accepted from the drop-down menu. This determines the question type. Descriptions of each subtype of mathematical formula can be found at Mathematical Formula Question Types Comparison Table.
1. Click OK.

1. On the Question Summary pane,
1. Click Save or Preview to see your question.

Authoring Mathematical Questions

Mathematical Formula Question Types Comparison Table

Understanding the Math Capabilities

### Example 1: Formula Subtype

To create a Formula subtype question:

1. From the Class Homepage, click the Content Repository.
1. From the Create New drop-down menu, select Question/Text.
1. The Question Designer screen appears:
• Enter the following for Question Name: Find the derivative.
• Enter the following for Question Text: Let . What is the derivative of with respect to Enter only the expression for the derivative, omitting " ".
1. Click the add icon ( ) and enter the following Algorithm:

\$n = rint(20) + 2;

1. Click Refresh algorithm preview to preview the variables you defined, as shown in Figure 5.9. Figure 5.9: Formula Example Algorithm

1. Click Response Area ( ).
1. Under Choose Question Type, select Mathematical Formula.
1. Weighting: specify the weight of this response area in the overall question. (By default, the Weighting is set to 1).
1. From the Sub-type list, select Formula.
1. Enter the following for Answer: \$n x^(\$n - 1)
1. Click OK.
1. Click Save or Preview to view the question. See Figure 5.10. Figure 5.10: Formula Example Preview

### Example 2: Formula without Logs and Trig Subtype

When using the formula without logs and trig subtype, a response is graded correctly if it is algebraically equivalent to the correct answer. The correct answer is a formula that uses only basic operations (for example, arithmetic operations and sqrt). If you want the answer to contain more advanced operations (for example, trig, log, etc.) you have to use the formula subtype.

To create a Formula without Logs and Trig subtype question:

1. From the Class Homepage, click the Content Repository.
1. From the Create New drop-down menu, select Question/Text.
1. The Question Designer screen appears:
• Enter the following for Question Name: Evaluate trig expression.
• Enter the following for Question Text: Evaluate 1. Weighting: specify the weight of this response area in the overall question. (By default, the Weighting is set to 1).
1. From the Sub-type drop-down menu, select Formula without logs and trig.
1. Enter the following for Answer: 1/3*3^(1/2)
1. Click Save to save the question, then click Preview to view it. See Figure 5.11. Figure 5.11: Formula without Logs and Trig Example Preview

### Example 3: Formula with Physical Units Subtype

When using the formula with physical units subtype, correct answers can include algebraic formulas, unit dimensions, numeric responses, or any combination of these. Use this question type for any formula where you require the student to specify the physical units for the expression (for example, , where the formula is not an equation. When you give the units with the answer, you must use the units that are recognized by the system. The system can convert between units of the same type. For example, if you type the student can give the answer as: hour. In each case, the system grades the response correct.

To create a Formula with Physical Units subtype question:

1. From the Class Homepage, click Content Repository in the top menu.
1. From the Create New drop-down menu, select Question/Text.
1. The Question Designer screen appears:
• Enter the following for Question Name: Particle's velocity.
• Enter the following for Question Text: A particle moves along the x-axis such that its position after seconds ( is meters ( Give the expression for the particle's velocity at time 1. Click Response Area ( ).
1. Under Choose Question Type, select Mathematical Formula.
1. Enter the following for Answer: 2t m/s
1. From the Sub-type list, select Formula with physical units then click OK.
1. Click Save to save the question or Preview to view it. For more details, see Figure 5.12. Figure 5.12: Formula with Physical Units Example Preview

### Example 4: Formula that Matches Responses to within +C Subtype

The formula that matches responses to within +C subtype should be used when you want the question to have an answer with an additive, numeric constant. This enables the question to have many valid answers that differ by the addition of a constant quantity. This subtype accepts all such answers as equivalent.

To create a Formula that Matches Responses to within +C subtype question:

1. From the Class Homepage, click Content Repository in the top menu.
1. From the Create New drop-down menu, select Question/Text.
1. The Question Designer screen appears:
• Enter the following for Question Name: Integral of polynomial.
• Enter the following for Question Text: Evaluate 1. At the bottom of the page, click the add icon ( ) and enter the following Algorithm:

\$r=rint(2, 10);

\$s=rint(2, 10);

\$t=rint(2, 10);

condition: gt(\$r,\$s) gt(\$s,\$t);

\$rplus=int(\$r+1);

\$splus=int(\$s+1);

\$tplus=int(\$t+1);

\$a=rint(2,20);

\$b=rint(2,20);

\$c=rint(2,20);

1. Click Refresh algorithm preview to preview the variables you defined, as shown in Figure 5.13. Figure 5.13: Formula that Matches Responses to within +C Example Algorithm

1. Click Response Area ( ).
1. Under Choose Question Type, select Mathematical Formula.
1. Weighting: specify the weight of this response area in the overall question. (By default, the Weighting is set to 1).
1. From the Sub-type drop-down menu, select Formula that Matches Responses to within +C.
1. Enter the following for Answer: (\$a/\$rplus)x^\$rplus + (\$b/\$splus)x^\$splus + (\$c/\$tplus)x^\$tplus
1. Click Save to save or Preview to view the question. See Figure 5.14. Figure 5.14: Formula that Matches Responses to within +C Example Preview

### Example 5: Formula without Simplification

Formula without Simplification should be used when the answer must be left in its unsimplified form to be graded correctly. In other words, if the instructor states that they would like the answer to be left in unsimplified form, the student would leave their answer in the form , rather than simplify to #### Example

To create a Formula without Simplification subtype question:

1. From the Class Homepage, click Content Repository in the top menu.
1. From the Create New drop-down menu, select Question/Text.
1. This brings you to the Question Designer screen:
• Enter a title for the question under the Question Name panel.
• Enter a question in the Question Text. Optionally, enter the question using symbolic math by clicking the Equation Editor ( )icon. The Equation Editor opens. See Formatting Tips.
1. Click Response Area ( ).
1. In the Edit Response Area dialog:

a. Weighting: specify the weight of this response area in the overall question. (The default Weighting is set to 1).

b. Under Sub-type, select Formula without simplification.

c. Answer: enter the correct answer. (Remember: Do not simplify). For more details, see Figure 5.15 below. Figure 5.15: Formula without Simplification in Question Designer

d. Click OK.

1. (Optional) To add an Algorithm or Feedback to the question, see Adding and Editing Algorithms and Adding and Editing Feedback.
1. Click Save to save the question, then click Preview to view it.
##### Next Steps

To edit further details in the Content Repository, see Editing Question Details.

Mathematical Formula Question Types Comparison Table

### Example 6: Equation Subtype

The equation subtype question requires responses in mathematical equation form. An equation question is different from a formula question because it contains an "=" sign in the response. Any equation that is algebraically equivalent to the correct answer is graded correctly.

Authoring Note: For a formula-response question with the equation subtype, for the correct answer, one side of the equation must be in the form of a single-variable. The student response does not need to be in this form. Any equivalent equation is graded as correct.

To create an Equation subtype question:

1. From the Class Homepage, click Content Repository in the top menu.
1. From the Create New drop-down menu, select Question/Text.
1. The Question Designer screen appears:
• Enter the following for Question Name: Equation of a straight line.
• Enter the following for Question Text: What is the equation of the straight line passing through the point with a slope ?
1. Click the add icon ( ) and enter the following Algorithm:

\$xone = rint(-10,10);

\$yone = decimal(1, rand(-10,10));

\$m = rint(2, 10);

1. Click Refresh algorithm preview to preview the variables you defined, as shown in Figure 5.16. Figure 5.16: Equation Example Algorithm

1. Click Response Area ( ).
1. Under Choose Question Type, select Mathematical Formula.
1. Weighting: specify the weight of this response area in the overall question. (By default, the Weighting is set to 1).
1. From the Sub-type drop-down menu, select Equation.
1. Enter the following for Answer: y = \$m*(x-\$xone) + \$yone
1. Click Save to save or Preview to view the question. See Figure 5.17. Figure 5.17: Equation Example Preview

### Example 7: Unordered List of Formulas Subtype

The unordered list of formulas subtype accepts a list of numbers or formulas, separated by semicolons. The response is graded correctly if the list of formulas matches the list in the correct answer when ignoring the ordering. If the correct answer is 1;2;3, then any of the 6 permutations of the formulas, for example, 2;1;3, 3;2;1, and 1;2;3, is graded correctly. To accept an ordered list of formulas, use the ordered lists of formulas subtype. For more details, see Ordered List of Formulas Subtype.

To create an Unordered Lists of Formulas subtype:

1. From the Class Homepage, click Content Repository in the top menu.
1. From the Create New drop-down menu, select Question/Text.
1. The Question Designer screen appears:
• Enter the following for Question Name: Find the roots.
• Enter the following for Question Text: What are the roots of the quadratic equation ? Enter only the expressions for the roots, omitting " ".
1. Click the add icon ( ) and enter the following Algorithm:

\$a = rint(2, 5);

\$b = rint(10, 15);

\$c = rint(2, 5);

1. Click Refresh algorithm preview to preview the variables you defined, as shown in Figure 5.18. Figure 5.18: Unordered List of Formulas Example Algorithm

1. Click Response Area ( ).
1. Under Choose Question Type, select Mathematical Formula.
1. Weighting: specify the weight of this response area in the overall question. (By default, the Weighting is set to 1).
1. From the Sub-type drop-down menu, select Unordered list of formulas.
1. Enter the following for Answer: (-\$b + sqrt(\$b^2 - 4*\$a*\$c))/(2*\$a); (-\$b - sqrt(\$b^2 - 4*\$a*\$c))/(2*\$a)
1. Click Save to save the question, then click Preview to view it. See Figure 5.19. Figure 5.19: Unordered List of Formulas Example Preview

### Example 8: Ordered List of Formulas Subtype

The ordered list of formulas subtype accepts a list of numbers or formulas, separated by commas. The response is graded correctly if the list of formulas matches the exact order of the list in the correct answer. If the correct answer is 1,2,3, then only 1,2,3 is accepted. To accept an unordered list of formulas, use the unordered list of formulas subtype. For more details, see Unordered List of Formulas Subtype.

To create an Ordered Lists of Formulas question:

1. From the Class Homepage, click Content Repository in the top menu.
1. From the Create New drop-down menu, select Question/Text.
1. The Question Designer screen appears:
• Enter the following for Question Name: Compute exact values.
• Enter the following for Question Text: Compute the exact values of 1. Click Response Area ( ).
1. Under Choose Question Type, select Mathematical Formula.
1. Weighting: specify the weight of this response area in the overall question. (By default, the Weighting is set to 1).
1. From the Sub-type drop-down menu, select Ordered lists of formulas.
1. Enter the following for Correct answer: sqrt(3)/2, 1/2, sqrt(3)
1. Click Save to save the question, then click Preview to view it. See Figure 5.20. Figure 5.20: Ordered List of Formulas Example Preview

### Example 9: Vectors of Formulas Subtype

The vectors of formulas subtype requires a vector of formulas (a sequenced list) in correct responses. Use this for questions with vectors of formulas or numbers. You can use the full range of functions in the formulas, that is, all trigonometric functions, log, ln, abs, and sqrt.

To create a Vectors of Formulas question:

1. From the Class Homepage, click Content Repository in the top menu.
1. From the Create New drop-down menu, select Question/Text.
1. The Question Designer screen appears:
• Enter the following for Question Name: Find the minimum point.

Enter the following for Question Text:

Find the minimum point of the given function below.

\$plot

1. Click the add icon ( ) and enter the following Algorithm:

\$a = rint(1,6);

\$b = rint(2,10);

\$bottomrange = \$a-2;

\$toprange = \$a+2;

\$plot = plotmaple("plot((x-\$a)^2 + \$b, x=\$bottomrange..\$toprange), plotoptions='width=250, height=250'");

1. Click Refresh algorithm preview to preview the variables you defined, as shown in Figure 5.21. Figure 5.21: Vectors of Formulas Example Algorithm

1. Click Response Area ( ).
1. Under Choose Question Type, select Mathematical Formula.
1. By default, the Weighting is set to 1.
1. From the Sub-type drop-down menu, select Vectors of formulas.
1. Enter the following for the Answer: (\$a,\$b)
1. Click Save to save or Preview to view the question. See Figure 5.22 Figure 5.22: Vectors of Formulas Example Preview

### Example 10: Chemical Equation Subtype

In the chemical equation subtype, instructors can use the following characters in their answers: superscripts (^), subscripts (_), arrows (->), dot operator (*), + sign, ion changes (-), and physical states. Table 5.3 describes the keys in more detail. In the chemical equation question type, student responses require a formula that matches the correct answer.

Table 5.3: Rules and Keys for Entering Chemistry Expressions

Expression

Keys

Superscripts and Subscripts

Enter superscripts using the caret ^ character, and subscripts using the underscore _.

Arrows in Equations

Use the text ->, <-, <=> for arrows.

Other Operators

Use * for the center dot operator.

Use the - or + signs to indicate ion charges.

No other operations are allowed in equations.

Physical States, Ion charges, and Parentheses

Be sure to include physical states (in parentheses) if your equation requires them.

Use the + and - characters for polarity and ion charges

Use parentheses to clarify interpretation of groups of characters

To create a Chemical Equation question:

1. From the Class Homepage, click Content Repository in the top menu.
1. From the Create New drop-down menu, select Question/Text.
1. The Question Designer screen appears:
• Enter the following for Question Name: Reaction.
• Enter the following for Question Text: Enter the reaction of sodium hydroxide (NaOH) with hydrochloric acid (HCl).
1. Click Response Area ( ).
1. Under Choose Question Type, select Mathematical Formula.
1. Weighting: specify the weight of this response area in the overall question. (By default, the Weighting is set to 1).
1. From the Sub-type drop-down menu, select Chemical equation.
1. Enter the following for the Answer: NaOH + HCl -> NaCl + H_2O
1. Click OK.
1. Click Save to save the question, then click Preview to view it. See Figure 5.23. Figure 5.23: Chemical Equation Example Preview