// Numbas version: exam_results_page_options {"name": "Inverse Functions", "metadata": {"description": "", "licence": "None specified"}, "duration": 0, "percentPass": 0, "showQuestionGroupNames": false, "shuffleQuestionGroups": false, "showstudentname": true, "question_groups": [{"name": "Group", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": ["", "", "", "", "", "", ""], "variable_overrides": [[], [], [], [], [], [], []], "questions": [{"name": "Functions: Inverse Functions 1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "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/"}], "tags": [], "metadata": {"description": "

Finding the inverse of a linear function $f(x)=mx+c$.

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

If $f(x)=\\simplify{{m}x+{c}}$, 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}}\\]

\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}}$ so that it is $x$ as a function of $y$:

\n

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

\n

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

", "rulesets": {}, "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}}, "variablesTest": {"condition": "abs(m)-abs(c)>0 or abs(m)-abs(c)<0", "maxRuns": 100}, "ungrouped_variables": ["m", "c"], "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, "alternatives": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "alternativeFeedbackMessage": "

The question requires you write a function of x.

", "useAlternativeFeedback": false, "answer": "(y-{c})/{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": "y", "value": ""}]}], "answer": "(x-{c})/{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"}, {"name": "Functions: Inverse Functions 2a", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}], "tags": [], "metadata": {"description": "

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

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

If $f(x)=\\simplify{({m}x+{c})/(x)}$ for $x\\neq0$, 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}\\]

\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}$ so that it is $x$ as a function of $y$:

\n

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

\n

Hence, $f^{-1}(y) =\\simplify{{c}/(y-{m})}$, and therefore \\[ f^{-1}(x) =\\simplify{{c}/(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.)

", "rulesets": {}, "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}}, "variablesTest": {"condition": "abs(m)-abs(c)>0 or abs(m)-abs(c)<0", "maxRuns": 100}, "ungrouped_variables": ["m", "c"], "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}/(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"}, {"name": "Functions: Inverse Functions 2b", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "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/"}], "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.)

", "rulesets": {}, "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"}, {"name": "Functions: Inverse Functions 3", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}], "tags": [], "metadata": {"description": "

Finding the inverse of a function of the form $f(x)=\\frac{x^2}{a}+b$ for $x \\geq 0$.

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

If $f(x)=\\simplify{x^2/{a}+{b}}$ for $x \\geq 0$, 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{x^2/{a}+{b}}\\]

\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{x^2/{a}+{b}}$ so that it is $x$ as a function of $y$:

\n

\\[ \\begin{split} y &\\,= \\simplify{x^2/{a}+{b}} \\\\ \\simplify{y-{b}} &\\,= \\simplify{x^2/{a}} \\\\ \\simplify{{a}(y-{b})} &\\,= x^2 \\\\ \\implies x &\\,=\\sqrt{\\simplify{{a}(y-{b})}}. \\end{split} \\]

\n

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

\n

(Note: The inverse is valid for all values of $x\\geq\\var{b}$.)

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(2..9)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(-9..9 except 0)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "abs(a)>abs(b) or abs(b)>abs(a)", "maxRuns": 100}, "ungrouped_variables": ["a", "b"], "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": "sqrt({a}(x-{b}))", "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"}, {"name": "Straight lines, functions: Reading a graph of a straight line.", "extensions": ["geogebra", "jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Lovkush Agarwal", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1358/"}], "advice": "

(i) To find $f(\\var{x1})$, you start at $\\var{x1}$ on the $x$-axis, go up or down until you reach the blue line, and then look at the $y$-coordinate. This $y$-coordinate is the answer.  In this question, after going up/down from $\\var{x1}$, we reach the $y$-coordinate $\\var{y1}$, so the answer is $f(\\var{x1})=\\var{y1}$.

\n

(ii) There are two options. The first option (which is not efficient) is trial-and-error: pick some random value of $x$ and determine $f(x)$. If $f(x) = \\var{y2}$, then your pick is the answer.  If not, then try a different value of $x$, hopefully getting closer and closer each time.   The second (and better) option is to 'work backwards' - we know what $f(x)$ should be, which means we know what the $y$-coordinate should be.  So start at $\\var{y2}$ on the $y$-axis, go left or right until you reach the blue line, and look at the $x$-coordinate. In this question, after going left/right from $\\var{y2}$, we reach the $x$-coordinate $\\var{x2}$, so this is the answer.  You can check this is correct: what is $f(\\var{x2})$? It is $\\var{y2}$, as we wanted!

\n

(iii) The $y$-intercept is the height at which the blue line touches the $y$-axis.  In this question, the blue line crosses the $y$-axis at a height of $\\var{c}$, so the answer is $\\var{c}$.

\n

(iv) To calculate the gradient, you choose two points which lie on the line, and calculate the change in height divided by the change in $x$.  It does not matter which two points you choose, but to make it easier, you should pick points whose coordinates are easy to read.  In this question, two points which are on the line are $(\\var{x1}, \\var{y1})$ and $(\\var{x2},\\var{y2})$.  Then the change of height is $\\var{y2} - \\var{y1}$ and the change in $x$ is $\\var{x2} - \\var{x1}$.  Dividing gives the answer $\\var{m}$, which is the number we want.

\n

(v) The equation of a line can be written as $y = mx + c$.  $m$ is the gradient and $c$ is the $y$-intercept.  But we have calculated these two quantities in the previous two questions: the $y$-intercept was $\\var{c}$ and the gradient was $\\var{m}$. Replacing $m$ and $c$ with these numbers gives the equation $y= \\var{m}x + \\var{c}$, which is the answer.

\n

(vi) This question is asking exactly the same thing as the question in (ii), but is phrased differently. This is because the definition of $f^{-1}$ is that it is the function which un-does what $f$ does.  For example, we know that $f(\\var{x1})=\\var{y1}$ - therefore, automatically, $f^{-1}(\\var{y1})$ has to be $\\var{x1}$.  Re-worded, $f$ maps $\\var{x1}$ to $\\var{y1}$, so because $f^{-1}$ un-does this, it means $f^{-1}$ maps $\\var{y1}$ back to $\\var{x1}$.   Back to the question at hand, it asked what $f^{-1}(\\var{y2})$ is.  By definition, this means we want to know what value of $x$ is needed to get $f(x) = \\var{y2}$, which is exactly what was asked in (ii). 

", "preamble": {"js": "", "css": ""}, "rulesets": {}, "variables": {"x1": {"group": "Ungrouped variables", "definition": "random(-2..2)*m_denom", "name": "x1", "description": "", "templateType": "anything"}, "m": {"group": "Ungrouped variables", "definition": "if(m_denom=3, random(-5..5 except [-3,0,3])/3,\n if(m_denom=2,random(-5..5 except [-4,-2,0,2,4])/2,\n random(-2..2 except 0)\n ))", "name": "m", "description": "

Value of m, the gradient.

", "templateType": "anything"}, "y1": {"group": "Ungrouped variables", "definition": "m*x1+c", "name": "y1", "description": "", "templateType": "anything"}, "x2": {"group": "Ungrouped variables", "definition": "random(-2..2 except x1/m_denom)*m_denom", "name": "x2", "description": "", "templateType": "anything"}, "y2": {"group": "Ungrouped variables", "definition": "m*x2+c", "name": "y2", "description": "", "templateType": "anything"}, "c": {"group": "Ungrouped variables", "definition": "random(-4..4)", "name": "c", "description": "

y-intercept of the line

", "templateType": "anything"}, "m_denom": {"group": "Ungrouped variables", "definition": "random(1..3)", "name": "m_denom", "description": "

The denominator of m, the gradient.

", "templateType": "anything"}}, "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": "max(abs(y1),abs(y2))<10"}, "functions": {"plotgraph": {"definition": "// This functions plots the graph of y=mx+c\n// It creates the board, sets it up, then returns an\n// HTML div tag containing the board.\n\n\n// Max and min x and y values for the axis.\nvar x_min = -10;\nvar x_max = 10;\nvar y_min = -10;\nvar y_max = 10;\n\n\n// First, make the JSXGraph board.\nvar div = Numbas.extensions.jsxgraph.makeBoard(\n '500px',\n '600px',\n {\n boundingBox: [x_min,y_max,x_max,y_min],\n axis: false,\n showNavigation: true,\n grid: true\n }\n);\n\n\n\n\n// div.board is the object created by JSXGraph, which you use to \n// manipulate elements\nvar board = div.board; \n\n// create the x-axis.\nvar xaxis = board.create('line',[[0,0],[1,0]], { strokeColor: 'black', fixed: true});\nvar xticks = board.create('ticks',[xaxis,1],{\n drawLabels: true,\n label: {offset: [-4, -10]},\n minorTicks: 0\n});\n\n// create the y-axis\nvar yaxis = board.create('line',[[0,0],[0,1]], { strokeColor: 'black', fixed: true });\nvar yticks = board.create('ticks',[yaxis,1],{\ndrawLabels: true,\nlabel: {offset: [-20, 0]},\nminorTicks: 0\n});\n\n\n\n\n// Plot the function.\n board.create('functiongraph',\n [function(x){ return m*x+c;},x_min,x_max]);\n\n\n\n\nreturn div;", "language": "javascript", "type": "html", "parameters": [["m", "number"], ["c", "number"]]}}, "tags": [], "ungrouped_variables": ["m_denom", "m", "x1", "x2", "y1", "y2", "c"], "parts": [{"gaps": [{"variableReplacements": [], "allowFractions": false, "unitTests": [], "marks": "1", "correctAnswerStyle": "plain", "minValue": "y1", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "scripts": {}, "extendBaseMarkingAlgorithm": true, "mustBeReducedPC": 0, "correctAnswerFraction": false, "notationStyles": ["plain"], "mustBeReduced": false, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "maxValue": "y1", "showFeedbackIcon": true}, {"variableReplacements": [], "allowFractions": false, "unitTests": [], "marks": 1, "correctAnswerStyle": "plain", "minValue": "x2", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "scripts": {}, "extendBaseMarkingAlgorithm": true, "mustBeReducedPC": 0, "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "mustBeReduced": false, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "maxValue": "x2", "showFeedbackIcon": true}, {"variableReplacements": [], "allowFractions": false, "unitTests": [], "marks": 1, "correctAnswerStyle": "plain", "minValue": "c", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "scripts": {}, "extendBaseMarkingAlgorithm": true, "mustBeReducedPC": 0, "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "mustBeReduced": false, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "maxValue": "c", "showFeedbackIcon": true}, {"variableReplacements": [], "allowFractions": true, "unitTests": [], "marks": "2", "correctAnswerStyle": "plain", "minValue": "m-0.05", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "scripts": {}, "extendBaseMarkingAlgorithm": true, "mustBeReducedPC": 0, "correctAnswerFraction": true, "notationStyles": ["plain", "en", "si-en"], "mustBeReduced": false, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "maxValue": "m+0.05", "showFeedbackIcon": true}, {"vsetRangePoints": 5, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "answer": "{m}x + {c}", "failureRate": 1, "marks": "2", "unitTests": [], "showPreview": true, "answerSimplification": "all", "checkVariableNames": false, "expectedVariableNames": [], "checkingAccuracy": 0.001, "checkingType": "absdiff", "showFeedbackIcon": true, "vsetRange": [0, 1], "type": "jme", "variableReplacementStrategy": "originalfirst", "scripts": {}, "customMarkingAlgorithm": "", "showCorrectAnswer": true}, {"variableReplacements": [], "allowFractions": false, "unitTests": [], "marks": 1, "correctAnswerStyle": "plain", "minValue": "x2", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "scripts": {}, "extendBaseMarkingAlgorithm": true, "mustBeReducedPC": 0, "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "mustBeReduced": false, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "maxValue": "x2", "showFeedbackIcon": true}], "variableReplacements": [], "showCorrectAnswer": true, "unitTests": [], "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "showFeedbackIcon": true, "type": "gapfill", "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "prompt": "

{plotgraph(m,c)}

\n

Above is the graph of some function $f$.

\n

What is $f(\\var{x1})$? [[0]]

\n

What value of $x$ do you need to get $f(x) = \\var{y2}$? [[1]]

\n

What is the y-intercept? [[2]]

\n

What is the gradient of the line? [[3]]

\n

What is the equation of the line? $y=$[[4]]

\n

What is $f^{-1}(\\var{y2})$? [[5]]

"}], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

A graph of a straight line $f$ is given. Questions include determining values of $f$, of $f$ inverse, and determing the equation of the line. Non-calculator. Detail advice is given.

"}, "statement": "

Reading a graph.

", "type": "question"}, {"name": "Functions: Inverse Functions 4", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}], "tags": [], "metadata": {"description": "

Finding the inverse of a function of the form $f(x)=e^{mx+c}$.

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

If $f(x)=e^\\simplify{{m}x+{c}}$, 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) = e^\\simplify{{m}x+{c}}\\]

\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=e^\\simplify{{m}x+{c}}$ so that it is $x$ as a function of $y$:

\n

\\[ \\begin{split} y &\\,= e^\\simplify{{m}x+{c}} \\\\ \\ln(y) &\\,= \\simplify{{m}x+{c}} \\\\ \\simplify{ln(y)-{c}} &\\,= \\simplify{{m}x} \\\\ \\implies x &\\,= \\simplify{(ln(y)-{c})/{m}}. \\end{split} \\]

\n

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

\n

(Note: The inverse is valid for all values of $x>0$.)

", "rulesets": {}, "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}}, "variablesTest": {"condition": "abs(m)-abs(c)>0 or abs(m)-abs(c)<0", "maxRuns": 100}, "ungrouped_variables": ["m", "c"], "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": "(ln(x)-{c})/{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"}, {"name": "Functions: Inverse Functions 5", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}], "tags": [], "metadata": {"description": "

Finding the inverse of a function of the form $f(x)=\\ln(ax)+b$ for $x>0$.

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

If $f(x)=\\simplify{ln({a}x)+{b}}$ for $x>0$, 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{ln({a}x)+{b}}.\\]

\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{ln({a}x)+{b}}$ so that it is $x$ as a function of $y$:

\n

\\[ \\begin{split} y &\\,=\\simplify{ln({a}x)+{b}} \\\\ \\simplify{y-{b}} &\\,= \\simplify{ln({a}x)} \\\\ e^\\simplify{y-{b}} &\\,= \\simplify{{a}x} \\\\ \\implies x &\\,= \\simplify{e^(y-{b})/{a}}. \\end{split} \\]

\n

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

\n

(Note: The inverse is valid for all values of $x$.)

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(2..9)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(-9..9 except 0)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "b"], "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": "e^(x-{b})/{a}", "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"}]}], "allowPrinting": true, "navigation": {"allowregen": true, "reverse": true, "browse": true, "allowsteps": true, "showfrontpage": true, "showresultspage": "oncompletion", "navigatemode": "sequence", "onleave": {"action": "none", "message": ""}, "preventleave": true, "startpassword": ""}, "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "feedback": {"showactualmark": true, "showtotalmark": true, "showanswerstate": true, "allowrevealanswer": true, "advicethreshold": 0, "intro": "", "end_message": "", "reviewshowscore": true, "reviewshowfeedback": true, "reviewshowexpectedanswer": true, "reviewshowadvice": true, "feedbackmessages": []}, "diagnostic": {"knowledge_graph": {"topics": [], "learning_objectives": []}, "script": "diagnosys", "customScript": ""}, "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}], "extensions": ["geogebra", "jsxgraph"], "custom_part_types": [], "resources": []}