// Numbas version: exam_results_page_options {"name": "Joshua's copy of Logarithms: inverses", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Joshua's copy of Logarithms: inverses", "advice": "", "statement": "

Simplify the following expressions:

", "metadata": {"description": "

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

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "variablesTest": {"maxRuns": 100, "condition": ""}, "tags": [], "ungrouped_variables": ["b", "d", "c", "a", "list", "p", "q", "r"], "variables": {"q": {"definition": "list[1]", "templateType": "anything", "name": "q", "description": "

q

", "group": "Ungrouped variables"}, "c": {"definition": "random(2,3,4,5,6,7,-2,-3,-4,-5,1/2,1/5,1/4,-1/2,-1/4,-1/5)", "templateType": "anything", "name": "c", "description": "

c

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

a

", "group": "Ungrouped variables"}, "list": {"definition": "shuffle([0,0,random(-12..12 except 0),random(-12..12 except 0),random(-12..12 except 0)])", "templateType": "anything", "name": "list", "description": "", "group": "Ungrouped variables"}, "r": {"definition": "list[2]", "templateType": "anything", "name": "r", "description": "", "group": "Ungrouped variables"}, "b": {"definition": "random(2, 3, 5, 7, 11, e)", "templateType": "anything", "name": "b", "description": "", "group": "Ungrouped variables"}, "d": {"definition": "random(-12..12 except b)", "templateType": "anything", "name": "d", "description": "", "group": "Ungrouped variables"}, "p": {"definition": "list[0]", "templateType": "anything", "name": "p", "description": "

p

", "group": "Ungrouped variables"}}, "rulesets": {}, "functions": {}, "parts": [{"gaps": [{"variableReplacementStrategy": "originalfirst", "scripts": {}, "showFeedbackIcon": true, "variableReplacements": [], "type": "jme", "checkingaccuracy": 0.001, "vsetrange": [0, 1], "expectedvariablenames": [], "showpreview": true, "notallowed": {"showStrings": false, "partialCredit": 0, "strings": ["log", "ln", "e"], "message": "

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

"}, "answer": "x+{d}", "showCorrectAnswer": true, "checkvariablenames": false, "vsetrangepoints": 5, "checkingtype": "absdiff", "marks": 1}], "variableReplacementStrategy": "originalfirst", "scripts": {}, "showCorrectAnswer": true, "showFeedbackIcon": true, "type": "gapfill", "variableReplacements": [], "marks": 0, "stepsPenalty": "1", "steps": [{"variableReplacementStrategy": "originalfirst", "scripts": {}, "showFeedbackIcon": true, "variableReplacements": [], "type": "information", "showCorrectAnswer": true, "marks": 0, "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

"}], "prompt": "

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

"}, {"gaps": [{"variableReplacementStrategy": "originalfirst", "vsetrange": [0, 1], "showFeedbackIcon": true, "variableReplacements": [], "answersimplification": "fractionNumbers", "type": "jme", "checkingaccuracy": 0.001, "scripts": {}, "showpreview": true, "notallowed": {"showStrings": false, "partialCredit": 0, "strings": ["log", "ln", "e"], "message": "

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

"}, "answer": "(x^{a}+{d})^{c}", "showCorrectAnswer": true, "checkvariablenames": false, "vsetrangepoints": 5, "checkingtype": "absdiff", "expectedvariablenames": [], "marks": 1}], "variableReplacementStrategy": "originalfirst", "scripts": {}, "showCorrectAnswer": true, "showFeedbackIcon": true, "type": "gapfill", "variableReplacements": [], "marks": 0, "stepsPenalty": "1", "steps": [{"variableReplacementStrategy": "originalfirst", "scripts": {}, "showFeedbackIcon": true, "variableReplacements": [], "type": "information", "showCorrectAnswer": true, "marks": 0, "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

"}], "prompt": "

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

"}, {"gaps": [{"variableReplacementStrategy": "originalfirst", "scripts": {}, "showFeedbackIcon": true, "variableReplacements": [], "type": "jme", "checkingaccuracy": 0.001, "vsetrange": [0, 1], "expectedvariablenames": [], "showpreview": true, "notallowed": {"showStrings": false, "partialCredit": 0, "strings": ["ln", "log", "e"], "message": "

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

"}, "answer": "{p}x^2+{q}x+{r}", "showCorrectAnswer": true, "checkvariablenames": false, "vsetrangepoints": 5, "checkingtype": "absdiff", "marks": 1}], "variableReplacementStrategy": "originalfirst", "scripts": {}, "showCorrectAnswer": true, "showFeedbackIcon": true, "type": "gapfill", "variableReplacements": [], "marks": 0, "stepsPenalty": "1", "steps": [{"variableReplacementStrategy": "originalfirst", "scripts": {}, "showFeedbackIcon": true, "variableReplacements": [], "type": "information", "showCorrectAnswer": true, "marks": 0, "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}}.\\]

"}], "prompt": "

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

"}], "preamble": {"js": "", "css": ""}, "variable_groups": [], "extensions": [], "type": "question", "contributors": [{"name": "Joshua Capel", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1479/"}]}]}], "contributors": [{"name": "Joshua Capel", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1479/"}]}