Detect equivalent solutions to implicit differentiation problem. #535
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Students will get different, but equivalent, answers to this problem
depending on whether they first multiply everything by the denominator of
the left-hand side of the equation before differentiating.
Previously, a student's answer would only be marked correct if they did
in fact do this. If a student did not do this, and instead immediately
began differentiating using the quotient rule, then their answer would be
marked incorrect even if they found the derivative correctly.
While seemingly very different, the two answers obtained by these two
methods are equivalent if one substitutes on side of the original implicit
equation for the other.
However, previously the two test points for x and y are chosen at random,
and not with the implicit relationship from the original equation in mind.
We fix this by making sure that the test points for x and y which are chosen
satisfy the original equation. The code is based on Alex Jordan's
excellent answer to my question on the WeBWorK forums [1].
[1] http://webwork.maa.org/moodle/mod/forum/discuss.php?d=4574