// Numbas version: exam_results_page_options {"name": "Equations: Linear equations 2 - unknowns on both sides", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Equations: Linear equations 2 - unknowns on both sides", "tags": [], "metadata": {"description": "

Solve linear equations with unkowns on both sides. Including brackets and fractions.

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

Part a)

\n

Given $\\simplify{{l}({m}w-{n}) = {p}w+{q}}$, we can expand the brackets, get all the $w$'s on the left hand side and all the numbers on the right hand side, and then divide both sides by the coefficient of $w$ to get $w$ by itself.

\n

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$\\simplify{{l}({m}w-{n})}$$=$$\\simplify{{p}w+{q}}$ 
 
$\\simplify{{l*m}w+{n*l}}$$=$$\\simplify{{p}w+{q}}$
 
$\\simplify[!cancelTerms,unitFactor]{{l*m}w-{n*l}-{p}w}$$=$$\\simplify[!cancelTerms,unitFactor]{{p}w+{q}-{p}w}$
 
$\\simplify{{l*m-p}w-{n*l}}$$=$$\\var{q}$
 
$\\var{l*m-p}w-\\var{n*l}+\\var{n*l}$$=$$\\var{q}+\\var{n*l}$
 
$\\var{l*m-p}w$$=$$\\var{q+n*l}$
 
$\\displaystyle{\\frac{\\var{l*m-p}w}{\\var{l*m-p}}}$$=$$\\displaystyle{\\frac{\\var{q+n*l}}{\\var{l*m-p}}}$
 
$w$$=$$\\displaystyle{\\simplify{{q+n*l}/{l*m-p}}} = \\var{precround(ansA,1)} \\text{ to 1 dp}$
\n

\n

Part b)

\n

Given $\\displaystyle{\\frac{\\var{d}y}{y-\\var{f}}}=\\var{g}$, we can multiply both sides by $(y-\\var{f})$ to get rid of the fraction, get all the $y$'s on one side and the numbers on the other side, and then divide both sides by the coefficient of $y$ to get $y$ by itself.

\n

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$\\displaystyle{\\frac{\\var{d}y}{y-\\var{f}}}$$=$$\\var{g}$ 
 
$\\displaystyle{\\frac{\\var{d}y}{y-\\var{f}}}\\times(y-\\var{f})$$=$$\\var{g}\\times (y-\\var{f})$
 
$\\var{d}y$$=$$\\simplify[unitFactor]{{g}y+{-g*f}}$
 
$\\simplify[!cancelTerms,unitFactor]{{d}y+{-g}y}$ $=$$\\simplify[!cancelTerms,unitFactor]{{g}y+{-g*f}+{-g}y}$
 
$\\var{d-g}y$$=$$\\var{-g*f}$
 
$\\displaystyle{\\frac{\\var{d-g}y}{\\var{d-g}}}$$=$$\\displaystyle{\\frac{\\var{-g*f}}{\\var{d-g}}}$
 
 $y$$=$$\\displaystyle{\\simplify{{-g*f}/{d-g}}}= \\var{precround(ansB,1)}\\text{ to 1 dp}$
\n

part c)

\n

Given $\\displaystyle{\\frac{x+\\var{add}}{\\var{denom1}}+\\frac{x}{\\var{denom2}}=\\var{right}}$, we can multiply both sides by $\\var{denom1}$ and by $\\var{denom2}$ to get rid of the fractions, get all the $x$'s on one side and the numbers on the other side, and then divide both sides by the coefficient of $x$ to get $x$ by itself.

\n

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$\\displaystyle{\\frac{x+\\var{add}}{\\var{denom1}}+\\frac{x}{\\var{denom2}}}$$=$$\\var{right}$ 
 
$\\displaystyle{\\left(\\frac{x+\\var{add}}{\\var{denom1}}\\right)\\times\\var{denom1}+\\left(\\frac{x}{\\var{denom2}}\\right)\\times\\var{denom1}}$$=$$\\var{right}\\times \\var{denom1}$(multiply all terms by $\\var{denom1}$)
 
$\\displaystyle{x+\\var{add}+\\frac{\\var{denom1}x}{\\var{denom2}}}$$=$$\\var{r1}$
 
$\\displaystyle{(x+\\var{add})\\times\\var{denom2}+\\left(\\frac{\\var{denom1}x}{\\var{denom2}}\\right)\\times\\var{denom2}}$ $=$$\\var{r1}\\times\\var{denom2}$(multiply all terms by $\\var{denom2}$)
 
$\\displaystyle{\\var{denom2}x+\\var{a2}+\\var{denom1}x}$$=$$\\var{r12}$
 
$\\var{sumdeno}x+\\var{a2}$$=$$\\var{r12}$(collect like terms)
 
 $\\var{sumdeno}x$$=$$\\var{r12}-\\var{a2}$(collect like terms)
 
$\\var{sumdeno}x$$=$$\\var{top}$
 
$x$$=$$\\displaystyle{\\simplify{{top}/({sumdeno})}}= \\var{precround(ansD,1)} \\text{ to 1 dp}$(divide by the coefficient of $x$)
", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"p": {"name": "p", "group": "Ungrouped variables", "definition": "random(1..3)", "description": "", "templateType": "anything", "can_override": false}, "r12": {"name": "r12", "group": "e", "definition": "r1*denom2", "description": "", "templateType": "anything", "can_override": false}, "g": {"name": "g", "group": "Ungrouped variables", "definition": "random(-12..-1)", "description": "", "templateType": "anything", "can_override": false}, "ans3": {"name": "ans3", "group": "Ungrouped variables", "definition": "(k+j)*h", "description": "", "templateType": "anything", "can_override": false}, "m": {"name": "m", "group": "Ungrouped variables", "definition": "random(2..12)", "description": "", "templateType": "anything", "can_override": false}, "h": {"name": "h", "group": "Ungrouped variables", "definition": "random(1..12)", "description": "", "templateType": "anything", "can_override": false}, "j": {"name": "j", "group": "Ungrouped variables", "definition": "random(1..12 except h)", "description": "", "templateType": "anything", "can_override": false}, "ans2": {"name": "ans2", "group": "Ungrouped variables", "definition": "{g*f}/{d-g}", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "a+random(1..12)", "description": "", "templateType": "anything", "can_override": false}, "q": {"name": "q", "group": "Ungrouped variables", "definition": "random(1..12)", "description": "", "templateType": "anything", "can_override": false}, "ans4": {"name": "ans4", "group": "Ungrouped variables", "definition": "{q+n*l}/{l*m-p}", "description": "", "templateType": "anything", "can_override": false}, "ans1": {"name": "ans1", "group": "Ungrouped variables", "definition": "-b/(a-c)", "description": "", "templateType": "anything", "can_override": false}, "primes": {"name": "primes", "group": "e", "definition": "shuffle([2,3,5,7,11])", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(1..12)", "description": "", "templateType": "anything", "can_override": false}, "f": {"name": "f", "group": "Ungrouped variables", "definition": "random(2..12)", "description": "", "templateType": "anything", "can_override": false}, "top": {"name": "top", "group": "e", "definition": "r12-a2", "description": "", "templateType": "anything", "can_override": false}, "eans": {"name": "eans", "group": "e", "definition": "denom2*(right*denom1-add)/(denom2+denom1)", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(1..12)", "description": "", "templateType": "anything", "can_override": false}, "denom1": {"name": "denom1", "group": "e", "definition": "primes[0]", "description": "", "templateType": "anything", "can_override": false}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "random(1..12)", "description": "", "templateType": "anything", "can_override": false}, "k": {"name": "k", "group": "Ungrouped variables", "definition": "random(2..12)", "description": "", "templateType": "anything", "can_override": false}, "a2": {"name": "a2", "group": "e", "definition": "add*denom2", "description": "", "templateType": "anything", "can_override": false}, "l": {"name": "l", "group": "Ungrouped variables", "definition": "random(2..12)", "description": "", "templateType": "anything", "can_override": false}, "r1": {"name": "r1", "group": "e", "definition": "right*denom1", "description": "", "templateType": "anything", "can_override": false}, "add": {"name": "add", "group": "e", "definition": "primes[2]", "description": "", "templateType": "anything", "can_override": false}, "d": {"name": "d", "group": "Ungrouped variables", "definition": "random(2..12)", "description": "", "templateType": "anything", "can_override": false}, "denom2": {"name": "denom2", "group": "e", "definition": "primes[1]", "description": "", "templateType": "anything", "can_override": false}, "right": {"name": "right", "group": "e", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "sumdeno": {"name": "sumdeno", "group": "e", "definition": "denom1+denom2", "description": "", "templateType": "anything", "can_override": false}, "ansA": {"name": "ansA", "group": "Ungrouped variables", "definition": "(q+n*l)/(l*m-p)", "description": "", "templateType": "anything", "can_override": false}, "ansB": {"name": "ansB", "group": "Ungrouped variables", "definition": "(-g*f)/(d-g)", "description": "", "templateType": "anything", "can_override": false}, "ansC": {"name": "ansC", "group": "Ungrouped variables", "definition": "(k*j-h)/(1-k)", "description": "", "templateType": "anything", "can_override": false}, "ansD": {"name": "ansD", "group": "Ungrouped variables", "definition": "top/sumdeno", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": "100"}, "ungrouped_variables": ["a", "b", "c", "ans1", "d", "f", "g", "ans2", "h", "j", "k", "ans3", "l", "m", "n", "p", "q", "ans4", "ansA", "ansB", "ansC", "ansD"], "variable_groups": [{"name": "e", "variables": ["primes", "denom1", "denom2", "add", "right", "eans", "r1", "a2", "r12", "top", "sumdeno"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "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": "

Solve  $\\simplify{{l}({m}w-{n}) = {p}w+{q}}$

\n

$w=$ [[0]]

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "ansA", "maxValue": "ansA", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "1", "precisionPartialCredit": "100", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": true, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "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": "

Given $\\displaystyle{\\frac{\\var{d}y}{y-\\var{f}}}=\\var{g}$,  

\n

$y=$ [[0]].

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "ansB", "maxValue": "ansB", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "1", "precisionPartialCredit": "100", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": true, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "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": "

Solve $\\displaystyle{\\frac{x+\\var{add}}{\\var{denom1}}+\\frac{x}{\\var{denom2}}=\\var{right}}$.

\n

$x=$ [[0]]

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "ansD", "maxValue": "ansD", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "1", "precisionPartialCredit": "100", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "heike hoffmann", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2960/"}, {"name": "sean hunte", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3167/"}, {"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "heike hoffmann", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2960/"}, {"name": "sean hunte", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3167/"}, {"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}]}