// Numbas version: exam_results_page_options {"name": "Logarithms: inverses", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": "

Simplifying expressions such as $b^{\\log_b(x)}$ and $b^{\\log_b(x)}$.

"}, "preamble": {"css": "", "js": ""}, "advice": "", "rulesets": {}, "extensions": [], "name": "Logarithms: inverses", "ungrouped_variables": ["b", "d", "c", "a", "list", "p", "q", "r"], "functions": {}, "tags": [], "variablesTest": {"condition": "", "maxRuns": 100}, "variable_groups": [], "variables": {"b": {"name": "b", "group": "Ungrouped variables", "definition": "random(2, 3, 5, 7, 11, e)", "description": "", "templateType": "anything"}, "r": {"name": "r", "group": "Ungrouped variables", "definition": "list[2]", "description": "", "templateType": "anything"}, "c": {"name": "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)", "description": "

c

", "templateType": "anything"}, "q": {"name": "q", "group": "Ungrouped variables", "definition": "list[1]", "description": "

q

", "templateType": "anything"}, "d": {"name": "d", "group": "Ungrouped variables", "definition": "random(-12..12 except b)", "description": "", "templateType": "anything"}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(2..7)", "description": "

a

", "templateType": "anything"}, "p": {"name": "p", "group": "Ungrouped variables", "definition": "list[0]", "description": "

p

", "templateType": "anything"}, "list": {"name": "list", "group": "Ungrouped variables", "definition": "shuffle([0,0,random(-12..12 except 0),random(-12..12 except 0),random(-12..12 except 0)])", "description": "", "templateType": "anything"}}, "statement": "

Simplify the following expressions:

", "parts": [{"customName": "", "type": "gapfill", "customMarkingAlgorithm": "", "steps": [{"customName": "", "type": "information", "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "marks": 0, "showFeedbackIcon": true, "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}.\\]

\n

We 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:

\n

Let $\\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

", "scripts": {}, "useCustomName": false, "showCorrectAnswer": true, "unitTests": [], "variableReplacements": [], "extendBaseMarkingAlgorithm": true}], "variableReplacementStrategy": "originalfirst", "marks": 0, "showFeedbackIcon": true, "gaps": [{"customName": "", "type": "jme", "vsetRangePoints": 5, "answer": "x+{d}", "showFeedbackIcon": true, "failureRate": 1, "checkingType": "absdiff", "checkVariableNames": false, "notallowed": {"showStrings": false, "message": "

This expression can be simplified to not contain logs or exponentials.

", "partialCredit": 0, "strings": ["log", "ln", "e"]}, "showCorrectAnswer": true, "useCustomName": false, "customMarkingAlgorithm": "", "checkingAccuracy": 0.001, "marks": 1, "valuegenerators": [{"name": "x", "value": ""}], "variableReplacementStrategy": "originalfirst", "scripts": {}, "extendBaseMarkingAlgorithm": true, "showPreview": true, "unitTests": [], "variableReplacements": [], "vsetRange": [0, 1]}], "sortAnswers": false, "prompt": "

$\\var{b}^{\\log_{\\var{b}}(\\simplify{x+{d}})}=$ [[0]], for $x>\\var{-d}$.

", "scripts": {}, "useCustomName": false, "stepsPenalty": "1", "showCorrectAnswer": true, "unitTests": [], "variableReplacements": [], "extendBaseMarkingAlgorithm": true}, {"customName": "", "type": "gapfill", "customMarkingAlgorithm": "", "steps": [{"customName": "", "type": "information", "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "marks": 0, "showFeedbackIcon": true, "prompt": "

Recall that $\\ln$ denotes $\\log_e$.

\n

Here 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}$

\n

Another 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

", "scripts": {}, "useCustomName": false, "showCorrectAnswer": true, "unitTests": [], "variableReplacements": [], "extendBaseMarkingAlgorithm": true}], "variableReplacementStrategy": "originalfirst", "marks": 0, "showFeedbackIcon": true, "gaps": [{"customName": "", "type": "jme", "vsetRangePoints": 5, "answer": "(x^{a}+{d})^{c}", "showFeedbackIcon": true, "failureRate": 1, "checkingType": "absdiff", "checkVariableNames": false, "notallowed": {"showStrings": false, "message": "

This expression can be simplified to not contain logs or exponentials.

", "partialCredit": 0, "strings": ["log", "ln", "e"]}, "showCorrectAnswer": true, "useCustomName": false, "customMarkingAlgorithm": "", "answerSimplification": "fractionNumbers", "variableReplacementStrategy": "originalfirst", "marks": 1, "valuegenerators": [{"name": "x", "value": ""}], "checkingAccuracy": 0.001, "scripts": {}, "extendBaseMarkingAlgorithm": true, "showPreview": true, "unitTests": [], "variableReplacements": [], "vsetRange": [0, 1]}], "sortAnswers": false, "prompt": "

$e^{\\var[fractionNumbers]{c}\\ln(\\simplify{x^{a}+{d}})}=$ [[0]], for $\\simplify{x^{a}+{d}}>0$.

", "scripts": {}, "useCustomName": false, "stepsPenalty": "1", "showCorrectAnswer": true, "unitTests": [], "variableReplacements": [], "extendBaseMarkingAlgorithm": true}, {"customName": "", "type": "gapfill", "customMarkingAlgorithm": "", "steps": [{"customName": "", "type": "information", "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "marks": 0, "showFeedbackIcon": true, "prompt": "

Recall that $\\ln$ denotes $\\log_e$.

\n

To 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:

\n

Let $\\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}}\\]

\n

Therefore $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}}.\\]

", "scripts": {}, "useCustomName": false, "showCorrectAnswer": true, "unitTests": [], "variableReplacements": [], "extendBaseMarkingAlgorithm": true}], "variableReplacementStrategy": "originalfirst", "marks": 0, "showFeedbackIcon": true, "gaps": [{"customName": "", "type": "jme", "vsetRangePoints": 5, "answer": "{p}x^2+{q}x+{r}", "showFeedbackIcon": true, "failureRate": 1, "checkingType": "absdiff", "checkVariableNames": false, "notallowed": {"showStrings": false, "message": "

This expression can be simplified to not contain logs or exponentials.

", "partialCredit": 0, "strings": ["ln", "log", "e"]}, "showCorrectAnswer": true, "useCustomName": false, "customMarkingAlgorithm": "", "checkingAccuracy": 0.001, "marks": 1, "valuegenerators": [{"name": "x", "value": ""}], "variableReplacementStrategy": "originalfirst", "scripts": {}, "extendBaseMarkingAlgorithm": true, "showPreview": true, "unitTests": [], "variableReplacements": [], "vsetRange": [0, 1]}], "sortAnswers": false, "prompt": "

$\\displaystyle \\ln\\left(e^{\\simplify{{p}x^2+{q}x+{r}}}\\right)=$ [[0]]

", "scripts": {}, "useCustomName": false, "stepsPenalty": "1", "showCorrectAnswer": true, "unitTests": [], "variableReplacements": [], "extendBaseMarkingAlgorithm": true}], "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/"}]}