// Numbas version: finer_feedback_settings {"name": "Logarithms: Solving equations 2", "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 2", "tags": ["Steps", "algebra", "algebraic manipulation", "combining logarithms", "logarithm laws", "logarithms", "simplifying logarithms", "solving", "solving equations", "steps"], "advice": "\n
We use the following three rules for logs :
\n1. $n\\log_a(m)=\\log_a(m^n)$
\n2. $\\log_a(b)-\\log_a(c)=\\log_a(b/c)$
\n3. $\\log_a(p)=r \\Rightarrow p=a^r$
\nUsing rule 1 we get
\\[2\\log_{\\var{a}}(\\simplify{x+{b}})- \\log_{\\var{a}}(\\simplify{(x+{c})})=\\log_{\\var{a}}((\\simplify{x+{b}})^2)- \\log_{\\var{a}}(\\simplify{(x+{c})})\\]
Using rule 2 gives
\\[\\log_{\\var{a}}(\\simplify{(x+{b})^2})- \\log_{\\var{a}}(\\simplify{(x+{c})})=\\log_{\\var{a}}\\left(\\simplify{(x+{b})^2/(x+{c})}\\right)\\]
So the equation to solve becomes:
\\[\\log_{\\var{a}}\\left(\\simplify{(x+{b})^2/(x+{c})}\\right)=\\var{d}\\]
and using rule 3 this gives:
\\[ \\begin{eqnarray} \\simplify{(x+{b})^2/(x+{c})}&=&{\\var{a}}^{\\var{d}}\\Rightarrow\\\\ \\simplify{(x+{b})^2}&=&{\\var{a}}^{\\var{d}}(\\simplify{x+{c}})=\\simplify{{a^d}(x+{c})}\\Rightarrow\\\\ \\simplify{x^2+{2*b-a^(d)}x+{b^2-a^(d)*c}}&=&0 \\end{eqnarray} \\]
Solving this quadratic we get two solutions:
$x=\\var{sol1}$ and $x=\\var{sol2}$
\nWe should check that these solutions gives positive values for $\\simplify{x+{b}}$ and $\\simplify{x+{c}}$ as otherwise the logs are not defined.
\nThe value $x=\\var{sol1}$ gives:
\nSubstituting this value for $x$ into $\\log_{\\var{a}}(\\simplify{x+{b}})$ we get $\\log_{\\var{a}}(\\simplify{{2*a^d}})$ so OK.
\nSubstituting this value for $x$ into $\\log_{\\var{a}}(\\simplify{x+{c}})$ we get $\\log_{\\var{a}}(\\simplify{{4*a^d}})$ so OK.
\nHence $x=\\var{sol1}$ is a solution to our original equation.
\nThe value $x=\\var{sol2}$ gives:
\nSubstituting this value for $x$ into $\\log_{\\var{a}}(\\simplify{x+{b}})$ we get $\\log_{\\var{a}}(\\simplify{{-a^d}})$ so NOT OK.
\nSubstituting this value for $x$ into $\\log_{\\var{a}}(\\simplify{x+{c}})$ we get $\\log_{\\var{a}}(\\simplify{{a^d}})$ so OK.
\nHence $x=\\var{sol2}$ is NOT a solution to our original equation as $\\log_{\\var{a}}(\\simplify{x+{b}})$ is not defined for this value of $x$.
\nSo there is only one solution $x=\\var{sol1}$.
\n ", "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers"]}, "parts": [{"stepspenalty": 1.0, "prompt": "\n\\[2\\log_{\\var{a}}(\\simplify{x+{b}})- \\log_{\\var{a}}(\\simplify{(x+{c})})=\\var{d}\\]
\n$x=\\;$ [[0]].
\nIf you want help in solving the equation, click on Show steps. If you do so then you will lose 1 mark.
\nInput all numbers as fractions or integers and not as decimals.
\n ", "gaps": [{"notallowed": {"message": "Input as an integer, not as a decimal.
", "showstrings": false, "strings": ["."], "partialcredit": 0.0}, "checkingaccuracy": 0.0001, "vsetrange": [0.0, 1.0], "vsetrangepoints": 5.0, "checkingtype": "absdiff", "answersimplification": "std", "marks": 2.0, "answer": "{sol1}", "type": "jme"}], "steps": [{"prompt": "\nThree rules for logs should be used:
\n1. $n\\log_a(m)=\\log_a(m^n)$
\n2. $\\log_a(b)-\\log_a(c)=\\log_a(b/c)$
\n3. $\\log_a(p)=r \\Rightarrow p=a^r$
\nSo use rule 1 followed by rules 2 and 3 to get an equation for $x$.
\n ", "type": "information", "marks": 0.0}], "marks": 0.0, "type": "gapfill"}], "extensions": [], "statement": "\nSolve the following equation for $x$.
\nInput your answer as a fraction or an integer as appropriate and not as a decimal.
\n ", "variable_groups": [], "progress": "ready", "type": "question", "variables": {"a": {"definition": "random(2,3)", "name": "a"}, "c": {"definition": "b+2*a^(d)", "name": "c"}, "b": {"definition": "s*random(1..20)", "name": "b"}, "d": {"definition": "random(1,2)", "name": "d"}, "s": {"definition": "random(1,-1)", "name": "s"}, "sol2": {"definition": "-c+a^d", "name": "sol2"}, "sol1": {"definition": "c-2*b", "name": "sol1"}}, "metadata": {"notes": "\n \t\t5/08/2012:
\n \t\tAdded tags.
\n \t\tAdded description.
\n \t\tChecked calculation.OK.
\n \t\tImproved display in content areas.
\n \t\t", "description": "\n \t\tSolve for $x$: $\\displaystyle 2\\log_{a}(x+b)- \\log_{a}(x+c)=d$.
\n \t\tMake sure that your choice is a solution by substituting back into the equation.
\n \t\t", "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/"}, {"name": "Wan Mekwi", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4058/"}]}]}], "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}, {"name": "Wan Mekwi", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4058/"}]}