// Numbas version: exam_results_page_options {"name": "Laws of Indices [L6] Randomised", "extensions": [], "custom_part_types": [], "resources": [["question-resources/Capture_Bk8bYnv.PNG", "/srv/numbas/media/question-resources/Capture_Bk8bYnv.PNG"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false}, "question_groups": [{"questions": [{"functions": {}, "statement": "

Using the laws of indices, simplify each expression down to its simplest form.

\n

Recall that $a^{0} = 1$ for any number = $a$.

\n

The ^ symbol is required to write powers of algebraic symbols and * between integers and algebraic symbols, e.g. $5a^2$ should be written 5*a^2.

", "variables": {"x": {"name": "x", "templateType": "anything", "group": "Ungrouped variables", "description": "

Used in parts a,c and e

", "definition": "random(2..9 except y)"}, "q": {"name": "q", "templateType": "anything", "group": "Ungrouped variables", "description": "

Used in parts b,d and f

", "definition": "random(3,5)"}, "b": {"name": "b", "templateType": "anything", "group": "Ungrouped variables", "description": "

Used in part c

", "definition": "random(2..9)"}, "c": {"name": "c", "templateType": "anything", "group": "Ungrouped variables", "description": "

Used in parts b,d and f

", "definition": "random(2,4)"}, "y": {"name": "y", "templateType": "anything", "group": "Ungrouped variables", "description": "

\n

Used in parts a,c and f

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

Used in part c

", "definition": "random(2..9 except b)"}, "p": {"name": "p", "templateType": "anything", "group": "Ungrouped variables", "description": "

Used in parts b and d

", "definition": "random(2..9)"}, "d": {"name": "d", "templateType": "anything", "group": "Ungrouped variables", "description": "

Used in parts b and e

", "definition": "random(3..5)"}}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Elliott Fletcher", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1591/"}, {"name": "Abbi Mullins", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2466/"}, {"name": "Matthew James Sykes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2582/"}], "name": "Laws of Indices [L6] Randomised", "variablesTest": {"maxRuns": 100, "condition": ""}, "extensions": [], "variable_groups": [], "rulesets": {}, "advice": "

#### a)

\n

Here we are using the rule of indices: $a^m \\times a^n = a^{m+n}$.

\n

Using this rule,

\n

\\\begin{align} a^\\var{x} \\times a^\\var{y}\\ &= a^\\simplify[all, !collectNumbers]{{x}+{y}}\\\\ &= a^\\var{x+y}. \\end{align} \

\n

#### b)

\n

We are asked to find $\\var{c}a^\\var{p} \\times \\var{d}a^\\var{q}$.

\n

Notice there is a constant in front of each of the terms.

\n

To do this, write the product out explicitly, as

\n

\$\\var{c}a^\\var{p} \\times \\var{d}a^\\var{q} = \\var{c} \\times \\var{d} \\times a^\\var{p} \\times a^\\var{q}.\$

\n

We know that $\\var{c} \\times \\var{d} = \\var{c*d}$, and using the rule of indices: $a^\\var{p} \\times a^\\var{q} = a^\\var{p+q}$.

\n

Therefore:

\n

\\begin{align}
\\var{c}a^\\var{p} \\times \\var{d}a^\\var{q}&= \\var{c*d} \\times a^\\var{p+q} \\\\
&= \\simplify{{c*d}*a^{p+q}}.
\\end{align}

\n

#### c)

\n

Here we are using: $a^m \\div a^n = a^{m-n}$.

\n

We are asked to simplify the expression, $\\displaystyle\\simplify{{b}*a^{x}/({g}*a^{y})}$.

\n

To do this, we just have to use the previously mentioned rule of indices. We write this out explicity as

\n

\$\\simplify{{b}*a^{x}/({g}*a^{y})} = \\simplify{{b}/{g}} \\times \\simplify{a^{x}/(a^{y})}.\$

\n

Using rules of indices,

\n

\\begin{align}                                                                                                                                                                                                                                                                                           \\frac{a^\\var{x}}{a^\\var{y}} &= a^\\var{x} \\div a^\\var{y}\\\\
&= a^\\simplify[all, !collectNumbers]{{x}-{y}}\\\\
&= a^\\var{x-y}.
\\end{align}

\n

Therefore,

\n

\\begin{align}
\\frac{\\var{b}a^\\var{x}}{\\var{g}a^\\var{y}} &= \\simplify{{b}/{g}} \\times \\simplify{a^{{x}-{y}}}\\\\
&= \\simplify{{b}/{g}*a^{x-y}}.
\\end{align}

\n

Alternatively,

\n

Using the rule of indices: $a^{-m} = \\displaystyle\\frac{1}{a^{m}}$, we can rewrite the question as:

\n

\\begin{align}
\\frac{\\var{b}a^\\var{x}}{\\var{g}a^\\var{y}} &= \\simplify{{b}/{g}} \\times \\frac{a^\\var{x}}{a^\\var{y}}\\\\
&= \\simplify{{b}/{g}} \\times a^\\var{x} \\times a^{-\\var{y}}.
\\end{align}

\n

And then using the rule: $a^m \\times a^n = a^{m+n}$, this becomes:

\n

\\begin{align}
\\simplify{{b}/{g}} \\times a^\\var{x} \\times a^{-\\var{y}} &= \\simplify{{b}/{g}} \\times a^\\simplify[all,!collectNumbers]{{x}+(-{y})}\\\\
&= \\simplify{{b}/{g}*a^{x-y}}.
\\end{align}

\n

#### d)

\n

The question asks us to simplify $(\\simplify{{c}*a^{p}})^{\\var{q}}$.

\n

To do this we use the rules:

\n

\$(a^{m})^{n} = a^{mn},\$

\n

\$(ab)^m = a^mb^m.\$

\n

We can then expand the equation as

\n

\$(\\simplify{{c}*a^{p}})^{\\var{q}}= \\var{c}^{\\var{q}} \\times (a^{\\var{p}})^{\\var{q}}.\$

\n

Then using the rule of indices mentioned previously,

\n

\\\begin{align} (\\simplify{{c}*a^{p}})^{\\var{q}}&= \\simplify{{c}^{q}} \\times a^\\var{p*q}\\\\ &= \\simplify{{c}^{q}*a^{p*q}}. \\end{align} \

\n

#### e)

\n

The question asks us to simplify $\\sqrt[\\var{d}]{\\var{x}^\\var{d}a}$.

\n

To do this we use the rules:

\n

\$a^\\frac{1}{m} = \\sqrt[m]{a},\$

\n

\$(ab)^m = a^mb^m.\$

\n

We can expand the expression as follows:

\n

\\\begin{align} \\sqrt[\\var{d}]{a} &= (\\simplify{a})^\\frac{1}{\\var{d}}\\\\ &= a^\\frac{1}{\\var{d}}. \\end{align} \

\n

#### f)

\n

The question requires us to simplify $\\sqrt[\\var{c}]{a^\\var{q}}$.

\n

Here, we use the rule of indices: $a^\\frac{n}{m} = \\sqrt[m]{a^n}$, allowing us to expand the expression as follows:

\n

\\\begin{align} \\sqrt[\\var{c}]{\\simplify{a^{q}}} &= \\simplify[fractionnumbers,all]{(a^{q})^{{1}/{{c}}}}\\\\ &= \\simplify[fractionnumbers,all]{a^{{q}/{c}}}. \\end{align} \

", "parts": [{"variableReplacements": [], "showCorrectAnswer": true, "customMarkingAlgorithm": "", "prompt": "

Write $a^{\\var{x}} \\times a^{\\var{y}}$ as a single power of $a$.

\n

\n

$a^{\\var{x}} \\times a^{\\var{y}} =$ [[0]].

", "stepsPenalty": "1", "gaps": [{"checkVariableNames": false, "showCorrectAnswer": true, "customMarkingAlgorithm": "", "musthave": {"partialCredit": 0, "strings": ["^"], "message": "

", "showStrings": true}, "marks": "2", "variableReplacementStrategy": "originalfirst", "vsetRangePoints": 5, "checkingAccuracy": 0.001, "variableReplacements": [], "showFeedbackIcon": true, "showPreview": true, "unitTests": [], "expectedVariableNames": [], "type": "jme", "notallowed": {"partialCredit": 0, "strings": ["*", "(", ")", "+"], "message": "

", "showStrings": true}, "vsetRange": [0, 1], "checkingType": "absdiff", "scripts": {"mark": {"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(a^(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 $\\a^?$.');\n}", "order": "after"}}, "extendBaseMarkingAlgorithm": true, "answer": "a^{x+y}", "failureRate": 1}], "marks": 0, "variableReplacementStrategy": "originalfirst", "steps": [{"unitTests": [], "variableReplacements": [], "customMarkingAlgorithm": "", "prompt": "

Use the rule: $a^m \\times a^n = a^{m+n}$.

", "marks": 0, "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "scripts": {}, "type": "information", "showFeedbackIcon": true}], "sortAnswers": false, "showFeedbackIcon": true, "unitTests": [], "extendBaseMarkingAlgorithm": true, "scripts": {}, "type": "gapfill"}, {"variableReplacements": [], "customMarkingAlgorithm": "", "prompt": "

Write $\\var{c}a^\\var{p} \\times \\var{d}a^\\var{q}$ as an integer multiplied by a single power of $a$.

\n

$\\var{c}a^\\var{p} \\times \\var{d}a^\\var{q} =$ [[0]].

\n

", "gaps": [{"checkVariableNames": false, "showCorrectAnswer": true, "customMarkingAlgorithm": "", "musthave": {"partialCredit": 0, "strings": ["^"], "message": "

You must write your answer as a number multiplied by a single power of a.

", "showStrings": true}, "marks": "2", "variableReplacementStrategy": "originalfirst", "vsetRangePoints": 5, "checkingAccuracy": 0.001, "variableReplacements": [], "showFeedbackIcon": true, "showPreview": true, "unitTests": [], "expectedVariableNames": [], "type": "jme", "notallowed": {"partialCredit": 0, "strings": ["*", "( )"], "message": "

You must write your answer as a number multiplied by a single power of a.

", "showStrings": true}, "vsetRange": [0, 1], "checkingType": "absdiff", "scripts": {"mark": {"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)*a^(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 $\\?a^?$.');\n}", "order": "after"}}, "extendBaseMarkingAlgorithm": true, "answer": "{c*d}*a^{p+q}", "failureRate": 1}], "marks": 0, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "sortAnswers": false, "showFeedbackIcon": true, "unitTests": [], "extendBaseMarkingAlgorithm": true, "scripts": {}, "type": "gapfill"}, {"variableReplacements": [], "showCorrectAnswer": true, "customMarkingAlgorithm": "", "prompt": "

Write $\\displaystyle\\simplify{{b}*a^{x}/({g}*a^{y})}$ as a number multiplied by a single power of $a$.

\n

$\\displaystyle\\simplify{{b}*a^{x}/({g}*a^{y})} =$ [[0]].

\n

", "stepsPenalty": "1", "gaps": [{"checkVariableNames": false, "customMarkingAlgorithm": "", "checkingAccuracy": 0.001, "marks": "2", "variableReplacementStrategy": "originalfirst", "vsetRangePoints": 5, "showCorrectAnswer": true, "variableReplacements": [], "showFeedbackIcon": true, "showPreview": true, "unitTests": [], "expectedVariableNames": [], "type": "jme", "vsetRange": [0, 1], "checkingType": "absdiff", "scripts": {"mark": {"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/m_number)*a^(m_pm(m_number)), (m_number*a^(m_pm(m_number)))/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 $\\\\frac{?}{\\\\cdot}a^n$.');\n}", "order": "after"}}, "extendBaseMarkingAlgorithm": true, "answer": "{b/g}a^{x-y}", "failureRate": 1}], "marks": 0, "variableReplacementStrategy": "originalfirst", "steps": [{"unitTests": [], "variableReplacements": [], "customMarkingAlgorithm": "", "prompt": "

You could use one of the following rules:

\n

$a^m \\div a^n = a^{m-n}$.

\n

$a^{-m} = \\displaystyle\\frac{1}{a^m}$.

", "marks": 0, "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "scripts": {}, "type": "information", "showFeedbackIcon": true}], "sortAnswers": false, "showFeedbackIcon": true, "unitTests": [], "extendBaseMarkingAlgorithm": true, "scripts": {}, "type": "gapfill"}, {"variableReplacements": [], "showCorrectAnswer": true, "customMarkingAlgorithm": "", "prompt": "

Write $(\\simplify{{c}*a^{p}})^{\\var{q}}$ as an integer multiplied by a single power of $a$.

\n

$(\\simplify{{c}*a^{p}})^{\\var{q}} =$ [[0]].

\n

", "stepsPenalty": 0, "gaps": [{"checkVariableNames": false, "showCorrectAnswer": true, "customMarkingAlgorithm": "", "musthave": {"partialCredit": 0, "strings": ["^"], "message": "

You must enter your answer as an integer multiplied by a single power of a.

", "showStrings": true}, "marks": "2", "variableReplacementStrategy": "originalfirst", "vsetRangePoints": 5, "checkingAccuracy": 0.001, "variableReplacements": [], "showFeedbackIcon": true, "showPreview": true, "unitTests": [], "expectedVariableNames": [], "type": "jme", "notallowed": {"partialCredit": 0, "strings": ["*", "(", ")", ")"], "message": "

You must enter your answer as an integer multiplied by a single power of a.

", "showStrings": true}, "vsetRange": [0, 1], "checkingType": "absdiff", "scripts": {}, "extendBaseMarkingAlgorithm": true, "answer": "{c^{q}}*a^{p*q}", "failureRate": 1}], "marks": 0, "variableReplacementStrategy": "originalfirst", "steps": [{"unitTests": [], "variableReplacements": [], "customMarkingAlgorithm": "", "prompt": "

Use the rules:

\n

$(ab)^m = a^mb^m$.

\n

$(a^m)^n = a^{mn}$.

", "marks": 0, "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "scripts": {}, "type": "information", "showFeedbackIcon": true}], "sortAnswers": false, "showFeedbackIcon": true, "unitTests": [], "extendBaseMarkingAlgorithm": true, "scripts": {}, "type": "gapfill"}, {"variableReplacements": [], "showCorrectAnswer": true, "customMarkingAlgorithm": "", "prompt": "

\n

Write $\\sqrt[\\var{d}]{a}$ as a single power of $a$.

\n

$\\sqrt[\\var{d}]{a} =$ [[0]].

\n

\n

", "stepsPenalty": "1", "gaps": [{"checkVariableNames": false, "checkingAccuracy": 0.001, "customMarkingAlgorithm": "", "vsetRangePoints": 5, "showCorrectAnswer": true, "showPreview": true, "expectedVariableNames": [], "answerSimplification": "basic", "extendBaseMarkingAlgorithm": true, "type": "jme", "variableReplacements": [], "musthave": {"partialCredit": 0, "strings": ["^", "(", ")"], "message": "

", "showStrings": true}, "unitTests": [], "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "marks": "2", "notallowed": {"partialCredit": 0, "strings": ["sqrt", "root"], "message": "

", "showStrings": true}, "vsetRange": [0, 1], "checkingType": "absdiff", "scripts": {}, "answer": "a^(1/{d})", "failureRate": 1}], "marks": 0, "variableReplacementStrategy": "originalfirst", "steps": [{"unitTests": [], "variableReplacements": [], "customMarkingAlgorithm": "", "prompt": "

Use the rule: $a^\\frac{1}{m} = \\sqrt[m]{a}$.

", "marks": 0, "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "scripts": {}, "type": "information", "showFeedbackIcon": true}], "sortAnswers": false, "showFeedbackIcon": true, "unitTests": [], "extendBaseMarkingAlgorithm": true, "scripts": {}, "type": "gapfill"}, {"variableReplacements": [], "showCorrectAnswer": true, "customMarkingAlgorithm": "", "prompt": "

Write $\\sqrt[\\var{q}]{a^\\var{c}}$ as a single power of $a$.

\n

$\\sqrt[\\var{q}]{a^\\var{c}} =$ [[0]].

\n

", "stepsPenalty": "1", "gaps": [{"checkVariableNames": false, "showCorrectAnswer": true, "customMarkingAlgorithm": "", "musthave": {"partialCredit": 0, "strings": ["^", "(", ")"], "message": "

", "showStrings": true}, "marks": "2", "variableReplacementStrategy": "originalfirst", "vsetRangePoints": 5, "checkingAccuracy": 0.001, "variableReplacements": [], "showFeedbackIcon": true, "showPreview": true, "unitTests": [], "expectedVariableNames": [], "type": "jme", "notallowed": {"partialCredit": 0, "strings": ["root"], "message": "

Use the rule: $a^\\frac{n}{m} = \\sqrt[m]{a^n}$.