// Numbas version: exam_results_page_options {"name": "Solve an equation with a reciprocal", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"metadata": {"description": "

Solve for $x$: $\\displaystyle \\frac{a} {bx+c} + d= s$

", "licence": "Creative Commons Attribution 4.0 International"}, "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "variable_groups": [], "extensions": [], "ungrouped_variables": ["a", "c", "b", "d", "s2", "s1", "b1", "t", "an2", "an1"], "statement": "\n\t

Solve the following equation for $x$.

\n\t

Input your answer as a fraction or an integer as appropriate and not as a decimal.

\n\t \n\t \n\t \n\t \n\t", "preamble": {"css": "", "js": ""}, "name": "Solve an equation with a reciprocal", "variablesTest": {"condition": "", "maxRuns": 100}, "functions": {}, "advice": "

Rearrange the equation by adding {-c} to both sides to get:
\\[\\simplify{{t} / ({a} * x + {b}) = {d} + { -c} = {d -c}}\\]
This gives \\[\\simplify{({a} * x + {b}) / {t} = 1 / {d -c}}\\] (this is because if $\\displaystyle \\frac{a}{b}=c$ then $\\displaystyle \\frac{b}{a}=\\frac{1}{c}$ on turning the fraction round the other way)
and so \\[\\simplify{({a} * x + {b}) = {t} / {d -c}}\\] on multiplying both sides by {t}.
Hence \\[\\simplify{{a} * x = {t} / {d -c} -{b} = ({a * an1} / {an2})}\\]
and so \\[\\simplify{x={an1}/{an2}}\\] is the solution on dividing both sides by {a}.

", "tags": [], "variables": {"s1": {"templateType": "anything", "description": "", "definition": "random(-1,1)", "group": "Ungrouped variables", "name": "s1"}, "an2": {"templateType": "anything", "description": "", "definition": "a*(d-c)", "group": "Ungrouped variables", "name": "an2"}, "an1": {"templateType": "anything", "description": "", "definition": "t-b*d+b*c", "group": "Ungrouped variables", "name": "an1"}, "a": {"templateType": "anything", "description": "", "definition": "random(2..9)", "group": "Ungrouped variables", "name": "a"}, "b1": {"templateType": "anything", "description": "", "definition": "s1*random(1..10)", "group": "Ungrouped variables", "name": "b1"}, "b": {"templateType": "anything", "description": "", "definition": "if(a=abs(b1),abs(b1)+2,b1)", "group": "Ungrouped variables", "name": "b"}, "t": {"templateType": "anything", "description": "", "definition": "random(2..8)", "group": "Ungrouped variables", "name": "t"}, "d": {"templateType": "anything", "description": "", "definition": "abs(c)+random(2..9)", "group": "Ungrouped variables", "name": "d"}, "c": {"templateType": "anything", "description": "", "definition": "s2*random(1..9)", "group": "Ungrouped variables", "name": "c"}, "s2": {"templateType": "anything", "description": "", "definition": "random(1,-1)", "group": "Ungrouped variables", "name": "s2"}}, "parts": [{"marks": 0, "stepsPenalty": 1, "gaps": [{"marks": 3, "failureRate": 1, "unitTests": [], "checkingAccuracy": 0.0001, "scripts": {}, "notallowed": {"message": "

Input as a fraction or an integer, not as a decimal.

", "partialCredit": 0, "showStrings": false, "strings": ["."]}, "variableReplacementStrategy": "originalfirst", "valuegenerators": [], "checkingType": "absdiff", "variableReplacements": [], "customName": "", "checkVariableNames": false, "showFeedbackIcon": true, "type": "jme", "showPreview": true, "customMarkingAlgorithm": "", "vsetRangePoints": 5, "adaptiveMarkingPenalty": 0, "useCustomName": false, "showCorrectAnswer": true, "vsetRange": [0, 1], "answerSimplification": "std", "extendBaseMarkingAlgorithm": true, "answer": "{an1}/{an2}"}], "unitTests": [], "sortAnswers": false, "scripts": {}, "adaptiveMarkingPenalty": 0, "useCustomName": false, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "prompt": "\n\t\t\t

\\[\\simplify{{t} / ({a} * x + {b}) + {c} = {d}}\\]

\n\t\t\t

$x=\\;$ [[0]]

\n\t\t\t

If you want help in solving the equation, click on \"Show steps\". If you do so then you will lose 1 mark.

\n\t\t\t

Input all numbers as fractions or integers and not as decimals.

\n\t\t\t \n\t\t\t", "steps": [{"marks": 0, "unitTests": [], "scripts": {}, "adaptiveMarkingPenalty": 0, "useCustomName": false, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "prompt": "\n\t\t\t\t\t

Rearrange the equation by adding {-c} to both sides to get:
\\[\\simplify[std]{{t} / ({a} * x + {b}) = {d} + { -c} = {d -c}}\\]

\n\t\t\t\t\t

This gives \\[\\simplify{({a} * x + {b}) / {t} = 1 / {d -c}}\\] (this is because if $\\displaystyle \\frac{a}{b}=c$ then $\\displaystyle \\frac{b}{a}=\\frac{1}{c}$ on turning the fraction round the other way)

\n\t\t\t\t\t

and so \\[\\simplify{({a} * x + {b}) = {t} / {d -c}}\\] on multiplying both sides by {t}.

\n\t\t\t\t\t

Solve this equation for $x$.

\n\t\t\t\t\t \n\t\t\t\t\t \n\t\t\t\t\t \n\t\t\t\t\t \n\t\t\t\t\t", "variableReplacements": [], "customName": "", "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "showCorrectAnswer": true, "type": "information"}], "variableReplacements": [], "customName": "", "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "showCorrectAnswer": true, "type": "gapfill"}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Timur Zaripov", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3272/"}, {"name": "Thomas Waters", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3649/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Timur Zaripov", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3272/"}, {"name": "Thomas Waters", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3649/"}]}