// Numbas version: exam_results_page_options {"name": "Surds Rationalisation (Diagnostic Test)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variablesTest": {"maxRuns": 100, "condition": "n^2 > a"}, "functions": {}, "advice": "
Surds can be manipulated using the rule
\n\\[\\sqrt{(ab)} = \\sqrt{a} \\times \\sqrt{b}.\\]
\nWe are asked to state which of $\\sqrt{\\var{p}}$, $\\sqrt{\\simplify{{a}*{n}^2}}$, and $\\sqrt{\\var{a}}$ can be simplified further. Commonly, surds can be simplified if the number inside of the square root has a square number as a factor.
\nHere, $\\var{p}$ is a prime number which means that its only divisors are $\\var{p}$ and $1$.
\nTherefore, $\\sqrt{\\var{p}}$ cannot be simplified any further.
\nSimilarly, $\\var{a}$ is also a prime number, so $\\sqrt{\\var{a}}$ also cannot be simplified any further.
\nOn the other hand, $\\simplify{{a}*{n}^2}$ is not a prime number and we can use the previous rule to simplify $\\sqrt{\\simplify{{a}*{n}^2}}$ as
\n\\[
\\begin{align}
\\sqrt{\\simplify{{a}*{n}^2}} &= \\sqrt{\\simplify{{n}^2}} \\times \\sqrt{\\var{a}}\\\\
&= \\simplify{{n}*sqrt({a})}.
\\end{align}
\\]
Using the same rule of manipulation as in part a), we can simplify $\\sqrt{\\simplify{{n}^2*{p}}}$ as
\n\\[
\\begin{align}
\\sqrt{\\simplify{{n}^2*{p}}} &= \\sqrt{\\simplify{{n}^2}} \\times \\sqrt{\\var{p}}\\\\
&= \\simplify{{n}*sqrt({p})}.
\\end{align}
\\]
Here, we can use both of the rules for manipulating surds:
\n\\[\\sqrt{(ab)} = \\sqrt{a} \\times \\sqrt{b} \\text{.} \\]
\n\\[ \\sqrt{\\frac{a}{b}} = \\frac{\\sqrt{a}}{\\sqrt{b}} \\text{.} \\]
\nWe can simplify $\\displaystyle\\frac{ \\sqrt{\\simplify{{a}*{v}}} }{ \\sqrt{\\var{a}} }$ as follows.
\n\\[
\\begin{align}
\\frac{\\sqrt{\\simplify{{a}*{v}}}}{\\sqrt{\\var{a}}} &= \\frac{\\sqrt{\\var{a}} \\times \\sqrt{\\var{v}}}{\\sqrt{\\var{a}}} \\\\[0.5em]
&= \\frac{\\sqrt{\\var{a}}}{\\sqrt{\\var{a}}} \\times \\sqrt{\\var{v}} \\\\[0.5em]
&= \\simplify{{sqrt(a)/sqrt(a)}} \\times \\sqrt{\\var{v}} \\\\[0.5em]
&= \\sqrt{\\var{v}} \\text{.}
\\end{align}
\\]
Or,
\n\\[
\\begin{align}
\\frac{\\sqrt{\\simplify{{a}*{v}}}}{\\sqrt{\\var{a}}} &= \\sqrt{\\frac{\\simplify{{a}*{v}}}{\\var{a}}} \\\\[0.5em]
&= \\sqrt{\\var{v}} \\text{.}
\\end{align}
\\]
We can simplify the fraction as
\n\\[
\\begin{align}
\\frac{\\sqrt{\\simplify{({b}{m})^2*{s}}}}{\\var{m}} &= \\frac{\\sqrt{\\simplify{({b*m})^2}} \\times \\sqrt{\\var{s}}}{\\var{m}} \\\\[0.5em]
&= \\frac{\\simplify{{b*m}} \\times \\sqrt{\\var{s}}}{\\var{m}} \\\\[0.5em]
&= \\simplify{{b}*sqrt({s})} \\text{.}
\\end{align}
\\]
\\[
\\begin{align}
\\simplify{{d}sqrt({a}) - {b}sqrt({v}^2{a})+{n}sqrt({b}^2*{a})} &= \\var{d}\\sqrt{\\var{a}} - \\var{b}(\\sqrt{\\simplify{{v}^2}} \\times \\sqrt{\\var{a}})+\\var{n}(\\sqrt{\\simplify{{b}^2}} \\times \\sqrt{\\var{a}}) \\\\
&= \\var{d}\\sqrt{\\var{a}} -\\var{b}(\\simplify{{v}*sqrt({a})})+\\var{n}(\\simplify{{b}*sqrt({a})}) \\\\
&= \\simplify{{d}sqrt({a})}-\\simplify{{b}*{v}sqrt({a})}+\\simplify{{n}*{b}sqrt({a})} \\\\
&= \\simplify{({d}-{b}*{v}+{n}*{b})sqrt({a})} \\text{.}
\\end{align}
\\]
We rationalise the denominator of fractions of the form $\\displaystyle\\frac{1}{\\sqrt{a}}$, by multiplying the top and bottom by $\\sqrt{a}$.
\nTherefore, to rationalise the denominator of the fraction $\\displaystyle\\frac{1}{\\sqrt{\\var{a}}}$, we multiply top and bottom by $\\sqrt{\\var{a}}$.
\n\\[
\\begin{align}
\\frac{1}{\\sqrt{\\var{a}}} &= \\frac{1}{\\sqrt{\\var{a}}} \\times \\frac{\\sqrt{\\var{a}}}{\\sqrt{\\var{a}}} \\\\[0.5em]
&= \\frac{\\sqrt{\\var{a}}}{\\var{a}} \\text{.}
\\end{align}
\\]
We rationalise the denominator of fractions of the form $\\displaystyle\\frac{1}{a+\\sqrt{b}}$ by multiplying the top and bottom by $a-\\sqrt{b}$.
\nTherefore, to rationalise the denominator of the fraction $\\displaystyle\\frac{1}{\\var{n}+\\sqrt{\\var{a}}}$, we multiply the top and bottom by $\\var{n} - \\sqrt{\\var{a}}$.
\n\\[
\\begin{align}
\\frac{1}{\\var{n}+\\sqrt{\\var{a}}} &= \\frac{1}{\\var{n}+\\sqrt{\\var{a}}} \\times \\frac{\\var{n}-\\sqrt{\\var{a}}}{\\var{n}-\\sqrt{\\var{a}}} \\\\[0.5em]
&=\\frac{\\var{n}-\\sqrt{\\var{a}}}{(\\var{n}+\\sqrt{\\var{a}})(\\var{n}-\\sqrt{\\var{a}})} \\\\[0.5em]
&=\\frac{\\var{n}-\\sqrt{\\var{a}}}{\\simplify{{n}^2}-\\var{a}} \\\\[0.5em]
&=\\frac{\\var{n}-\\sqrt{\\var{a}}}{\\simplify{{n}^2-{a}}} \\text{.}
\\end{align}
\\]
We rationalise the denominator of fractions of the form $\\displaystyle\\frac{1}{a-\\sqrt{b}}$ by multiplying the top and bottom by $a+\\sqrt{b}$.
\nTherefore, to rationalise the denominator of the fraction $\\displaystyle\\frac{\\var{t}}{\\var{d+p}-\\sqrt{\\var{p}}}$, we multiply the top and bottom by $\\var{d+p}+\\sqrt{\\var{p}}$.
\n\\[
\\begin{align}
\\frac{\\var{t}}{\\var{d+p}-\\sqrt{\\var{p}}} &= \\frac{\\var{t}}{\\var{d+p}-\\sqrt{\\var{p}}} \\times \\frac{\\var{d+p}+\\sqrt{\\var{p}}}{\\var{d+p}+\\sqrt{\\var{p}}} \\\\[0.5em]
&=\\frac{\\var{t}(\\var{d+p}+\\sqrt{\\var{p}})}{(\\var{d+p}-\\sqrt{\\var{p}})(\\var{d+p}+\\sqrt{\\var{p}})} \\\\[0.5em]
&=\\frac{\\var{t}(\\var{d+p}+\\sqrt{\\var{p}})}{\\simplify{{d+p}^2}-\\var{p}} \\\\[0.5em]
&=\\frac{\\var{t}(\\var{d+p}+\\sqrt{\\var{p}})}{\\simplify{{d+p}^2-{p}}} \\\\[0.5em]
&=\\simplify{{t}/{(d+p)^2-p}}(\\var{d+p}+\\sqrt{\\var{p}}) \\\\[0.5em]
&= \\simplify[all,!noleadingMinus]{({t*(d+p)}+{t}*sqrt({p}))/({(d+p)^2-p})} \\text{.}
\\end{align}
\\]
prime number for parts a,b and h
"}, "m": {"group": "Ungrouped variables", "definition": "random(2..5 #1 except n^2)", "templateType": "anything", "name": "m", "description": "parts b and d
"}, "b": {"group": "Ungrouped variables", "definition": "random(2..5 #1 except v except sqrt(m^2*d) except 3)", "templateType": "anything", "name": "b", "description": "parts d and e
"}, "n": {"group": "Ungrouped variables", "definition": "random(3..10 #1)", "templateType": "anything", "name": "n", "description": "all numbers from 3-10 for parts a, b, e, g
"}, "c": {"group": "Ungrouped variables", "definition": "(m)/(b)", "templateType": "anything", "name": "c", "description": "Fraction in answer for part d.
"}, "v": {"group": "Ungrouped variables", "definition": "random(2,3,5)", "templateType": "anything", "name": "v", "description": "Parts c and e
"}, "a": {"group": "Ungrouped variables", "definition": "random(2..19 #1 except 4 except 6 except 8 except 9 except 10 except 12 except 14 except 15 except 16 except 18 except v) ", "templateType": "anything", "name": "a", "description": "shorter list of primes for parts a,c,e,f and g
"}, "t": {"group": "Ungrouped variables", "definition": "random(2,3)", "templateType": "anything", "name": "t", "description": ""}, "d": {"group": "Ungrouped variables", "definition": "random(2..7 except 4)", "templateType": "anything", "name": "d", "description": "Parts a, d,e and h
"}, "s": {"group": "Ungrouped variables", "definition": "random(2..7 except 4 except 6)", "templateType": "anything", "name": "s", "description": "Short list of primes for part d.
"}}, "statement": "To include a square root sign in your answer sqrt()
sqrt(3)
3*sqrt(5)
Manipulate surds and rationalise the denominator of a fraction when it is a surd.
"}, "variable_groups": [], "parts": [{"steps": [{"extendBaseMarkingAlgorithm": true, "unitTests": [], "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "type": "information", "scripts": {}, "showFeedbackIcon": true, "prompt": "Recall the first rule of surds
\n$\\sqrt{(ab)} = \\sqrt{a} \\times \\sqrt{b}$.
\n\n", "variableReplacements": [], "marks": 0, "showCorrectAnswer": true}], "prompt": "Simplify $\\sqrt{\\simplify{{n}^2*{p}}}$.
\n\n$\\sqrt{\\simplify{{n}^2*{p}}} =$ [[0]]$\\sqrt{\\var{p}}$.
", "variableReplacementStrategy": "originalfirst", "type": "gapfill", "scripts": {}, "showFeedbackIcon": true, "customMarkingAlgorithm": "", "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "marks": 0, "gaps": [{"vsetRange": [0, 1], "showPreview": true, "checkingType": "absdiff", "variableReplacementStrategy": "originalfirst", "type": "jme", "scripts": {"mark": {"order": "after", "script": "// Parse the student's answer as a syntax tree\nvar studentTree = Numbas.jme.compile(this.studentAnswer,Numbas.jme.builtinScope);\n\n// Create the pattern to match against \n// we just want two sets of brackets, each containing two terms\n// or one of the brackets might not have a constant term\n// or for repeated roots, you might write (x+a)^2\nvar rule = Numbas.jme.compile('m_any(m_number)');\n\n// Check the student's answer matches the pattern. \nvar m = Numbas.jme.display.matchTree(rule,studentTree,true);\n// If not, take away marks\nif(!m) {\n this.multCredit(0,'You haven\\'t simplified: your answer is not in the form $\\?$.');\n}"}}, "answerSimplification": "all", "showFeedbackIcon": true, "marks": "2", "customMarkingAlgorithm": "", "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "vsetRangePoints": 5, "checkingAccuracy": 0.001, "answer": "{n}", "unitTests": [], "failureRate": 1, "expectedVariableNames": [], "checkVariableNames": false, "variableReplacements": []}], "unitTests": [], "sortAnswers": false, "variableReplacements": [], "stepsPenalty": "1"}, {"steps": [{"extendBaseMarkingAlgorithm": true, "unitTests": [], "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "type": "information", "scripts": {}, "showFeedbackIcon": true, "prompt": "You could use either of the following rules:
\n$\\sqrt{(ab)} = \\sqrt{a} \\times \\sqrt{b}$.
\n$\\displaystyle\\sqrt{\\frac{a}{b}} = \\displaystyle\\frac{\\sqrt{a}}{\\sqrt{b}}$.
", "variableReplacements": [], "marks": 0, "showCorrectAnswer": true}], "prompt": "Simplify $\\displaystyle\\frac{\\sqrt{\\simplify{{a}*{v}}}}{\\sqrt{\\var{a}}}$.
\n$\\displaystyle\\frac{\\sqrt{\\simplify{{a}*{v}}}}{\\sqrt{\\var{a}}} =$ [[0]].
\n", "variableReplacementStrategy": "originalfirst", "type": "gapfill", "scripts": {}, "showFeedbackIcon": true, "customMarkingAlgorithm": "", "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "marks": 0, "gaps": [{"vsetRange": [0, 1], "showPreview": true, "musthave": {"showStrings": true, "partialCredit": 0, "message": "You must simplify your answer further.
", "strings": ["sqrt", "(", ")"]}, "checkingType": "absdiff", "variableReplacementStrategy": "originalfirst", "type": "jme", "scripts": {}, "showFeedbackIcon": true, "marks": "2", "customMarkingAlgorithm": "", "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "vsetRangePoints": 5, "checkingAccuracy": 0.001, "answer": "sqrt({v})", "unitTests": [], "failureRate": 1, "expectedVariableNames": [], "checkVariableNames": false, "variableReplacements": [], "notallowed": {"showStrings": false, "partialCredit": 0, "message": "You must simplify your answer further.
", "strings": ["/"]}}], "unitTests": [], "sortAnswers": false, "variableReplacements": [], "stepsPenalty": "1"}, {"prompt": "Simplify $\\displaystyle\\frac{\\sqrt{\\simplify{({b}{m})^2*{s}}}}{\\var{m}}$.
\n$\\displaystyle\\frac{\\sqrt{\\simplify{({b}*{m})^2*{s}}}}{\\var{m}} =$ [[0]]$\\sqrt{\\var{s}}$.
\n", "variableReplacementStrategy": "originalfirst", "type": "gapfill", "scripts": {}, "showFeedbackIcon": true, "customMarkingAlgorithm": "", "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "marks": 0, "gaps": [{"vsetRange": [0, 1], "showPreview": true, "checkingType": "absdiff", "variableReplacementStrategy": "originalfirst", "type": "jme", "scripts": {}, "answerSimplification": "all", "showFeedbackIcon": true, "marks": "2", "customMarkingAlgorithm": "", "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "vsetRangePoints": 5, "checkingAccuracy": 0.001, "answer": "{b}", "unitTests": [], "failureRate": 1, "expectedVariableNames": [], "checkVariableNames": false, "variableReplacements": []}], "unitTests": [], "sortAnswers": false, "variableReplacements": []}, {"prompt": "Simplify $\\simplify{{d}sqrt({a}) - {b}sqrt({v}^2*{a})+{n}sqrt({b}^2*{a})}$.
\n$\\simplify{{d}sqrt({a}) - {b}sqrt({v}^2*{a})+{n}sqrt({b}^2*{a})} =$ [[0]].
\n", "variableReplacementStrategy": "originalfirst", "type": "gapfill", "scripts": {}, "showFeedbackIcon": true, "customMarkingAlgorithm": "", "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "marks": 0, "gaps": [{"vsetRange": [0, 1], "showPreview": true, "checkingType": "absdiff", "variableReplacementStrategy": "originalfirst", "type": "jme", "scripts": {"mark": {"order": "after", "script": "// Parse the student's answer as a syntax tree\nvar studentTree = Numbas.jme.compile(this.studentAnswer,Numbas.jme.builtinScope);\n\n// Create the pattern to match against \n// we just want two sets of brackets, each containing two terms\n// or one of the brackets might not have a constant term\n// or for repeated roots, you might write (x+a)^2\nvar rule = Numbas.jme.compile('m_any(m_number*sqrt(m_number))');\n\n// Check the student's answer matches the pattern. \nvar m = Numbas.jme.display.matchTree(rule,studentTree,true);\n// If not, take away marks\nif(!m) {\n //this.setCredit(0,'You haven\\'t simplified: your answer is not in the form $\\?sqrt(?)$.');\n this.multCredit(0,'You haven\\'t simplified: your answer is not in the form $\\?sqrt(?)$.');\n}"}}, "showFeedbackIcon": true, "marks": "2", "customMarkingAlgorithm": "", "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "vsetRangePoints": 5, "checkingAccuracy": 0.001, "answer": "{(d-b*v+n*b)}sqrt({a})", "unitTests": [], "failureRate": 1, "expectedVariableNames": [], "checkVariableNames": false, "variableReplacements": []}], "unitTests": [], "sortAnswers": false, "variableReplacements": []}, {"steps": [{"extendBaseMarkingAlgorithm": true, "unitTests": [], "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "type": "information", "scripts": {}, "showFeedbackIcon": true, "prompt": "To rationalise the denominator of fractions in the form $\\frac{1}{\\sqrt{a}}$, multiply the top and bottom by $\\sqrt{a}$.
", "variableReplacements": [], "marks": 0, "showCorrectAnswer": true}], "prompt": "Rationalise the denominator of the fraction $\\displaystyle\\frac{1}{\\sqrt{\\var{a}}}$.
$\\displaystyle\\frac{1}{\\sqrt{\\var{a}}} =$
To rationalise the denominator of fractions in the form $\\displaystyle\\frac{1}{a+\\sqrt{b}}$, multiply the top and bottom by $a-\\sqrt{b}$.
", "variableReplacements": [], "marks": 0, "showCorrectAnswer": true}], "prompt": "Rationalise the denominator of the fraction $\\displaystyle\\frac{1}{\\var{n}+\\sqrt{\\var{a}}}$.
\n$\\displaystyle\\frac{1}{\\var{n}+\\sqrt{\\var{a}}} =$
To rationalise the denominator of fractions in the form, $\\displaystyle\\frac{1}{a-\\sqrt{b}}$, multiply the top and bottom by ${a+\\sqrt{b}}$.
", "variableReplacements": [], "marks": 0, "showCorrectAnswer": true}], "prompt": "Rationalise the denominator of the fraction $\\displaystyle\\frac{\\var{t}}{\\var{d+p}-\\sqrt{\\var{p}}}$.
\n$\\displaystyle\\frac{\\var{t}}{\\var{d+p}-\\sqrt{\\var{p}}} =$