// Numbas version: exam_results_page_options {"name": "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": [{"parts": [{"type": "1_n_2", "extendBaseMarkingAlgorithm": true, "marks": 0, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "distractors": ["", ""], "shuffleChoices": false, "scripts": {}, "matrix": ["if(seed=1,1,0)", "if(seed=0,1,0)"], "displayType": "radiogroup", "choices": ["

Equal

", "

Not equal

"], "showCorrectAnswer": true, "unitTests": [], "displayColumns": 0, "variableReplacements": [], "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...

", "customMarkingAlgorithm": "", "maxMarks": 0, "minMarks": 0}, {"type": "1_n_2", "extendBaseMarkingAlgorithm": true, "marks": 0, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "distractors": ["", "", ""], "shuffleChoices": false, "scripts": {}, "matrix": ["if(seed2=0 and seed1=1 and seed3=1,1,0)", "if(seed1=1 and seed2=1 and seed3=0,1,0)", "if(seed1=0 or seed2=seed3,1,0)"], "displayType": "radiogroup", "choices": ["The two answers are equivalent.", "One answer is the negative of the other.", "The two answers are completely different from each other."], "showCorrectAnswer": true, "unitTests": [], "displayColumns": 0, "variableReplacements": [], "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{a}x^\\var{p}\\var{sign1}\\var{b}y^\\var{q}}{\\var{sign2}\\var{c}xy\\var{sign3}\\var{d}x^\\var{r}y^\\var{s}}\\]

\n

\n

These fractions are... 

", "customMarkingAlgorithm": "", "maxMarks": 0, "minMarks": 0}], "preamble": {"js": "", "css": ""}, "ungrouped_variables": ["a", "b", "c", "d", "p", "q", "r", "s", "sym1", "sign1", "seed", "sign2", "sign3", "seed1", "seed2", "seed3"], "tags": [], "functions": {}, "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": {}, "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"}, "extensions": [], "statement": "

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

", "name": "Hannah's copy of Reversed subtraction", "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"b": {"description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..12)", "name": "b"}, "d": {"description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..12)", "name": "d"}, "sign3": {"description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "if(seed3=1,latex('+'),latex('-'))", "name": "sign3"}, "q": {"description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..10)", "name": "q"}, "seed1": {"description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(0,1)", "name": "seed1"}, "sym1": {"description": "

1

", "templateType": "anything", "group": "Ungrouped variables", "definition": "if(seed=0,latex('+'),latex('-'))", "name": "sym1"}, "sign2": {"description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "if(seed2=1,latex('+'),latex('-'))", "name": "sign2"}, "seed2": {"description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(0,1)", "name": "seed2"}, "s": {"description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..6)", "name": "s"}, "seed3": {"description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(0,1)", "name": "seed3"}, "seed": {"description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(0,1)", "name": "seed"}, "c": {"description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..12)", "name": "c"}, "p": {"description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..10)", "name": "p"}, "sign1": {"description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "if(seed1=1,latex('+'),latex('-'))", "name": "sign1"}, "r": {"description": "

r

", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..6)", "name": "r"}, "a": {"description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..12)", "name": "a"}}, "variable_groups": [], "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/"}]}