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

Solve linear equations with unknowns on one. Including brackets and fractions. Solutions may require rounding.

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

part a)

\n

\\[\\simplify{{a}x+{b} = {c}} \\]

\n

The first step is to isolate all the $x$-terms to one side of the equation.

\n

To do that we will {add} $\\var{abs(b)}$ {tofroma} both sides:

\n

\\[ \\begin{split} \\simplify{{a}x + {b}} = {{ \\end{split} \\]

\n

Now we need to divide both sides by the coefficient of $x$, to leave just one $x$.

\n

Dividing both sides by $\\var{a}$,

\n

\\[ \\begin{split} x &= \\frac{\\simplify{{c}-{b}}}{\\var{a}} \\\\ &=\\simplify{{(c-b)/a}} \\end{split}\\]

\n

Rounding your answer as required,

\\[ x = \\var{precround((c-b)/a,2)} \\]

\n

\n

part b)

\n

 \\[ \\frac{\\simplify{{d}x + {f}}}{\\var{g}} = \\var{h} \\]

The first step is to rearrange by removing the fraction on the left.  To do this we mulitply both sides by $\\var{g}$ :

\\[ \\begin{split} \\frac{\\simplify{{d}x + {f}}}{\\var{g}} \\times \\var{g}  &= \\var{h} \\times \\var{g} \\\\\\\\ \\simplify{{d}x + {f}} &= \\var{h*g} \\end{split} \\]

Next we isolate all the $x$-terms to one side of the equation.

To do that we will {add2} $\\var{abs(f)}$ {tofromb} both sides:

\\[ \\begin{split} \\simplify{{d}x + {f}}   \\var{add2sym}   \\var{abs(f)} &= \\var{h*g} \\var{add2sym} \\var{abs(f)} \\\\ 
\\var{d}x &= \\simplify{{h*g}-{f}} \\end{split} \\]

Finally we need to divide both sides by the coefficient of $x$, to leave just one $x$.

\n

Dividing both sides by $\\var{d}$,

\\[ \\begin{split} x &= \\frac{\\simplify{{h*g}-{f}}}{\\var{d}} \\\\ &= \\var{(h*g-f)/d} \\end{split} \\]

\n

Rounding your answer as required,

\n

\\[ x = \\var{precround((h*g-f)/d,2)} \\]

\n

\n

part c)

\n

\\[ \\simplify{{b}({c}x+{g})} = \\var{d} \\]

\n

Even though this looks different, this is quite similar to part b).  We just have a multiplication rather than a division to deal with as the first step.

Rearrange to remove the multiplication on the left.  To do this we divide both sides by $\\var{b}$:

\\[ \\begin{split} \\frac{\\simplify{{b}({c}x+{g})}}{ \\var{b}} &= \\frac{\\var{d}}{\\var{b}} \\\\ \\\\ \\simplify{{c}x+{g}} &= \\var{precround(d/b,3)} \\end{split} \\]

Do the division on the right with a calculator and round to 3 decimal places.  Always use at least one more decimal place when rounding during the calculation than is required in your answer, to be on the safe side.

Next we isolate all the $x$-terms to one side of the equation.

To do that we will {add3} $\\var{abs(g)}$ {tofromc} both sides:

\\[ \\begin {split} \\simplify{{c}x + {g}}   \\var{add3sym}   \\var{abs(g)} &= \\var{precround(d/b,3)} \\var{add3sym} \\var{abs(g)} \\\\ \\var{c}x &= \\var{precround(d/b - g,3)} \\end{split} \\]

Finally we need to divide both sides by the coefficient of $x$, to leave just one $x$

\n

Dividing both sides by $\\var{c}$:

\\[ \\begin{split} x &= \\frac{\\var{precround(d/b - g,3)}}{\\var{c}} \\\\ &= \\var{(d/b-g)/c} \\end{split} \\]

\n

Rounding your answer as required,

\\[ x = \\var{precround((d/b - g)/c,2)} \\]

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(-20..20 #0.1 except 0)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(-20..20 #0.1 except 0)", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(-20..20 #0.1 except 0)", "description": "", "templateType": "anything", "can_override": false}, "d": {"name": "d", "group": "Ungrouped variables", "definition": "random(-20..20 #0.1 except 0)", "description": "", "templateType": "anything", "can_override": false}, "f": {"name": "f", "group": "Ungrouped variables", "definition": "random(-20..20 #0.1 except 0)", "description": "", "templateType": "anything", "can_override": false}, "g": {"name": "g", "group": "Ungrouped variables", "definition": "random(-20..20 #0.1 except 0)", "description": "", "templateType": "anything", "can_override": false}, "h": {"name": "h", "group": "Ungrouped variables", "definition": "random(-20..20 #0.1 except 0)", "description": "", "templateType": "anything", "can_override": false}, "m": {"name": "m", "group": "Ungrouped variables", "definition": "random(-20..20 #0.1 except 0)", "description": "", "templateType": "anything", "can_override": false}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "random(-20..20 #0.1 except 0)", "description": "", "templateType": "anything", "can_override": false}, "add": {"name": "add", "group": "Ungrouped variables", "definition": "if(b>0, 'subtract', 'add')", "description": "", "templateType": "anything", "can_override": false}, "addsym": {"name": "addsym", "group": "Ungrouped variables", "definition": "if(add='add',' $+$ ',' $-$ ')", "description": "", "templateType": "anything", "can_override": false}, "add2": {"name": "add2", "group": "Ungrouped variables", "definition": "if(f>0, 'subtract', 'add')", "description": "", "templateType": "anything", "can_override": false}, "add2sym": {"name": "add2sym", "group": "Ungrouped variables", "definition": "if(add2='add',' $+$ ',' $-$ ')", "description": "", "templateType": "anything", "can_override": false}, "add3": {"name": "add3", "group": "Ungrouped variables", "definition": "if(g>0, 'subtract', 'add')", "description": "", "templateType": "anything", "can_override": false}, "add3sym": {"name": "add3sym", "group": "Ungrouped variables", "definition": "if(add3='add',' $+$ ',' $-$ ')", "description": "", "templateType": "anything", "can_override": false}, "tofroma": {"name": "tofroma", "group": "Ungrouped variables", "definition": "if(b>0, 'from', 'to')", "description": "", "templateType": "anything", "can_override": false}, "tofromb": {"name": "tofromb", "group": "Ungrouped variables", "definition": "if(f>0, 'from', 'to')", "description": "", "templateType": "anything", "can_override": false}, "tofromc": {"name": "tofromc", "group": "Ungrouped variables", "definition": "if(g>0, 'subtract', 'add')", "description": "", "templateType": "anything", "can_override": false}, "a3": {"name": "a3", "group": "Ungrouped variables", "definition": "(((d/b) - g)/c)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "b", "c", "d", "f", "g", "h", "m", "n", "add", "addsym", "add2", "add2sym", "add3", "add3sym", "tofroma", "tofromb", "tofromc", "a3"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"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, "prompt": "

Solve

\n

$\\simplify{{a}x + {b}} = \\var{c}$

", "minValue": "((c-b)/a)", "maxValue": "((c-b)/a)", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "2", "precisionPartialCredit": "100", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"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, "prompt": "

Solve

\n

$\\dfrac{\\simplify{{d}x + {f}}}{\\var{g}} = \\var{h}$

", "minValue": "(g*h-f)/d", "maxValue": "(g*h-f)/d", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "2", "precisionPartialCredit": "100", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"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, "prompt": "

Solve

\n

$\\simplify{{b}({c}x+{g})} = \\var{d}$

", "minValue": "a3", "maxValue": "a3", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "2", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"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": "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/"}]}