// Numbas version: finer_feedback_settings {"name": "Logarithms: inverses", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"parts": [{"variableReplacementStrategy": "originalfirst", "steps": [{"variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "showFeedbackIcon": true, "variableReplacements": [], "prompt": "
You might recall that $b^{\\log_{b}(a)}=a$ (for $a>0$), and therefore
\n\\[\\var{b}^{\\log_{\\var{b}}(\\simplify{x+{d}})}=\\simplify{x+{d}}, \\quad\\text{ for }x>\\var{-d}.\\]
\nWe can think of the logarithm and the exponential (of the same base) cancelling each other out, or undoing each other since they are the inverse of each other. Some people might prefer to see more evidence of this, so here is a longer explanation:
\nLet $\\simplify{log(x+{d},{b})}=n$. Recall the definition of log says that this is equivalent to \\[\\simplify{{b}^n=x+{d}}.\\] Now substitute $\\simplify{log(x+{d},{b})}$ for $n$ into this equation (since we defined them to be equal) and we have
\n\\[\\simplify{{b}^(log(x+{d},{b}))=x+{d}}\\]
\n", "marks": 0, "type": "information"}], "showCorrectAnswer": true, "scripts": {}, "showFeedbackIcon": true, "gaps": [{"checkvariablenames": false, "showCorrectAnswer": true, "checkingtype": "absdiff", "checkingaccuracy": 0.001, "vsetrangepoints": 5, "scripts": {}, "type": "jme", "vsetrange": [0, 1], "showpreview": true, "answer": "x+{d}", "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "notallowed": {"partialCredit": 0, "strings": ["log", "ln", "e"], "message": "This expression can be simplified to not contain logs or exponentials.
", "showStrings": false}, "variableReplacements": [], "expectedvariablenames": [], "marks": 1}], "variableReplacements": [], "prompt": "$\\var{b}^{\\log_{\\var{b}}(\\simplify{x+{d}})}=$ [[0]], for $x>\\var{-d}$.
", "marks": 0, "type": "gapfill", "stepsPenalty": "1"}, {"variableReplacementStrategy": "originalfirst", "steps": [{"variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "showFeedbackIcon": true, "variableReplacements": [], "prompt": "Recall that $\\ln$ denotes $\\log_e$.
\nHere is one way to do this simplification (use the log laws $b\\log(a)=\\log(a^b)$ and $b^{\\log_b(a)}=a$):
\n$\\begin{align}e^{\\var[fractionNumbers]{c}\\ln(\\simplify{x^{a}+{d}})}&=e^{\\ln\\left(\\simplify[fractionNumbers]{(x^{a}+{d})^{c}}\\right)}\\\\&=\\simplify[fractionNumbers]{(x^{a}+{d})^{c}}\\end{align}$
\nAnother way (use the index law $a^{bc}=(a^b)^c$ and $b^{\\log_b(a)}=a$):
\n$\\begin{align}e^{\\var[fractionNumbers]{c}\\ln(\\simplify{x^{a}+{d}})}&=\\left(e^{\\ln(\\simplify{x^{a}+{d}})}\\right)^\\var[fractionNumbers]{c}\\\\&=\\simplify[fractionNumbers]{(x^{a}+{d})^{c}}\\end{align}$
\n", "marks": 0, "type": "information"}], "showCorrectAnswer": true, "scripts": {}, "showFeedbackIcon": true, "gaps": [{"answersimplification": "fractionNumbers", "checkvariablenames": false, "showCorrectAnswer": true, "checkingtype": "absdiff", "checkingaccuracy": 0.001, "vsetrangepoints": 5, "scripts": {}, "type": "jme", "vsetrange": [0, 1], "showpreview": true, "answer": "(x^{a}+{d})^{c}", "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "notallowed": {"partialCredit": 0, "strings": ["log", "ln", "e"], "message": "This expression can be simplified to not contain logs or exponentials.
", "showStrings": false}, "variableReplacements": [], "expectedvariablenames": [], "marks": 1}], "variableReplacements": [], "prompt": "$e^{\\var[fractionNumbers]{c}\\ln(\\simplify{x^{a}+{d}})}=$ [[0]], for $\\simplify{x^{a}+{d}}>0$.
", "marks": 0, "type": "gapfill", "stepsPenalty": "1"}, {"variableReplacementStrategy": "originalfirst", "steps": [{"variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "showFeedbackIcon": true, "variableReplacements": [], "prompt": "Recall that $\\ln$ denotes $\\log_e$.
\nTo simplify $\\displaystyle \\ln\\left(e^{\\simplify{{p}x^2+{q}x+{r}}}\\right)$ we might think of the logarithm and the exponential (of the same base) cancelling each other out, or undoing each other since they are the inverse of each other. Some people might prefer to see more evidence of this, so here is a longer explanation:
\nLet $\\displaystyle \\ln\\left(e^{\\simplify{{p}x^2+{q}x+{r}}}\\right)=n$. Recall the definition of log says that this is equivalent to \\[e^n=e^\\simplify{{p}x^2+{q}x+{r}}\\]
\nTherefore $n=\\simplify{{p}x^2+{q}x+{r}}$ and so we can conclude
\n\\[\\ln\\left(e^{\\simplify{{p}x^2+{q}x+{r}}}\\right)=\\simplify{{p}x^2+{q}x+{r}}.\\]
", "marks": 0, "type": "information"}], "showCorrectAnswer": true, "scripts": {}, "showFeedbackIcon": true, "gaps": [{"checkvariablenames": false, "showCorrectAnswer": true, "checkingtype": "absdiff", "checkingaccuracy": 0.001, "vsetrangepoints": 5, "scripts": {}, "type": "jme", "vsetrange": [0, 1], "showpreview": true, "answer": "{p}x^2+{q}x+{r}", "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "notallowed": {"partialCredit": 0, "strings": ["ln", "log", "e"], "message": "This expression can be simplified to not contain logs or exponentials.
", "showStrings": false}, "variableReplacements": [], "expectedvariablenames": [], "marks": 1}], "variableReplacements": [], "prompt": "$\\displaystyle \\ln\\left(e^{\\simplify{{p}x^2+{q}x+{r}}}\\right)=$ [[0]]
", "marks": 0, "type": "gapfill", "stepsPenalty": "1"}], "name": "Logarithms: inverses", "tags": [], "functions": {}, "variablesTest": {"maxRuns": 100, "condition": ""}, "ungrouped_variables": ["b", "d", "c", "a", "list", "p", "q", "r"], "rulesets": {}, "metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": "Simplifying expressions such as $b^{\\log_b(x)}$ and $b^{\\log_b(x)}$.
"}, "variable_groups": [], "advice": "", "statement": "Simplify the following expressions:
", "variables": {"q": {"group": "Ungrouped variables", "definition": "list[1]", "name": "q", "description": "q
", "templateType": "anything"}, "r": {"group": "Ungrouped variables", "definition": "list[2]", "name": "r", "description": "", "templateType": "anything"}, "a": {"group": "Ungrouped variables", "definition": "random(2..7)", "name": "a", "description": "a
", "templateType": "anything"}, "c": {"group": "Ungrouped variables", "definition": "random(2,3,4,5,6,7,-2,-3,-4,-5,1/2,1/5,1/4,-1/2,-1/4,-1/5)", "name": "c", "description": "c
", "templateType": "anything"}, "b": {"group": "Ungrouped variables", "definition": "random(2, 3, 5, 7, 11, e)", "name": "b", "description": "", "templateType": "anything"}, "p": {"group": "Ungrouped variables", "definition": "list[0]", "name": "p", "description": "p
", "templateType": "anything"}, "list": {"group": "Ungrouped variables", "definition": "shuffle([0,0,random(-12..12 except 0),random(-12..12 except 0),random(-12..12 except 0)])", "name": "list", "description": "", "templateType": "anything"}, "d": {"group": "Ungrouped variables", "definition": "random(-12..12 except b)", "name": "d", "description": "", "templateType": "anything"}}, "preamble": {"js": "", "css": ""}, "extensions": [], "type": "question", "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}