// Numbas version: exam_results_page_options {"name": "Reversed subtraction", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Reversed subtraction", "tags": [], "metadata": {"description": "

Students seem to freak out when their answer is not written exactly the same as the answer provided. This question tries to enforce that $(x-y)=-(y-x)$ and $\\frac{a-b}{c-d}=\\frac{b-a}{d-c}$

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

This question asks you to compared different looking answers, and determine if they are equivalent.

", "advice": "

Consider doing the subtraction $11-25$. Often people do the easier subtraction $25-11$, get $14$, and then they put a negative in front of it to conclude $11-25=-14$. This works because

\n

\\[11-25=-(25-11)=-14.\\] 

\n

So if we swap the order of subtraction, we need to put a negative out the front, but this is the same as just multiplying by $-1$ since $-(25-11)=-1\\times(25-11)$, which is also the same as dividing by $-1$.

\n

\n

Therefore, reversing the order of a subtraction is the same as multiplying (or dividing) by $-1$.

\n

\n

a)

\n

To determine if $\\frac{\\var{c}-x}{\\var{d}}$ is equal to $\\frac{x-\\var{c}}{\\var{d}}$, notice the only difference is the subtraction in the numerator is reversed. But $\\var{c}-x\\ne x-\\var{c}$. So these answers are not the same!

\n

To determine if $\\frac{\\var{c}-x}{\\var{d}}$ is equal to $-\\frac{x-\\var{c}}{\\var{d}}$, notice 

\n

$\\begin{align}-\\frac{x-\\var{c}}{\\var{d}}&=\\frac{-(x-\\var{c})}{\\var{d}}\\\\&=\\frac{-x+\\var{c}}{\\var{d}}\\\\&=\\frac{\\var{c}-x}{\\var{d}}\\end{align}$

\n

So the negative out the front and the reversing of the subtraction cancelled each other out, and these answers are actually the same.

\n

\n

b) 

\n

\n

You should notice that these fractions are very similar except that the order of subtraction is reversed in the numerator and the denominator. We should know that reversing the order of subtraction introduces a negative out the front, if we do this twice we will have two negatives out the front, which of course means a positive! That is,

\n

$\\begin{align}\\frac{\\var{a}x^\\var{p}-\\var{b}y^\\var{q}}{\\var{c}xy-\\var{d}x^\\var{r}y^\\var{s}}&=\\frac{-(\\var{b}y^\\var{q}-\\var{a}x^\\var{p})}{\\var{c}xy-\\var{d}x^\\var{r}y^\\var{s}}\\\\&=\\frac{-(\\var{b}y^\\var{q}-\\var{a}x^\\var{p})}{-(\\var{d}x^\\var{r}y^\\var{s}-\\var{c}xy)}\\\\&=\\frac{\\var{b}y^\\var{q}-\\var{a}x^\\var{p}}{\\var{d}x^\\var{r}y^\\var{s}-\\var{c}xy}\\end{align}$

\n

So the answers are the same!

\n

You should notice that in the numerator the order of subtraction has been swapped and in the denominator a $-\\var{d}x^\\var{r}y^\\var{s}$ has been replaced with $+\\var{d}x^\\var{r}y^\\var{s}$. These are not the same answers. If you require further proof, set them to be equal and see what happens, or even easier, substitute a value for $x$ and $y$ into both of them:

\n

Let $x=1$ and $y=1$ and we will compare the fractions. For 'your' answer we get $\\simplify[fractionNumbers,simplifyFractions]{{(a-b)/(c-d)}}$ but for 'your friends' answer we get $\\simplify[fractionNumbers,simplifyFractions]{{(a-b)/(c+d)}}$ and therefore the fractions are not equal! 

\n

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"q": {"name": "q", "group": "Ungrouped variables", "definition": "random(2..10)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(2..12)", "description": "", "templateType": "anything", "can_override": false}, "sym1": {"name": "sym1", "group": "Ungrouped variables", "definition": "if(seed=0,latex('+'),latex('-'))", "description": "

1

", "templateType": "anything", "can_override": false}, "s": {"name": "s", "group": "Ungrouped variables", "definition": "random(2..6)", "description": "", "templateType": "anything", "can_override": false}, "sym2": {"name": "sym2", "group": "Ungrouped variables", "definition": "if(seed=1,latex('+'),latex('-'))", "description": "", "templateType": "anything", "can_override": false}, "d": {"name": "d", "group": "Ungrouped variables", "definition": "random(2..12)", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(2..12)", "description": "", "templateType": "anything", "can_override": false}, "p": {"name": "p", "group": "Ungrouped variables", "definition": "random(2..10)", "description": "", "templateType": "anything", "can_override": false}, "seed": {"name": "seed", "group": "Ungrouped variables", "definition": "random(0,1)", "description": "", "templateType": "anything", "can_override": false}, "r": {"name": "r", "group": "Ungrouped variables", "definition": "random(2..6)", "description": "

r

", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(2..12)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "b", "c", "d", "p", "q", "r", "s", "sym1", "sym2", "seed"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Suppose you do a maths question and your answer is 

\n

\\[y=\\var{a*b}+\\frac{\\var{c}-x}{\\var{d}}.\\]

\n

However, your friend has an answer of

\n

\\[y=\\var{a*b} \\var{sym1}\\frac{x-\\var{c}}{\\var{d}}.\\]

\n

\n

These answers are...

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["

equal!

", "

not equal!

"], "matrix": ["if(seed=1,1,0)", "if(seed=0,1,0)"], "distractors": ["", ""]}, {"type": "m_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Suppose you do a maths question and your answer is 

\n

\\[z=\\frac{\\var{a}x^\\var{p}-\\var{b}y^\\var{q}}{\\var{c}xy-\\var{d}x^\\var{r}y^\\var{s}}.\\]

\n

However, your friend has an answer of

\n

\\[z=\\frac{\\var{b}y^\\var{q}-\\var{a}x^\\var{p}}{\\var{d}x^\\var{r}y^\\var{s}\\var{sym2}\\var{c}xy}.\\]

\n

\n

These fractions are... 

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "checkbox", "displayColumns": "1", "minAnswers": 0, "maxAnswers": 0, "warningType": "none", "showCellAnswerState": true, "choices": ["

equivalent! Just multiply (or divide) the numerator and denominator by $-1$ to see this.

", "

not equivalent! 

"], "matrix": ["if(seed=0,1,-1)", "if(seed=1,1,-1)"], "distractors": ["", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}