// Numbas version: exam_results_page_options {"name": "Solving exponential equations using logs", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [{"variables": ["FV", "pay", "int", "periods", "test"], "name": "b"}], "preamble": {"js": "", "css": ""}, "ungrouped_variables": ["a", "p", "c", "b", "frac", "logfrac", "logb", "d", "amc", "n"], "functions": {}, "extensions": [], "variablesTest": {"condition": "", "maxRuns": 100}, "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "", "variables": {"int": {"templateType": "anything", "description": "", "definition": "random(0.01..0.10#0.01)", "group": "b", "name": "int"}, "n": {"templateType": "anything", "description": "", "definition": "d*logfrac/logb", "group": "Ungrouped variables", "name": "n"}, "test": {"templateType": "anything", "description": "", "definition": "fv*int/pay", "group": "b", "name": "test"}, "amc": {"templateType": "anything", "description": "", "definition": "a-c", "group": "Ungrouped variables", "name": "amc"}, "p": {"templateType": "anything", "description": "", "definition": "random(2,5,10,20,(a-c)/2,(a-c)/5,(a-c)/10,(a-c)/20)", "group": "Ungrouped variables", "name": "p"}, "FV": {"templateType": "anything", "description": "", "definition": "random(20000..100000#500)", "group": "b", "name": "FV"}, "c": {"templateType": "anything", "description": "", "definition": "random(20..a-10#20)", "group": "Ungrouped variables", "name": "c"}, "frac": {"templateType": "anything", "description": "", "definition": "(a-c)/p", "group": "Ungrouped variables", "name": "frac"}, "b": {"templateType": "anything", "description": "", "definition": "random(1.05..1.5#0.05)", "group": "Ungrouped variables", "name": "b"}, "a": {"templateType": "anything", "description": "", "definition": "random(1000..2000#20)", "group": "Ungrouped variables", "name": "a"}, "d": {"templateType": "anything", "description": "", "definition": "random(2,4,3,12,26,52)", "group": "Ungrouped variables", "name": "d"}, "periods": {"templateType": "anything", "description": "", "definition": "log(FV*int/pay+1)/log(1+int)", "group": "b", "name": "periods"}, "logfrac": {"templateType": "anything", "description": "", "definition": "log(frac)", "group": "Ungrouped variables", "name": "logfrac"}, "pay": {"templateType": "anything", "description": "", "definition": "random(100..2000#100)", "group": "b", "name": "pay"}, "logb": {"templateType": "anything", "description": "", "definition": "log(b)", "group": "Ungrouped variables", "name": "logb"}}, "tags": [], "parts": [{"customName": "", "customMarkingAlgorithm": "", "sortAnswers": false, "scripts": {}, "prompt": "

Solve the following equation for $n$

\n

$\\displaystyle{\\simplify{{a}={p}({b})^(n/{d})+{c}}}.$

\n

\n

$n=$ [[0]]

\n

\n

Note: Typing $\\log(5)$ will input the value $\\log_{10}(5)$, whereas $\\log5$ will not work.
Note: Typing $\\ln(5)$ will input the value $\\log_e(5)$, whereas $\\ln5$ will not work.

", "stepsPenalty": "1", "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "gapfill", "steps": [{"customName": "", "customMarkingAlgorithm": "", "scripts": {}, "prompt": "

We start solving the equation one operation at a time by doing the inverse to both sides, when we get to undoing the exponential we apply a log to both sides, we then use a log law and continue solving.

\n

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$\\var{a}$$=$$\\simplify{{p}({b})^(n/{d})+{c}}$
$\\simplify{{a-c}}$$=$$\\simplify{{p}({b})^(n/{d})}$(subtract $\\var{c}$ from both sides) 
$\\var{frac}$$=$$\\simplify{{b}^(n/{d})}$(divide both sides by $\\var{p}$)
$\\log(\\var{frac})$$=$$\\log(\\var{b}^{\\frac{n}{\\var{d}}})$(take the log of both sides)
$=$ $\\frac{n}{\\var{d}}\\log(\\var{b})$(use a log law)
$\\displaystyle{\\frac{\\log(\\var{frac})}{\\log(\\var{b})}}$$=$$\\frac{n}{\\var{d}}$(divide both sides by $\\log(\\var{b})$)
$\\displaystyle{\\frac{\\var{d}\\log(\\var{frac})}{\\log(\\var{b})}}$$=$$n$(multiply both sides by $\\var{d}$)
\n

", "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "information", "showFeedbackIcon": true, "marks": 0, "unitTests": [], "useCustomName": false, "variableReplacements": []}], "showFeedbackIcon": true, "marks": 0, "unitTests": [], "useCustomName": false, "gaps": [{"customName": "", "customMarkingAlgorithm": "", "scripts": {}, "failureRate": 1, "answer": "{d}*log({frac})/log({b})", "valuegenerators": [], "checkingType": "absdiff", "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "jme", "vsetRange": [0, 1], "showFeedbackIcon": true, "marks": 1, "vsetRangePoints": 5, "checkVariableNames": false, "unitTests": [], "showPreview": true, "useCustomName": false, "variableReplacements": [], "checkingAccuracy": 0.001}], "variableReplacements": []}, {"customName": "", "customMarkingAlgorithm": "", "sortAnswers": false, "scripts": {}, "prompt": "

Solve the following equation for $n$

\n

$\\displaystyle{\\simplify{{FV}={pay}((1+{int})^n-1)/{int}}}.$

\n

\n

$n=$ [[0]]

\n

\n

Note: Typing $\\log(5)$ will input the value $\\log_{10}(5)$, whereas $\\log5$ will not work.
Note: Typing $\\ln(5)$ will input the value $\\log_e(5)$, whereas $\\ln5$ will not work.

", "stepsPenalty": "1", "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "gapfill", "steps": [{"customName": "", "customMarkingAlgorithm": "", "scripts": {}, "prompt": "

We start solving the equation one operation at a time by doing the inverse to both sides, when we get to undoing the exponential we apply a log to both sides, we then use a log law and continue solving.

\n

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
${\\var{FV}}$$=$$\\displaystyle{\\simplify{{pay}((1+{int})^n-1)/{int}}}$
$\\simplify{{FV*int}}$$=$$\\displaystyle{\\simplify{{pay}((1+{int})^n-1)}}$(multiply both sides by $\\var{int}$) 
$\\displaystyle{\\simplify[simplifyFractions]{{FV*int}/{pay}}}$$=$$\\displaystyle{\\simplify{(1+{int})^n-1}}$(divide both sides by $\\var{pay}$)
$\\displaystyle{\\simplify[simplifyFractions]{{FV*int}/{pay}+1}}$$=$$\\displaystyle{\\simplify{(1+{int})^n}}$(add $1$ to both sides)
$\\displaystyle{\\simplify[simplifyFractions]{{FV*int+pay}/{pay}}}$$=$ $\\displaystyle{\\simplify{(1+{int})^n}}$(tidy up left hand side)
$\\displaystyle{\\log\\left(\\simplify[simplifyFractions]{{FV*int+pay}/{pay}}\\right)}$$=$$\\displaystyle{\\log\\left((\\var{1+int})^n\\right)}$(take the log of both sides)
$\\displaystyle{\\log\\left(\\simplify[simplifyFractions]{{FV*int+pay}/{pay}}\\right)}$$=$$\\displaystyle{n\\log(\\var{1+int})}$(use a log law)
$\\displaystyle{\\frac{\\log\\left(\\simplify[simplifyFractions]{{FV*int+pay}/{pay}}\\right)}{\\log(\\var{1+int})}}$$=$$n$(divide both sides by $\\log(\\var{1+int})$)
\n

", "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "information", "showFeedbackIcon": true, "marks": 0, "unitTests": [], "useCustomName": false, "variableReplacements": []}], "showFeedbackIcon": true, "marks": 0, "unitTests": [], "useCustomName": false, "gaps": [{"customName": "", "customMarkingAlgorithm": "", "failureRate": 1, "checkingType": "absdiff", "showCorrectAnswer": true, "checkVariableNames": false, "vsetRange": [0, 1], "showFeedbackIcon": true, "vsetRangePoints": 5, "checkingAccuracy": 0.001, "scripts": {}, "answer": "log({FV*int+pay}/{pay})/log({1+int})", "valuegenerators": [], "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "type": "jme", "answerSimplification": "simplifyFractions", "marks": 1, "unitTests": [], "showPreview": true, "useCustomName": false, "variableReplacements": []}], "variableReplacements": []}], "rulesets": {}, "advice": "", "name": "Solving exponential equations using logs", "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/"}]}