// Numbas version: finer_feedback_settings {"name": "Skills Audit for Maths and Stats - Science and Engineering Foundation Year (MAS005) ", "metadata": {"description": "
Skills Audit for Maths and Stats for MAS005 Science and Engineering Foundation Year students who have already studied A-level maths.
", "licence": "Creative Commons Attribution-NonCommercial-NoDerivs 4.0 International"}, "duration": 0, "percentPass": 0, "showQuestionGroupNames": false, "shuffleQuestionGroups": false, "showstudentname": true, "question_groups": [{"name": "Group", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""], "variable_overrides": [[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []], "questions": [{"name": "NA5 - Convert Units (m/s and km/h)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "Unit conversion between two compound units.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "A Cheetah runs at a speed of {speedkm} kilometres per hour (km/h). What is the Cheetah's speed in metres per second (m/s)?
\nGive your ansswer to 2 decimal places where appropriate.
", "advice": "There are a number of ways to work out the conversion. Here are a couple of suggestions.
\nMETHOD 1
\nSince there are $1000$m in $1$km we first multiply by $1000$ to get the speed in metres per hour:
\n\\begin{equation} 1000*\\var{speedkm} = \\var{step1}\\end{equation}
\nThen we divide by $3600$ since that is the number of seconds in an hour to get the speed in metres per second:
\n\\begin{equation} \\frac{\\var{step1}}{3600} = \\var{speedms} \\end{equation}
\nFinally we round off to 2 decimal places as required, $\\var{roundanswer}$m/s.
\nMETHOD 2
\nWe can actually do all of the above in one step of working by using a single conversion factor. Since there are $1000$m in a km and $3600$ seconds in an hour, we can calaculate the conversion factor:
\n\\begin{equation} \\frac{3600}{1000} = 3.6 \\end{equation}
\nand then simply divide by that conversion factor:
\n\\begin{equation} \\frac{\\var{speedkm}}{3.6} = \\var{speedms} \\end{equation}
\nfinally rounding off as before, $\\var{roundanswer}$m/s.
\n\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"speedkm": {"name": "speedkm", "group": "Ungrouped variables", "definition": "random(70 .. 120#10)", "description": "", "templateType": "randrange", "can_override": false}, "speedms": {"name": "speedms", "group": "Ungrouped variables", "definition": "1000*speedkm/3600", "description": "", "templateType": "anything", "can_override": false}, "step1": {"name": "step1", "group": "Ungrouped variables", "definition": "1000*speedkm", "description": "", "templateType": "anything", "can_override": false}, "roundanswer": {"name": "roundanswer", "group": "Ungrouped variables", "definition": "dpformat(speedms,2)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["speedkm", "speedms", "step1", "roundanswer"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "[[0]]m/s
", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "answer", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "speedms", "maxValue": "speedms", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "speedms", "precisionType": "dp", "precision": "2", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "NB4 - HCF", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "Calculating the LCM and HCF of numbers by using prime factorisation.", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "By considering the prime factorisation of $\\var{x}$ and $\\var{y}$, or otherwise, find the highest common factor (HCF) of $\\var{x}$ and $\\var{y}$.
", "advice": "We can write $\\var{x}$ and $\\var{y}$ as a product of prime factors as follows:
\n$\\var{x}=\\var{show_factors(x)}$
\n$\\var{y}=\\var{show_factors(y)}$
\n\nFor HCF of $\\var{x}$ and $\\var{y}$ we need to multiply each prime factor the least number of times it occurs in either $\\var{x}$ or $\\var{y}$
\ni.e. HCF$(x,y) = \\var{show_factors(hcf_xy)}=\\var{hcf_xy}$
\n\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"x_powers": {"name": "x_powers", "group": "Ungrouped variables", "definition": "[random(1..4),random(0..4),random(0..3),random(0..3)]", "description": "", "templateType": "anything", "can_override": false}, "y_powers": {"name": "y_powers", "group": "Ungrouped variables", "definition": "[random(0..4),random(1..4),random(0..3),random(0..2)]", "description": "", "templateType": "anything", "can_override": false}, "x": {"name": "x", "group": "Ungrouped variables", "definition": "2^x_powers[0]*3^x_powers[1]*5^x_powers[2]*7^x_powers[3]", "description": "", "templateType": "anything", "can_override": false}, "y": {"name": "y", "group": "Ungrouped variables", "definition": "2^y_powers[0]*3^y_powers[1]*5^y_powers[2]*7^y_powers[3]", "description": "", "templateType": "anything", "can_override": false}, "hcf_xy": {"name": "hcf_xy", "group": "Ungrouped variables", "definition": "2^min(x_powers[0],y_powers[0])*3^min(x_powers[1],y_powers[1])*5^min(x_powers[2],y_powers[2])*7^min(x_powers[3],y_powers[3])", "description": "", "templateType": "anything", "can_override": false}, "lcm_xy": {"name": "lcm_xy", "group": "Ungrouped variables", "definition": "2^max(x_powers[0],y_powers[0])*3^max(x_powers[1],y_powers[1])*5^max(x_powers[2],y_powers[2])*7^max(x_powers[3],y_powers[3])", "description": "", "templateType": "anything", "can_override": false}, "primes": {"name": "primes", "group": "Ungrouped variables", "definition": "[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "x_powers[0]+x_powers[1]+x_powers[2]+x_powers[3]<5\nand\nx_powers[0]+x_powers[1]+x_powers[2]+x_powers[3]>2\nand\ny_powers[0]+y_powers[1]+y_powers[2]+y_powers[3]<5\nand\ny_powers[0]+y_powers[1]+y_powers[2]+y_powers[3]>2\nand (x-y)<>0\nand hcf_xy>6", "maxRuns": "500"}, "ungrouped_variables": ["x_powers", "y_powers", "x", "y", "hcf_xy", "lcm_xy", "primes"], "variable_groups": [], "functions": {"show_factors": {"parameters": [["n", "number"]], "type": "string", "language": "jme", "definition": "latex( // mark the output as a string of raw LaTeX\n join(\n map(\n if(a=1,p,p+'^{'+a+'}'), // when the exponent is 1, return p, otherwise return p^{exponent}\n [p,a],\n filter(x[1]>0,x,zip(primes,factorise(n))) // for all the primes p which are factors of n, return p and its exponent\n ),\n ' \\\\times ' // join all the prime powers up with \\times symbols\n )\n)"}}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "hcf_xy", "maxValue": "hcf_xy", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "NB5 - LCM", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "Calculating the LCM and HCF of numbers by using prime factorisation.", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "By considering the prime factorisation of $\\var{x}$ and $\\var{y}$, or otherwise, find the lowest common multiple (LCM) of $\\var{x}$ and $\\var{y}$.
", "advice": "We can write $\\var{x}$ and $\\var{y}$ as a product of prime factors as follows:
\n$\\var{x}=\\var{show_factors(x)}$
\n$\\var{y}=\\var{show_factors(y)}$.
\n\nFor LCM of $\\var{x}$ and $\\var{y}$ we need to multiply each factor the greatest number of times it occurs in either $\\var{x}$ or $\\var{y}$.
\ni.e. LCM$(x,y) = \\var{show_factors(lcm_xy)}=\\var{lcm_xy}$.
\n\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"x_powers": {"name": "x_powers", "group": "Ungrouped variables", "definition": "[random(1..4),random(0..4),random(0..3),random(0..3)]", "description": "", "templateType": "anything", "can_override": false}, "y_powers": {"name": "y_powers", "group": "Ungrouped variables", "definition": "[random(0..4),random(1..4),random(0..3),random(0..2)]", "description": "", "templateType": "anything", "can_override": false}, "x": {"name": "x", "group": "Ungrouped variables", "definition": "2^x_powers[0]*3^x_powers[1]*5^x_powers[2]*7^x_powers[3]", "description": "", "templateType": "anything", "can_override": false}, "y": {"name": "y", "group": "Ungrouped variables", "definition": "2^y_powers[0]*3^y_powers[1]*5^y_powers[2]*7^y_powers[3]", "description": "", "templateType": "anything", "can_override": false}, "hcf_xy": {"name": "hcf_xy", "group": "Ungrouped variables", "definition": "2^min(x_powers[0],y_powers[0])*3^min(x_powers[1],y_powers[1])*5^min(x_powers[2],y_powers[2])*7^min(x_powers[3],y_powers[3])", "description": "", "templateType": "anything", "can_override": false}, "lcm_xy": {"name": "lcm_xy", "group": "Ungrouped variables", "definition": "2^max(x_powers[0],y_powers[0])*3^max(x_powers[1],y_powers[1])*5^max(x_powers[2],y_powers[2])*7^max(x_powers[3],y_powers[3])", "description": "", "templateType": "anything", "can_override": false}, "primes": {"name": "primes", "group": "Ungrouped variables", "definition": "[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "x_powers[0]+x_powers[1]+x_powers[2]+x_powers[3]<5\nand\nx_powers[0]+x_powers[1]+x_powers[2]+x_powers[3]>2\nand\ny_powers[0]+y_powers[1]+y_powers[2]+y_powers[3]<5\nand\ny_powers[0]+y_powers[1]+y_powers[2]+y_powers[3]>2\nand (x-y)<>0\nand hcf_xy>6", "maxRuns": "500"}, "ungrouped_variables": ["x_powers", "y_powers", "x", "y", "hcf_xy", "lcm_xy", "primes"], "variable_groups": [], "functions": {"show_factors": {"parameters": [["n", "number"]], "type": "string", "language": "jme", "definition": "latex( // mark the output as a string of raw LaTeX\n join(\n map(\n if(a=1,p,p+'^{'+a+'}'), // when the exponent is 1, return p, otherwise return p^{exponent}\n [p,a],\n filter(x[1]>0,x,zip(primes,factorise(n))) // for all the primes p which are factors of n, return p and its exponent\n ),\n ' \\\\times ' // join all the prime powers up with \\times symbols\n )\n)"}}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "lcm_xy", "maxValue": "lcm_xy", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "NC3 BIDMAS with a division 2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Lauren Desoysa", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21504/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "Applying the order of operators.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "To calculate the following expression you press a sequence of buttons on your calculator.
\n\\begin{align}\\frac{\\var{num}}{\\var{a}\\times\\var{b}}\\end{align}
\nWhich of the following would give the WRONG answer?
\n", "advice": "BIDMAS stands for:
\nBrackets
\nIndices
\nDivision
\nMultiplication
\nAddition
\nSubtraction
\nThis is the standardized order of operations that we carry out and is part of how the calculator is designed to work. The most effective way to use most modern calculators is to use either the fraction button (on scientific calculators) or as is hinted at in this question, use brackets.
\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(2 .. 20#1)", "description": "", "templateType": "randrange", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(2 .. 20#1)", "description": "", "templateType": "randrange", "can_override": false}, "num": {"name": "num", "group": "Ungrouped variables", "definition": "a*b*3", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "a<>b", "maxRuns": 100}, "ungrouped_variables": ["a", "b", "num"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["$\\var{num}\\div (\\var{a}\\times\\var{b})$", "$\\var{num} \\div \\var{a} \\times \\var{b}$", "$\\var{num} \\div \\var{a} \\div \\var{b}$"], "matrix": [0, "1", 0], "distractors": ["", "", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "ND4 - Upper/Lower bounds", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "State the Upper and lower bound of a distance that has been rounded to either the nearest 10 or 100 miles.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "The distance between two towns had been rounded to the nearest {x} miles in an aticle in the newspaper. If they reported that the distance was {y} miles, what are the upper and lower bound for the reported number?
", "advice": "If a number like {y} has been rounded to the nearest {x} then {y} would have been rounded down if it was less than {y+x/2} because {y} is the nearest multiple of {x}.
\nSimilarly {y} would have been rounded up if it was larger than or equal to {y-x/2}. This means the lower bound is {y-x/2} and the upper bound is {y+x/2}.
\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"x": {"name": "x", "group": "Ungrouped variables", "definition": "10^random(1,2)", "description": "", "templateType": "anything", "can_override": false}, "y": {"name": "y", "group": "Ungrouped variables", "definition": "random(1000..10000 # x)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["x", "y"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "Upper bound:
\n[[0]]
\nLower bound:
\n[[1]]
", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "x/2+y", "maxValue": "x/2+y", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "y-x/2", "maxValue": "y-x/2", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "NE5 - Dividing Negatives", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "Calculations with negative numbers.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Calculate $(\\var{x})\\div(\\var{y})$.
", "advice": "When we divide two numbers the rule is,
\nIn this calculation we have
\n\\[(\\var{x})\\div(\\var{y})=\\var{x/y}.\\]
\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"x": {"name": "x", "group": "Ungrouped variables", "definition": "random(-10..10)*y", "description": "", "templateType": "anything", "can_override": false}, "y": {"name": "y", "group": "Ungrouped variables", "definition": "random(-10..10 except 0)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["x", "y"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{x/y}", "maxValue": "{x/y}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "NF4 Reverse percentages", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Stanislav Duris", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1590/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": ["decrease", "percentages", "taxonomy"], "metadata": {"description": "Find the original price before a discount by dividing the new price by the percentage discount.
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "{name1} and {name2} are friends. {name1} noticed {name2}'s new {item} when he came over to visit her house. He immediately knew he wanted to buy the same model. When he got home, he bought the {item} online for £{newprice}.
", "advice": "We need to find the original price paid by {name2}. This value represents 100%.
\nBy the time {name1} bought the {item}, the price had decreased by {percentage}%.
\n{name1} therefore paid {100-percentage}% of the price {name2} paid.
\n\nWe use the unitary method to find the original price. We know the price paid by {name1}.
\n\\[\\var{100-percentage}\\text{%} = \\var{newprice} \\text{.}\\]
\nDivide both sides by {100-percentage} to get
\n\\[\\begin{align} 1\\text{%} &= \\var{newprice} \\div \\var{100-percentage} \\\\&= \\var{newprice/(100-percentage)} \\text{.} \\end{align}\\]
\nMultiply both sides by 100 to get
\n\\[\\begin{align} 100\\text{%} &= \\var{newprice/(100-percentage)} \\times 100 \\\\&= \\var{newprice/(100-percentage)*100} \\\\&= \\var{oldprice}\\text{.} \\end{align}\\]
\nThis is the original price paid by {name2} before the {percentage}% decrease.
\nWe can check our answer with a different method.
\n\\[\\begin{align} \\var{100-percentage}\\text{% of } \\var{oldprice} &= \\var{(100-percentage)/100} \\times \\var{oldprice} \\\\&= \\var{(100-percentage)/100*oldprice} \\\\&= \\var{precround((100-percentage)/100*oldprice, 2)} \\text{.} \\end{align}\\]
\n\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"newprice": {"name": "newprice", "group": "Ungrouped variables", "definition": "precround(oldprice*(100-percentage)/100,2)", "description": "", "templateType": "anything", "can_override": false}, "name2": {"name": "name2", "group": "Ungrouped variables", "definition": "random(\"Kaden\",\"Ola\",\"Pat\",\"Skylar\",\"Wren\",\"Zendaya\")", "description": "", "templateType": "anything", "can_override": false}, "name1": {"name": "name1", "group": "Ungrouped variables", "definition": "random(\"Adair\",\"Aya\",\"Bergen\",\"Dua\",\"Fadhili\",\"Harper\")", "description": "", "templateType": "anything", "can_override": false}, "oldprice": {"name": "oldprice", "group": "Ungrouped variables", "definition": "switch(\n item = \"TV\", random(179.99..1199.99 #10), \n item = \"laptop\", random(209.99..799.99 #10),\n item = \"smartphone\", random(109.99..799.99 #10),\n item = \"PC\", random(209.99..969.99 #10),\n item = \"gaming console\", random(89.99..349.99 #10),\n 399.99)", "description": "", "templateType": "anything", "can_override": false}, "percentage": {"name": "percentage", "group": "Ungrouped variables", "definition": "random(5..30)", "description": "Discount percentage.
", "templateType": "anything", "can_override": false}, "item": {"name": "item", "group": "Ungrouped variables", "definition": "random(\"TV\", \"laptop\", \"smartphone\", \"PC\", \"gaming console\")", "description": "The bought item.
", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "precround(precround(oldprice*(100-percentage)/100,2)*100/(100-percentage),2) = oldprice", "maxRuns": "1000"}, "ungrouped_variables": ["item", "name1", "percentage", "name2", "oldprice", "newprice"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "When {name1} told {name2} how much he had paid for the {item}, {name2} said the price had decreased by {percentage}% since she bought it.
\nHow much did {name2} pay for the {item}?
\n£ [[0]]
", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "1", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "oldprice", "maxValue": "oldprice", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "2", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "NF7 One number as a percentage of another", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Don Shearman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/680/"}, {"name": "Adelle Colbourn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2083/"}, {"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}, {"name": "Megan Oliver", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/23526/"}], "tags": [], "metadata": {"description": "Given the number of international students enrolled on a course of $n$ students, calculate the percentage of 'home' students.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "\n\n\n\n{num_students} of the {class_size} students enrolled on a course are international students. What percentage are 'home' students?
", "advice": "First work out the number of students who are not international. In this case it is {class_size} - {num_students} = {class_size-num_students} students.
\nThen write this as a fraction out of {class_size}. $ \\frac{\\var{class_size-num_students}} {\\var{class_size}} $
\nThen convert this to a percentage. You should put this fraction into your calculator and then multiply by 100:
\n$ \\frac{\\var{class_size-num_students}} {\\var{class_size}} \\times 100 = \\var{(class_size-num_students)/class_size*100}\\%$
\nUse this link to find resources to help you revise how to calculate percentages.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"num_students": {"name": "num_students", "group": "Ungrouped variables", "definition": "per*class_size/100\n", "description": "The number of students in the class who do speak a language other than English.
", "templateType": "anything", "can_override": false}, "class_size": {"name": "class_size", "group": "Ungrouped variables", "definition": "random(80..300)", "description": "", "templateType": "anything", "can_override": false}, "per": {"name": "per", "group": "Ungrouped variables", "definition": "random(5..90 except 50)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "num_students = precround(num_students,0) AND (num_students<>class_size/2 AND class_size<>100)", "maxRuns": 100}, "ungrouped_variables": ["num_students", "class_size", "per"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "\n", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["$\\var{class_size-num_students}\\%$", "$\\var{num_students*100/class_size}\\%$", "$\\var{num_students}\\%$", "$\\var{(class_size-num_students)/class_size*100}\\%$"], "matrix": [0, 0, 0, "1"], "distractors": ["Have you converted this to a percentage? Click on Reveal Answer and scroll down for Advice regarding this question.", "How many students do NOT speak a language other than English at home? Click on Reveal Answer and scroll down for Advice regarding this question.", "How many students do NOT speak a language other than English at home? Then convert this to a percentage. Click on Reveal Answer and scroll down for Advice regarding this question.", "Well done!"]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "NG8 - Ordering fractions", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "Put fractions in size order.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Which of these two fractions is the largest?
", "advice": "To find which is bigger of $\\frac{\\var{top1}}{\\var{bot1}}$ and $\\frac{\\var{top2}}{\\var{bot2}}$ we need them to have the same denominator. A way to do this is to multiply the top and bottom of $\\frac{\\var{top1}}{\\var{bot1}}$ by $\\var{bot2}$ and multiply the top and bottom of $\\frac{\\var{top2}}{\\var{bot2}}$ by {bot1}. This doesn't change the the value of the fractions as this is just like multiplying by one.
\n\\[\\frac{\\var{top1}}{\\var{bot1}}=\\frac{\\var{top1*bot2}}{\\var{bot1*bot2}},\\quad \\frac{\\var{top2}}{\\var{bot2}}=\\frac{\\var{top2*bot1}}{\\var{bot1*bot2}}\\]
\nNow we can easily see which is bigger by comparing the numerator.
\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"top1": {"name": "top1", "group": "Ungrouped variables", "definition": "random(1..(bot1-1))", "description": "", "templateType": "anything", "can_override": false}, "top2": {"name": "top2", "group": "Ungrouped variables", "definition": "random(1..(bot2-1))", "description": "", "templateType": "anything", "can_override": false}, "bot1": {"name": "bot1", "group": "Ungrouped variables", "definition": "random(2..10)", "description": "", "templateType": "anything", "can_override": false}, "bot2": {"name": "bot2", "group": "Ungrouped variables", "definition": "random(1..10 except bot1)", "description": "", "templateType": "anything", "can_override": false}, "frac1": {"name": "frac1", "group": "Ungrouped variables", "definition": "top1/bot1", "description": "", "templateType": "anything", "can_override": false}, "frac2": {"name": "frac2", "group": "Ungrouped variables", "definition": "top2/bot2", "description": "", "templateType": "anything", "can_override": false}, "Is1Bigger": {"name": "Is1Bigger", "group": "Ungrouped variables", "definition": "award(1,frac1>frac2)", "description": "", "templateType": "anything", "can_override": false}, "Is2Bigger": {"name": "Is2Bigger", "group": "Ungrouped variables", "definition": "award(1,frac2>frac1)", "description": "", "templateType": "anything", "can_override": false}, "Question": {"name": "Question", "group": "Ungrouped variables", "definition": "[string(top1)+\"/\"+string(bot1),string(top2)+\"/\"+string(bot2)]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "abs(frac1-frac2)>0", "maxRuns": "250"}, "ungrouped_variables": ["top1", "top2", "bot1", "bot2", "frac1", "frac2", "Is1Bigger", "Is2Bigger", "Question"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": "Question", "matrix": "[Is1Bigger,Is2Bigger]"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "NK3 - Standard Form (Calculations)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "Calculations involving Standard form.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "", "advice": "To divide two numbers in standard form we can calculate the division of each part of the standard form number separately. In general we have,
\n\\[\\frac{x\\times10^j}{y\\times10^k}=\\frac xy\\times\\frac{10^j}{10^k}=\\frac xy\\times 10^{j-k}\\]
\n\nIn this question we therefore have,
\n\\[\\frac{\\var{a}\\times10^{\\var{n}}}{\\var{b}\\times10^{\\var{m}}}=\\frac{\\var{a}}{\\var{b}}\\times\\frac{10^{\\var{n}}}{10^{\\var{m}}}=\\var{aDivBRound}\\times10^\\var{n-m}.\\]
Since {aDivBRound} is less than 1 then our answer isn't in standard form. In this case we need to reduce the exponent by 1 so the final answer is
\n\\[\\var{MantAnsRound}\\times10^{\\var{ExponentAns}}.\\]
\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(1..9.9 # 0.1)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(1..9.9 # 0.1)", "description": "", "templateType": "anything", "can_override": false}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "random(-10..10)", "description": "", "templateType": "anything", "can_override": false}, "m": {"name": "m", "group": "Ungrouped variables", "definition": "random(-10..10)", "description": "", "templateType": "anything", "can_override": false}, "IsADivBLessOne": {"name": "IsADivBLessOne", "group": "Ungrouped variables", "definition": "a/b<1", "description": "", "templateType": "anything", "can_override": false}, "ExponentAns": {"name": "ExponentAns", "group": "Ungrouped variables", "definition": "if(IsADivBLessOne,n-m-1,n-m)", "description": "", "templateType": "anything", "can_override": false}, "MantAns": {"name": "MantAns", "group": "Ungrouped variables", "definition": "if(IsADivBLessOne, a/b*10, a/b)", "description": "", "templateType": "anything", "can_override": false}, "aDivBRound": {"name": "aDivBRound", "group": "Ungrouped variables", "definition": "precround(a/b,2)", "description": "", "templateType": "anything", "can_override": false}, "MantAnsRound": {"name": "MantAnsRound", "group": "Ungrouped variables", "definition": "precround(MantAns,2)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "b", "n", "m", "IsADivBLessOne", "ExponentAns", "MantAns", "aDivBRound", "MantAnsRound"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "For the equation
\n\\[\\frac{\\var{a}\\times10^{\\var{n}}}{\\var{b}\\times10^{\\var{m}}}=a\\times10^n\\]
\nfind the values of $a$ and $n$ which keep the answer in standard form.
\nGive $a$ to two decimal places.
\n$a=$[[0]]
$n=$[[1]]
Calculate an answer involving a fractional index.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Evaluate the following expression:
\n\\[\\var{a^n}^{\\frac{1}{\\var{n}}}\\]
", "advice": "To find $\\var{a^n}^{\\frac{1}{\\var{n}}}$, we want to make use of the fact that a power of $\\frac{1}{n}$ is the same as the $n$th root. Since
\n\\[\\var{a^n}=\\var{a}^\\var{n},\\]
\nwe have,
\n\\[ \\var{a^n}^{\\frac{1}{\\var{n}}} =\\left(\\var{a}^\\var{n}\\right)^{\\frac{1}{\\var{n}}}=\\var{a}. \\]
\n\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"n": {"name": "n", "group": "Ungrouped variables", "definition": "random(2..3)", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(1,2,3,4,5)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["n", "a"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{a}", "maxValue": "{a}", "correctAnswerFraction": false, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "AA4 Indices - Fractional 2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}], "tags": ["category: Indices"], "metadata": {"description": "Using indices rules to rewrite an expression from $a^\\frac{m}{n}$ to $b$, for integers $a$, $b$, $m$ and $n$.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Evaluate the following expression:
\n\\[\\var{a^n}^{\\frac{\\var{m}}{\\var{n}}}\\]
", "advice": "To find $\\var{a^n}^{\\frac{\\var{m}}{\\var{n}}}$, we want to make use of the following rule:
\n\\[\\left(a^n\\right)^m = a^{n\\times m}\\]
\nBy rewriting the power $\\frac{\\var{m}}{\\var{n}}$ as a product of $\\var{m} \\times \\frac{1}{\\var{n}}$, we can apply this rule:
\n\\[ \\begin{split} \\var{a^n}^{\\frac{\\var{m}}{\\var{n}}} &\\,= \\var{a^n}^{\\left(\\var{m} \\times \\frac{1}{\\var{n}}\\right)} \\\\ &\\,= \\left(\\var{a^n}^\\frac{1}{\\var{n}}\\right)^\\var{m} \\\\ &\\,= \\var{a}^\\var{m}\\end{split} \\]
\nThen calculating what is left:
\n\\[ \\begin{split} \\var{a}^\\var{m} &\\,=\\var{a^(m)} \\end{split} \\]
\nTherefore,
\n\\[ \\var{a^n}^{\\frac{\\var{m}}{\\var{n}}} =\\var{a^(m)}. \\]
\n\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"m": {"name": "m", "group": "Ungrouped variables", "definition": "random(2,3)", "description": "", "templateType": "anything", "can_override": false}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "random(2..3 except m)", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(2,3,4)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["m", "n", "a"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{a^m}", "maxValue": "{a^m}", "correctAnswerFraction": false, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "AA5 - Indices - negative", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "perform a calculation involving negative indices.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Evaluate and simplify the following expression:
\n\\[\\frac{\\var{x}^\\var{n}}{\\var{y}^\\var{m}}\\]
", "advice": "To simplify this expression we use the rule $a^{-n}=\\frac1{a^n}$.
\n\\[\\frac{\\var{x}^\\var{n}}{\\var{y}^\\var{m}}=\\frac{\\var{y}^\\var{-m}}{\\var{x}^\\var{-n}}=\\frac{\\var{y^-m}}{\\var{x^-n}}=\\simplify{{y^-m}/{x^-n}}\\]
\n\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"n": {"name": "n", "group": "Ungrouped variables", "definition": "random(-3..-1)", "description": "", "templateType": "anything", "can_override": false}, "x": {"name": "x", "group": "Ungrouped variables", "definition": "random(2..5)", "description": "", "templateType": "anything", "can_override": false}, "y": {"name": "y", "group": "Ungrouped variables", "definition": "random(2..5)", "description": "", "templateType": "anything", "can_override": false}, "m": {"name": "m", "group": "Ungrouped variables", "definition": "random(-3..-1)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["n", "x", "y", "m"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{x^n/y^m}", "maxValue": "{x^n/y^m}", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": true, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "AB3 - Collecting terms (higher powers)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Michael Proudman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/269/"}, {"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "Simple exercise in collecting terms in different powers of \\(x\\)
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "Simplify the following expression by combining \"like\" terms.
", "advice": "First we expand the minus sign in the bracket.
\n\\[\\simplify[!collectNumbers]{{a}x^4+{b}x+{c}x^3+{d}x^4-({f}x+{e}x^3)}=\\simplify[!collectNumbers]{{a}x^4+{b}x+{c}x^3+{d}x^4+{-f}x+{-e}x^3}\\]
\nThe idea is to collect together and combine any terms that are the same kind of term so:
\n$\\var{b}x$ and $\\var{-f}x$ both have an $x$ term. We can combine them to get $\\var{b-f}x$
\nWe can combine $\\var{a}x^4$ and $\\var{d}x^4$ to get $\\var{a+d}x^4$.
\nWe combine $\\var{c}x^3$ and $\\var{-e}x^3$ to get $\\var{c-e}x^3$. So our answer is:
\n$\\simplify{{a+d}x^4+{c+e}x^3+{b+f}}$
\n\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"c": {"name": "c", "group": "Ungrouped variables", "definition": "random(-5..10 except 0)", "description": "", "templateType": "anything", "can_override": false}, "d": {"name": "d", "group": "Ungrouped variables", "definition": "random(-5..10 except 0)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(-5..10 except 0)", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(1..10)", "description": "", "templateType": "anything", "can_override": false}, "f": {"name": "f", "group": "Ungrouped variables", "definition": "random(-5..10 except 0 except b)", "description": "", "templateType": "anything", "can_override": false}, "e": {"name": "e", "group": "Ungrouped variables", "definition": "random(-5..10 except 0 except c)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "c", "b", "d", "f", "e"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "$\\simplify[!collectNumbers]{{a}x^4+{b}x+{c}x^3+{d}x^4-({f}x+{e}x^3)}$
", "answer": "({a}+{d})x^4+({c}-{e})x^3+({b}-{f})x", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "mustmatchpattern": {"pattern": "`+-$n`?*x^4+`+-$n`?*x^3+`+-$n`?*x", "partialCredit": 0, "message": "", "nameToCompare": ""}, "valuegenerators": [{"name": "x", "value": ""}]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "AB4 multiply terms", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "Filling in the blanks from the answer to a simplified expression involving indices.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Find the missing factor in the following statement:
\n\\[ \\var{3*a}x^\\var{b}y^\\var{c} = \\var{a}x^\\var{d}(?)\\]
", "advice": "We can divide the left handside of the expression by the factor given on the right hand side of the expression to work out the missing factor:
\n\\[\\begin{split}
\\var{3*a}x^\\var{b}y^{\\var{c}}&=\\var{a}x^\\var{d}(?)\\\\
\\Rightarrow \\frac{\\var{3*a}x^\\var{b}y^{\\var{c}}}{\\var{a}x^\\var{d}}&=(?)\\\\
\\Rightarrow 3x^{\\var{b}-\\var{d}}y^\\var{c} &=(?),
\\end{split}\\]
which after simplifying gives the answer:
\n\\[(?) = 3x^{\\var{b-d}}y^{\\var{c}}\\]
\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"b": {"name": "b", "group": "Ungrouped variables", "definition": "Random(-3..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "d": {"name": "d", "group": "Ungrouped variables", "definition": "Random(-5..8 except [b,0])", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "Random(-3..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "Random(2..9)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["b", "d", "c", "a"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "3x^{b-d}y^{c}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "x", "value": ""}, {"name": "y", "value": ""}]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "AB8 Expand Double Brackets (Hard)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Poppy Jeffries", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21275/"}, {"name": "Lauren Desoysa", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21504/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "Expand two brackets involving powers of $x$.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Expand the brackets and simplify
", "advice": "To expand the brackets $\\simplify{({a[1]}x^{b[1]}+{a[2]}x^{b[2]})({a[3]}x^{b[3]}+{c[1]}x^{b[4]})}$ We first multiply all the terms in the left bracket by all the terms in the right bracket. This gives us
\n\\[\\var{a[1]}x^\\var{b[1]}\\times\\var{a[3]}x^\\var{b[3]}+\\var{a[1]}x^\\var{b[1]}\\times\\var{c[1]}x^\\var{b[4]}+\\var{a[2]}x^\\var{b[2]}\\times\\var{a[3]}x^\\var{b[3]}+\\var{a[2]}x^\\var{b[2]}\\times\\var{c[1]}x^\\var{b[4]}\\]
\nWe can then simplify to give us the final answer of
\n$\\simplify{{a[1]*a[3]}*x^{b[1]+b[3]}+{a[1]*c[1]}*x^{b[1]+b[4]}+{a[2]*a[3]}*x^{b[2]+b[3]}+{a[2]*c[1]}*x^{b[2]+b[4]}}.$
\n
Use this link to find some resources which will help you revise this topic.
$\\simplify{({a[1]}x^{b[1]}+{a[2]}x^{b[2]})({a[3]}x^{b[3]}+{c[1]}x^{b[4]})}=$[[0]]
", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{a[1]*a[3]}*x^{b[1]+b[3]}+{a[1]*c[1]}*x^{b[1]+b[4]}+{a[2]*a[3]}*x^{b[2]+b[3]}+{a[2]*c[1]}*x^{b[2]+b[4]}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "x", "value": ""}]}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "AB9 HCF of Algebraic Terms", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "Fiind the Highest Common Factor of two algebraic expressions involving a coefficient and powers of $x$ and $y$.
\n", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "What is the highest common factor of $\\var{c[0]}x^\\var{xp[0]}y^\\var{yp[0]}$ and $\\var{c[1]}x^\\var{xp[1]}y^\\var{yp[1]}$?
", "advice": "In order to find the highest common factor of two single term algebraic expressions you can first find the highest common factor of the coefficients.
\n\nIn this case the Highest common factor of $\\var{c[0]}$ and $\\var{c[1]}$ is $\\var{cans}$.
\nThen work through each of the variables (letters) in turn and see what powers of each appear. In the first expression there is $x^\\var{xp[0]}$ and the second expression there is $x^\\var{xp[1]}$. So they both have at least $x^\\var{xpans}$ in them. Similarly, the first expression there is $y^\\var{yp[0]}$ and the second expression there is $y^\\var{yp[1]}$. So they both have at least $y^\\var{ypans}$ in them.
\nHence, the Highest Common Factor (HCF) of the two expressions is:
\n\\[\\var{cans}x^\\var{xpans}y^\\var{ypans}.\\]
\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"c": {"name": "c", "group": "Ungrouped variables", "definition": "repeat(2*random(6..25),2)", "description": "", "templateType": "anything", "can_override": false}, "xp": {"name": "xp", "group": "Ungrouped variables", "definition": "repeat(random(1..8),2)", "description": "", "templateType": "anything", "can_override": false}, "yp": {"name": "yp", "group": "Ungrouped variables", "definition": "repeat(random(1..8 except [xp[0],xp[1]]),2)", "description": "", "templateType": "anything", "can_override": false}, "cans": {"name": "cans", "group": "Ungrouped variables", "definition": "GCD(c[0],c[1])", "description": "", "templateType": "anything", "can_override": false}, "xpans": {"name": "xpans", "group": "Ungrouped variables", "definition": "min(xp[0],xp[1])", "description": "", "templateType": "anything", "can_override": false}, "ypans": {"name": "ypans", "group": "Ungrouped variables", "definition": "min(yp[0],yp[1])", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "xp[0]<>xp[1] AND c[0]<>c[1]", "maxRuns": 100}, "ungrouped_variables": ["c", "xp", "yp", "cans", "xpans", "ypans"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{cans}*x^{xpans}*y^{ypans}", "answerSimplification": "basic", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": true, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "x", "value": ""}, {"name": "y", "value": ""}]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "AC3 Algebraic substitution", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "Substitute values into an algebraic expression and calculate the result.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Evaluate the following expression,
\n\\[\\simplify{p^{n}+{a}*r*t+{c}},\\]
\nwhen $p = \\var{pval}$, $r = \\var{rval}$, and $t = \\var{tval}$.
", "advice": "In order to evaluate $\\simplify{p^{n}+{a}*r*t+{c}},$ with the given values, $p = \\var{pval}$, $r = \\var{rval}$, and $t = \\var{tval}$, we replace each instance of that letter with its corresponding value and then apply the rules of BIDMAS:
\n\\[\\var{pval}^\\var{n}+\\var{a}\\times \\var{rval} \\times \\var{tval} + \\var{c}\\]
\nWhich gives the answer $\\var{ans}$.
\nFollow this link for more help on tackling these kind of questions.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"n": {"name": "n", "group": "Ungrouped variables", "definition": "random(2 .. 3#1)", "description": "", "templateType": "randrange", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(2 .. 9#1)", "description": "", "templateType": "randrange", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "Random(-6..6 except 0)", "description": "", "templateType": "anything", "can_override": false}, "pval": {"name": "pval", "group": "Ungrouped variables", "definition": "random(2 .. 9#1)", "description": "", "templateType": "randrange", "can_override": false}, "rval": {"name": "rval", "group": "Ungrouped variables", "definition": "random(-9 .. -2#1)", "description": "", "templateType": "randrange", "can_override": false}, "tval": {"name": "tval", "group": "Ungrouped variables", "definition": "random(-12..12 except 0)", "description": "", "templateType": "anything", "can_override": false}, "ans": {"name": "ans", "group": "Ungrouped variables", "definition": "{pval}^{n}+{a}*{rval}*{tval}+{c}", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["n", "a", "c", "pval", "rval", "tval", "ans"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{pval}^{n}+{a}*{rval}*{tval}+{c}", "maxValue": "{pval}^{n}+{a}*{rval}*{tval}+{c}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "AC5 Simultaneous Equations (one non-linear)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}], "tags": [], "metadata": {"description": "Solving a pair of simultaneous equations of the form $a_1x+y=c_1$ and $a_2x^2+b_2xy=c_2$ by forming a quadratic equation.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Solve the following simultaneous equations:
\n\\[ \\begin{split} \\simplify{{a1}x+y} &\\,= \\var{c1} \\\\ \\simplify{{a2}x^2+{b2}x*y} &\\,= \\var{c2} \\end{split} \\]
\n\nGive your answers to 2 decimal places where necessary.
", "advice": "To solve a pair of simultaneous equations of this type we want to rearrange the linear equation such that $y$ is the subject, which we can then substitute into the equation with the quadratic $x$-term. This will result in a quadratic equation in terms of $x$ only.
\nFor the equations
\n\\[ \\begin{split} \\simplify{{a1}x+y} &\\,= \\var{c1} \\qquad \\qquad &(1) \\\\\\simplify{{a2}x^2+{b2}x*y} &\\,= \\var{c2} \\qquad \\qquad &(2) \\end{split} \\]
\nwe can rearrange equation (1) to make $y$ the subject:
\n\\[ y = \\simplify{{c1}-{a1}x}. \\qquad\\qquad (3)\\]
\nSubstituting this into equation (2):
\n\\[ \\begin{split}\\simplify{{a2}x^2+{b2}x({c1}-{a1}x)} &\\,=\\var{c2} \\\\ \\simplify[!cancelTerms,unitFactor]{{a2}x^2+{b2*c1}x-{b2*a1}x^2} &\\,=\\var{c2}. \\end{split} \\]
\nCollecting similar terms:
\n\\[ \\simplify{({a2}-{b2*a1})x^2+{b2*c1}x-{c2}} =0. \\qquad\\qquad (4) \\]
\nUsing the quadratic formula, we find two solutions for $x$:
\n{check}
\nTherefore, the 2 pairs of solutions for these simultaneous equations are
\n\\[ (x_1,y_1) = (\\var{x1dp},\\var{y1dp}) \\] and \\[ (x_2,y_2) = (\\var{x2dp},\\var{y2dp}). \\]
\n\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a1": {"name": "a1", "group": "Ungrouped variables", "definition": "random(-5..-1)", "description": "", "templateType": "anything", "can_override": false}, "c1": {"name": "c1", "group": "Ungrouped variables", "definition": "random(1..6)", "description": "", "templateType": "anything", "can_override": false}, "a2": {"name": "a2", "group": "Ungrouped variables", "definition": "random(1..3)", "description": "", "templateType": "anything", "can_override": false}, "b2": {"name": "b2", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "c2": {"name": "c2", "group": "Ungrouped variables", "definition": "random(0..10)", "description": "", "templateType": "anything", "can_override": false}, "solx1": {"name": "solx1", "group": "Ungrouped variables", "definition": "(-b2*c1-sqrt((b2^2*c1^2)+4(a2-a1*b2)*c2))/(2(a2-b2*a1))", "description": "", "templateType": "anything", "can_override": false}, "solx2": {"name": "solx2", "group": "Ungrouped variables", "definition": "(-b2*c1+sqrt((b2^2*c1^2)+4(a2-a1*b2)*c2))/(2(a2-b2*a1))", "description": "", "templateType": "anything", "can_override": false}, "soly1": {"name": "soly1", "group": "Ungrouped variables", "definition": "c1-a1*solx1", "description": "", "templateType": "anything", "can_override": false}, "soly2": {"name": "soly2", "group": "Ungrouped variables", "definition": "c1-a1*solx2", "description": "", "templateType": "anything", "can_override": false}, "x2dp": {"name": "x2dp", "group": "Ungrouped variables", "definition": "precround(solx2,2)", "description": "", "templateType": "anything", "can_override": false}, "y1dp": {"name": "y1dp", "group": "Ungrouped variables", "definition": "precround(soly1,2)", "description": "", "templateType": "anything", "can_override": false}, "y2dp": {"name": "y2dp", "group": "Ungrouped variables", "definition": "precround(soly2,2)", "description": "", "templateType": "anything", "can_override": false}, "x1dp": {"name": "x1dp", "group": "Ungrouped variables", "definition": "precround(solx1,2)", "description": "", "templateType": "anything", "can_override": false}, "solutions1": {"name": "solutions1", "group": "Ungrouped variables", "definition": "matrix([x1dp,y1dp])", "description": "", "templateType": "anything", "can_override": false}, "solutions2": {"name": "solutions2", "group": "Ungrouped variables", "definition": "matrix([x2dp,y2dp])", "description": "", "templateType": "anything", "can_override": false}, "check": {"name": "check", "group": "Ungrouped variables", "definition": "if(x1dp=round(x1dp) and x2dp=round(x2dp),'{text}', if(x1dp=round(x1dp),'{text1}',if(x2dp=round(x2dp),'{text2}','{text3}')))", "description": "", "templateType": "anything", "can_override": false}, "text1": {"name": "text1", "group": "Ungrouped variables", "definition": "\"\\\\[ x_1 = \\\\var{x1dp} \\\\, \\\\quad \\\\text{and} \\\\quad x_2=\\\\var{x2dp} \\\\, \\\\text{ (2 d.p.)} \\\\]
\\nTo find the corresponding $y$-values, we can plug these solutions for $x$ back into equation (3), which gives:
\\n\\\\[ y_1 = \\\\var{y1dp} \\\\, \\\\quad \\\\text{and} \\\\quad y_2=\\\\var{y2dp} \\\\, \\\\text{(2 d.p.)} \\\\]
\"", "description": "", "templateType": "long string", "can_override": false}, "text2": {"name": "text2", "group": "Ungrouped variables", "definition": "\"\\\\[ x_1 = \\\\var{x1dp} \\\\, \\\\text{ (2 d.p.)}\\\\quad \\\\text{and} \\\\quad x_2=\\\\var{x2dp} \\\\]
\\nTo find the corresponding $y$-values, we can plug these solutions for $x$ back into equation (3), which gives:
\\n\\\\[ y_1 = \\\\var{y1dp} \\\\, \\\\text{(2 d.p.)} \\\\quad \\\\text{and} \\\\quad y_2=\\\\var{y2dp} \\\\]
\"", "description": "", "templateType": "long string", "can_override": false}, "text3": {"name": "text3", "group": "Ungrouped variables", "definition": "\"\\\\[ x_1 = \\\\var{x1dp} \\\\, \\\\text{ (2 d.p.)}\\\\quad \\\\text{and} \\\\quad x_2=\\\\var{x2dp} \\\\, \\\\text{(2 d.p.)} \\\\]
\\nTo find the corresponding $y$-values, we can plug these solutions for $x$ back into equation (3), which gives:
\\n\\\\[ y_1 = \\\\var{y1dp} \\\\, \\\\text{(2 d.p.)} \\\\quad \\\\text{and} \\\\quad y_2=\\\\var{y2dp} \\\\, \\\\text{(2 d.p.)} \\\\]
\"", "description": "", "templateType": "long string", "can_override": false}, "text": {"name": "text", "group": "Ungrouped variables", "definition": "\"\\\\[ x_1 = \\\\var{x1dp} \\\\, \\\\quad \\\\text{and} \\\\quad x_2=\\\\var{x2dp}\\\\]
\\nTo find the corresponding $y$-values, we can plug these solutions for $x$ back into equation (3), which gives:
\\n\\\\[ y_1 = \\\\var{y1dp} \\\\, \\\\quad \\\\text{and} \\\\quad y_2=\\\\var{y2dp} \\\\]
\"", "description": "", "templateType": "long string", "can_override": false}}, "variablesTest": {"condition": "(a2-a1*b2)>0 and (b2^2*c1^2+4(a2-a1*b2)*c2)>0 and gcd(a2,b2)=1", "maxRuns": 100}, "ungrouped_variables": ["a1", "c1", "a2", "b2", "c2", "solx1", "solx2", "soly1", "soly2", "x1dp", "y1dp", "x2dp", "y2dp", "solutions1", "solutions2", "check", "text", "text1", "text2", "text3"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "$(x_1,y_1)=$[[0]]
\n$(x_2,y_2)=$[[1]]
", "gaps": [{"type": "matrix", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "alternatives": [{"type": "matrix", "useCustomName": false, "customName": "", "marks": "1", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "alternativeFeedbackMessage": "", "useAlternativeFeedback": false, "correctAnswer": "solutions2", "correctAnswerFractions": false, "numRows": 1, "numColumns": "2", "allowResize": false, "tolerance": 0, "markPerCell": true, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": ""}], "correctAnswer": "solutions1", "correctAnswerFractions": false, "numRows": 1, "numColumns": "2", "allowResize": false, "tolerance": 0, "markPerCell": true, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": ""}, {"type": "matrix", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "alternatives": [{"type": "matrix", "useCustomName": false, "customName": "", "marks": "1", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "alternativeFeedbackMessage": "", "useAlternativeFeedback": false, "correctAnswer": "solutions1", "correctAnswerFractions": false, "numRows": 1, "numColumns": "2", "allowResize": false, "tolerance": 0, "markPerCell": true, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": ""}], "correctAnswer": "solutions2", "correctAnswerFractions": false, "numRows": 1, "numColumns": "2", "allowResize": false, "tolerance": 0, "markPerCell": true, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": ""}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "AC6 Rearrange Formulae", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4679/"}, {"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}, {"name": "Luigi Pivano", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/18182/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "Rearrange a specific formula. No randomisation.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Rearrange the following equation, to make $y$ the subject:
\n\\[{cy -b = 3x}\\]
", "advice": "In order to rearrange the equation so that it is in terms of $y$, we must first add $b$ to both sides, and then divide both sides of the equation by $c$:
\n\\begin{split} cy-b &= 3x \\\\ cy &= 3x + b \\\\ y &=\\frac{3x+b}{c} \\end{split}
\n\nUse this link to find some resources which will help you revise this topic.
\n", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "$y=$ [[0]]
", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "(3x+b)/c", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "b", "value": ""}, {"name": "c", "value": ""}, {"name": "x", "value": ""}]}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "AC7 Solve Linear equations with fractions 2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "heike hoffmann", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2960/"}, {"name": "sean hunte", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3167/"}, {"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}, {"name": "Megan Oliver", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/23526/"}], "tags": [], "metadata": {"description": "Solve linear equations with unkowns on both sides. Including brackets and fractions.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "", "advice": "To solve an equation like
\n$\\displaystyle{\\frac{\\var{a}}{y}=\\frac{\\var{b}}{y+\\var{c}}},$
\nthe first thing to deal with is that the unknown ($y$) that you are trying to find is in the denominator (on the bottom) of the fractions. In order to do that you first times by $y$ on both sides and $(y+\\var{c})$ on both sides leading to
\n\\[\\var{a}(y+\\var{c}) = \\var{b}y.\\]
\nFrom here, multiply out the brackets,
\n\\[\\var{a}y +\\var{a*c} = \\var{b}y.\\]
\nNow collect the $y$-terms on one side and the numbers on the other,
\n\\[\\var{a-b}y=\\var{-a*c}.\\]
\nFinally divide by the coefficient of $y$,
\n\\[y=\\frac{\\var{-a*c}}{\\var{a-b}}.\\]
\n\nUse this link to find resources to help you revise how to solve linear equations
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"c": {"name": "c", "group": "Ungrouped variables", "definition": "random(1..12)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(1..12)", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(1..12)", "description": "", "templateType": "anything", "can_override": false}, "ans1": {"name": "ans1", "group": "Ungrouped variables", "definition": "(-a*c)/(a-b)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "a<>b AND GCD(-a*c,a-b)<(a-b)", "maxRuns": "100"}, "ungrouped_variables": ["a", "b", "c", "ans1"], "variable_groups": [{"name": "e", "variables": []}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "Solve $\\displaystyle{\\frac{\\var{a}}{y}=\\frac{\\var{b}}{y+\\var{c}}}$.
\n$y=$ [[0]] (Give your answer as a fraction)
", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "fraction", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "ans1", "maxValue": "ans1", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "AD1 Factorising a Quadratic (a=1)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Chris Graham", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/369/"}, {"name": "Hannah Aldous", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1594/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}], "tags": ["factorisation", "Factorisation", "factorising quadratic equations", "Factorising quadratic equations", "taxonomy"], "metadata": {"description": "Factorise three quadratic equations of the form $x^2+bx+c$.
\nThe first has two negative roots, the second has one negative and one positive, and the third is the difference of two squares.
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "Factorise the following quadratic equation.
", "advice": "Quadratic equations of the form
\n\\[x^2+bx+c=0\\]
\ncan be factorised to create an equation of the form
\n\\[(x+m)(x+n)=0\\text{.}\\]
\nWhen we expand a factorised quadratic expression we obtain
\n\\[(x+m)(x+n)=x^2+(m+n)x+(m \\times n)\\text{.}\\]
\nTo factorise an equation of the form $x^2+bx+c$, we need to find two numbers which add together to make $b$, and multiply together to make $c$.
\n\nWe need to find two values that add together to make $\\var{v3+v4}$ and multiply together to make $\\var{v3*v4}$.
\n\\[\\begin{align}
\\var{v3} \\times \\var{v4}&=\\var{v3*v4}\\\\
\\var{v3}+\\var{v4}&=\\var{v3+v4}\\\\
\\end{align} \\]
So the factorised form of the equation is
\n\\[\\simplify{(x+{v3})(x+{v4})}=0\\text{.}\\]
\n\nUse this link to find some resources which will help you revise this topic
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"v1": {"name": "v1", "group": "Part A ", "definition": "random(1..10)", "description": "", "templateType": "anything", "can_override": false}, "v2": {"name": "v2", "group": "Part A ", "definition": "random(2..6 except v1)", "description": "", "templateType": "anything", "can_override": false}, "v4": {"name": "v4", "group": "Part A ", "definition": "random(1..10 except -v3)", "description": "", "templateType": "anything", "can_override": false}, "v5": {"name": "v5", "group": "Part A ", "definition": "random(2..10)", "description": "", "templateType": "anything", "can_override": false}, "v3": {"name": "v3", "group": "Part A ", "definition": "random(-8..-1)", "description": "", "templateType": "anything", "can_override": false}, "v6": {"name": "v6", "group": "Part A ", "definition": "-v5", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "Part A ", "variables": ["v1", "v2", "v3", "v4", "v5", "v6"]}], "functions": {}, "preamble": {"js": "question.is_factorised = function(part,penalty) {\n penalty = penalty || 0;\n if(part.credit>0) {\n // Parse the student's answer as a syntax tree\n var studentTree = Numbas.jme.compile(part.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\n var rule = Numbas.jme.compile('m_all(m_any(x,x+m_pm(m_number),x^m_number,(x+m_pm(m_number))^m_number))*m_nothing');\n\n // Check the student's answer matches the pattern. \n var m = Numbas.jme.display.matchTree(rule,studentTree,true);\n // If not, take away marks\n if(!m) {\n part.multCredit(penalty,'Your answer is not fully factorised.');\n }\n }\n}", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "$\\simplify{x^2+{v3+v4}x+{v3*v4}}=0$
\n[[0]] $=0$
\n", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "(x+{v3})(x+{v4})", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "mustmatchpattern": {"pattern": "(`+-x^$n`? + `+- $n)`* * $z", "partialCredit": 0, "message": "Your answer is not fully factorised.", "nameToCompare": ""}, "valuegenerators": [{"name": "x", "value": ""}]}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "AD3 Completing the square", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Hannah Aldous", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1594/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}], "tags": ["complete the square", "completing the square", "taxonomy"], "metadata": {"description": "
Rearrange expressions in the form $ax^2+bx+c$ to $a(x+b)^2+c$.
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "We can rewrite quadratic equations given in the form $ax^2+bx+c$ as a square plus another term - this is called \"completing the square\".
\nThis can be useful when it isn't obvious how to fully factorise a quadratic equation.
\nRewrite the following expressions in the form \\[(x+b)^2-c\\]
", "advice": "Completing the square works by noticing that
\n\\[ (x+a)^2 = x^2 + 2ax + a^2 \\]
\nSo when we see an expression of the form $x^2 + 2ax$, we can rewrite it as $(x+a)^2-a^2$.
\n\nReplace $x^2+\\var{evens2}x$ with $(x+\\var{evens2/2})^2 - \\var{evens2/2}^2$. Remember to keep the $\\var{evens2-evens1}$ term on the end!
\n\\begin{align}
\\simplify[basic]{ x^2 + {evens2}x + {evens2-evens1}} &= \\simplify[basic]{ (x+{evens2/2})^2 - {evens2/2}^2 + {evens2-evens1} } \\\\
&= \\simplify[basic]{ (x+{evens2/2})^2 + {evens2-evens1 - evens2^2/4} }
\\end{align}
Use this link to find some resources which will help you revise this topic.
\n$\\simplify {x^2+ {evens2}x +{evens2-evens1}} =$ [[0]]
It doesn't look like you've completed the square.
"}, "valuegenerators": [{"name": "x", "value": ""}]}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "AD5 Difference of two squares", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Megan Oliver", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/23526/"}], "tags": [], "metadata": {"description": "Factorising a quadratic expression of the form $a^2x^2-b^2$ to $(ax+b)(ax-b)$, using the difference of two squares formula.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Factorise the following quadratic expression:
\n\\[ \\simplify[unitFactor]{{a^2}x^2-{c^2}} \\]
", "advice": "For a quadratic expression of this form we can make use of the Difference of Squares formula, which states that \\[a^2-b^2 = (a+b)(a-b).\\]
\nTherefore,
\n\\[ \\simplify[unitFactor]{{a^2}x^2-{c^2} = ({a}x+{c})({a}x-{c})}. \\]
\n", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(1..5)", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(1..10 except a)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "c"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "({a}x+{c})({a}x-{c})", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "mustmatchpattern": {"pattern": "($n`?*x+`+-$n)($n`?*x+`+-$n)", "partialCredit": 0, "message": "", "nameToCompare": ""}, "valuegenerators": [{"name": "x", "value": ""}]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "AE2 Algebraic Fractions - addition (harder)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "Simplify the sum of two algebraic fractions where spotting factorising of both numerators and denominators can reduce the work massively.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Write the following as a single fraction $\\frac{\\var{num1}}{\\var{den1}}+\\frac{\\var{num2}}{\\var{den2}}$ simplifying as much as possible. Your answer should be in the form $\\frac{\\alpha\\var{v}+\\beta}{\\delta\\var{v}^2-\\gamma}.$
", "advice": "To write the following as a single fraction $\\frac{\\var{num1}}{\\var{den1}}+\\frac{\\var{num2}}{\\var{den2}}$ first factorise as much as possible and look for any cancellations:
\n\\[\\begin{split}
&\\frac{\\var{a}\\times\\var{b}}{\\var{den1fact}} + \\frac{\\var{num2}}{\\var{den2fact}}\\\\
& = \\frac{\\var{b}}{\\var{den1simp}} + \\frac{1}{\\var{f1c}}.
\\end{split}\\]
Then get a common denominator for the two fractions and combine into a single fraction:
\n\\[\\begin{split}
&\\frac{\\var{b}}{\\var{den1simp}} + \\frac{\\var{f1}}{\\var{den1simp}}\\\\
& = \\frac{\\var{b}+\\var{f1}}{\\var{den1simp}}\\\\
& = \\var{ans}.
\\end{split}\\]
Use this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Set up", "definition": "random(2 .. 6#1)", "description": "", "templateType": "randrange", "can_override": false}, "b": {"name": "b", "group": "Set up", "definition": "random(2 .. 5#1)", "description": "", "templateType": "randrange", "can_override": false}, "v": {"name": "v", "group": "Set up", "definition": "random(\"a\",\"b\",\"c\",\"d\",\"f\",\"g\",\"h\",\"k\",\"m\",\"n\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\")", "description": "", "templateType": "anything", "can_override": false}, "cf1": {"name": "cf1", "group": "Set up", "definition": "repeat(random(2..4),2)", "description": "", "templateType": "anything", "can_override": false}, "f1": {"name": "f1", "group": "Set up", "definition": "simplify(cf1[0]+\"*\"+v+\"+\"+cf1[1],\"all\")", "description": "", "templateType": "anything", "can_override": false}, "f1c": {"name": "f1c", "group": "Set up", "definition": "simplify(cf1[0]+\"*\"+v+\"-\"+cf1[1],\"all\")", "description": "", "templateType": "anything", "can_override": false}, "cf2": {"name": "cf2", "group": "Set up", "definition": "repeat(random(2..5),2)", "description": "", "templateType": "anything", "can_override": false}, "f2": {"name": "f2", "group": "Set up", "definition": "simplify(cf2[0]+\"*\"+v+\"+\"+cf2[1],\"all\")", "description": "", "templateType": "anything", "can_override": false}, "den1fact": {"name": "den1fact", "group": "Advice", "definition": "simplify(a+\"*\"+\"(\"+string(f1)+\")*(\"+string(f1c)+\")\",\"all\")", "description": "", "templateType": "anything", "can_override": false}, "num1": {"name": "num1", "group": "Question", "definition": "a*b", "description": "", "templateType": "anything", "can_override": false}, "den2": {"name": "den2", "group": "Question", "definition": "simplify(den2fact,[\"expandBrackets\",\"all\"])", "description": "", "templateType": "anything", "can_override": false}, "num2": {"name": "num2", "group": "Question", "definition": "simplify(f2,\"all\")", "description": "", "templateType": "anything", "can_override": false}, "den1": {"name": "den1", "group": "Question", "definition": "simplify(den1fact,[\"expandBrackets\",\"all\"])", "description": "", "templateType": "anything", "can_override": false}, "den2fact": {"name": "den2fact", "group": "Advice", "definition": "simplify(expression(\"(\"+string(f1c)+\")*(\"+string(f2)+\")\"),\"all\")", "description": "", "templateType": "anything", "can_override": false}, "ansn": {"name": "ansn", "group": "Question", "definition": "simplify(string(f1) + \"+\" + b,\"all\")", "description": "", "templateType": "anything", "can_override": false}, "ansd": {"name": "ansd", "group": "Question", "definition": "simplify(expression(\"(\"+string(f1)+\")\"+\"*\"+ \"(\"+string(f1c)+\")\"),[\"expandBrackets\",\"all\"])", "description": "", "templateType": "anything", "can_override": false}, "ans": {"name": "ans", "group": "Question", "definition": "simplify(expression(\"(\"+string(ansn)+\")\"+\"/\"+\"(\"+string(ansd)+\")\"),\"all\")", "description": "", "templateType": "anything", "can_override": false}, "den1simp": {"name": "den1simp", "group": "Advice", "definition": "simplify(\"(\"+string(f1)+\")*(\"+string(f1c)+\")\",\"all\")", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "f1<>f2 AND f1c<>f2 AND cf1[0]<>cf1[1] AND cf2[0]<>cf2[1]", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "Set up", "variables": ["a", "b", "v", "cf1", "f1", "f1c", "cf2", "f2"]}, {"name": "Question", "variables": ["num1", "den1", "num2", "den2", "ansn", "ansd", "ans"]}, {"name": "Advice", "variables": ["den1fact", "den2fact", "den1simp"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{ans}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "mustmatchpattern": {"pattern": "?`+/?`+", "partialCredit": 0, "message": "", "nameToCompare": ""}, "valuegenerators": []}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "AE3 - Cancelling algebraic fractions", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Luke Park", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/826/"}, {"name": "Anna Strzelecka", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2945/"}, {"name": "heike hoffmann", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2960/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}], "tags": [], "metadata": {"description": "A question to practice simplifying fractions with the use of factorisation (for binomial and quadratic expressions).
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "Simplify the following algebraic expression.
", "advice": "\\[\\frac{{\\simplify{(n^2+({e1}+{e2})n+{e1}{e2})}}}{{\\simplify{(n^2+({e1}+{e3})n+{e1}{e3})}}}\\]
\nIn this question there is a quadratic expression which needs to be factorised into the products of binomials in both the numerator and denominator.
\n\\[\\frac{({\\simplify{n+{e1}}})({\\simplify{n+{e2}}})}{({\\simplify{n+{e1}}})({\\simplify{n+{e3}}})}\\]
\nThe repeated binomials in the numerator and denominator cancel, leaving:
\n\\[\\frac{({\\simplify{n+{e2}}})}{({\\simplify{n+{e3}}})}\\]
\n\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"e2": {"name": "e2", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "e1": {"name": "e1", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "e3": {"name": "e3", "group": "Ungrouped variables", "definition": "random(-5..5 except 0 except e2)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["e1", "e2", "e3"], "variable_groups": [], "functions": {"": {"parameters": [], "type": "number", "language": "jme", "definition": ""}}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "\\[\\frac{\\simplify{(n^2+({e1}+{e2})n+{e1}{e2})}}{\\simplify{(n^2+({e1}+{e3})n+{e1}{e3})}}\\]
", "answer": "(n+{e2})/(n+{e3})", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "notallowed": {"strings": ["^2", "^"], "showStrings": false, "partialCredit": 0, "message": ""}, "valuegenerators": [{"name": "n", "value": ""}]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "AE5 - Multiplication of algebraic fractions 2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "Simplifying first is essential in terms of managing expressions that might need factorising.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Expand and simplify $\\displaystyle{\\var{LeftMul}\\times\\var{RightMul}}.$
", "advice": "Before we multiply the fractions together first lets check if we can do any cancellation. Notice that $\\var{RightMulBottom}$ has a factor of $\\var{Num}$ so we can cancel this straight away.
\nWe also have a factor of $x$ in both $\\var{QuadCoeff[0]}x^2+\\var{QuadCoeff[1]}x$ and $\\var{RightMulTop}$ so we're now left with multiplying
\n\\[\\frac1{\\var{QuadCoeff[0]}x+\\var{QuadCoeff[1]}}\\times\\frac{\\simplify[all,expandBrackets]{(x+{Lin1Coeff})*({QuadCoeff[0]}x+{QuadCoeff[1]})}}{\\var{Lin2Coeff[0]}x+\\var{Lin2Coeff[1]}}.\\]
\nWe're not necesserily done with cancellation though! To make sure that a fraction with a quadratic is simplified we have to factorise it to make sure there are no linear factors we can cancel. In this case we have
\\[\\simplify[all,expandBrackets]{(x+{Lin1Coeff})*({QuadCoeff[0]}x+{QuadCoeff[1]})}={(x+\\var{Lin1Coeff})(\\var{QuadCoeff[0]}x+\\var{QuadCoeff[1]})}.\\]
This gives us one last factor to cancel and then we can finally multiply whats left of each fraction to give us a final answer of
\n\\[\\var{ans}.\\]
\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"QuadCoeff": {"name": "QuadCoeff", "group": "Ungrouped variables", "definition": "[random(1..6),random(1..6)]", "description": "", "templateType": "anything", "can_override": false}, "Num": {"name": "Num", "group": "Ungrouped variables", "definition": "random(2..6)", "description": "", "templateType": "anything", "can_override": false}, "Lin2Coeff": {"name": "Lin2Coeff", "group": "Ungrouped variables", "definition": "[random(1..6),random(1..6)]", "description": "", "templateType": "anything", "can_override": false}, "Lin1Coeff": {"name": "Lin1Coeff", "group": "Ungrouped variables", "definition": "random(1..6 except Lin2Coeff[1]/Lin2Coeff[0])", "description": "", "templateType": "anything", "can_override": false}, "Lin1": {"name": "Lin1", "group": "Ungrouped variables", "definition": "\"x\"+\"+\"+Lin1Coeff", "description": "", "templateType": "anything", "can_override": false}, "Lin2": {"name": "Lin2", "group": "Ungrouped variables", "definition": "Lin2Coeff[0]+\"x\"+\"+\"+Lin2Coeff[1]", "description": "", "templateType": "anything", "can_override": false}, "Quad": {"name": "Quad", "group": "Ungrouped variables", "definition": "QuadCoeff[0]+\"x^2+\"+QuadCoeff[1]+\"x\"", "description": "", "templateType": "anything", "can_override": false}, "LeftMul": {"name": "LeftMul", "group": "Ungrouped variables", "definition": "expression(Num+\"/(\"+Quad+\")\")", "description": "", "templateType": "anything", "can_override": false}, "RightMulTop": {"name": "RightMulTop", "group": "Ungrouped variables", "definition": "simplify(expression(\"(\"+Quad+\")*(\"+Lin1+\")\"),[\"expandBrackets\",\"all\"])", "description": "", "templateType": "anything", "can_override": false}, "RightMulBottom": {"name": "RightMulBottom", "group": "Ungrouped variables", "definition": "simplify(expression(Num+\"*(\"+Lin2+\")\"),[\"expandBrackets\",\"all\"])", "description": "", "templateType": "anything", "can_override": false}, "RightMul": {"name": "RightMul", "group": "Ungrouped variables", "definition": "expression(\"(\"+string(RightMulTop)+\")\"+\"/\"+\"(\"+string(RightMulBottom)+\")\")", "description": "", "templateType": "anything", "can_override": false}, "Ans": {"name": "Ans", "group": "Ungrouped variables", "definition": "expression(\"(\"+Lin1+\")/(\"+Lin2+\")\")", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["QuadCoeff", "Num", "Lin2Coeff", "Lin1Coeff", "Lin1", "Lin2", "Quad", "LeftMul", "RightMulTop", "RightMulBottom", "RightMul", "Ans"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{ans}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": true, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "mustmatchpattern": {"pattern": "(`+-$n`?*x+`+-$n`?)/(`+-$n`?*x+`+-$n`?)", "partialCredit": 0, "message": "", "nameToCompare": ""}, "valuegenerators": []}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "AE6 Partial Fractions", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}, {"name": "Oliver Spenceley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/23557/"}], "tags": [], "metadata": {"description": "Rewrite the expression $\\frac{mx^2+nx+k}{(x+a)(x^2+bx+c)}$ as partial fractions in the form $\\frac{A}{x+a}+\\frac{Bx+C}{x^2+bx+c}$.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Rewrite the following expression as partial fractions:
\n\\[ \\simplify{({m}x^2+{n}x+{k})/((x+{a})(x^2+{b}x+{c}))}. \\]
\n", "advice": "To express \\[ \\simplify{({m}x^2+{n}x+{k})/((x+{a})(x^2+{b}x+{c}))} \\] as partial fractions, we want to set this equal to the sum of two fractions with denominators $\\simplify{x+{a}}$ and $\\simplify{x^2+{b}x+{c}}$. Since we have a linear factor and a quadratic factor, this tells us that the form of the partial fractions will be
\n\\[ \\simplify{({m}x^2+{n}x+{k})/((x+{a})(x^2+{b}x+{c}))} = \\simplify{A/(x+{a}) + (B*x+C)/(x^2+{b}x+{c})},\\]
\nwhere $A$, $B$, and $C$ are constants.
\nTo find the values of $A$, $B$, and $C$, we want to first multiply this equation by the denominator of the left-hand side. This gives
\n\\[ \\simplify{{m}x^2+{n}x+{k}=A(x^2+{b}x+{c})+B*x(x+{a}) + C(x+{a})}.\\]
\n(Note: To find $A$, $B$, and $C$, we will use a combination of choosing suitable values of $x$ to eliminate terms, and equating coefficients. It can be solved by only equating coefficients, but this is a more efficient process.)
\n\nTo find $A$, we can eliminate $B$ and $C$ by setting $x=\\var{-a}$:
\n\\[ \\simplify{{m*a^2-n*a+k}=A{(a^2-b*a+c)}} \\implies A=\\simplify[fractionNumbers]{{Asol}}.\\]
\nTo find $C$, we can eliminate $B$ by setting $x=0$ and substituting in the result of $A$:
\n\\[ \\simplify{{k}={c}A+{a}C} \\implies C=\\simplify[all,fractionNumbers]{({k}-{c}A)/{a}}.\\]
\nHence,
\n\\[ C = \\simplify[fractionNumbers]{{Csol}}.\\]
\nFinally, by equating coefficients of the $x^2$-terms we can find $B$:
\n\\[ (x^2): \\quad \\var{m} = \\simplify{A+B} \\implies B=\\var{m}-A. \\]
\nTherefore, \\[ B=\\simplify[fractionNumbers]{{Bsol}}, \\]
\nand
\n{check}
\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(-6..6 except 0)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "pairs[index][1]", "description": "", "templateType": "anything", "can_override": false}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "if(k=1,random(-1,1)*random([1,3,4,5]),if (k=2,random(-1,1)*random([1,2,4,5]),if(k=3,random(-1,1)*random([1,2,3,5]),if(k=5,random(-1,1)*random([1,2,3,4,5,7]),random(-1,1)*random([1,2,3,4,5,7])))))", "description": "", "templateType": "anything", "can_override": false}, "Asol": {"name": "Asol", "group": "Ungrouped variables", "definition": "(m*a^2-n*a+k)/(a^2-b*a+c)", "description": "", "templateType": "anything", "can_override": false}, "Bsol": {"name": "Bsol", "group": "Ungrouped variables", "definition": "(m*c-m*b*a+n*a-k)/(a^2-b*a+c)", "description": "", "templateType": "anything", "can_override": false}, "Csol": {"name": "Csol", "group": "Ungrouped variables", "definition": "(k*(a-b)-m*a*c+n*c)/(a^2-a*b+c)", "description": "", "templateType": "anything", "can_override": false}, "check": {"name": "check", "group": "Ungrouped variables", "definition": "if(Asol=round(Asol) and Bsol=round(Bsol),'{sol1}',if(simp2=1,'{sol2}','{sol3}'))", "description": "", "templateType": "anything", "can_override": false}, "sol1": {"name": "sol1", "group": "Ungrouped variables", "definition": "\"\\\\[ \\\\simplify{({m}x^2+{n}x+{k})/((x+{a})(x^2+{b}x+{c}))} = \\\\simplify{{Asol}/(x+{a})+({Bsol}x+{Csol})/(x^2+{b}x+{c})}.\\\\]
\"", "description": "", "templateType": "long string", "can_override": false}, "sol2": {"name": "sol2", "group": "Ungrouped variables", "definition": "\"\\\\[ \\\\simplify{({m}x^2+{n}x+{k})/((x+{a})(x^2+{b}x+{c}))} = \\\\simplify[all,fractionNumbers]{{m*a^2-n*a+k}/({a^2-a*b+c}(x+{a}))+({m*c-m*b*a+n*a-k}x+{k*(a-b)-m*a*c+n*c})/({a^2-a*b+c}(x^2+{b}x+{c}))}.\\\\]
\"", "description": "", "templateType": "long string", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "pairs[index][0]", "description": "", "templateType": "anything", "can_override": false}, "simp1": {"name": "simp1", "group": "Ungrouped variables", "definition": "gcd(k*(a-b)-m*a*c+n*c,m*c-m*b*a+n*a-k)", "description": "", "templateType": "anything", "can_override": false}, "simp2": {"name": "simp2", "group": "Ungrouped variables", "definition": "gcd(simp1,a^2-a*b+c)", "description": "", "templateType": "anything", "can_override": false}, "sol3": {"name": "sol3", "group": "Ungrouped variables", "definition": "\"\\\\[ \\\\simplify{({m}x^2+{n}x+{k})/((x+{a})(x^2+{b}x+{c}))} = \\\\simplify[all,fractionNumbers]{{m*a^2-n*a+k}/({a^2-a*b+c}(x+{a}))+({(m*c-m*b*a+n*a-k)/simp2}x+{(k*(a-b)-m*a*c+n*c)/simp2})/({(a^2-a*b+c)/simp2}(x^2+{b}x+{c}))}.\\\\]
\"", "description": "", "templateType": "long string", "can_override": false}, "k": {"name": "k", "group": "Ungrouped variables", "definition": "random([1,2,3,5,7])", "description": "", "templateType": "anything", "can_override": false}, "m": {"name": "m", "group": "Ungrouped variables", "definition": "1", "description": "", "templateType": "anything", "can_override": false}, "pairs": {"name": "pairs", "group": "Ungrouped variables", "definition": "[[1,random(-1,1)*random([1,3,4,5])],[2,random(-1,1)*random([1,2,4,5])],[3,random(-1,1)*random([1,2,3,5])],[5,random(-1,1)*random([1,2,3,4,5,7])],[7,random(-1,1)*random([1,2,3,4,5,7])]]", "description": "", "templateType": "anything", "can_override": false}, "index": {"name": "index", "group": "Ungrouped variables", "definition": "random(0..4)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "a^2-a*b+c>0 or a^2-a*b+c<0", "maxRuns": 100}, "ungrouped_variables": ["a", "pairs", "index", "b", "c", "m", "k", "n", "Asol", "Bsol", "Csol", "check", "sol1", "sol2", "sol3", "simp1", "simp2"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "\n[[0]]
", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{(m*a^2-n*a+k)}/({a^2-a*b+c}(x+{a}))+({(m*c-m*b*a+n*a-k)/simp2}x+{(k*(a-b)-m*a*c+n*c)/simp2})/({(a^2-a*b+c)/simp2}(x^2+{b}x+{c}))", "answerSimplification": "all", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "mustmatchpattern": {"pattern": "`! (((`+-$n`?*x^2+`+-$n`?*x+`+-$n)/((x+`+-$n)(x^2+`+-$n*x+`+-$n))))", "partialCredit": 0, "message": "", "nameToCompare": ""}, "valuegenerators": [{"name": "x", "value": ""}]}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "GA4 Volume of a triangular prism", "extensions": [], "custom_part_types": [], "resources": [["question-resources/sqbasedpyramid_sEpkGzO.svg", "/srv/numbas/media/question-resources/sqbasedpyramid_sEpkGzO.svg"], ["question-resources/triangularprism.svg", "/srv/numbas/media/question-resources/triangularprism.svg"], ["question-resources/cylinder.svg", "/srv/numbas/media/question-resources/cylinder.svg"], ["question-resources/cuboid.svg", "/srv/numbas/media/question-resources/cuboid.svg"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Aiden McCall", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1592/"}, {"name": "Megan Oliver", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/23526/"}], "tags": ["3D shapes", "cuboid", "Cylinder", "cylinder", "pyramid", "taxonomy", "triangular prism", "volume", "Volume", "volume of a cuboid", "volume of a cylinder", "volume of a pyramid", "volume of a triangular prism"], "metadata": {"description": "Calculate the volume of different 3D shapes, given the units and measurements required. The formulae for the volume of each shape are available as steps if required.
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "advice": "For a triangular prism, we first need to find the area of one of the faces then multiply this area by the depth of the prism.
In this example the easiest way to calculate the volume is to take the area of the triangular face first with $\\mathrm{base} = \\var{w6}m$ and $\\mathrm{height} = \\var{h6}m\\thinspace$.
\\begin{align}
\\mathrm{Area\\thinspace_\\triangle} &= \\frac{\\mathrm{base} \\times \\mathrm{height}}{2} \\\\
&= \\frac{\\var{w6} \\times \\var{h6}}{2} \\\\
&= \\var{0.5*w6*h6}\\, \\mathrm{m}^2\\,.
\\end{align}
Now that we have the area of the triangular face ($\\mathrm{Area\\thinspace_\\triangle}$) we can multiply this by the $\\mathrm{depth} = \\var{d6}m\\thinspace$.
\n\\begin{align}
\\mathrm{Volume} &= \\mathrm{Area\\thinspace_\\triangle} \\times \\mathrm{depth} \\\\
&= \\var{0.5*w6*h6} \\times \\var{d6} \\\\
&= \\var{0.5*w6*h6*d6}\\, \\mathrm{m}^2\\,.
\\end{align}
Side of square in cuboid.
", "templateType": "anything", "can_override": false}, "w6": {"name": "w6", "group": "Triangular prism", "definition": "random(5..9#1)", "description": "Creates base of triangle.
", "templateType": "anything", "can_override": false}, "d8": {"name": "d8", "group": "Square based pyramid", "definition": "random(3..6#0.1)", "description": "One side of square base.
", "templateType": "anything", "can_override": false}, "h8": {"name": "h8", "group": "Square based pyramid", "definition": "random(3..7#1)", "description": "Height of pyramid.
", "templateType": "anything", "can_override": false}, "w7": {"name": "w7", "group": "Cylinder", "definition": "random(7..15#0.1)", "description": "Depth of cylinder.
", "templateType": "anything", "can_override": false}, "d6": {"name": "d6", "group": "Triangular prism", "definition": "random(9..15#0.1)", "description": "Depth of triangular prism.
", "templateType": "anything", "can_override": false}, "r7": {"name": "r7", "group": "Cylinder", "definition": "random(2..6#1)", "description": "Radius of the cylinder.
", "templateType": "anything", "can_override": false}, "h4": {"name": "h4", "group": "Cuboid ", "definition": "random(2..5#1 except d4)", "description": "Side of square in cuboid.
", "templateType": "anything", "can_override": false}, "w4": {"name": "w4", "group": "Cuboid ", "definition": "random(5.5..8#0.1)", "description": "Width of cuboid.
", "templateType": "anything", "can_override": false}, "w8": {"name": "w8", "group": "Square based pyramid", "definition": "random(3..7#1)", "description": "One side of square base.
", "templateType": "anything", "can_override": false}, "h6": {"name": "h6", "group": "Triangular prism", "definition": "random(2..5#1)", "description": "Height of traingle.
", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "Cuboid ", "variables": ["w4", "d4", "h4"]}, {"name": "Triangular prism", "variables": ["w6", "h6", "d6"]}, {"name": "Cylinder", "variables": ["r7", "w7"]}, {"name": "Square based pyramid", "variables": ["h8", "w8", "d8"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "Calculate the $\\mathrm{Volume}$ of the following triangular prism.
\n\n$\\mathrm{Volume} =$[[0]]$\\mathrm{m}^3$.
", "stepsPenalty": "1", "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "Volume of a triangular prism:
\n\\begin{align}
\\mathrm{Volume} &= \\mathrm{Area\\thinspace_\\triangle} \\times \\mathrm{depth} \\\\
&= \\frac{\\mathrm{base} \\times \\mathrm{height}}{2} \\times \\mathrm{depth}
\\end{align}
Find the volume of a prism with a trapezium as a cross section from a diagram.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Calculate the volume of this (all lengths are in $cm$):
\n{geogebra_applet('https://www.geogebra.org/m/qvcktek2',[basew: basew, topw: topw, h: h, l: l])}
", "advice": "In order to work out the volume of a prism you need to work out the cross sectional area first. In this question the cross section is a trapezium. Find the area of a trapezium,
\n\\begin{align} \\frac{\\var{basew}+\\var{topw}}{2}\\times \\var{h} = \\var{traparea} cm^2 \\end{align}
\nThen to calculate the volume you times the cross-sectional area by the length,
\n\\begin{align} \\var{traparea} \\times \\var{l} = \\var{answer}cm^3\\end{align}.
\n\nUse this link to find resources to help you revise how to calculate the volume of a prism.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"basew": {"name": "basew", "group": "Ungrouped variables", "definition": "random(12 .. 20#2)", "description": "", "templateType": "randrange", "can_override": false}, "topw": {"name": "topw", "group": "Ungrouped variables", "definition": "random(4 .. 10#2)", "description": "", "templateType": "randrange", "can_override": false}, "h": {"name": "h", "group": "Ungrouped variables", "definition": "random(4 .. 10#1)", "description": "", "templateType": "randrange", "can_override": false}, "l": {"name": "l", "group": "Ungrouped variables", "definition": "random(8 .. 20#1)", "description": "", "templateType": "randrange", "can_override": false}, "answer": {"name": "answer", "group": "Ungrouped variables", "definition": "((topw+basew)/2)*h*l", "description": "", "templateType": "anything", "can_override": false}, "traparea": {"name": "traparea", "group": "Ungrouped variables", "definition": "(basew+topw)/2*h", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["basew", "topw", "h", "l", "answer", "traparea"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "[[0]]$cm^3$
", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "Volume", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "answer", "maxValue": "answer", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "GA8 Pythagoras - rectangle", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}, {"name": "Megan Oliver", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/23526/"}], "tags": [], "metadata": {"description": "Find the diagonal or one side of a rectangle using Pythagoras' theorem.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "What is the height of the rectangle below (all measurements given in $cm$)? Please give your answer to one decimal place.
\n{geogebra_applet('https://www.geogebra.org/m/jk3n6sxh',[base: base, hyp: hyp])}
", "advice": "You can see that the rectangle contains a right-angled triangle. We also have the lengths of the base and the hypoteneuse of the triangle. This means we can use Pythagoras' theorem to calculate the last remaining side of the triangle which is also the height of the rectangle.
\n\\[ \\begin{split} Height &\\, = \\sqrt{hypoteneuse^2 - base^2} \\\\ &\\, = \\sqrt{\\var{hyp}^2-\\var{base}^2} \\\\ &\\, = \\sqrt{\\var{{hyp}^2}-\\var{{base}^2}} \\\\ &\\, = \\sqrt{\\var{{{hyp}^2}-{{base}^2}}}\\\\ &\\, = \\var{ans}\\\\ &\\, = \\var{ansr} \\text{ to 1 d.p.} \\end{split} \\]
\nUse this link to find resources to help you revise Pythagoras' theorem.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"hyp": {"name": "hyp", "group": "Ungrouped variables", "definition": "random(10 .. 15#1)", "description": "", "templateType": "randrange", "can_override": false}, "base": {"name": "base", "group": "Ungrouped variables", "definition": "random(3 .. 8#1)", "description": "", "templateType": "randrange", "can_override": false}, "ans": {"name": "ans", "group": "Ungrouped variables", "definition": "sqrt(hyp^2-base^2)", "description": "", "templateType": "anything", "can_override": false}, "ansr": {"name": "ansr", "group": "Ungrouped variables", "definition": "precround(ans,1)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["hyp", "base", "ans", "ansr"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": true, "customName": "Answer", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "[[0]]$cm$ (give your answer to 1 d.p.)
", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "ans", "maxValue": "ans", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "1", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "GB1 Trigonometry - missing side", "extensions": ["eukleides"], "custom_part_types": [], "resources": [["question-resources/Picture1_caMIdF1.png", "/srv/numbas/media/question-resources/Picture1_caMIdF1.png"], ["question-resources/Picture2_6KE4ZpW.png", "/srv/numbas/media/question-resources/Picture2_6KE4ZpW.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "David Wishart", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1461/"}, {"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Megan Oliver", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/23526/"}], "tags": [], "metadata": {"description": "Draws a triangle based on 3 side lengths. Randomises asking angle or side.
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "{max_height(25,diagram)}
", "advice": "Avoid using rounded values in calculations and just round for the final answer.
{advice}
In this situation $x$ is an angle. We label the known sides of the triangle \\'opposite\\', \\'adjacent\\' and \\'hypothenuse\\' in relation to the angle we are interested in:
\\n$\\\\text{Opposite} = \\\\var{bc}$
$\\\\text{Hyptonuse} = \\\\var{ab}$
We have \\'O\\' and \\'H\\' in SOHCAHTOA, so we know we need to use the $\\\\sin$ formula:
\\\\[ \\\\sin(\\\\text{Angle}) = \\\\frac{\\\\text{Opposite}}{\\\\text{Hypotenuse}}\\\\]
\\nNow we subsitute the values we have in this particular question
\\n\\\\[ \\\\sin(x) = \\\\frac{\\\\var{bc}}{\\\\var{ab}}\\\\]
We need to use the \\'inverse $\\\\sin$\\' button on the calculator (also called $\\\\arcsin$ or notated $\\\\sin^{-1}$) in order to isolate $x$:
Make sure your calculator is set to \\'degree\\' mode, if you get an odd answer you are likely in the wrong mode!
\\\\[ x = \\\\sin^{-1}(\\\\var{bc}/\\\\var{ab})\\\\]
\\n\\\\[ x = \\\\var{precround(180*(arcsin(bc/(ab)))/pi,4)}\\\\]
\\nRound as required:
\\n\\\\[x = \\\\var{precround(180*(arcsin(bc/(ab)))/pi,2)}\\\\]
\"", "description": "", "templateType": "long string", "can_override": false}, "cos_a": {"name": "cos_a", "group": "advice", "definition": "\"In this situation $x$ is an angle. We label the known sides of the triangle \\'opposite\\', \\'adjacent\\' and \\'hypothenuse\\' in relation to the angle we are interested in:
\\n$\\\\text{Adjacent} = \\\\var{ac}$
$\\\\text{Hyptonuse} = \\\\var{ab}$
We have \\'A\\' and \\'H\\' in SOHCAHTOA, so we know we need to use the $\\\\cos$ formula:
\\\\[ \\\\cos(\\\\text{Angle}) = \\\\frac{\\\\text{Adjacent}}{\\\\text{Hypotenuse}}\\\\]
\\nNow we subsitute the values we have in this particular question
\\n\\\\[ \\\\cos(x) = \\\\frac{\\\\var{ac}}{\\\\var{ab}}\\\\]
We need to use the \\'inverse $\\\\cos$\\' button on the calculator (also called $\\\\arccos$ or notated $\\\\cos^{-1}$) in order to isolate $x$:
Make sure your calculator is set to \\'degree\\' mode, if you get an odd answer you are likely in the wrong mode!
\\\\[ x = \\\\cos^{-1}(\\\\var{ac}/\\\\var{ab})\\\\]
\\n\\\\[ x = \\\\var{precround(180*(arccos(ac/(ab)))/pi,4)}\\\\]
\\nRound as required:
\\n\\\\[x = \\\\var{precround(180*(arccos(ac/(ab)))/pi,2)}\\\\]
\"", "description": "", "templateType": "long string", "can_override": false}, "tan_a": {"name": "tan_a", "group": "advice", "definition": "\"In this situation $x$ is an angle. We label the known sides of the triangle \\'opposite\\', \\'adjacent\\' and \\'hypothenuse\\' in relation to the angle we are interested in:
\\n$\\\\text{Opposite} = \\\\var{bc}$
$\\\\text{Adjacent} = \\\\var{ac}$
We have \\'O\\' and \\'A\\' in SOHCAHTOA, so we know we need to use the $\\\\tan$ formula:
\\\\[ \\\\tan(\\\\text{Angle}) = \\\\frac{\\\\text{Opposite}}{\\\\text{Adjacent}}\\\\]
\\nNow we subsitute the values we have in this particular question
\\n\\\\[ \\\\tan(x) = \\\\frac{\\\\var{bc}}{\\\\var{ac}}\\\\]
We need to use the \\'inverse $\\\\tan$\\' button on the calculator (also called $\\\\arctan$ or notated $\\\\tan^{-1}$) in order to isolate $x$:
Make sure your calculator is set to \\'degree\\' mode, if you get an odd answer you are likely in the wrong mode!
\\\\[ x = \\\\tan^{-1}(\\\\var{bc}/\\\\var{ac})\\\\]
\\n\\\\[ x = \\\\var{precround(180*(arctan(bc/(ac)))/pi,4)}\\\\]
\\nRound as required:
\\n\\\\[x = \\\\var{precround(180*(arctan(bc/(ac)))/pi,2)}\\\\]
\"", "description": "", "templateType": "long string", "can_override": false}, "sin_bc": {"name": "sin_bc", "group": "advice", "definition": "\"In this situation $x$ is a side. We label the relevant sides of the triangle \\'opposite\\', \\'adjacent\\' and \\'hypothenuse\\' in relation to the angle we know:
\\n$\\\\text{Opposite} = x$
$\\\\text{Hypotenuse} = \\\\var{ab}$
We have \\'O\\' and \\'H\\' in SOHCAHTOA, so we know we need to use the $\\\\sin$ formula:
\\\\[ \\\\sin(\\\\text{Angle}) = \\\\frac{\\\\text{Opposite}}{\\\\text{Hypotenuse}}\\\\]
\\nNow we subsitute the values we have in this particular question
\\n\\\\[ \\\\sin(\\\\var{angle}) = \\\\frac{x}{\\\\var{ab}}\\\\]
and rearrange to give:
\\\\[ x = \\\\var{ab} \\\\times \\\\sin(\\\\var{angle}) \\\\]
Make sure your calculator is set to \\'degree\\' mode, if you get an odd answer you are likely in the wrong mode!
\\\\[ x = \\\\var{precround(ab*sin(pi*angle/180),4)}\\\\]
\\nRound as required:
\\n\\\\[ x = \\\\var{precround(ab*sin(pi*angle/180),2)}\\\\]
\"", "description": "", "templateType": "long string", "can_override": false}, "cos_ac": {"name": "cos_ac", "group": "advice", "definition": "\"In this situation $x$ is a side. We label the relevant sides of the triangle \\'opposite\\', \\'adjacent\\' and \\'hypothenuse\\' in relation to the angle we know:
\\n$\\\\text{Hypotenuse} = \\\\var{ab}$
$\\\\text{Adjacent} = x$
We have \\'A\\' and \\'H\\' in SOHCAHTOA, so we know we need to use the $\\\\cos$ formula:
\\\\[ \\\\cos(\\\\text{Angle}) = \\\\frac{\\\\text{Adjacent}}{\\\\text{Hypotenuse}}\\\\]
\\nNow we subsitute the values we have in this particular question
\\n\\\\[ \\\\cos(\\\\var{angle}) = \\\\frac{x}{\\\\var{ab}}\\\\]
and rearrange to give:
\\\\[ x = \\\\var{ab} \\\\times \\\\cos(\\\\var{angle}) \\\\]
Make sure your calculator is set to \\'degree\\' mode, if you get an odd answer you are likely in the wrong mode!
\\\\[ x = \\\\var{precround(ab*cos(pi*angle/180),4)}\\\\]
\\nRound as required:
\\n\\\\[ x = \\\\var{precround(ab*cos(pi*angle/180),2)}\\\\]
\"", "description": "", "templateType": "long string", "can_override": false}, "tan_ac": {"name": "tan_ac", "group": "advice", "definition": "\"In this situation $x$ is a side. We label the relevant sides of the triangle \\'opposite\\', \\'adjacent\\' and \\'hypothenuse\\' in relation to the angle we know:
\\n$\\\\text{Opposite} = \\\\var{bc}$
$\\\\text{Adjacent} = x$
We have \\'O\\' and \\'A\\' in SOHCAHTOA, so we know we need to use the $\\\\tan$ formula:
\\\\[ \\\\tan(\\\\text{Angle}) = \\\\frac{\\\\text{Opposite}}{\\\\text{Adjacent}}\\\\]
\\nNow we subsitute the values we have in this particular question
\\n\\\\[ \\\\tan(\\\\var{angle}) = \\\\frac{\\\\var{bc}}{x}\\\\]
and rearrange to give:
\\\\[ x = \\\\frac{\\\\var{bc}}{\\\\tan(\\\\var{angle})} \\\\]
Make sure your calculator is set to \\'degree\\' mode, if you get an odd answer you are likely in the wrong mode!
\\\\[ x = \\\\var{precround(bc/tan(pi*angle/180),4)}\\\\]
\\nRound as required:
\\n\\\\[ x = \\\\var{precround(bc/tan(pi*angle/180),2)}\\\\]
\"", "description": "", "templateType": "long string", "can_override": false}}, "variablesTest": {"condition": "precround(180*(arcsin(bc/(ab)))/pi,1) = precround(angle,1)", "maxRuns": "6"}, "ungrouped_variables": [], "variable_groups": [{"name": "Unnamed group", "variables": ["ab", "ac", "bc", "diagram", "angle", "SCT", "AngORside", "answer"]}, {"name": "triangle types", "variables": ["d_t_a_2", "d_t_s_1", "d_s_a_1", "d_c_a_1", "d_c_s_1", "d_s_s_1", "d_c_s_2", "d_t_a_1", "d_t_s_2", "d_s_a_2", "d_s_s_2", "d_c_a_2"]}, {"name": "advice", "variables": ["advice", "tan_a", "sin_a", "cos_a", "sin_bc", "cos_ac", "tan_ac"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "Given a right angled triangle as shown calculate the value of x.
\nAngles are given in degrees (make sure you calculator is in the right mode)
Give your answer correct to 2 decimal place.
Rewriting a trigonometric expression of the form $A\\sin(\\theta)-B\\cos(\\theta)$ to $R\\sin(\\theta-\\alpha)$ by calculating $R$ and $\\alpha$.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "If \\[ \\simplify[unitFactor]{{A}sin(theta)-{B}cos(theta)} = R \\sin (\\theta - \\alpha),\\]
\nfind the values for $R$ and $\\alpha$, given $R>0$ and $0<\\alpha<\\frac{\\pi}{2}$.
", "advice": "To find $R$ and $\\alpha$ we want to first rewrite our equation using the double-angle formula, $\\sin(a-b)=\\sin(a)\\cos(b)-\\sin(b)\\cos(a)$:
\n\\[ \\begin{split}\\simplify[unitFactor]{{A}sin(theta)-{B}cos(theta)} &\\,= R \\sin(\\theta-\\alpha) \\\\ &\\,= R(\\sin(\\theta)\\cos(\\alpha) - \\sin(\\alpha)\\cos(\\theta)) \\\\ &\\,= R\\sin(\\theta)\\cos(\\alpha) - R\\sin(\\alpha)\\cos(\\theta). \\end{split} \\]
\nBy comparing the coefficients of $\\sin(\\theta)$ and $\\cos(\\theta)$, we find that
\n\\[ R\\cos(\\alpha) = \\var{A},\\quad \\text{and} \\quad R\\sin(\\alpha) = \\var{B}. \\]
\nTo calculate $R$, we want to square these results and add them together, allowing us to make use of $\\sin^2(\\alpha)+\\cos^2(\\alpha) = 1$:
\n{Rsol}
\nSimilarly, to find $\\alpha$ we can divide $R\\sin(\\alpha) = \\var{B}$ by $R\\cos(\\alpha) = \\var{A}$, and use the identity $\\tan(\\alpha) = \\frac{\\sin(\\alpha)}{\\cos(\\alpha)}$:
\n\\[ \\frac{R\\sin(\\alpha)}{R\\cos(\\alpha)} = \\frac{\\var{B}}{\\var{A}} \\implies \\tan(\\alpha) = \\simplify[fractionNumbers]{{B/A}}.\\]
\nTherefore, \\[ \\begin{split} \\alpha &\\,= \\tan^{-1}\\left(\\simplify[fractionNumbers]{{B/A}}\\right) \\\\ &\\,= \\var{alpharound} \\text{ (2 d.p.)}. \\end{split} \\]
\n\n\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"A": {"name": "A", "group": "Ungrouped variables", "definition": "random(1..5)", "description": "", "templateType": "anything", "can_override": false}, "B": {"name": "B", "group": "Ungrouped variables", "definition": "random(1..5 except A)", "description": "", "templateType": "anything", "can_override": false}, "R": {"name": "R", "group": "Ungrouped variables", "definition": "sqrt(A^2+B^2)", "description": "", "templateType": "anything", "can_override": false}, "Rround": {"name": "Rround", "group": "Ungrouped variables", "definition": "precround(R,2)", "description": "", "templateType": "anything", "can_override": false}, "alpha": {"name": "alpha", "group": "Ungrouped variables", "definition": "arctan(B/A)", "description": "", "templateType": "anything", "can_override": false}, "Rsol": {"name": "Rsol", "group": "Ungrouped variables", "definition": "if(R=round(R),'{Rsol1}','{Rsol2}')", "description": "", "templateType": "anything", "can_override": false}, "Rsol1": {"name": "Rsol1", "group": "Ungrouped variables", "definition": "\"\\\\[ \\\\begin{split} R^2\\\\cos^2(\\\\alpha) + R^2 \\\\sin^2(\\\\alpha) &\\\\,= \\\\var{A}^2+\\\\var{B}^2 \\\\\\\\ R^2 (\\\\cos^2(\\\\alpha) +\\\\sin^2(\\\\alpha)) &\\\\,= \\\\var{A^2+B^2} \\\\\\\\ R &\\\\,= \\\\var{R}. \\\\end{split} \\\\]
\"", "description": "", "templateType": "long string", "can_override": false}, "Rsol2": {"name": "Rsol2", "group": "Ungrouped variables", "definition": "\"\\\\[ \\\\begin{split} R^2\\\\cos^2(\\\\alpha) + R^2 \\\\sin^2(\\\\alpha) &\\\\,= \\\\var{A}^2+\\\\var{B}^2 \\\\\\\\ R^2 (\\\\cos^2(\\\\alpha) +\\\\sin^2(\\\\alpha)) &\\\\,= \\\\var{A^2+B^2} \\\\\\\\ R &\\\\,= \\\\sqrt{\\\\var{A^2+B^2}}\\\\\\\\ &\\\\,=\\\\var{Rround} \\\\text{ (2 d.p.)}. \\\\end{split} \\\\]
\"", "description": "", "templateType": "long string", "can_override": false}, "alpharound": {"name": "alpharound", "group": "Ungrouped variables", "definition": "precround(alpha,2)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["A", "B", "R", "Rround", "alpha", "alpharound", "Rsol", "Rsol1", "Rsol2"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "$R=$[[0]]
\n$\\alpha=$[[1]]
\n(Give your answers to 2 decimal places where necessary.)
", "gaps": [{"type": "jme", "useCustomName": true, "customName": "Gap 0", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{Rround}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{alpharound}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "GB6 Trigonometry - non-right angled trig", "extensions": ["geogebra"], "custom_part_types": [], "resources": [["question-resources/Picture1_caMIdF1.png", "/srv/numbas/media/question-resources/Picture1_caMIdF1.png"], ["question-resources/Picture2_6KE4ZpW.png", "/srv/numbas/media/question-resources/Picture2_6KE4ZpW.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "David Wishart", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1461/"}, {"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Lauren Desoysa", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21504/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}, {"name": "Oliver Spenceley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/23557/"}], "tags": [], "metadata": {"description": "Draws a triangle based on 3 side lengths. Randomises asking angle or side.
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "{diagram}
\nFind x.
", "advice": "{Advice}
\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"Ruleuse": {"name": "Ruleuse", "group": "Question structure", "definition": "random('s','c','s','c')", "description": "", "templateType": "anything", "can_override": false}, "ANGorSIDE": {"name": "ANGorSIDE", "group": "Question structure", "definition": "random('ang','side')", "description": "", "templateType": "anything", "can_override": false}, "cosSIDEadvice": {"name": "cosSIDEadvice", "group": "Question structure", "definition": "\"First recognise that the diagram is a non-right angled triangle and that there are the lengths of two sides given and the angle specifically between those two sides. Further to this, the instruction is to find the other missing side. These are the conditions for when to use the $\\\\textit{cosine rule}$.
\\nThe formula for a missing side using the cosine rule is:
\\n\\\\[ a^2 = b^2 + c^2 - 2bc \\\\cos(A)\\\\]
\\nThe labels of $a$, $b$ and $c$ can be misleading. The critical thing is that regardless of the letters used in the diagram, the $a$ (side) and $A$ (angle) labels are applied to the angle given and it\\'s opposite side.
\\nIn this case:
\\n\\\\[ a=x, \\\\quad b=\\\\var{a}, \\\\quad c=\\\\var{b}, \\\\text{and} \\\\quad A=\\\\var{Cang},\\\\]
\\nwhere the choice of which way round $b$ and $c$ are assigned doesn\\'t matter.
\\nSo, we now have:
\\n\\\\[x^2 = \\\\var{a}^2 +\\\\var{b}^2-2\\\\times\\\\var{a}\\\\times\\\\var{b}\\\\times\\\\cos{(\\\\var{Cang})},\\\\]
\\nhence,
\\n\\\\[x=\\\\sqrt{\\\\var{a^2 +b^2-2*a*b*(cos(Cang))}}\\\\]
\\n\\\\[x=\\\\var{c}\\\\]
\\n\\\\[x=\\\\var{ans}\\\\text{ to 1 decimal place.}\\\\]
\"", "description": "case 1: missing side in the cosine rule.
", "templateType": "long string", "can_override": false}, "cosANGadvice": {"name": "cosANGadvice", "group": "Question structure", "definition": "\"First recognise that the diagram is a non-right angled triangle and that there are the lengths of all three sides given. Further to this, the instruction is to find the a missing angle. These are the conditions for when to use the $\\\\textit{cosine rule}$ but in its rearranged form to find an angle. You need to identify which side is \\\"$a$\\\" as being the one opposite the angle you are asked to find.
\\nThe formula for a missing angle using the cosine rule is:
\\n\\\\[ A = \\\\arccos\\\\left(\\\\frac{b^2+c^2-a^2}{2bc}\\\\right)\\\\]
\\nThe labels of $a$, $b$ and $c$ can be misleading. The critical thing is that regardless of the letters used in the diagram, the $a$ (side) and $A$ (angle) labels are applied to the side opposite the angle that is asked for and the angle that is asked for.
\\nIn this case:
\\n\\\\[ a=\\\\var{c_round}, \\\\quad b=\\\\var{a}, \\\\quad c=\\\\var{b}, \\\\text{and} \\\\quad A= x,\\\\]
\\nwhere the choice of which way round $b$ and $c$ are assigned doesn\\'t matter.
\\nSo, we now have:
\\n\\\\[x = \\\\arccos\\\\left(\\\\frac{\\\\var{a}^2+\\\\var{b}^2-\\\\var{c_round}^2}{2\\\\times\\\\var{a}\\\\times\\\\var{b}}\\\\right),\\\\]
\\nhence,
\\n\\\\[x=\\\\var{(180/pi)*arccos((a^2 +b^2-c_round^2)/(2*a*b))}\\\\]
\\n\\\\[x=\\\\var{ans}\\\\text{ to 1 decimal place.}\\\\]
\"", "description": "", "templateType": "long string", "can_override": false}, "sinSIDEadvice": {"name": "sinSIDEadvice", "group": "Question structure", "definition": "\"First recognise that the diagram is a non-right angled triangle and that a single length is provided, along with two angles, crucially including the angle opposite the given side. Further to this, the instruction is to find the a missing angle. These are the conditions for when to use the $\\\\textit{sine rule}$. The sine rule uses the sides and angles in pairs and uses two pairs for any given calculation
\\nThe formula for finding a side using the sine rule can be written as:
\\n\\\\[ \\\\frac{a}{\\\\sin(A)}=\\\\frac{b}{\\\\sin(B)}\\\\]
\\nThe labels of $a$, $b$ and $c$ can be misleading. The critical thing is that regardless of the letters used in the diagram, the side being asked for is in the above notation $a$.
\\nIn this case:
\\n\\\\[ a=x, \\\\quad b=\\\\var{a}, \\\\quad A=\\\\var{Cang}, \\\\text{and} \\\\quad B= \\\\var{Aang_round}.\\\\]
\\nSo, we now have:
\\n\\\\[\\\\frac{x}{\\\\sin{(\\\\var{Cang})}}=\\\\frac{\\\\var{a}}{\\\\sin{(\\\\var{Aang_round})}},\\\\]
\\nhence,
\\n\\\\[x=\\\\frac{\\\\var{a}}{\\\\sin{(\\\\var{Aang_round})}}\\\\times\\\\sin{(\\\\var{Cang})},\\\\]
\\n\\\\[x=\\\\var{ans}\\\\text{ to 1 decimal place.}\\\\]
\"", "description": "case 3
", "templateType": "long string", "can_override": false}, "sinANGadvice": {"name": "sinANGadvice", "group": "Question structure", "definition": "safe(\"First recognise that the diagram is a non-right angled triangle and that two lengths are provided, along with an angle, crucially including an angle opposite a given side. Further to this, the instruction is to find the a missing side. These are the conditions for when to use the $\\\\textit{sine rule}$. The sine rule uses the sides and angles in pairs and uses two pairs for any given calculation
\\nThe formula for finding an angle using the sine rule can be written as:
\\n\\\\[ \\\\frac{\\\\sin(A)}{a}=\\\\frac{\\\\sin(B)}{b}\\\\]
\\nThe labels of $a$, $b$ and $c$ can be misleading. The critical thing is that regardless of the letters used in the diagram, the angle being asked for is in the above notation $A$.
\\nIn this case:
\\n\\\\[ a=\\\\var{c_round}, \\\\quad b=\\\\var{a}, \\\\quad A= x, \\\\text{and} \\\\quad B= \\\\var{Aang_round}.\\\\]
\\nSo, we now have:
\\n\\\\[\\\\frac{\\\\sin{(x)}}{\\\\var{c_round}}=\\\\frac{\\\\sin{(\\\\var{Aang_round})}}{\\\\var{a}},\\\\]
\\nhence,
\\n\\\\[x=\\\\arcsin\\\\left(\\\\var{c_round}\\\\times\\\\frac{\\\\sin{(\\\\var{Aang_round})}}{\\\\var{a}}\\\\right),\\\\]
\\n\\\\[x=\\\\var{ans}\\\\text{ to 1 decimal place.}\\\\]
\")", "description": "case 4
", "templateType": "long string", "can_override": false}, "advice": {"name": "advice", "group": "Question structure", "definition": "If(Ruleuse='c',IF(ANGorSIDE='ang',cosANGadvice,cosSIDEadvice),IF(ANGorSIDE='ang',sinANGadvice,sinSIDEadvice))", "description": "", "templateType": "anything", "can_override": false}, "cosSIDEdiagram": {"name": "cosSIDEdiagram", "group": "Diagrams", "definition": "geogebra_applet('https://www.geogebra.org/m/czffcqgn',[ac: a,bc: b,Cang: Cang])", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Quantities", "definition": "random(5 .. 10#0.1)", "description": "side length a
", "templateType": "randrange", "can_override": false}, "b": {"name": "b", "group": "Quantities", "definition": "random(5 .. 10#0.1)", "description": "side length b
", "templateType": "randrange", "can_override": false}, "Cang": {"name": "Cang", "group": "Quantities", "definition": "random(40..140 except 85..95)", "description": "C angle in degrees
", "templateType": "anything", "can_override": false}, "cosANGdiagram": {"name": "cosANGdiagram", "group": "Diagrams", "definition": "geogebra_applet('https://www.geogebra.org/m/rn8p6hk9',[ac: a,bc: b,Cang: Cang])", "description": "", "templateType": "anything", "can_override": false}, "sinSIDEdiagram": {"name": "sinSIDEdiagram", "group": "Diagrams", "definition": "geogebra_applet('https://www.geogebra.org/m/qayf6ejk',[ac: a,bc: b,Cang: Cang])", "description": "", "templateType": "anything", "can_override": false}, "sinANGdiagram": {"name": "sinANGdiagram", "group": "Diagrams", "definition": "geogebra_applet('https://www.geogebra.org/m/ghb43tsn',[ac: a,bc: b,Cang: Cang])", "description": "", "templateType": "anything", "can_override": false}, "diagram": {"name": "diagram", "group": "Diagrams", "definition": "If(Ruleuse='c',IF(ANGorSIDE='ang',cosANGdiagram,cosSIDEdiagram),IF(ANGorSIDE='ang',sinANGdiagram,sinSIDEdiagram))", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Quantities", "definition": "sqrt(a^2+b^2-2*a*b*cos(Cang*Pi/180))", "description": "", "templateType": "anything", "can_override": false}, "Aang": {"name": "Aang", "group": "Quantities", "definition": "arcsin(a*sin(Cang*Pi/180)/c)*180/pi", "description": "angle A in degrees
", "templateType": "anything", "can_override": false}, "Bang": {"name": "Bang", "group": "Quantities", "definition": "180-(Aang+Cang)", "description": "", "templateType": "anything", "can_override": false}, "cosSIDEans": {"name": "cosSIDEans", "group": "Quantities", "definition": "c", "description": "", "templateType": "anything", "can_override": false}, "cosANGans": {"name": "cosANGans", "group": "Quantities", "definition": "arccos((a^2+b^2-c_round^2)/(2*a*b))*180/pi", "description": "Calculated answer for c from rounded values - as these will be seen information by student.
", "templateType": "anything", "can_override": false}, "c_round": {"name": "c_round", "group": "Quantities", "definition": "precround(c,1)", "description": "", "templateType": "anything", "can_override": false}, "Aang_round": {"name": "Aang_round", "group": "Quantities", "definition": "precround(Aang,1)", "description": "", "templateType": "anything", "can_override": false}, "Bang_round": {"name": "Bang_round", "group": "Quantities", "definition": "precround(Bang,1)", "description": "", "templateType": "anything", "can_override": false}, "Cang_roundcos": {"name": "Cang_roundcos", "group": "Quantities", "definition": "Precround((180/pi)*arccos((a^2+b^2-c_round^2)/(2*a*b)),1)", "description": "", "templateType": "anything", "can_override": false}, "sinANGans": {"name": "sinANGans", "group": "Quantities", "definition": "If(Cang<90,arcsin(c_round*(sin(Aang_round*pi/180)/a))*180/pi,180 - arcsin(c_round*(sin(Aang_round*pi/180)/a))*180/pi)", "description": "", "templateType": "anything", "can_override": false}, "sinSIDEans": {"name": "sinSIDEans", "group": "Quantities", "definition": "(a/sin(aang_round*pi/180))*sin(cang*pi/180)", "description": "", "templateType": "anything", "can_override": false}, "ans": {"name": "ans", "group": "Quantities", "definition": "precround(If(Ruleuse='c',IF(ANGorSIDE='ang',cosANGans,cosSIDEans),IF(ANGorSIDE='ang',sinANGans,sinSIDEans)),1)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "a+b>c and b+c>a and a+c>b", "maxRuns": "200"}, "ungrouped_variables": [], "variable_groups": [{"name": "Question structure", "variables": ["Ruleuse", "ANGorSIDE", "cosSIDEadvice", "cosANGadvice", "sinSIDEadvice", "sinANGadvice", "advice"]}, {"name": "Diagrams", "variables": ["cosSIDEdiagram", "cosANGdiagram", "sinSIDEdiagram", "sinANGdiagram", "diagram"]}, {"name": "Quantities", "variables": ["a", "b", "Cang", "c", "Aang", "Bang", "cosSIDEans", "cosANGans", "sinANGans", "sinSIDEans", "c_round", "Aang_round", "Bang_round", "Cang_roundcos", "ans"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": true, "customName": "Answer", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "$x =$[[0]]
", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "ans", "maxValue": "ans", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "1", "precisionPartialCredit": "100", "precisionMessage": "", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "CA1 Straight Line Graphs", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}, {"name": "Megan Oliver", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/23526/"}], "tags": [], "metadata": {"description": "Calculating gradient and finding intercept from a geogebra graph.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "{app}
Find the gradient of the line.
Firstly draw a right angled 'step' from left to right. This triangle can be anywhere, but it is more helpful for it to have corners on the vertices (whole number points) of the graph and it is easier to calculate with postive numbers.
\n{app_advice}
\nBefore we start to calculate, notice that the line is {uod}, so the gradient will be {pon} and the line is {sos}, so the absolute value of the number will be {mol}.
Now find the coordinates of the places your triangle meets the line
$(x_1,y_1)=(\\var{ax},\\var{ay})$ and $(x_2,y_2)=(\\var{bx},\\var{by})$
\nWe need to compare the 'rise on the y-axis' to the 'run across the x-axis', we can say that:
\n$\\text{gradient} = \\frac{\\text{rise}}{\\text{run}}$
\nThis is equivalent to using the formula:
$ m = \\frac{y_2 - y_1}{x_2 - x_1} $
and substitute the coordinates of the vertices of the triangle:
$\\begin{split} &\\, m = \\frac{\\var{by} - \\var{ay}}{\\var{bx} - \\var{ax}} \\\\
&\\, = \\frac{\\var{by-ay}}{\\var{bx-ax}} \\\\
&\\, = \\var[fractionNumbers]{m} \\\\
\\end{split} $
if(m=abs(m),'positive','negative')
", "templateType": "anything", "can_override": false}, "ax": {"name": "ax", "group": "Ungrouped variables", "definition": "random(0,1)", "description": "", "templateType": "anything", "can_override": false}, "ay": {"name": "ay", "group": "Ungrouped variables", "definition": "random(0,1,2,3)", "description": "", "templateType": "anything", "can_override": false}, "bx": {"name": "bx", "group": "Ungrouped variables", "definition": "random(ax+1..3) \n", "description": "", "templateType": "anything", "can_override": false}, "by": {"name": "by", "group": "Ungrouped variables", "definition": "random(0..4 except ay)\n", "description": "", "templateType": "anything", "can_override": false}, "app_advice": {"name": "app_advice", "group": "Ungrouped variables", "definition": "geogebra_applet(\n 800,500,\n [\n A: [\n definition: p1,\n label_visible: false,\n visible: true\n ],\n B: [\n definition: p2,\n label_visible: false,\n visible: true \n ],\n \n C: [\n definition: p3,\n label_visible: false,\n visible: false \n ],\n \n line1: [\n definition: \"Line(A,B)\",\n label_visible: false,\n visible: true\n ],\n \n line2: [\n definition: \"Segment(A,C)\",\n label_visible: false,\n visible: true\n ],\n \n \n \n line3: [\n definition: \"Segment(C,B)\",\n label_visible: false,\n visible: true\n ]\n ]\n)", "description": "", "templateType": "anything", "can_override": false}, "p3": {"name": "p3", "group": "Ungrouped variables", "definition": "vector(bx,ay)", "description": "", "templateType": "anything", "can_override": false}, "pon": {"name": "pon", "group": "Ungrouped variables", "definition": "if(m=0,'zero',if(m=abs(m),'a positive number','a negative number'))", "description": "", "templateType": "anything", "can_override": false}, "sos": {"name": "sos", "group": "Ungrouped variables", "definition": "if(m=0,'horizontal',if(abs(m)<1,'shallow','steep'))", "description": "", "templateType": "anything", "can_override": false}, "mol": {"name": "mol", "group": "Ungrouped variables", "definition": "if(m=0,'zero',if(abs(m)<1,'less than 1','greater than or equal to 1'))", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "m<>1", "maxRuns": 100}, "ungrouped_variables": ["app", "m", "c", "P1", "P2", "uod", "ax", "ay", "bx", "by", "app_advice", "p3", "pon", "sos", "mol"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "alternatives": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "alternativeFeedbackMessage": "It looks like you have incorrectly rounded this answer. You might want to look at some resources on rounded decimals. You can also leave your answer in fraction form as
$\\var[fractionNumbers]{m}$
Multiple choice - select the quadratic graph.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Which of the following is the graph $y=x^2$.
", "advice": "Use this link to find some resources to help you familiarise yourself with these graphs.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["{geogebra_applet('https://www.geogebra.org/m/tpfzv3w7')}", "{geogebra_applet('https://www.geogebra.org/m/zftpwq64')}", "{geogebra_applet('https://www.geogebra.org/m/we3gngqa')}", "{geogebra_applet('https://www.geogebra.org/m/cadkup6r')}"], "matrix": ["1", 0, 0, 0], "distractors": ["", "", "", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "CA3 - Graphs of trig functions (sin, cos, tan)", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Lauren Desoysa", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21504/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "Match the relevant graph (sin, cos, tan) with its equation.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "", "advice": "This is about core knowledge of graphs. You should know the shapes of the fundamental trig graphs, if you don't familiarize yourself with them from the resources linked below. In this setting the $x$-axis is given with a scale in radians but you might also find some where it is given in degrees. You should also be aware of the difference between those two different units of angles.
\n\nUse this link to find some resources to help you familiarise yourself with these graphs.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "m_n_x", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "Match the graph to its function.
", "minMarks": 0, "maxMarks": 0, "minAnswers": 0, "maxAnswers": 0, "shuffleChoices": true, "shuffleAnswers": true, "displayType": "radiogroup", "warningType": "none", "showCellAnswerState": true, "markingMethod": "sum ticked cells", "choices": ["$\\sin(x)$", "$\\cos(x)$", "$\\tan(x)$"], "matrix": [["1", 0, 0], [0, "1", 0], [0, 0, "1"]], "layout": {"type": "all", "expression": ""}, "answers": ["{geogebra_applet('https://www.geogebra.org/m/ntqvuwqr')}", "{geogebra_applet('https://www.geogebra.org/m/fsqmnhsc')}", "{geogebra_applet('https://www.geogebra.org/m/yg6f9eqz')}"]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "CA4 Function notation", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}, {"name": "Megan Oliver", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/23526/"}], "tags": [], "metadata": {"description": "Evaluating a linear function for a given value of $x$.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Given $f(x)=\\simplify{{m}x+{c}}$, find $f(\\var{n})$.
", "advice": "If $f(x)=\\simplify{{m}x+{c}}$, to find $f(\\var{n})$ we need to evaluate $f(x)$ when $x=\\var{n}$:
\n\\[ \\begin{split} f(\\var{n}) &\\,= \\simplify[alwaysTimes]{{m}({n})+{c}} \\\\ &\\,= \\simplify[!collectNumbers]{{m*n}+{c}} \\\\ &\\,= \\simplify{{m*n+c}}. \\end{split} \\]
\nUse this link to find resources to help you revise function notation.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"m": {"name": "m", "group": "Ungrouped variables", "definition": "random(2..9)", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(-9..9 except [0,m])", "description": "", "templateType": "anything", "can_override": false}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "random(-9..9 except [0,1])", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["m", "c", "n"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "$f(\\var{n})=$[[0]]
", "gaps": [{"type": "jme", "useCustomName": true, "customName": "Gap 0", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{m*n+c}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "CA5 Domain and Range", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Megan Oliver", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/23526/"}], "tags": [], "metadata": {"description": "Determining the range of a function of the form $f = m|x| + a$.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "", "advice": "The range is the set of values that can be taken by $f(x)$, i.e. the values on the $y$-axis.
\n{geogebra_applet('https://www.geogebra.org/m/aqcgkurg',[a: a, m: m])}
\nTherefore, for $f(x)=\\simplify{{m}x^2+{a}}$, the range is $[\\var{a}, \\infty)$.
\n", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(-4..2 except 0)", "description": "", "templateType": "anything", "can_override": false}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "random(-9..-1)", "description": "", "templateType": "anything", "can_override": false}, "m": {"name": "m", "group": "Ungrouped variables", "definition": "random(2..5)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(-2..2 except 0)", "description": "", "templateType": "anything", "can_override": false}, "d": {"name": "d", "group": "Ungrouped variables", "definition": "random(-2,2,-1,3)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "n", "m", "b", "d"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "Given $f(x)=\\simplify{{m}x^2+{a}}$
What is the range of $f(x)$?
Finding the inverse of a function of the form $f(x)=\\frac{mx+c}{x+a},\\,x\\neq-a$.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "If $f(x)=\\simplify{({m}x+{c})/(x+{a})},\\,x\\neq \\simplify{{-a}}$, find the inverse function, $f^{-1}(x)$.
", "advice": "To find $f^{-1}x$, it can help to first set $f(x)$ to a different variable, which we will call $y$:
\n\\[ y = f(x) = \\simplify{({m}x+{c})/(x+{a})}\\]
\nSince the function $f(x)$ takes us from $x$ to $y$, the inverse function $f^{-1}$ will take us from $y$ to $x$. So to obtain $f^{-1}$, we want to rearrange $y=\\simplify{({m}x+{c})/(x+{a})}$ so that it is $x$ as a function of $y$:
\n\\[ \\begin{split} y &\\,= \\simplify{({m}x+{c})/(x+{a})} \\\\\\\\ \\simplify{(x+{a})y} &\\,= \\simplify{{m}x+{c}} \\\\\\\\ \\simplify{x*y+{a}y} &\\,= \\simplify{{m}x+{c}} \\\\\\\\ \\simplify{x*y - {m}x} &\\,= \\simplify{{c}- {a}y} \\\\ \\\\ \\simplify{x(y-{m})} &\\,= \\simplify{{c}-{a}y} \\\\\\\\ x&\\,= \\simplify{({c}-{a}y)/(y-{m})}. \\end{split} \\]
\nHence, $f^{-1}(y) =\\simplify{({c}-{a}y)/(y-{m})}$, and therefore \\[ f^{-1}(x) =\\simplify{({c}-{a}x)/(x-{m})}.\\]
\n(Note: The inverse is valid for all values of $x$ except $x=\\var{m}$, since this would make the denominator equal to 0.)
\nUse this link to find resources to help you revise how to find the inverse of functions.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"m": {"name": "m", "group": "Ungrouped variables", "definition": "random(2..9)", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(-9..9 except 0)", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(-8..8)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "abs(m)-abs(c)>0 or abs(m)-abs(c)<0", "maxRuns": 100}, "ungrouped_variables": ["m", "c", "a"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "$f^{-1}(x)=$[[0]]
", "gaps": [{"type": "jme", "useCustomName": true, "customName": "Gap 0", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "({c}-{a}x)/(x-{m})", "answerSimplification": "fractionNumbers", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "x", "value": ""}]}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "CA8 Logs - definition", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}, {"name": "Megan Oliver", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/23526/"}], "tags": [], "metadata": {"description": "Finding $x$ from a logarithmic equation of the form $\\log_ax = b$, where $a$ and $b$ are positive integers.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Find the value of $x$:
\n\\[ \\log_\\var{a}x = \\var{n} \\]
", "advice": "To find the value of $x$, recall that $\\log_a(x)=b$ is equivalent to $x=a^b$.
\nTherefore, \\[\\log_\\var{a}(x) = \\var{n} \\implies \\simplify[!collectNumbers]{x={a}^{n}}.\\]
\nHence, \\[x=\\var{a^n}\\,.\\]
\nUse this link to find resources to help you revise logarithms.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(2..10)", "description": "", "templateType": "anything", "can_override": false}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "random(2..4)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "n"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "$x=$ [[0]]
", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{a^n}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "CB1 Differentiate Polynomials 1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4679/"}, {"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}], "tags": [], "metadata": {"description": "Find the derivative of a function of the form $y=ax^b$ using a table of derivatives.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Calculate the derivative of $y=\\simplify{{a}x^{b}}$.
\n", "advice": "From the Table of Derivatives we see that a function of the form \\[ f(x)=kx^n \\] has a derivative \\[ \\frac{df}{dx} = knx^{n-1}. \\]
\nSo, for the function \\[ y=\\simplify{{a}x^{b}}, \\] the derivative is \\begin{split}\\frac{dy}{dx} &= (\\var{a}\\times\\var{b})x^{\\var{b}-1},\\\\ \\\\&= \\simplify{{a*b}x^{{b}-1}}.\\end{split}
\n\n
Use this link to find some resources which will help you revise this topic.
\n", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(-20..20 except 0)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(1 .. 5#1)", "description": "", "templateType": "randrange", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "b"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "$\\frac{dy}{dx}=$[[0]]
", "gaps": [{"type": "jme", "useCustomName": true, "customName": "Gap 0", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{a*b}x^{{b}-1}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "x", "value": ""}]}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "CB3 - Indefinite integration - polynomials", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "Calculating the integral of a function of the form $a_1x^{b_1}+a_2x^{b_2}+a_3x^{b_3}$ using a table of integrals.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Find the integral of $f(x)=\\simplify[unitFactor, unitPower, fractionNumbers]{{a_1}*x^{b_1}+{a_2}*x^{b_2}+{a_3}*x^{b_3}+{a_4}}$.
\n\n", "advice": "From the Table of Integrals we see that a function of the form \\[ f(x)=x^n \\] has the integral \\[ \\int x^n dx = \\frac{x^{n+1}}{n+1}+ c,\\]
\nand \\[\\int kf(x) dx = k \\int f(x) dx.\\]
\nAdditionally, the integral of the sum or difference of two or more functions is equal to the sum or difference of the integrals of each function: \\[ \\int(f(x)\\pm g(x))\\, dx = \\int f(x)\\, dx \\pm \\int g(x) \\, dx.\\]
\nSo, for the function
\n\\[f(x)=\\simplify[unitFactor,unitPower]{{a_1}*x^{b_1}+{a_2}*x^{b_2}+{a_3}*x^{b_3}+{a_4}},\\]
\nthe integral is
\n\\[ \\begin{split}\\simplify[unitFactor,unitPower]{int({a_1}*x^{b_1}+{a_2}*x^{b_2}+{a_3}*x^{b_3}+{a_4},x)} &\\,= \\simplify{{a_1}int(x^{b_1},x)+{a_2}int(x^{b_2},x)+{a_3}int(x^{b_3},x)+int({a_4},x)} \\\\&\\,= \\simplify[all,fractionNumbers]{({a_1}*x^{b_1+1})/{b_1+1}+({a_2}*x^{b_2+1})/{b_2+1}+({a_3}*x^{b_3+1})/{b_3+1}+{a_4}x}+c.\\end{split} \\]
\n\nNote: You only need to put one $c$ term here, you do not need to put a separate constant term for each calculation.
\n\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a_1": {"name": "a_1", "group": "Ungrouped variables", "definition": "random(1..10)", "description": "", "templateType": "anything", "can_override": false}, "b_1": {"name": "b_1", "group": "Ungrouped variables", "definition": "3", "description": "", "templateType": "anything", "can_override": false}, "a_2": {"name": "a_2", "group": "Ungrouped variables", "definition": "random(-10..10 except 0)", "description": "", "templateType": "anything", "can_override": false}, "b_2": {"name": "b_2", "group": "Ungrouped variables", "definition": "2", "description": "", "templateType": "anything", "can_override": false}, "b_3": {"name": "b_3", "group": "Ungrouped variables", "definition": "1", "description": "", "templateType": "anything", "can_override": false}, "a_3": {"name": "a_3", "group": "Ungrouped variables", "definition": "random(-10..10 except 0)", "description": "", "templateType": "anything", "can_override": false}, "advice": {"name": "advice", "group": "Ungrouped variables", "definition": "if(a_2>0 and a_3>0,'{solutiona}',{advice2})", "description": "", "templateType": "anything", "can_override": false}, "solutiona": {"name": "solutiona", "group": "Ungrouped variables", "definition": "\"So, for the function \\\\[y=\\\\simplify[all, fractionNumbers]{{a_1}x^{b_1}+{a_2}x^{b_2}+{a_3}x^{b_3}} \\\\] the derivative is \\\\begin{split}\\\\frac{dy}{dx} &= (\\\\var[fractionNumbers]{a_1}\\\\times\\\\var[fractionNumbers]{b_1})x^{\\\\var[fractionNumbers]{b_1}-1} +(\\\\var[fractionNumbers]{a_2}\\\\times\\\\var[fractionNumbers]{b_2})x^{\\\\var[fractionNumbers]{b_2}-1} +(\\\\var[fractionNumbers]{a_3}\\\\times\\\\var[fractionNumbers]{b_3})x^{\\\\var[fractionNumbers]{b_3}-1},\\\\\\\\ \\\\\\\\&= \\\\simplify[all, fractionNumbers]{{a_1*b_1}x^{b_1-1} +{a_2*b_2}x^{b_2-1} +{a_3*b_3}x^{b_3-1}}.\\\\end{split}
\"", "description": "", "templateType": "long string", "can_override": false}, "solutionb": {"name": "solutionb", "group": "Ungrouped variables", "definition": "\"So, for the function \\\\[y=\\\\simplify[all, fractionNumbers]{{a_1}x^{b_1}+{a_2}x^{b_2}+{a_3}x^{b_3}} \\\\] the derivative is \\\\begin{split}\\\\frac{dy}{dx} &= (\\\\var[fractionNumbers]{a_1}\\\\times\\\\var[fractionNumbers]{b_1})x^{\\\\var[fractionNumbers]{b_1}-1} -(\\\\var[fractionNumbers]{abs(a_2)}\\\\times\\\\var[fractionNumbers]{b_2})x^{\\\\var[fractionNumbers]{b_2}-1} +(\\\\var[fractionNumbers]{a_3}\\\\times\\\\var[fractionNumbers]{b_3})x^{\\\\var[fractionNumbers]{b_3}-1},\\\\\\\\ \\\\\\\\&= \\\\simplify[all, fractionNumbers]{{a_1*b_1}x^{b_1-1} +{a_2*b_2}x^{b_2-1} +{a_3*b_3}x^{b_3-1}}.\\\\end{split}
\"", "description": "", "templateType": "long string", "can_override": false}, "solutionc": {"name": "solutionc", "group": "Ungrouped variables", "definition": "\"So, for the function \\\\[y=\\\\simplify[all, fractionNumbers]{{a_1}x^{b_1}+{a_2}x^{b_2}+{a_3}x^{b_3}} \\\\] the derivative is \\\\begin{split}\\\\frac{dy}{dx} &= (\\\\var[fractionNumbers]{a_1}\\\\times\\\\var[fractionNumbers]{b_1})x^{\\\\var[fractionNumbers]{b_1}-1} +(\\\\var[fractionNumbers]{a_2}\\\\times\\\\var[fractionNumbers]{b_2})x^{\\\\var[fractionNumbers]{b_2}-1} -(\\\\var[fractionNumbers]{abs(a_3)}\\\\times\\\\var[fractionNumbers]{b_3})x^{\\\\var[fractionNumbers]{b_3}-1},\\\\\\\\ \\\\\\\\&= \\\\simplify[all, fractionNumbers]{{a_1*b_1}x^{b_1-1} +{a_2*b_2}x^{b_2-1} +{a_3*b_3}x^{b_3-1}}.\\\\end{split}
\"", "description": "", "templateType": "long string", "can_override": false}, "solutiond": {"name": "solutiond", "group": "Ungrouped variables", "definition": "\"So, for the function \\\\[y=\\\\simplify[all, fractionNumbers]{{a_1}x^{b_1}+{a_2}x^{b_2}+{a_3}x^{b_3}} \\\\] the derivative is \\\\begin{split}\\\\frac{dy}{dx} &= (\\\\var[fractionNumbers]{a_1}\\\\times\\\\var[fractionNumbers]{b_1})x^{\\\\var[fractionNumbers]{b_1}-1} -(\\\\var[fractionNumbers]{abs(a_2)}\\\\times\\\\var[fractionNumbers]{b_2})x^{\\\\var[fractionNumbers]{b_2}-1} -(\\\\var[fractionNumbers]{abs(a_3)}\\\\times\\\\var[fractionNumbers]{b_3})x^{\\\\var[fractionNumbers]{b_3}-1},\\\\\\\\ \\\\\\\\&= \\\\simplify[all, fractionNumbers]{{a_1*b_1}x^{b_1-1} +{a_2*b_2}x^{b_2-1} +{a_3*b_3}x^{b_3-1}}.\\\\end{split}
\"", "description": "", "templateType": "long string", "can_override": false}, "advice2": {"name": "advice2", "group": "Ungrouped variables", "definition": "if(a_2<0 and a_3>0,'{solutionb}',{advice3})", "description": "", "templateType": "anything", "can_override": false}, "advice3": {"name": "advice3", "group": "Ungrouped variables", "definition": "if(a_2>0 and a_3<0,'{solutionc}','{solutiond}')", "description": "", "templateType": "anything", "can_override": false}, "a_4": {"name": "a_4", "group": "Ungrouped variables", "definition": "random(-10..10 except 0)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "b_1>b_2 and b_2>b_3", "maxRuns": "100"}, "ungrouped_variables": ["a_1", "a_2", "a_3", "b_1", "b_2", "b_3", "advice", "advice2", "advice3", "solutiona", "solutionb", "solutionc", "solutiond", "a_4"], "variable_groups": [{"name": "Unnamed group", "variables": []}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "[[0]]
", "gaps": [{"type": "jme", "useCustomName": true, "customName": "Gap 0", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "alternatives": [{"type": "jme", "useCustomName": true, "customName": "Alternative using \"+k\"", "marks": "1", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "alternativeFeedbackMessage": "", "useAlternativeFeedback": false, "answer": "{a_1}x^{{b_1}+1}/{b_1+1}+{a_2}x^{{b_2}+1}/{b_2+1}+{a_3}x^{{b_3}+1}/{b_3+1}+{a_4}x+x", "answerSimplification": "all, fractionNumbers", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": "0.01", "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "x", "value": ""}]}, {"type": "jme", "useCustomName": true, "customName": "Forgotten constant", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "alternativeFeedbackMessage": "It looks like you forgot to include the integration constant. You should always remember the \"+C\" when doing an indefinite integral.
", "useAlternativeFeedback": false, "answer": "{a_1}x^{{b_1}+1}/{b_1+1}+{a_2}x^{{b_2}+1}/{b_2+1}+{a_3}x^{{b_3}+1}/{b_3+1}+{a_4}x", "answerSimplification": "all, fractionNumbers", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": "0.01", "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "x", "value": ""}]}], "answer": "{a_1}x^{{b_1}+1}/{b_1+1}+{a_2}x^{{b_2}+1}/{b_2+1}+{a_3}x^{{b_3}+1}/{b_3+1}+{a_4}x+c", "answerSimplification": "all, fractionNumbers", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": "0.01", "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "c", "value": ""}, {"name": "x", "value": ""}]}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "CB4 Definite integration", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}], "tags": [], "metadata": {"description": "Calculating the definite integral $\\int_{n_1}^{n_2}a_1x^{b_1}+a_2x^{b_2}+a_3x^{b_3} dx$.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Evaluate \\[ \\int_{\\var{n_1}}^{\\var{n_2}}\\simplify[unitFactor, unitPower, fractionNumbers]{{a_1}*x^{b_1}+{a_2}*x^{b_2}+{a_3}*x^{b_3}} \\,dx.\\]
\n", "advice": "Integrating a function of the form \\[ f(x)=x^n \\] has the integral \\[ \\int_a^b x^n dx = \\left[\\frac{x^{n+1}}{n+1}\\right]_a^b,\\]
\nand \\[\\int_a^b kf(x) dx = k \\int_a^b f(x) dx.\\]
\nAdditionally, the integral of the sum or difference of two or more functions is equal to the sum or difference of the integrals of each function: \\[ \\int(f(x)\\pm g(x))\\, dx = \\int f(x)\\, dx \\pm \\int g(x) \\, dx.\\]
\n\nTherefore,
\n\\[ \\begin{split}\\simplify[unitFactor,unitPower]{defint({a_1}*x^{b_1}+{a_2}*x^{b_2}+{a_3}*x^{b_3},x,{n_1},{n_2})} &\\,= \\simplify{{a_1}defint(x^{b_1},x,{n_1},{n_2})+{a_2}defint(x^{b_2},x,{n_1},{n_2})+{a_3}defint(x^{b_3},x,{n_1},{n_2})} \\\\ &\\,= \\left[\\simplify[all,fractionNumbers]{{a_1}x^{b_1+1}/{b_1+1}+{a_2}x^{b_2+1}/{b_2+1}+{a_3}x^{b_3+1}/{b_3+1}}\\right]_\\var{n_1}^\\var{n_2} \\\\ &\\,= \\left[\\simplify[all,fractionNumbers,!collectNumbers]{{a_1*n_2^(b_1+1)}/{b_1+1}+{a_2*n_2^(b_2+1)}/{b_2+1}+{a_3*n_2^(b_3+1)}/{b_3+1}}\\right] -\\left[\\simplify[all,fractionNumbers,!collectNumbers]{{a_1*n_1^(b_1+1)}/{b_1+1}+{a_2*n_1^(b_2+1)}/{b_2+1}+{a_3*n_1^(b_3+1)}/{b_3+1}}\\right] \\\\ &\\,= \\simplify[!collectNumbers]{{eval2a}-{eval1a}} \\\\ &\\,=\\var{sol1} \\end{split} \\]
\nUse this link to find some resources on areas under curves which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a_1": {"name": "a_1", "group": "Ungrouped variables", "definition": "random(1..5)", "description": "", "templateType": "anything", "can_override": false}, "b_1": {"name": "b_1", "group": "Ungrouped variables", "definition": "3", "description": "", "templateType": "anything", "can_override": false}, "a_2": {"name": "a_2", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "b_2": {"name": "b_2", "group": "Ungrouped variables", "definition": "2", "description": "", "templateType": "anything", "can_override": false}, "b_3": {"name": "b_3", "group": "Ungrouped variables", "definition": "1", "description": "", "templateType": "anything", "can_override": false}, "a_3": {"name": "a_3", "group": "Ungrouped variables", "definition": "random(-6..6 except 0)", "description": "", "templateType": "anything", "can_override": false}, "n_1": {"name": "n_1", "group": "Ungrouped variables", "definition": "random(0..2)", "description": "", "templateType": "anything", "can_override": false}, "n_2": {"name": "n_2", "group": "Ungrouped variables", "definition": "random(2..5)", "description": "", "templateType": "anything", "can_override": false}, "eval2": {"name": "eval2", "group": "Ungrouped variables", "definition": "a_1*n_2^(b_1+1)/(b_1+1)+a_2*n_2^(b_2+1)/(b_2+1)+a_3*n_2^(b_3+1)/(b_3+1)", "description": "", "templateType": "anything", "can_override": false}, "eval1": {"name": "eval1", "group": "Ungrouped variables", "definition": "a_1*n_1^(b_1+1)/(b_1+1)+a_2*n_1^(b_2+1)/(b_2+1)+a_3*n_1^(b_3+1)/(b_3+1)", "description": "", "templateType": "anything", "can_override": false}, "eval2a": {"name": "eval2a", "group": "Ungrouped variables", "definition": "precround(eval2,3)", "description": "", "templateType": "anything", "can_override": false}, "eval1a": {"name": "eval1a", "group": "Ungrouped variables", "definition": "precround(eval1,3)", "description": "", "templateType": "anything", "can_override": false}, "sol": {"name": "sol", "group": "Ungrouped variables", "definition": "eval2-eval1", "description": "", "templateType": "anything", "can_override": false}, "sol1": {"name": "sol1", "group": "Ungrouped variables", "definition": "precround(sol,2)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "b_1>b_2 and b_2>b_3 and n_2>n_1", "maxRuns": "100"}, "ungrouped_variables": ["a_1", "a_2", "a_3", "b_1", "b_2", "b_3", "n_1", "n_2", "eval2", "eval1", "eval2a", "eval1a", "sol", "sol1"], "variable_groups": [{"name": "Unnamed group", "variables": []}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "[[0]] (Give answers to 2 decimal places where necessary)
", "gaps": [{"type": "jme", "useCustomName": true, "customName": "Gap 0", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{sol1}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": "0.01", "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "CB5 - Finding turning points", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "Finding the stationary points of a cubic equation and determining their nature.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Given the function \\[ \\simplify{y={a}x^3+{b}x^2+{c}x+{d}} ,\\] find its stationary points and determine their nature.
", "advice": "To find the stationary points of the function, we must solve $\\tfrac{dy}{dx}=0$ for $x$. For the function $\\simplify{y={a}x^3+{b}x^2+{c}x+{d}}$,
\n\\[ \\frac{dy}{dx} = \\simplify{{3a}x^2+{2b}x+{c}}. \\]
\nSetting $\\frac{dy}{dx}=0$ and solving for $x$:
\n\\[ \\simplify{{3a}x^2+{2b}x+{c}} =0 \\\\ \\\\ \\implies x=\\var{solx1dp} \\var{x1} \\text{ and } x=\\var{solx2dp} \\var{x2}. \\]
\nHence, the function has two stationary points at $x=\\var{solx1dp}$ and $x=\\var{solx2dp}$. To find the corresponding $y$-coordinates, we want to plug these values back into the initial equation.
\nWhen $x=\\var{solx1dp}$,
\n\\[ \\begin{split} y &\\,= \\simplify[unitFactor,!cancelTerms]{{a}*({solx1dp})^3+{b}*({solx1dp})^2+{c}*({solx1dp})+{d}} \\\\ &\\,=\\simplify{{soly1dp}} \\var{y1}. \\end{split} \\]
\nWhen $x=\\var{solx2dp}$,
\n\\[ \\begin{split} y &\\,= \\simplify[unitFactor,!cancelTerms]{{a}*({solx2dp})^3+{b}*({solx2dp})^2+{c}*({solx2dp})+{d}} \\\\ &\\,=\\simplify{{soly2dp}} \\var{y2}. \\end{split} \\]
\nTherefore, the stationary points of $y=\\simplify{{a}x^3+{b}x^2+{c}x+{d}}$ are
\n\\[ (\\simplify{{solx1dp}},\\, \\simplify{{soly1dp}}) \\, , \\,(\\simplify{{solx2dp}},\\, \\simplify{{soly2dp}}). \\]
\nFinally, we need to determine the nature of the stationary points. To do this we want to calculate the second derivative of the initial function and then evaluate it for each $x$-value of the stationary points.
\nRecall:
\nTo calculate $\\tfrac{d^2y}{dx^2}$, we want to differentiate $\\tfrac{dy}{dx}$ again with respect to $x$:
\n\\[ \\begin{split} &\\frac{dy}{dx} = \\simplify{{3a}x^2+{2b}x+{c}}, \\\\ \\\\\\implies &\\frac{d^2y}{dx^2} = \\simplify{{6a}x+{2b}}. \\end{split}\\]
\nFor $(\\simplify{{solx1dp}},\\, \\simplify{{soly1dp}})$, $\\frac{d^2y}{dx^2} = \\simplify{{check}}$, so it is a minimum.
\nFor $(\\simplify{{solx2dp}},\\, \\simplify{{soly2dp}})$, $\\frac{d^2y}{dx^2} = \\simplify{{check2}}$, so it is a maximum.
\n\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(1..3)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(-5..5)", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(-7..7)", "description": "", "templateType": "anything", "can_override": false}, "d": {"name": "d", "group": "Ungrouped variables", "definition": "random(-5..5 except b)", "description": "", "templateType": "anything", "can_override": false}, "solx1": {"name": "solx1", "group": "Ungrouped variables", "definition": "(-2b+sqrt((2b)^2-12*a*c))/(6a)", "description": "", "templateType": "anything", "can_override": false}, "solx2": {"name": "solx2", "group": "Ungrouped variables", "definition": "(-2b-sqrt((2b)^2-12*a*c))/(6a)", "description": "", "templateType": "anything", "can_override": false}, "check": {"name": "check", "group": "Ungrouped variables", "definition": "precround(6a*solx1+2b,2)", "description": "", "templateType": "anything", "can_override": false}, "check2": {"name": "check2", "group": "Ungrouped variables", "definition": "precround(6a*solx2+2b,2)", "description": "", "templateType": "anything", "can_override": false}, "soly1": {"name": "soly1", "group": "Ungrouped variables", "definition": "a*(solx1)^3+b*(solx1)^2+c*solx1+d", "description": "", "templateType": "anything", "can_override": false}, "soly2": {"name": "soly2", "group": "Ungrouped variables", "definition": "a*(solx2)^3+b*(solx2)^2+c*solx2+d", "description": "", "templateType": "anything", "can_override": false}, "solx1dp": {"name": "solx1dp", "group": "Ungrouped variables", "definition": "precround(solx1,2)", "description": "", "templateType": "anything", "can_override": false}, "solx2dp": {"name": "solx2dp", "group": "Ungrouped variables", "definition": "precround(solx2,2)", "description": "", "templateType": "anything", "can_override": false}, "soly1dp": {"name": "soly1dp", "group": "Ungrouped variables", "definition": "precround(soly1,2)", "description": "", "templateType": "anything", "can_override": false}, "soly2dp": {"name": "soly2dp", "group": "Ungrouped variables", "definition": "precround(soly2,2)", "description": "", "templateType": "anything", "can_override": false}, "x1": {"name": "x1", "group": "Ungrouped variables", "definition": "if(round(solx1)=solx1,'','(2 d.p.)')", "description": "", "templateType": "anything", "can_override": false}, "x2": {"name": "x2", "group": "Ungrouped variables", "definition": "if(round(solx2)=solx2,'','(2 d.p.)')", "description": "", "templateType": "anything", "can_override": false}, "y1": {"name": "y1", "group": "Ungrouped variables", "definition": "if(round(soly1)=soly1,'','(2 d.p.)')", "description": "", "templateType": "anything", "can_override": false}, "y2": {"name": "y2", "group": "Ungrouped variables", "definition": "if(round(soly2)=soly2,'','(2 d.p.)')", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "b^2>3*a*c", "maxRuns": "100"}, "ungrouped_variables": ["a", "b", "c", "d", "solx1", "soly1", "solx2", "soly2", "check", "check2", "solx1dp", "solx2dp", "soly1dp", "soly2dp", "x1", "x2", "y1", "y2"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "There is a minimum point at ([[0]], [[1]]) and a maximum point at ([[2]] , [[3]]).
\n(Give the coordinates of the stationary points to 2 decimal places where necessary.)
", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{solx1dp}", "showPreview": false, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{soly1dp}", "showPreview": false, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{solx2dp}", "showPreview": false, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{soly2dp}", "showPreview": false, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "CC2 Product Rule", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4679/"}, {"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}], "tags": [], "metadata": {"description": "Calculating the derivative a function of the form $ax^n \\sin(bx)$ using the product rule.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Find the derivative of \\[ \\simplify{y={a}x^{n} sin({b}x)}. \\]
", "advice": "If we have a function of the form $y=u(x)v(x)$, to calculate its derivative we need to use the product rule:
\n\\[ \\dfrac{dy}{dx} = u(x) \\times \\dfrac{dv}{dx} + v(x) \\times\\dfrac{du}{dx}.\\]
\nThis can be split up into steps:
\nFollowing this process, we must first identify $u(x)$ and $v(x)$.
\nAs \\[ \\simplify{y={a}x^{n} sin({b}x)}, \\]
\nlet \\[ u(x) = \\simplify{{a}x^{n}} \\quad \\text{and} \\quad v(x)=\\simplify{sin({b}x)}.\\]
\nNext, we need to find the derivatives, $\\tfrac{du}{dx}$ and $\\tfrac{dv}{dx}$:
\n\\[ \\dfrac{du}{dx} = \\simplify{{a*n}x^{n-1}}\\quad \\text{and} \\quad\\dfrac{dv}{dx}=\\simplify{{b}cos({b}x)}.\\]
\nSubstituting these results into the product rule formula we can obtain an expression for $\\tfrac{dy}{dx}$:
\n\\[ \\begin{split} \\dfrac{dy}{dx} &\\,= \\dfrac{du}{dx}\\times v(x) + u(x) \\times\\dfrac{dv}{dx} \\\\ &\\,=\\simplify{{a*n}x^{n-1}} \\times\\simplify{sin({b}x)} +\\simplify{{a}x^{n}} \\times \\simplify{{b}cos({b}x)}. \\end{split}\\]
\nSimplifying,
\n\\[\\dfrac{dy}{dx} = \\simplify{{n*a}x^{n-1}sin({b}x) + {a*b}x^{n}cos({b}x)}. \\]
\n\nUse this link to find some resources which will help you revise this topic
\n", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(1..10)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(1..10)", "description": "", "templateType": "anything", "can_override": false}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "random(2..5)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "b", "n"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "$\\dfrac{dy}{dx}=$[[0]]
", "gaps": [{"type": "jme", "useCustomName": true, "customName": "Gap 0", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{n*a}x^{n-1}sin({b}x) + {a*b}x^{n}cos({b}x)", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "x", "value": ""}]}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "CC3 Quotient Rule", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4679/"}, {"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}], "tags": [], "metadata": {"description": "Calculating the derivative of a function of the form $\\frac{ax^n}{bx+c}$ using the quotient rule.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Find the derivative of \\[ \\simplify{y={a}x^{n}/({b}x+{c})}. \\]
", "advice": "If we have a function of the form $y=\\tfrac{u(x)}{v(x)}$, to calculate its derivative we need to use the quotient rule:
\n\\[ \\dfrac{dy}{dx} = \\dfrac{v(x) \\times \\frac{du}{dx} - u(x) \\times\\frac{dv}{dx}}{[v(x)]^2}\\,.\\]
\nThis can be split up into steps:
\nFollowing this process, we must first identify $u(x)$ and $v(x)$.
\nAs \\[ \\simplify{y={a}x^{n}/({b}x+{c})}, \\]
\nlet \\[ u(x) = \\simplify{{a}x^{n}} \\quad \\text{and} \\quad v(x)=\\simplify{{b}x+{c}}.\\]
\nNext, we need to find the derivatives, $\\tfrac{du}{dx}$ and $\\tfrac{dv}{dx}$:
\n\\[ \\dfrac{du}{dx} = \\simplify{{a*n}x^{n-1}}\\quad \\text{and} \\quad\\dfrac{dv}{dx}=\\simplify{{b}}.\\]
\nSubstituting these results into the quotient rule formula we can obtain an expression for $\\tfrac{dy}{dx}$:
\n\\[ \\begin{split} \\dfrac{dy}{dx} &\\,= \\dfrac{v(x) \\times \\frac{du}{dx} - u(x) \\times\\frac{dv}{dx}}{[v(x)]^2} \\\\ \\\\&\\,=\\dfrac{(\\simplify{{b}x+{c}}) \\times\\simplify{{a*n}x^{n-1}} - \\simplify{{a}x^{n}} \\times \\simplify{{b}}}{\\simplify{({b}x+{c})^2}}. \\end{split}\\]
\nSimplifying,
\n\\[ \\begin{split} \\dfrac{dy}{dx} &\\,=\\dfrac{(\\simplify{{b}x+{c}})\\simplify{{a*n}x^{n-1}} - \\simplify{{b*a}x^{n}}}{\\simplify{({b}x+{c})^2}} \\\\ \\\\&\\,=\\dfrac{\\simplify[all,!cancelTerms]{{b*a*n}x^{n}+{c*a*n}x^{n-1} - {b*a}x^{n}}}{\\simplify{({b}x+{c})^2}}\\\\ \\\\ &\\,=\\dfrac{\\simplify{{b*a*n}x^{n}+{c*a*n}x^{n-1} - {b*a}x^{n}}}{\\simplify{({b}x+{c})^2}} \\\\ \\\\ &\\,=\\dfrac{\\simplify{{simp}x^{n-1}({(b*a*n-b*a)/simp}x+{c*a*n/simp})}}{\\simplify{({b}x+{c})^2}} \\end{split} \\]
\n\nUse this link to find some resources which will help you revise this topic.
\n", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(1..5)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(1..6)", "description": "", "templateType": "anything", "can_override": false}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "random(2..5)", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(-6..6 except [0,b])", "description": "", "templateType": "anything", "can_override": false}, "simp": {"name": "simp", "group": "Ungrouped variables", "definition": "gcd(b*a*n-b*a,c*a*n)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "simp>1", "maxRuns": 100}, "ungrouped_variables": ["a", "b", "c", "n", "simp"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "
$\\dfrac{dy}{dx}=$[[0]]
", "gaps": [{"type": "jme", "useCustomName": true, "customName": "Gap 0", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "({simp}x^{n-1}({(b*a*n-a*b)/simp}x+{c*a*n/simp}))/({b}x+{c})^2", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "x", "value": ""}]}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "SA1 Types of data", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Stanislav Duris", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1590/"}, {"name": "Lauren Desoysa", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21504/"}, {"name": "Michael Pan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/23528/"}], "tags": ["continuous data", "discrete data", "taxonomy"], "metadata": {"description": "Decide whether each of the described sets of data is drawn from a discrete or continuous distribution.
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "Decide whether the following data sets are discrete or continuous.
", "advice": "Data can either be discrete or continuous.
\nHeight is a continuous variable. For example, 180.3cm and 180.4cm have a valid midpoint 180.35cm.Weight is a continuous variable. For example, 54.5kg and 54.6kg have a valid midpoint 54.55kg.Time is a continuous variable. For example, 54.2s and 54.3s have a valid midpoint 54.25s.Temperature is a continuous variable, it can take any value between -273.15°C (absolute zero) and positive infinity. For example, 25°C and 26°C have a valid midpoint 25.5°C. Hence, this data is continuous.
\nThe number of Stage 1 students will always be an integer. You cannot split one student into two, for example value 19.5 students does not make sense. Therefore, this is a discrete set of data.The result of rolling 3 dice can take values of integers from 3 up to 18. For example, values 3 and 4 do not have any valid middle measurement. Therefore, this is a discrete set of data.Shoe sizes are a discrete set of data. For example, sizes 39 and 40 mean something while the middle value 39.5 does not.The number of chocolate bars sold on Monday will always be an integer. There is no middle measurement between 1 and 2 bars sold. You cannot buy a half of a bar. Therefore, this is a discrete set of data.The number of movies downloaded will always be an integer. You can either download a movie successfully or unsuccessfuly, so this is a discrete set of data. It is impossible to split 0 and 1 movies downloaded into 0.5. The number of cinema tickets sold will always be a whole number. There is no middle measurement between 1 and 2 tickets sold. You simply cannot buy half of a ticket. Therefore, this is a discrete set of data.
\nThe number of Stage 1 students will always be an integer. You cannot split one student into two, for example value 19.5 students does not make sense. Therefore, this is a discrete set of data.The result of rolling 3 dice can take values of integers from 3 up to 18. For example, values 3 and 4 do not have any valid middle measurement. Therefore, this is a discrete set of data.Shoe sizes are a discrete set of data. For example, sizes 39 and 40 mean something while the middle value 39.5 does not..The number of chocolate bars sold on Monday will always be an integer. There is no middle measurement between 1 and 2 bars sold. You cannot buy a half of a bar. Therefore, this is a discrete set of data.The number of movies downloaded will always be an integer. You can either download a movie successfully or unsuccessfuly, so this is a discrete set of data. It is impossible to split 0 and 1 movies downloaded into 0.5.The number of cinema tickets sold will always be a whole number. There is no middle measurement between 1 and 2 tickets sold. You simply cannot buy half of a ticket. Therefore, this is a discrete set of data.
\nHeight is a continuous variable. For example, 180.3cm and 180.4cm have a valid midpoint 180.35cm.Weight is a continuous variable. For example, 54.5kg and 54.6kg have a valid midpoint 54.55kg.Time is a continuous variable. For example, 54.2s and 54.3s have a valid midpoint 54.25s.Temperature is a continuous variable, it can take any value between -273.15°C (absolute zero) and positive infinity. For example, 25°C and 26°C have a valid midpoint 25.5°C. Hence, this data is continuous.
\nWhen we round continuous variables to the nearest integer, this data becomes discrete, as there are no valid middle measurements between the integers. Therefore, the weight of a dog to the nearest kgthe height of Olympic medalists to the nearest cmthe time taken to run 10km to the nearest min is discrete and not continuous.
\nThe number of Stage 1 students will always be an integer. You cannot split one student into two, for example value 19.5 students does not make sense. Therefore, this is a discrete set of data.The result of rolling 3 dice can take values of integers from 3 up to 18. For example, values 3 and 4 do not have any valid middle measurement. Therefore, this is a discrete set of data.Shoe sizes are a discrete set of data. For example, sizes 39 and 40 mean something while the middle value 39.5 does not.The number of chocolate bars sold on Monday will always be an integer. There is no middle measurement between 1 and 2 bars sold. You cannot buy half of a bar of chocolate. Therefore, this is a discrete set of data.The number of movies downloaded will always be an integer. You can either download a movie successfully or unsuccessfuly, so this is a discrete set of data. It is impossible to split 0 and 1 movies downloaded into 0.5.The number of cinema tickets sold will always be a whole number. There is no middle measurement between 1 and 2 tickets sold. You simply cannot buy half of a ticket. Therefore, this is a discrete set of data.
\nUse this link to find some resources which will help you revise this topic
\n", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"rand3": {"name": "rand3", "group": "Ungrouped variables", "definition": "random(0..5 except rand except rand2)", "description": "", "templateType": "anything", "can_override": false}, "cont": {"name": "cont", "group": "Ungrouped variables", "definition": "[\"The height of Newcastle University students.\", \"The weight of Olympic medalists.\", \"The time taken to brush teeth.\", \"The maximum daily temperature.\"]", "description": "", "templateType": "anything", "can_override": false}, "disc": {"name": "disc", "group": "Ungrouped variables", "definition": "[\"The number of Stage 1 students.\", \"The result of rolling 3 dice.\", \"Shoe sizes.\", \"The number of chocolate bars sold on Monday.\", \"The number of movies downloaded.\", \"The number of cinema tickets sold.\"]", "description": "", "templateType": "anything", "can_override": false}, "trick": {"name": "trick", "group": "Ungrouped variables", "definition": "[\"The weight of a dog to the nearest kg.\", \"The height of Olympic medalists to the nearest cm.\", \"The time taken to run 10km to the nearest min.\"]", "description": "", "templateType": "anything", "can_override": false}, "ranc2": {"name": "ranc2", "group": "Ungrouped variables", "definition": "random(0..3 except ranc)", "description": "", "templateType": "anything", "can_override": false}, "rant": {"name": "rant", "group": "Ungrouped variables", "definition": "random(0..2)", "description": "", "templateType": "anything", "can_override": false}, "rand": {"name": "rand", "group": "Ungrouped variables", "definition": "random(0..5)", "description": "", "templateType": "anything", "can_override": false}, "rand2": {"name": "rand2", "group": "Ungrouped variables", "definition": "random(0..5 except rand)", "description": "", "templateType": "anything", "can_override": false}, "ranc": {"name": "ranc", "group": "Ungrouped variables", "definition": "random(0..3)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["disc", "cont", "trick", "ranc", "rant", "ranc2", "rand2", "rand3", "rand"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "{cont[ranc]}
", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["Discrete
", "Continuous
"], "matrix": [0, "1"], "distractors": ["", ""]}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "{disc[rand]}
", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["Discrete
", "Continuous
"], "matrix": ["1", 0], "distractors": ["", ""]}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "{disc[rand2]}
", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["Discrete
", "Continuous
"], "matrix": ["1", 0], "distractors": ["", ""]}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "{cont[ranc2]}
", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["Discrete
", "Continuous
"], "matrix": [0, "1"], "distractors": ["", ""]}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "{trick[rant]}
", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["Discrete
", "Continuous
"], "matrix": ["1", 0], "distractors": ["", ""]}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "{disc[rand3]}
", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["Discrete
", "Continuous
"], "matrix": ["1", 0], "distractors": ["", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "SA2 Choosing a suitable chart", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Lauren Desoysa", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21504/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}, {"name": "Michael Pan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/23528/"}], "tags": [], "metadata": {"description": "This question is about identifying what types of charts or visual representations of data you can use for different data sets.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "This question is about recognising what types of charts or visual representations of data you can use with what types of data sets.
", "advice": "There are many different types of visual representations of data and sometimes there will be a choice of what you use.
\n\n", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "m_n_x", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "The table shows different names of charts on the left hand side and different descriptions of data sets along the top.
\nPair up each description with the chart that would be most suitable.
", "minMarks": 0, "maxMarks": 0, "minAnswers": 0, "maxAnswers": 0, "shuffleChoices": false, "shuffleAnswers": true, "displayType": "radiogroup", "warningType": "none", "showCellAnswerState": true, "markingMethod": "sum ticked cells", "choices": ["Scatter plot", "Histogram", "Bar Chart"], "matrix": [["1", 0, 0], [0, "0", "1"], [0, "1", "0"]], "layout": {"type": "all", "expression": ""}, "answers": ["Two continuous variables plotted against each other to investigate their relationship.", "Non-numerical categories and the frequencies of each category.", "A continuous variable such as \"height in $cm$\" grouped into intervals showingthe frequency of the data in each interval."]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "SA5 Interpret a Box Plot", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Lauren Desoysa", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21504/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}, {"name": "Michael Pan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/23528/"}], "tags": [], "metadata": {"description": "Interpreting the elements of a box plot
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "The diagram below shows a box plot of some data.
\n{geogebra_applet{\"https://www.geogebra.org/m/aj2hcbhg\",[lv: lv,lq: lq,m: m,uq: uq,hv: hv]}}
\n", "advice": "A boxplot (also known as a box-and-whisker diagram or plot) is a convenient way of graphically depicting groups of numerical data through their five-number summaries: the smallest observation (sample minimum), lower quartile (Q1), median (Q2), upper quartile (Q3), and largest observation (sample maximum). A boxplot may also indicate which observations, if any, might be considered outliers.
\nFor more information on box plots follow this link.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"lv": {"name": "lv", "group": "Ungrouped variables", "definition": "random(2 .. 6#1)", "description": "", "templateType": "randrange", "can_override": false}, "lq": {"name": "lq", "group": "Ungrouped variables", "definition": "random(7 .. 10#1)", "description": "", "templateType": "randrange", "can_override": false}, "m": {"name": "m", "group": "Ungrouped variables", "definition": "random(11 .. 14#1)", "description": "", "templateType": "randrange", "can_override": false}, "uq": {"name": "uq", "group": "Ungrouped variables", "definition": "random(15 .. 22#1)", "description": "", "templateType": "randrange", "can_override": false}, "hv": {"name": "hv", "group": "Ungrouped variables", "definition": "random(23 .. 30#1)", "description": "", "templateType": "randrange", "can_override": false}, "IQR": {"name": "IQR", "group": "Ungrouped variables", "definition": "uq-lq", "description": "", "templateType": "anything", "can_override": false}, "range": {"name": "range", "group": "Ungrouped variables", "definition": "hv-lv", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["lv", "lq", "m", "uq", "hv", "IQR", "range"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "m_n_x", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "Which of these statements are true and which are false?
", "minMarks": 0, "maxMarks": 0, "minAnswers": 0, "maxAnswers": 0, "shuffleChoices": true, "shuffleAnswers": false, "displayType": "radiogroup", "warningType": "none", "showCellAnswerState": true, "markingMethod": "sum ticked cells", "choices": ["The range of the data is $\\var{range}$.", "The Interquarttile range of the data is larger than the range of the data.", "You can calculate the mean of the data from this Box plot.", "The median of the data is $\\var{m}$.
", "The mode of the data is $\\var{lv-3}$."], "matrix": [["1", 0], [0, "1"], [0, "1"], ["1", 0], [0, "1"]], "layout": {"type": "all", "expression": ""}, "answers": ["True.", "False."]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "SA10 Choosing the appropriate average", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Lauren Desoysa", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21504/"}, {"name": "Michael Pan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/23528/"}], "tags": [], "metadata": {"description": "This question asks the student to choose the appropriate measure of average and spread for a data with outliers.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Which of the following measures would you choose if you were dealing with data which includes outliers? Select one measure of average and one measure of spread.
", "advice": "The median is a more appropriate measure of average when your data contains outliers because outliers do not affect the median.
\nThe interquartile range is the best measure of variability for skewed distributions or data sets with outliers. Because it’s based on values that come from the middle half of the distribution, it’s unlikely to be influenced by outliers.
\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "m_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "checkbox", "displayColumns": 0, "minAnswers": 0, "maxAnswers": 0, "warningType": "none", "showCellAnswerState": true, "markingMethod": "sum ticked cells", "choices": ["Mean", "Median", "Standard deviation", "P-value", "Range", "Inter-quartile range"], "matrix": [0, "1", 0, 0, 0, "1"], "distractors": ["", "", "", "", "", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "SA11 Identify measures of spread/location", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Gareth Woods", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/978/"}, {"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Lauren Desoysa", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21504/"}, {"name": "Michael Pan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/23528/"}], "tags": [], "metadata": {"description": "Identifying measures of spread or location (average)
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Match each of the following with what they measure.
", "advice": "The mean is a measure of location or central tendancy. It is calcuated by summing all of the data values and dividing by the number of values.
\nThe median is a measure of location or central tendancy. It is the middle value of an ordered data set.
\nThe inter-quartile range is a measure of spread. The interquartile range is the difference between upper and lower quartiles.The lower quartile, or first quartile (Q1), is the value under which 25% of data points are found when they are arranged in increasing order. The upper quartile, or third quartile (Q3), is the value under which 75% of data points are found when arranged in increasing order. The inter-quartile range therefore gives us an idea of the middle 50% of the ordered data set.
\nThe standard deviation is a measure of spread. It measures the dispersion of a data set relative to its mean.
\nThe variance is a measure spread because it is the square of the standard deviation.
\nA p-value the probability that a particular statistical measure, such as the mean or standard deviation, of an assumed probability distribution will be greater than or equal to (or less than or equal to in some instances) observed results. A p-value is used to determine statistical significance, not measures of spread or location.
\nUse this link to find some resources which will help you revise this topic.
", "rulesets": {"std": ["all", "fractionNumbers"]}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "function dragpoint_board() {\n var scope = question.scope;\n\n JXG.Options.text.display = 'internal';\n \n var yo0 = scope.variables.yo0.value;\n var yo1 = scope.variables.yo1.value;\n var yo2 = scope.variables.yo2.value;\n var yo3 = scope.variables.yo3.value;\n var yo4 = scope.variables.yo4.value;\n var yo5 = scope.variables.yo5.value;\n var yo6 = scope.variables.yo6.value;\n var yo7 = scope.variables.yo7.value; \n var yo8 = scope.variables.yo8.value;\n var yo9 = scope.variables.yo9.value; \n \n var div = Numbas.extensions.jsxgraph.makeBoard('550px','550px',{boundingBox:[-0.8,82,16,-8], axis:false, grid:true});\n \n $(question.display.html).find('#dragpoint').append(div);\n \n var board = div.board;\n \nboard.suspendUpdate(); \n\n \n var dataArr = [yo0,yo5,0,yo1,yo6,0,yo2,yo7,0,yo3,yo8,0,yo4,yo9]; \n \n var xaxis = board.create('axis', [[0, 0], [12, 0]], {withLabel: true, name: \"Bank\", label: {offset: [250,-30]}});\n \n xaxis.removeAllTicks(); \n \n board.create('axis', [[0, 0], [0, 10]], {hideTicks:true, withLabel: false, name: \"\", label: {offset: [-110,300]}});\n \n var pop0 = board.create('point', [1.5,0],{name:'Morgan',fixed:true,size:0,color:'black',face:'diamond', label:{offset:[-20,-8]}});\n var pop1 = board.create('point',[4.5,0],{name:'Strome',fixed:true,size:0,color:'black',face:'diamond', label:{offset:[-20,-8]}});\n var pop2 = board.create('point',[7.5,0],{name:'Bentley',fixed:true,size:0,color:'black', face:'diamond', label:{offset:[-15,-8]}});\n var pop3 = board.create('point',[10.5,0],{name:'Sand',fixed:true,size:0,color:'black', face:'diamond', label:{offset:[-15,-8]}});\n var pop4 = board.create('point',[13.5,0],{name:'Karchen',fixed:true,size:0,color:'black', face:'diamond', label:{offset:[-15,-8]}});\n\n var leg1 = board.create('point',[12,75],{name:'last year',fixed:true,size:6,color:'#DA2228', face:'square', label:{offset:[9,0]}});\n var leg2 = board.create('point',[12,72],{name:'this year',fixed:true,size:6,color:'#6F1B75', face:'square', label:{offset:[9,0]}});\n \n \n// var chart = board.createElement('chart', dataArr, \n // {chartStyle:'bar', fillOpacity:1, width:1,\n // colorArray:['#8E1B77','#8E1B77','Red','Red','blue','red','blue','red','red','blue', 'red','blue','red','red'], shadow:false});\n \n//var chart = board.createElement('chart', dataArr, \n // {chartStyle:'bar', width:1,fillOpacity:1, fillColor:'red', shadow:false}); \n \n \n var a = board.create('chart', [[1,2,3],[yo0,yo5,0]], {chartStyle:'bar',colors:['#DA2228','#6F1B75','#6F1B75'],width:1,fillOpacity:1});\n var b = board.create('chart', [[4,5,6],[yo1,yo6,0]], {chartStyle:'bar',width:1,colors:['#DA2228','#6F1B75','#6F1B75'],fillOpacity:1});\n var c = board.create('chart', [[7,8,9],[yo2,yo7,0]], {chartStyle:'bar',width:1,colors:['#DA2228','#6F1B75','#6F1B75'],fillOpacity:1});\n var d = board.create('chart', [[10,11,12],[yo3,yo8,0]], {chartStyle:'bar',width:1,colors:['#DA2228','#6F1B75','#6F1B75'],fillOpacity:1});\n var e = board.create('chart', [[13,14],[yo4,yo9]], {chartStyle:'bar',width:1,colors:['#DA2228','#6F1B75'],fillOpacity:1});\n \n board.unsuspendUpdate();\n \n var txt1 = board.create('text',[-0.3,30, 'Investment \u00a3(m)'], {fontColor:'black', fontSize:14, rotate:90});\n \n // var txt = board.create('text',[0.5,75, 'Investment (m)'], {fontSize:14, rotate:90});\n \n // var txt1 = board.create('text',[8,76, 'red bars represent 2010'], {fontColor:'red', fontSize:14, rotate:90});\n \n // var txt2 = board.create('text',[8,73, 'blue bars represents 2011'], {fontSize:14, rotate:90});\n\n // var myColors = new Array('red', 'blue', 'white','red', 'blue', 'white','red', 'blue', 'white','red', 'blue', 'white','red', 'blue');\n \n \n \n //board.unsuspendUpdate();\n\n // Rotate text around the lower left corner (-2,-1) by 30 degrees.\n // var tRot = board.create('transform', [90.0*Math.PI/180.0, -1,40], {type:'rotate'}); \n // tRot.bindTo(txt);\n // board.update();\n\n \n//var chart2 = board.createElement('chart', dataArr, {chartStyle:'line,point'});\n//chart2[0].setProperty('strokeColor:black','strokeWidth:2','shadow:true');\n//for(var i=0; i<11;i++) {\n // chart2[1][i].setProperty({strokeColor:'black',fillColor:'white',face:'[]', size:4, strokeWidth:2});\n//}\n//board.unsuspendUpdate(); \n \n //board.unsuspendUpdate();\n\n}\n\nquestion.signals.on('HTMLAttached',function() {\n dragpoint_board();\n});", "css": "table#values th {\n background: none;\n text-align: center;\n}"}, "parts": [{"type": "m_n_x", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "minAnswers": 0, "maxAnswers": 0, "shuffleChoices": true, "shuffleAnswers": true, "displayType": "radiogroup", "warningType": "none", "showCellAnswerState": true, "markingMethod": "sum ticked cells", "choices": ["Variance", "Mean", "Median", "Inter-quartile range", "P-value", "Standard deviation"], "matrix": [["1", 0, 0], [0, "1", 0], [0, "1", 0], ["1", 0, 0], [0, 0, "1"], ["1", 0, 0]], "layout": {"type": "all", "expression": ""}, "answers": ["Measure of Spread", "Measure of location (average)", "Neither measure of location nor measure of spread"]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "SA15 Intuitive Probability", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Upuli Wickramaarachchi", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/23527/"}, {"name": "Michael Pan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/23528/"}], "tags": ["taxonomy"], "metadata": {"description": "Predicting the probability of an unbiased coin landing on heads based on the results of previous throws.
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "advice": "When we flip an unbiased coin there are two possible events that we could measure: the coin lands on heads or the coin lands on tails.
\nEach toss of the coin is independent; if we flip a coin once and it lands on heads then the next time we flip the coin it is still equally likely to land on either heads or tails.
\nIt doesn't matter what the coin landed on previously as this outcome does not affect the outcome of the next flip of the coin.
\nEven when we flip an unbiased coin $\\var{no_flips}$ times and it lands on heads each time; the next time we flip the coin, it is still equally likely to land on either heads or tails.
\nSo the probability that the coin lands on heads the next time that the coin is flipped is still $\\displaystyle\\frac{1}{2}$.
\nNumber of flips of the coin
", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["no_flips"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "An unbiased coin is flipped $\\var{no_flips}$ times. Given that the coin landed on heads each time, what is the probability of the coin landing on heads the next time it is flipped?
", "minValue": "1/2", "maxValue": "1/2", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}]}], "allowPrinting": true, "navigation": {"allowregen": true, "reverse": true, "browse": true, "allowsteps": true, "showfrontpage": true, "showresultspage": "oncompletion", "navigatemode": "sequence", "onleave": {"action": "none", "message": ""}, "preventleave": true, "typeendtoleave": true, "startpassword": "", "allowAttemptDownload": true, "downloadEncryptionKey": ""}, "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "feedback": {"showactualmark": true, "showtotalmark": true, "showanswerstate": true, "allowrevealanswer": true, "advicethreshold": 0, "intro": "This is a tool for you! It is here to help you diagnose whether there are any maths or statistics pre-requisites for your course that you may want to brush up on. If at any point you are struggling with any question you should find a link at the end of the \"reveal answer\" section that will take you to some recommended online resources on that subject area. You can also always contact the Maths and Stats Help team (MaSH) to arrange a one to one appointment or check out our workshop timetable to see if you can access the support you need that way. Find all this information via our website here!
", "end_message": "Thanks for completing the Skills Audit. You can attempt this as many times as you need. Remember the score is not what matters - this is in no way assessed work - this is simply a tool for working out whether you may need to brush up on anything to ensure that you can access all the material on your course and get off to the best possible start.
\nDon't forget to look up what support is available to you through our web pages here!
", "reviewshowscore": true, "reviewshowfeedback": true, "reviewshowexpectedanswer": true, "reviewshowadvice": true, "results_options": {"printquestions": true, "printadvice": true}, "feedbackmessages": [], "enterreviewmodeimmediately": true, "showexpectedanswerswhen": "inreview", "showpartfeedbackmessageswhen": "always", "showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showadvicewhen": "inreview"}, "diagnostic": {"knowledge_graph": {"topics": [], "learning_objectives": []}, "script": "diagnosys", "customScript": ""}, "type": "exam", "contributors": [{"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "extensions": ["eukleides", "geogebra", "jsxgraph"], "custom_part_types": [], "resources": [["question-resources/sqbasedpyramid_sEpkGzO.svg", "/srv/numbas/media/question-resources/sqbasedpyramid_sEpkGzO.svg"], ["question-resources/triangularprism.svg", "/srv/numbas/media/question-resources/triangularprism.svg"], ["question-resources/cylinder.svg", "/srv/numbas/media/question-resources/cylinder.svg"], ["question-resources/cuboid.svg", "/srv/numbas/media/question-resources/cuboid.svg"], ["question-resources/Picture1_caMIdF1.png", "/srv/numbas/media/question-resources/Picture1_caMIdF1.png"], ["question-resources/Picture2_6KE4ZpW.png", "/srv/numbas/media/question-resources/Picture2_6KE4ZpW.png"], ["question-resources/image_jPzIKnS.png", "/srv/numbas/media/question-resources/image_jPzIKnS.png"], ["question-resources/image_kkFBamd.png", "/srv/numbas/media/question-resources/image_kkFBamd.png"], ["question-resources/image_K3sk7RI.png", "/srv/numbas/media/question-resources/image_K3sk7RI.png"], ["question-resources/image_SC1KBmT.png", "/srv/numbas/media/question-resources/image_SC1KBmT.png"]]}