Multi-part calculus
Introducing functions in multi-part exercises
We introduced variables to support algebraic reasoning in multi-part exercises. We will now extend this concept to support calculus, which is about the analysis of functions.
Here are two examples of such multi-part calculus questions.
- Finding the formula of the tangent to a given function
- Finding the dimension of a box with maximum volume
We will discuss both examples below.
Example: Formula for the tangent
Consider the following example.
Find the formula of the tangent to at coordinates .
The solution to this problem requires the following parts:
- Deriving the derivative function .
- Calculating the slope of the tangent .
- Finding the -offset, , by substituting .
- Writing the requested formula .
We turn this into a solution model as follows:
| Part | Description | Calculation | Marks |
|---|---|---|---|
| the derivative of | The derivative of for | 1 | |
| the slope | 1 | ||
| the -offset | Solve for | 1 | |
| solution | the formula of the tangent | 1 |
Now, let's create this question in Multistep.
- Add three new exercise parts and name them , and .
- Add the corresponding variable to each part.
- Set the descriptions of the exercise parts as in the above table.
- Set the tasks corresponding to the calculations in the solution model. Choose Solving equations/Single variable for and Simplify for . For exercise part , choose Simplify and set the task as .

Here is a live example of the problem we just created:
Live example: The multi-part calculus problem.
Function definition as exercise part
This example shows that exercise parts can also define functions and their derivatives. Set the name of the part's variable to the function, including the variable arguments. Do not repeat the function name in the task.
To define function :
- Create a part
- Set the part's variable to
- Define the part's task as Simplify .
You can define derivatives in the same way, using a variable name such as or .
A variable name like is more than just a name. Algebrakit interprets this as a function definition. To see how powerful this is, consider the following optional student inputs:
| Student input | Evaluation |
|---|---|
| Correct intermediate step. Algebrakit understands that and . | |
| Correct expression, which follows from the definition . | |
| Correct intermediate step to calculate the slope . |
Example: A calculus word problem
Let's now create the following word problem:

The solution to this problem requires the following parts:
- Writing an expression for the width of the box ,
- Writing a formula for the volume ,
- Deriving the derivative ,
- Solving , with .
We turn this into a solution model as follows:
| Part | Description | Calculation | Marks |
|---|---|---|---|
| an expression for the width of the box | 1 | ||
| the volume of the box | 1 | ||
| the derivative of the volume w.r.t. | 1 | ||
| solution | the height of the box width maximum volume | Solve with domain | 1 |
You can find a live example of the problem below. Click the Edit button to see how we made this exercise.
Live example: Finding the dimensions of a box with maximum volume.