From arithmetic to algebra
In the previous section, you saw how to define a solution model for multi-part arithmetic exercises. We will now extend this to questions that involve algebra. The difference between algebra and arithmetic questions is that the solution uses variables and equations. Here are two examples of multi-part problems that involve algebra:
- "Find the formula of the linear line intersecting and ."
- "A rectangular piece of land has an area of . The length of the land is longer than the width. What is the total length of a fence surrounding this land?"
We will create both examples using the Multistep question type. You can try them in the live examples below:
Live example: The multi-part algebra problems.
Example 1: The formula of a line
Consider the first example.
Find the formula for the line intersecting and .
The solution to this problem requires the following parts:
- Calculate the slope,
- Find the -offset, , by substituting one of the given points
- Write the requested formula.
We turn this into a solution model as follows:
|the -intercept||Solve for||1|
|solution||the requested formula||1|
Note that we did not define the solution part as , which is the answer to the problem. Instead, we keep variables and to let Algebrakit know these are required to find the solution. You can also see that the slope is needed to calculate the -offset. Algebrakit will calculate the slope first, followed by the -intercept, and the solution.
Now let's create this question in Multistep.
- Add two new exercise parts and name them and .
- Add the descriptions to the parts as given in the solution model.
- Set the tasks corresponding to the calculations in the solution model. Choose task Solve equations for exercise part and Simplify for the other exercise parts.
- In the menu of the part names and , check the option student variable as shown in the screenshot below.
Figure: Enabling student variables.
An important step is checking option Student variable in the exercise parts and . Names of exercise parts are just references to other parts and are not visible to students. However, when you configure a part name as a student variable, it becomes a variable students can use in their work.
If you do not configure and as student variables, Algebrakit will not correctly interpret expressions that involve these variables. Here are some examples.
|Student input||Evaluation with student variables||Evaluation without student variables|
|Correct intermediate step. Algebrakit understands and still need to be calculated.||Incorrect. Algebrakit does not allow using or .|
|Correct intermediate step. The input is assumed to correspond to the slope.||Same|
|Correct intermediate step. Algebrakit understands that is the slope, which equals -2.||Incorrect. Algebrakit does not interpret as the slope.|
|Correct intermediate step. Algebrakit knows that and , so the relation is valid.||Incorrect. Algebrakit does not allow using or .|
This is a significant improvement. Students can now build their solutions by writing formulas and equations first and solving them later. From a didactical point of view, we transitioned from arithmetic to algebraic thinking.
Example 2: An algebra word problem
We will now create the second example question:
A rectangular piece of land has an area of . The length of the land is longer than the width.
What is the total length of a fence that surrounds this land?
You can solve this problem in two ways:
- Calculating the width first:
- Find the width by solving equation
- Find the circumference as .
- Calculating the length first:
- Find the height by solving equation
- Find the circumference as .
Which results in the following solution models:
|the width of the land||Solve||1|
|the length of the fence||1|
|the length of the land||Solve||1|
|the length of the fence||1|
You add these to Multistep as follows:
- Add two new exercise parts with names and . Rename the solution part to .
- Check the Student variable option on all three exercise parts.
- Add the descriptions to all exercise parts
- Set the tasks. Use the Simplify task for and the Solve equations task for and .
If you test the exercise, you will see that Algebrakit complains about student variable .
The issue is that the equation has two solutions: and . To not complicate things, Algebrakit only allows using as a student variable if it has a single result. You can solve this problem by adding the domain to the equation, as shown below:
Figure: Adding a domain to enforce a single result.
Add a domain to exercise part as well. You should now be able to run the question.
The exercise already works well. You can apply algebraic thinking, using formulas and equations for variables , , and , and Algebrakit will understand. But we can go even further.
The instruction does not mention variables and . Even more, the question does not indicate that you should variables at all. It is apparently up to the student to come up with that approach. This is an example of modelling, an important mathematical skill.
So now we have the problem that the solution model assumes students use variables or , but we don't want to include that information in the instruction. The solution is to declare and as free variables. This means that students do not have to use the same variable name but are free to choose.
You declare a free variable in the symbols tab on the top bar.
Figure: Defining free variables.
The example below shows an example of a correct solution to this problem.
Figure: Choosing custom variable names when solving the question.
A free variable must be a single symbol. So students cannot use a variable name like ''.
Restrictions when using student variables
These examples show how student variables are a powerful concept that helps students to apply algebraic thinking. However, there are a few limitations when using this technique.
- Student variables must have exactly one solution. We saw this already in the second example. If the variable is defined by an equation, you might have to add a domain. Note that it is also not ok if the equation has no solutions.
- Student variables cannot refer to each other. Assume and are student variables. If the task for depends on and the task for depends on , then Algebrakit will show an error message if you try to run the exercise. The reason is that no order exists to calculate the results for each part. Mathematically, you would need to solve a system of equations to find the solutions for and . This is currently not supported.