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

Finding the inverse of a function of the form $f(x)=\\frac{mx+c}{x+a},\\,x\\neq-a$.

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

If $f(x)=\\simplify{({m}x+{c})/(x+{a})},\\,x\\neq \\simplify{{-a}}$, find the inverse function, $f^{-1}(x)$.

", "advice": "

To find $f^{-1}x$, it can help to first set $f(x)$ to a different variable, which we will call $y$:

\n

\\[ y = f(x) = \\simplify{({m}x+{c})/(x+{a})}\\]

\n

Since the function $f(x)$ takes us from $x$ to $y$, the inverse function $f^{-1}$ will take us from $y$ to $x$. So to obtain $f^{-1}$, we want to rearrange $y=\\simplify{({m}x+{c})/(x+{a})}$ so that it is $x$ as a function of $y$:

\n

\\[ \\begin{split} y &\\,= \\simplify{({m}x+{c})/(x+{a})} \\\\\\\\ \\simplify{(x+{a})y} &\\,= \\simplify{{m}x+{c}} \\\\\\\\ \\simplify{x*y+{a}y} &\\,= \\simplify{{m}x+{c}} \\\\\\\\ \\simplify{x*y - {m}x} &\\,= \\simplify{{c}- {a}y}   \\\\  \\\\ \\simplify{x(y-{m})} &\\,= \\simplify{{c}-{a}y} \\\\\\\\ x&\\,= \\simplify{({c}-{a}y)/(y-{m})}. \\end{split} \\]

\n

Hence, $f^{-1}(y) =\\simplify{({c}-{a}y)/(y-{m})}$, and therefore \\[ f^{-1}(x) =\\simplify{({c}-{a}x)/(x-{m})}.\\]

\n

(Note: The inverse is valid for all values of $x$ except $x=\\var{m}$, since this would make the denominator equal to 0.)

\n

Use this link to find resources to help you revise how to find the inverse of functions.

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"m": {"name": "m", "group": "Ungrouped variables", "definition": "random(2..9)", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(-9..9 except 0)", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(-8..8)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "abs(m)-abs(c)>0 or abs(m)-abs(c)<0", "maxRuns": 100}, "ungrouped_variables": ["m", "c", "a"], "variable_groups": [], "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": "

$f^{-1}(x)=$[[0]]

", "gaps": [{"type": "jme", "useCustomName": true, "customName": "Gap 0", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "({c}-{a}x)/(x-{m})", "answerSimplification": "fractionNumbers", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "x", "value": ""}]}], "sortAnswers": false}], "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/"}, {"name": "Megan Oliver", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/23526/"}]}]}], "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/"}, {"name": "Megan Oliver", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/23526/"}]}