// Numbas version: exam_results_page_options {"name": "David's copy of 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": [{"variablesTest": {"condition": "", "maxRuns": 100}, "functions": {}, "name": "David's copy of Solving exponential equations using logs", "tags": ["exp", "exponential", "exponentials", "logarithm", "logarithms", "logs", "solving", "Solving equations", "solving equations"], "parts": [{"gaps": [{"checkingaccuracy": 0.001, "checkvariablenames": false, "variableReplacements": [], "marks": 1, "vsetrangepoints": 5, "showpreview": true, "expectedvariablenames": [], "answer": "{d}*log({frac})/log({b})", "checkingtype": "absdiff", "scripts": {}, "showFeedbackIcon": true, "vsetrange": [0, 1], "type": "jme", "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst"}], "scripts": {}, "steps": [{"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

", "showFeedbackIcon": true, "type": "information", "variableReplacements": [], "showCorrectAnswer": true, "marks": 0, "variableReplacementStrategy": "originalfirst"}], "showFeedbackIcon": true, "type": "gapfill", "variableReplacements": [], "showCorrectAnswer": true, "marks": 0, "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", "variableReplacementStrategy": "originalfirst"}, {"gaps": [{"checkingaccuracy": 0.001, "checkvariablenames": false, "variableReplacements": [], "marks": 1, "vsetrangepoints": 5, "showpreview": true, "expectedvariablenames": [], "answer": "log({FV*int+pay}/{pay})/log({1+int})", "answersimplification": "simplifyFractions", "scripts": {}, "showFeedbackIcon": true, "vsetrange": [0, 1], "type": "jme", "showCorrectAnswer": true, "checkingtype": "absdiff", "variableReplacementStrategy": "originalfirst"}], "scripts": {}, "steps": [{"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

", "showFeedbackIcon": true, "type": "information", "variableReplacements": [], "showCorrectAnswer": true, "marks": 0, "variableReplacementStrategy": "originalfirst"}], "showFeedbackIcon": true, "type": "gapfill", "variableReplacements": [], "showCorrectAnswer": true, "marks": 0, "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", "variableReplacementStrategy": "originalfirst"}], "advice": "", "metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": ""}, "ungrouped_variables": ["a", "p", "c", "b", "frac", "logfrac", "logb", "d", "amc", "n"], "statement": "", "extensions": [], "variables": {"amc": {"definition": "a-c", "name": "amc", "group": "Ungrouped variables", "templateType": "anything", "description": ""}, "frac": {"definition": "(a-c)/p", "name": "frac", "group": "Ungrouped variables", "templateType": "anything", "description": ""}, "int": {"definition": "random(0.01..0.10#0.01)", "name": "int", "group": "b", "templateType": "anything", "description": ""}, "test": {"definition": "fv*int/pay", "name": "test", "group": "b", "templateType": "anything", "description": ""}, "pay": {"definition": "random(100..2000#100)", "name": "pay", "group": "b", "templateType": "anything", "description": ""}, "d": {"definition": "random(2,4,3,12,26,52)", "name": "d", "group": "Ungrouped variables", "templateType": "anything", "description": ""}, "c": {"definition": "random(20..a-10#20)", "name": "c", "group": "Ungrouped variables", "templateType": "anything", "description": ""}, "n": {"definition": "d*logfrac/logb", "name": "n", "group": "Ungrouped variables", "templateType": "anything", "description": ""}, "periods": {"definition": "log(FV*int/pay+1)/log(1+int)", "name": "periods", "group": "b", "templateType": "anything", "description": ""}, "logb": {"definition": "log(b)", "name": "logb", "group": "Ungrouped variables", "templateType": "anything", "description": ""}, "a": {"definition": "random(1000..2000#20)", "name": "a", "group": "Ungrouped variables", "templateType": "anything", "description": ""}, "FV": {"definition": "random(20000..100000#500)", "name": "FV", "group": "b", "templateType": "anything", "description": ""}, "p": {"definition": "random(2,5,10,20,(a-c)/2,(a-c)/5,(a-c)/10,(a-c)/20)", "name": "p", "group": "Ungrouped variables", "templateType": "anything", "description": ""}, "b": {"definition": "random(1.05..1.5#0.05)", "name": "b", "group": "Ungrouped variables", "templateType": "anything", "description": ""}, "logfrac": {"definition": "log(frac)", "name": "logfrac", "group": "Ungrouped variables", "templateType": "anything", "description": ""}}, "rulesets": {}, "preamble": {"js": "", "css": ""}, "variable_groups": [{"variables": ["FV", "pay", "int", "periods", "test"], "name": "b"}], "type": "question", "contributors": [{"name": "David Martin", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/130/"}, {"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}]}], "contributors": [{"name": "David Martin", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/130/"}, {"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}