// Numbas version: exam_results_page_options {"name": "NUMBAS-Logarithms (laws)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"parts": [{"steps": [{"customMarkingAlgorithm": "", "showCorrectAnswer": true, "marks": 0, "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "scripts": {}, "variableReplacements": [], "type": "information", "unitTests": [], "prompt": "

When adding and subtracting logarithms we can simplify the expressions using some logarithm laws. These laws are

\n

\\[\\begin{align}
\\log_a(x)+\\log_a(y)&=\\log_a(xy)\\text{,}\\\\
\\log_a(x)-\\log_a(y)&=\\log_a\\left(\\frac{x}{y}\\right)\\text{.}
\\end{align}\\]

", "showFeedbackIcon": true}], "prompt": "

$\\log_a(\\var{x1[1]})+ \\log_a(\\var{x1[0]})=\\log_a($ [[0]]$)$

", "showCorrectAnswer": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "stepsPenalty": 0, "sortAnswers": false, "marks": 0, "gaps": [{"maxValue": "x1[1]*x1[0]", "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "unitTests": [], "showFeedbackIcon": true, "mustBeReducedPC": 0, "correctAnswerStyle": "plain", "marks": "2", "mustBeReduced": false, "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "correctAnswerFraction": false, "scripts": {}, "allowFractions": false, "type": "numberentry", "minValue": "x1[1]*x1[0]"}], "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "scripts": {}, "type": "gapfill", "unitTests": []}, {"prompt": "

$\\log_a(\\var{(x1[4])*y1})-\\log_a(\\var{x1[4]})=\\log_a($ [[0]]$)$

", "showCorrectAnswer": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "sortAnswers": false, "marks": 0, "gaps": [{"maxValue": "y1", "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "unitTests": [], "showFeedbackIcon": true, "mustBeReducedPC": 0, "correctAnswerStyle": "plain", "marks": "2", "mustBeReduced": false, "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "correctAnswerFraction": false, "scripts": {}, "allowFractions": false, "type": "numberentry", "minValue": "y1"}], "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "scripts": {}, "type": "gapfill", "unitTests": []}, {"prompt": "

$\\log_a(\\var{y2})+\\log_a(\\var{(x1[4])*y3})-\\log_a(\\var{x1[4]})=\\log_a($[[0]]$)$

", "showCorrectAnswer": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "sortAnswers": false, "marks": 0, "gaps": [{"maxValue": "y2*y3", "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "unitTests": [], "showFeedbackIcon": true, "mustBeReducedPC": 0, "correctAnswerStyle": "plain", "marks": "2", "mustBeReduced": false, "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "correctAnswerFraction": false, "scripts": {}, "allowFractions": false, "type": "numberentry", "minValue": "y2*y3"}], "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "scripts": {}, "type": "gapfill", "unitTests": []}], "name": "NUMBAS-Logarithms (laws)", "variablesTest": {"maxRuns": 100, "condition": ""}, "rulesets": {}, "tags": [], "variable_groups": [], "extensions": [], "functions": {}, "metadata": {"description": "

Use laws for addition and subtraction of logarithms to simplify a given logarithmic expression to an arbitrary base.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

Simplify the expressions to fill in the gaps.

", "variables": {"x1": {"group": "Ungrouped variables", "templateType": "anything", "name": "x1", "definition": "repeat(random(2..20),8)", "description": ""}, "y2": {"group": "Ungrouped variables", "templateType": "anything", "name": "y2", "definition": "random(2..7)", "description": "

random(2..6)

"}, "y1": {"group": "Ungrouped variables", "templateType": "anything", "name": "y1", "definition": "random(2..6)", "description": ""}, "y3": {"group": "Ungrouped variables", "templateType": "anything", "name": "y3", "definition": "random(2..6)", "description": ""}}, "advice": "

a)

\n

We need to use the rule

\n

\\[\\log_a(x)+\\log_a(y)=\\log_a(xy)\\text{.}\\]

\n

Substituting in our values for $x$ and $y$ gives

\n

\\[\\begin{align}
\\log_a(\\var{x1[1]})+\\log_a(\\var{x1[0]})&=\\log_a(\\var{x1[1]}\\times \\var{x1[0]})\\\\
&=\\log_a(\\var{x1[1]*x1[0]})\\text{.}
\\end{align}\\]

\n

\n

b)

\n

We need to use the rule

\n

\\[\\log_a(x)-\\log_a(y)=\\log_a\\left(\\frac{x}{y}\\right)\\text{.}\\]

\n

Substituting in our values for $x$ and $y$ gives

\n

\\[\\begin{align}
\\log_a(\\var{x1[4]*y1})-\\log_a(\\var{x1[4]})&=\\log_a(\\var{x1[4]*y1}\\div \\var{x1[4]})\\\\
&=\\log_a(\\var{y1})\\text{.}
\\end{align}\\]

\n

", "ungrouped_variables": ["x1", "y1", "y2", "y3"], "preamble": {"js": "", "css": ""}, "type": "question", "contributors": [{"name": "Katy Dobson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/854/"}, {"name": "Aiden McCall", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1592/"}, {"name": "Hannah Aldous", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1594/"}]}]}], "contributors": [{"name": "Katy Dobson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/854/"}, {"name": "Aiden McCall", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1592/"}, {"name": "Hannah Aldous", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1594/"}]}