// Numbas version: exam_results_page_options {"name": "Solving equations using log", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a1", "a2", "b1", "b2", "c1", "c2", "d1", "d2", "e1", "e2", "e3", "e4", "e5", "e6", "f1", "f2", "f3", "f4", "f5", ""], "name": "Solving equations using log", "tags": [], "preamble": {"css": "fraction {\n display: inline-block;\n vertical-align: middle;\n}\nfraction > numerator, fraction > denominator {\n float: left;\n width: 100%;\n text-align: center;\n line-height: 2.5em;\n}\nfraction > numerator {\n border-bottom: 1px solid;\n padding-bottom: 5px;\n}\nfraction > denominator {\n padding-top: 5px;\n}\nfraction input {\n line-height: 1em;\n}\n\nfraction .part {\n margin: 0;\n}\n\n.table-responsive, .fractiontable {\n display:inline-block;\n}\n.fractiontable {\n padding: 0; \n border: 0;\n}\n\n.fractiontable .tddenom \n{\n text-align: center;\n}\n\n.fractiontable .tdnum \n{\n border-bottom: 1px solid black; \n text-align: center;\n}\n\n\n.fractiontable tr {\n height: 3em;\n}\n\n", "js": "document.createElement('fraction');\ndocument.createElement('numerator');\ndocument.createElement('denominator');"}, "advice": "

To solve this type of question, we want to take logarithms of both sides of the equation in order to try to isolate x.

\n

For example, if we have $a^x = b$ then we proceed as above to get $x\\log{a} = \\log{b}$ and hence $x = \\frac{\\log{a}}{\\log{b}}$

\n

Laws of logarithms are useful here:

\n

$\\log{a} + \\log{b} = \\log{ab}$

\n

$\\log{a} - \\log{b} = \\log{\\frac{a}{b}}$

\n

$\\log{a^n} = n\\log{a}$

", "rulesets": {}, "parts": [{"prompt": "

$\\var{a1}^x = \\var{a2}$

\n

$x=$$\\log_{10}$[[0]]$\\log_{10}$[[1]]

\n

or

\n

$x=\\log_{\\var{a1}}$[[2]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "{a2}", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}, {"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "{a1}", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}, {"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "{a2}", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "

$\\var{b1}^x=\\var{b2}$

\n

$x=$[[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 3, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "answersimplification": "all", "scripts": {}, "answer": "log({b2})/log({b1})", "marks": 1, "checkvariablenames": false, "checkingtype": "dp", "type": "jme"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "

$\\var{c1}^x = \\var{c2}$

\n

$x=$[[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 3, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "answersimplification": "all", "scripts": {}, "answer": "log({c2})/log({c1})", "marks": 1, "checkvariablenames": false, "checkingtype": "dp", "type": "jme"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "

$\\var{d1}^{x-1} = \\var{d2}^{x+1}$

\n

([[1]])$\\simplify{log({d1})}=$([[2]])$\\simplify{log({d2})}$

\n

Hence $x=$[[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 3, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "log({d1}*{d2})/log({d1}/{d2})", "marks": 1, "checkvariablenames": false, "checkingtype": "dp", "type": "jme"}, {"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "x-1", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}, {"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "x+1", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "

$\\var{e1}^{\\simplify{{e3}x-{e4}}} = \\var{e2}^{\\simplify{{e5}x+{e6}}}$

\n

$x=$[[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 3, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "answersimplification": "all", "scripts": {}, "answer": "({e6}log({e2})+{e4}log({e1}))/({e3}log({e1})-{e5}log({e2}))", "marks": 1, "checkvariablenames": false, "checkingtype": "dp", "type": "jme"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "

$\\var{f1}^{\\simplify{{f3}x-{f4}}} = \\var{f2}^{\\simplify{{f5}x}}$

\n

$x=$[[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 3, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "answersimplification": "all", "scripts": {}, "answer": "({f4}log({f1}))/({f3}log({f1})-{f5}log({f2}))", "marks": 1, "checkvariablenames": false, "checkingtype": "dp", "type": "jme"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "statement": "

Solve each of the following equations for $x$, giving your answers in terms of base 10 logarithms OR to 3 decimal places.

\n

Remember to write $\\simplify{log(a)}$ you must type loga with brackets around the a.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"": {"definition": "random(-2..2 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "", "description": ""}, "f1": {"definition": "random(2..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "f1", "description": ""}, "f2": {"definition": "random(2..9 except f1)", "templateType": "anything", "group": "Ungrouped variables", "name": "f2", "description": ""}, "f3": {"definition": "random(1..3)", "templateType": "anything", "group": "Ungrouped variables", "name": "f3", "description": ""}, "f4": {"definition": "random(1..3)", "templateType": "anything", "group": "Ungrouped variables", "name": "f4", "description": ""}, "f5": {"definition": "random(1..3 except f3)", "templateType": "anything", "group": "Ungrouped variables", "name": "f5", "description": ""}, "e1": {"definition": "random(2..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "e1", "description": ""}, "e2": {"definition": "random(2..9 except e1)", "templateType": "anything", "group": "Ungrouped variables", "name": "e2", "description": ""}, "a1": {"definition": "random(2..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "a1", "description": ""}, "a2": {"definition": "random(2..9 except a1)", "templateType": "anything", "group": "Ungrouped variables", "name": "a2", "description": ""}, "b1": {"definition": "random(2..9 except a1)", "templateType": "anything", "group": "Ungrouped variables", "name": "b1", "description": ""}, "b2": {"definition": "random(2..9 except a2 except b1)", "templateType": "anything", "group": "Ungrouped variables", "name": "b2", "description": ""}, "e4": {"definition": "random(-2..2 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "e4", "description": ""}, "e5": {"definition": "random(1..2 except e3)", "templateType": "anything", "group": "Ungrouped variables", "name": "e5", "description": ""}, "c2": {"definition": "random(2..19 except c1 except b2 except a2)", "templateType": "anything", "group": "Ungrouped variables", "name": "c2", "description": ""}, "c1": {"definition": "random(2..19 except a1 except b1)", "templateType": "anything", "group": "Ungrouped variables", "name": "c1", "description": ""}, "e6": {"definition": "random(-2..2 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "e6", "description": ""}, "d2": {"definition": "random(2..9 except d1)", "templateType": "anything", "group": "Ungrouped variables", "name": "d2", "description": ""}, "e3": {"definition": "random(1..2)", "templateType": "anything", "group": "Ungrouped variables", "name": "e3", "description": ""}, "d1": {"definition": "random(2..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "d1", "description": ""}}, "metadata": {"notes": "", "description": "", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "joshua boddy", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/557/"}]}]}], "contributors": [{"name": "joshua boddy", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/557/"}]}