// Numbas version: exam_results_page_options {"name": "Hannah's copy of Hannah's copy of Reversed subtraction", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"statement": "", "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.\\]
\nSo 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\nTherefore, reversing the order of a subtraction is the same as multiplying (or dividing) by $-1$.
\n\na)
\nTo 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!
\nTo 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}$
\nSo the negative out the front and the reversing of the subtraction cancelled each other out, and these answers are actually the same.
\n\nb)
\n\nYou 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}$
\nSo the answers are the same!
\nYou 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:
\nLet $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!
Equal
", "Not equal
"], "matrix": ["if(seed=1,1,0)", "if(seed=0,1,0)"], "unitTests": [], "minMarks": 0, "prompt": "Suppose you do a maths question and your answer is
\n\\[y=\\var{a*b}+\\frac{\\var{c}-x}{\\var{d}}.\\]
\nHowever, your friend has an answer of
\n\\[y=\\var{a*b} \\var{sym1}\\frac{x-\\var{c}}{\\var{d}}.\\]
\n\nThese answers are...
"}, {"customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "maxMarks": 0, "scripts": {}, "displayType": "radiogroup", "type": "1_n_2", "marks": 0, "distractors": ["", "", ""], "variableReplacements": [], "displayColumns": 0, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "shuffleChoices": false, "choices": ["The two answers are equivalent.", "One answer is the negative of the other.", "The two answers are completely different from each other."], "matrix": ["if(sign2=-1 and sign1=1 and sign3=1,1,0)", "if(sign1=1 and sign2=1 and sign3=-1,1,0)", "if(sign1=-1 or sign2=sign3,1,0)"], "unitTests": [], "minMarks": 0, "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}}\\]
\nHowever, your friend has an answer of:
\n\\[z=\\simplify{(-{a}x^{p}+{sign1}{b}y^{q})/({sign2}{c}x*y+{sign3}{d}x^{r}y^{s})}\\]
\n\nWhich of the statements below is true?
"}], "variable_groups": [], "ungrouped_variables": ["a", "b", "c", "d", "p", "q", "r", "s", "sym1", "sign1", "seed", "sign2", "sign3", "seed1", "seed2", "seed3"], "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"}, "rulesets": {}, "variables": {"p": {"description": "", "name": "p", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(2..10)"}, "b": {"description": "", "name": "b", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(2..12)"}, "sign1": {"description": "", "name": "sign1", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(-1,1)\n"}, "c": {"description": "", "name": "c", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(2..12)"}, "seed1": {"description": "", "name": "seed1", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(0,1)"}, "seed2": {"description": "", "name": "seed2", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(0,1)"}, "sign3": {"description": "", "name": "sign3", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(-1,1)"}, "sym1": {"description": "1
", "name": "sym1", "group": "Ungrouped variables", "templateType": "anything", "definition": "if(seed=0,latex('+'),latex('-'))"}, "s": {"description": "", "name": "s", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(2..6)"}, "sign2": {"description": "", "name": "sign2", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(-1,1)"}, "r": {"description": "r
", "name": "r", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(2..6)"}, "seed3": {"description": "", "name": "seed3", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(0,1)"}, "a": {"description": "", "name": "a", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(2..12)"}, "d": {"description": "", "name": "d", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(2..12)"}, "seed": {"description": "", "name": "seed", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(0,1)"}, "q": {"description": "", "name": "q", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(2..10)"}}, "extensions": [], "name": "Hannah's copy of Hannah's copy of Reversed subtraction", "functions": {}, "variablesTest": {"condition": "sign2<>sign3", "maxRuns": 100}, "preamble": {"css": "", "js": ""}, "type": "question", "contributors": [{"name": "Hannah Bartholomew", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/530/"}, {"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}]}], "contributors": [{"name": "Hannah Bartholomew", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/530/"}, {"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}