// Numbas version: exam_results_page_options {"name": "Logarithms: Solving equations 3", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "name": "Logarithms: Solving equations 3", "tags": ["exponential", "exponentiation", "laws of logarithms", "laws of logs", "log laws", "logarithm laws", "logarithm rules", "logarithms", "logs", "solving equations", "solving logarithmic equations"], "advice": "\n
First use one of the logarith laws which states (for logarithms to any base)
\n\\[\\log(a)-\\log(b)=\\log\\left(\\frac{a}{b}\\right)\\]
\nSo the equation can be written as:
\n\\[\\log_{10}\\left(\\simplify[std]{({a1}x+{b1})/({c1}x+{d1})}\\right)=\\var{e1}\\]
Now exponentiate both sides to get:
\\[\\simplify[std,!otherNumbers]{({a1}x+{b1})/({c1}x+{d1})}=10^{\\var{e1}} \\Rightarrow \\simplify[std,!otherNumbers]{{a1}x+{b1}=10^{e1}({c1}x+{d1})}\\]
Collect together terms in $x$ on the left and everything else on the right of the equation gives:
\\[\\simplify[std,!otherNumbers]{x({a1}-10^{e1}*{c1})=10^{e1}*{d1}-{b1}}\\]
Finally rearrange to get:
\\[\\simplify[std]{x=(10^{e1}*{d1}-{b1})/({a1}-10^{e1}*{c1})={10^e1*d1-b1}/{a1-10^e1*c1}}\\]
which to 3 decimal places evaluates to
\\[x=\\var{ans}.\\]
Input the solution for $x$ here:
\n$x=\\;\\;$ [[0]]
\nInput your answer to 3 decimal places.
\n ", "gaps": [{"minvalue": "ans-tol", "type": "numberentry", "maxvalue": "ans+tol", "marks": 1.0, "showPrecisionHint": false}], "type": "gapfill", "marks": 0.0}], "extensions": [], "statement": "\nSolve the following equation for $x$.
\n\\[\\simplify[std]{log({a1}x+{b1})-log({c1}x+{d1})={e1}}\\]
\n ", "variable_groups": [], "progress": "ready", "type": "question", "variables": {"e1": {"definition": "random(1..2)", "name": "e1"}, "a1": {"definition": "random(1..9)", "name": "a1"}, "b1": {"definition": "9+random(1..9)", "name": "b1"}, "tol": {"definition": 0.0, "name": "tol"}, "ans": {"definition": "precround(tans,3)", "name": "ans"}, "c1": {"definition": "d1*random(1..9)", "name": "c1"}, "tans": {"definition": "(d1*10^e1-b1)/(a1-c1*10^e1)", "name": "tans"}, "d1": {"definition": "random(1..9)", "name": "d1"}}, "metadata": {"notes": "\n \t\t2/07/2012:
\n \t\tAdded tags.
\n \t\tSolution to 3 decimal places - no tolerance via new tolerance variable tol=0.
\n \t\tImproved display of Advice.
\n \t\t19/07/2012:
\n \t\tAdded description.
\n \t\tChecked calculation.
\n \t\t\n \t\t
25/07/2012:
\n \t\tAdded tags.
\n \t\tRemoved a stray full stop.
\n \t\tQuestion appears to be working correctly.
\n \t\t\n \t\t", "description": "
Solve for $x$: $\\log(ax+b)-\\log(cx+d)=s$
", "licence": "Creative Commons Attribution 4.0 International"}, "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}]}]}], "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}]}