// Numbas version: exam_results_page_options {"name": "Graphing exponentials with horizontal and vertical transformations and base>1", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Graphing exponentials with horizontal and vertical transformations and base>1", "variable_groups": [], "metadata": {"description": "

Graphing $y=ab^{\\pm x+d}+c$

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "ungrouped_variables": ["b", "a", "c", "d", "s"], "functions": {"graph1": {"language": "javascript", "parameters": [["quad", "number"]], "definition": "var div = Numbas.extensions.jsxgraph.makeBoard('300px','300px',{boundingBox:[-12,12,12,-12],grid:true,axis:false});\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,2],{\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,2],{\ndrawLabels: true,\nlabel: {offset: [-20, 0]},\nminorTicks: 0\n});\n\na = Numbas.jme.unwrapValue(scope.variables.a);\nb = Numbas.jme.unwrapValue(scope.variables.b);\nc = Numbas.jme.unwrapValue(scope.variables.c);\nd = Numbas.jme.unwrapValue(scope.variables.d);\ns = Numbas.jme.unwrapValue(scope.variables.s);\n\n\n\nif(quad==1){board.create('functiongraph',[function(x){ return a*(Math.pow(b,s*x+d))+c}],{strokeWidth:2});}\nif(quad==2){board.create('functiongraph',[function(x){ return a*(Math.pow(1/b,s*x+d))+c}],{strokeWidth:2});}\nif(quad==3){board.create('functiongraph',[function(x){ return -a*(Math.pow(1/b,s*x+d))+c}],{strokeWidth:2});}\nif(quad==4){board.create('functiongraph',[function(x){ return -a*(Math.pow(b,s*x+d))+c}],{strokeWidth:2});}\n\nreturn div;", "type": "html"}}, "extensions": ["jsxgraph"], "variablesTest": {"condition": "", "maxRuns": 100}, "type": "question", "statement": "

The following questions will gauge your understanding of exponentials and how to graph them.

\n

The exponential you will be working with for this question is \$y=\\simplify{{a}{b}^({s}x+{d})+{c}}.\$

", "preamble": {"js": "", "css": ""}, "tags": [], "parts": [{"showFeedbackIcon": true, "marks": 0, "scripts": {}, "prompt": "

The $y$-intercept of $y=\\simplify{{a}{b}^({s}x+{d})+{c}}$ is the point $\\large($[[0]], [[1]]$\\large)$.

", "type": "gapfill", "gaps": [{"correctAnswerStyle": "plain", "scripts": {}, "maxValue": "0", "mustBeReducedPC": 0, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "marks": 1, "minValue": "0", "allowFractions": false, "correctAnswerFraction": false, "variableReplacements": [], "mustBeReduced": false}, {"scripts": {}, "checkingtype": "absdiff", "answer": "{a*b^d+c}", "showFeedbackIcon": true, "answersimplification": "fractionNumbers", "vsetrangepoints": 5, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "jme", "vsetrange": [0, 1], "checkvariablenames": false, "marks": 1, "checkingaccuracy": 0.001, "showpreview": true, "variableReplacements": [], "expectedvariablenames": []}], "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true}, {"showFeedbackIcon": true, "marks": 0, "scripts": {}, "prompt": "

Another important point on the curve is ${\\large(}\\simplify[fractionNumbers]{{-d/s}},$ [[0]]$\\large)$.

", "type": "gapfill", "gaps": [{"correctAnswerStyle": "plain", "scripts": {}, "maxValue": "{a+c}", "mustBeReducedPC": 0, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "marks": 1, "minValue": "{a+c}", "allowFractions": true, "correctAnswerFraction": true, "variableReplacements": [], "mustBeReduced": false}], "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true}, {"variableReplacements": [], "choices": ["

$y$ increases without bound.

", "

$y$ decreases without bound.

", "

$y$ approaches $\\var{c}$.

"], "maxMarks": 0, "scripts": {}, "prompt": "

As $x$ increases without bound,

", "displayType": "radiogroup", "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "1_n_2", "shuffleChoices": true, "showFeedbackIcon": true, "marks": 0, "displayColumns": "1", "matrix": ["if(s>0 and a>0,1,0)", "if(s>0 and a<0,1,0)", "if(s<0,1,0)"], "distractors": ["", "", ""], "minMarks": 0}, {"showFeedbackIcon": true, "marks": 0, "scripts": {}, "prompt": "

The horizontal asymptote of $y=\\simplify{{a}{b}^({s}x+{d})+{c}}$ is $y=$ [[0]].

", "type": "gapfill", "gaps": [{"correctAnswerStyle": "plain", "scripts": {}, "maxValue": "{c}", "mustBeReducedPC": 0, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "marks": 1, "minValue": "{c}", "allowFractions": false, "correctAnswerFraction": false, "variableReplacements": [], "mustBeReduced": false}], "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true}, {"variableReplacements": [], "choices": ["

{graph1(1)}

", "

{graph1(2)}

", "

{graph1(3)}

", "

{graph1(4)}

"], "maxMarks": 0, "scripts": {}, "prompt": "

Which graph best represents $y=\\simplify{{a}{b}^({s}x+{d})+{c}}$?

", "displayType": "radiogroup", "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "1_n_2", "shuffleChoices": true, "showFeedbackIcon": true, "marks": 0, "displayColumns": "2", "matrix": ["1", 0, 0, 0], "distractors": ["", "", "", ""], "minMarks": 0}], "rulesets": {}, "advice": "

a) To find the $y$-intercept, substitute $x=0$ into the equation: $y=\\simplify[!collectNumbers,basic,fractionNumbers]{{a}{b}^{d}+{c}}=\\var[fractionNumbers]{a*b^d+c}$. Therefore, the $y$-intercept is the point $(0,\\var[fractionNumbers]{a*b^d+c})$.

\n

b) Substitute $x=\\simplify[fractionNumbers]{{-d/s}}$ into the equation: $y=\\simplify[!collectNumbers, basic]{{a}{b}^0+{c}}=\\var{a+c}$. Therefore, another easily found point is $\\left(\\simplify[fractionNumbers]{{-d/s}},\\var{a+c}\\right)$.

\n

c) As $x$ gets larger and larger (increases without bound, or approaches infinity) $y=\\simplify{{a}{b}^({s}x+{d})+{c}}$ gets smaller and smaller (decreases without bound, or approaches negative infinity). larger and larger (increases without bound, or approaches infinity). closer and closer to $\\var{c}$.

\n

d) An asymptote is a line or curve that approaches a given curve arbitrarily closely.

\n

\n

As $x$ gets very large, $\\simplify{{b}^({s}x+{d})}$ gets close to zero, $\\simplify{{a}{b}^({s}x+{d})}$ gets close to zero, and $\\simplify{{a}{b}^({s}x+{d})+{c}}$ gets close to $\\var{c}$. That is, for the curve $y=\\simplify{{a}{b}^({s}x+{d})+{c}}$ the larger $x$ gets, the closer $y$ gets to $\\var{c}$. In other words as $x$ approaches infinity, $y$ approaches $\\var{c}$. So the asymptote for $y=\\simplify{{a}{b}^({s}x+{d})+{c}}$ is the line $y=\\var{c}$.

\n

\n

As $x$ gets very small, $\\simplify{{b}^({s}x+{d})}$ gets close to zero, $\\simplify{{a}{b}^({s}x+{d})}$ gets close to zero, and $\\simplify{{a}{b}^({s}x+{d})+{c}}$ gets close to $\\var{c}$. That is, for the curve $y=\\simplify{{a}{b}^({s}x+{d})+{c}}$ the smaller $x$ gets, the closer $y$ gets to $\\var{c}$. In other words as $x$ approaches negative infinity, $y$ approaches $\\var{c}$. So the asymptote for $y=\\simplify{{a}{b}^({s}x+{d})+{c}}$ is the line $y=\\var{c}$.

\n

e) Given all the information above, it should be clear that the graph should look like

\n

{graph1(1)}

", "variables": {"b": {"templateType": "anything", "definition": "random(2..6)", "description": "", "group": "Ungrouped variables", "name": "b"}, "a": {"templateType": "anything", "definition": "random(-4..4 except [0,1,b])", "description": "

a

", "group": "Ungrouped variables", "name": "a"}, "s": {"templateType": "anything", "definition": "random(-1,1)", "description": "", "group": "Ungrouped variables", "name": "s"}, "d": {"templateType": "anything", "definition": "random(-4..4 except 0)", "description": "", "group": "Ungrouped variables", "name": "d"}, "c": {"templateType": "anything", "definition": "random(-6..6 except [0,a,b])", "description": "", "group": "Ungrouped variables", "name": "c"}}, "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}