// Numbas version: finer_feedback_settings {"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": [{"functions": {}, "ungrouped_variables": ["power", "d", "f", "g", "b", "a", "c", "ans"], "name": "Solving log equations using exponentials", "tags": ["exp", "exponential", "exponentials", "logarithm", "logarithms", "logs", "solving", "solving equations"], "advice": "", "rulesets": {}, "parts": [{"stepsPenalty": 0, "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.

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "type": "jme", "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "answersimplification": "fractionnumbers", "scripts": {}, "answer": "{({b}^{power}-{c})/{a}}", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}], "steps": [{"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

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "scripts": {}, "marks": 0, "showCorrectAnswer": true, "type": "gapfill"}], "statement": "", "variable_groups": [{"variables": [], "name": "Unnamed group"}], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"a": {"definition": "random(2..12)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "c": {"definition": "random(-12..12 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": ""}, "b": {"definition": "random(2,3,4,5,10)", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "d": {"definition": "random(2..12)", "templateType": "anything", "group": "Ungrouped variables", "name": "d", "description": ""}, "g": {"definition": "f+power*d", "templateType": "anything", "group": "Ungrouped variables", "name": "g", "description": ""}, "f": {"definition": "random(1..60)", "templateType": "anything", "group": "Ungrouped variables", "name": "f", "description": ""}, "power": {"definition": "random(-5..5 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "power", "description": ""}, "ans": {"definition": "(b^((g-f)/d)-c)/a", "templateType": "anything", "group": "Ungrouped variables", "name": "ans", "description": ""}}, "metadata": {"notes": "", "description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "steve kilgallon", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/268/"}]}]}], "contributors": [{"name": "steve kilgallon", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/268/"}]}