// Numbas version: exam_results_page_options {"name": "Solving log equations using exponentials", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Solving log equations using exponentials", "advice": "", "variable_groups": [{"variables": [], "name": "Unnamed group"}], "ungrouped_variables": ["power", "d", "f", "g", "b", "a", "c", "ans"], "functions": {}, "extensions": [], "variablesTest": {"condition": "", "maxRuns": 100}, "type": "question", "statement": "", "preamble": {"js": "", "css": ""}, "tags": ["exp", "exponential", "exponentials", "logarithm", "logarithms", "logs", "solving", "Solving equations", "solving equations"], "parts": [{"showFeedbackIcon": true, "marks": 0, "scripts": {}, "type": "gapfill", "showCorrectAnswer": true, "prompt": "

Solve the following equation for $x$

\n

$\\displaystyle{\\var{d}\\log_\\var{b}(\\simplify{{a}x+{c}})+\\var{f}=\\var{g}   }.$

\n

\n

$x=$ [[0]]

\n

Note: You can use the symbol ^ to signify powers, and / to signify division. Please ensure you use brackets correctly.

", "steps": [{"showFeedbackIcon": true, "marks": 0, "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 log we recall the definition of $\\log_b$, write the equation in index form and continue solving.

\n

Recall: The definition of $\\log_b$ says $\\log_b(a)=c$ is equivalent to $b^c=a$.

\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
$\\displaystyle{\\var{d}\\log_\\var{b}(\\simplify{{a}x+{c}})+\\var{f}  }$$=$$\\var{g}$
$\\displaystyle{\\var{d}\\log_\\var{b}(\\simplify{{a}x+{c}})  }$$=$$\\var{g-f}$(subtract $\\var{f}$ from both sides) 
$\\displaystyle{\\log_\\var{b}(\\simplify{{a}x+{c}})  }$$=$$\\var{power}$(divide both sides by $\\var{d}$)
$\\simplify[basic]{{b}^{power}}$$=$$\\simplify{{a}x+{c}}$(using the definition of $\\log_\\var{b}$)
$\\simplify[basic,unitpower]{{b}^{power}-{c}}$$=$ $\\var{a}x$(subtract $\\var{c}$ from both sides)
 
$\\displaystyle{\\simplify[basic,fractionnumbers,unitpower]{({b}^{power}-{c})/{a}}}$$=$$x$(divide both sides by $\\var{a}$)
 
$x$$=$$\\displaystyle{\\simplify[basic,fractionnumbers,unitpower]{{({b}^{power}-{c})/{a}}}}$
\n

", "type": "information", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true}], "gaps": [{"scripts": {}, "checkingtype": "absdiff", "answer": "{({b}^{power}-{c})/{a}}", "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", "stepsPenalty": "1"}], "rulesets": {}, "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "variables": {"b": {"templateType": "anything", "description": "", "definition": "random(2,3,4,5,10)", "group": "Ungrouped variables", "name": "b"}, "a": {"templateType": "anything", "description": "", "definition": "random(2..12)", "group": "Ungrouped variables", "name": "a"}, "d": {"templateType": "anything", "description": "", "definition": "random(2..12)", "group": "Ungrouped variables", "name": "d"}, "g": {"templateType": "anything", "description": "", "definition": "f+power*d", "group": "Ungrouped variables", "name": "g"}, "power": {"templateType": "anything", "description": "", "definition": "random(-5..5 except 0)", "group": "Ungrouped variables", "name": "power"}, "f": {"templateType": "anything", "description": "", "definition": "random(1..60)", "group": "Ungrouped variables", "name": "f"}, "ans": {"templateType": "anything", "description": "", "definition": "(b^((g-f)/d)-c)/a", "group": "Ungrouped variables", "name": "ans"}, "c": {"templateType": "anything", "description": "", "definition": "random(-12..12 except 0)", "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/"}]}