// Numbas version: exam_results_page_options {"name": "Algebra : Solving Linear Equations for x", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a", "af", "b", "c", "d", "f", "g", "h"], "name": "Algebra : Solving Linear Equations for x", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "
In part a)
\n$\\simplify{{a[0]}*x+{b[0]}={c[0]}}$
\n$\\simplify{{a[0]}*x}=(\\var{c[0]}-(\\var{b[0]}))$
\n$\\simplify{{a[0]}*x}=\\var{d}$
\n$x=\\var{f}$
\n\nIn part b)
\n$\\simplify[std]{({a[1]}*x/{af[1]})+{b[1]}={c[1]}}$
\n$\\var{a[1]}x$+$(\\var{b[1]}*\\var{af[1]}) = (\\var{c[1]}*\\var{af[1]})$
\n$x= \\var{g}$
\n\nIn part c)
\n$\\simplify{({a[2]}*x+{b[2]})/{af[2]}={c[2]}}$
\n$x=\\frac{(\\var{c[2]}*\\var{af[2]}-\\var{b[2]})}{\\var{a[2]}}$
\n$x= \\var{h}$
\n\nThe video below explains how to carry out similar problems.
\n", "rulesets": {"std": ["all", "!simplifyFractions"]}, "parts": [{"prompt": "$\\simplify{{a[0]}*x+{b[0]}={c[0]}}$
\n$\\simplify{{a[0]}*x}=$ [[1]]
\n$x=$ [[0]]
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "maxValue": "({c[0]}-{b[0]})/{a[0]}", "strictPrecision": false, "minValue": "({c[0]}-{b[0]})/{a[0]}", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "precision": "2", "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "maxValue": "({c[0]}-{b[0]})", "strictPrecision": false, "minValue": "({c[0]}-{b[0]})", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "precision": "2", "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"stepsPenalty": 0, "prompt": "$\\simplify[std]{({a[1]}*x/{af[1]})+{b[1]}={c[1]}}$
\n$\\var{a[1]}x+$ [[1]] $=$ [[2]]
\n$x=$ [[0]]
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "steps": [{"prompt": "This question prompts one of various solution methods, namely to multiply every term on both sides of the equation by the denominator in the coefficient of $x$.
\nFor example,
\nTake the equation: $\\frac{7}{8}x-5=16$
\nAll terms are multiplied by the coefficient denominator: $7x-40=128$
\nIt is then solved in the typical manner: $7x=128+40=168$ then $x=\\frac{168}{7}=24$
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "gaps": [{"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "maxValue": "({c[1]}*{af[1]})/{a[1]}-({b[1]}*{af[1]})/{a[1]}", "strictPrecision": false, "minValue": "({c[1]}*{af[1]})/{a[1]}-({b[1]}*{af[1]})/{a[1]}", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "precision": "2", "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "maxValue": "({b[1]}*{af[1]})", "strictPrecision": false, "minValue": "({b[1]}*{af[1]})", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "precision": "2", "scripts": {}, "marks": "0.5", "type": "numberentry", "showPrecisionHint": false}, {"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "maxValue": "({c[1]}*{af[1]})", "strictPrecision": false, "minValue": "({c[1]}*{af[1]})", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "precision": "2", "scripts": {}, "marks": "0.5", "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "$\\simplify{({a[2]}*x+{b[2]})/{af[2]}={c[2]}}$
\n$x=$ [[0]]
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "maxValue": "({c[2]}{af[2]}-{b[2]})/{a[2]}", "strictPrecision": false, "minValue": "({c[2]}{af[2]}-{b[2]})/{a[2]}", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "precision": "2", "scripts": {}, "marks": "2", "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "Evaluate $x$ in the following equations (Answer in two decimal places only)
\nIf you are not familiar with solving these kinds of equations, please watch this video before attempting.
", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"a": {"definition": "repeat(random(2..6 except 3),3)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": "coefficient of x on lhs
"}, "c": {"definition": "repeat(random(5..30 except 25 except 7 except 9),3)", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": "constant on rhs
"}, "b": {"definition": "repeat(random(-10..10 except 0 except 1 except 2 except -1 except -2 except 4),3)", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": "constant on lhs
"}, "d": {"definition": "precround((c[0]-b[0]),2)", "templateType": "anything", "group": "Ungrouped variables", "name": "d", "description": ""}, "g": {"definition": "precround((c[1]*af[1])/a[1]-(b[1]*af[1])/a[1],2)", "templateType": "anything", "group": "Ungrouped variables", "name": "g", "description": ""}, "f": {"definition": "precround((c[0]-b[0])/a[0],2)", "templateType": "anything", "group": "Ungrouped variables", "name": "f", "description": ""}, "h": {"definition": "precround((c[2]*af[2]-b[2])/a[2],2)", "templateType": "anything", "group": "Ungrouped variables", "name": "h", "description": ""}, "af": {"definition": "repeat(random(3..8 except a except 3),3)", "templateType": "anything", "group": "Ungrouped variables", "name": "af", "description": "coefficient denominator
"}}, "metadata": {"description": "Solving linear equations to find the value of x.
", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Nasir Firoz Khan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/909/"}]}]}], "contributors": [{"name": "Nasir Firoz Khan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/909/"}]}