// Numbas version: exam_results_page_options {"name": "Domain of a square root function", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Domain of a square root function", "tags": [], "metadata": {"description": "

Given a randomised square root function select the possible ways of writing the domain of the function.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Given the real functions below, you should be able to determine their domains. 

", "advice": "

a) The domain of $f(x)=\\sqrt{x}$ is the set of all non-negative numbers, i.e. $\\{x\\in\\mathbb{R}:\\,x\\ge0\\}$ or in interval notation, $[0,\\infty)$. This means that the square root of any negative number is not defined. 

\n

\n

b) For a function such as $g(t)=\\sqrt{\\simplify{t-{c[0]}}}$ we require that the square root acts on a non-negative number, that is, $\\simplify{t-{c[0]}>=0}$. Rearranging this inequality for $t$ gives $\\simplify{t>={c[0]}}$. Therefore, $\\text{dom}(g)=\\{t\\in\\mathbb{R}:\\,\\simplify{t>={c[0]}}\\}$.

\n

\n

c) Note, $\\sqrt[2]{\\quad}$ and $\\sqrt{\\quad}$ mean the same thing. For a function such as $h(s)=\\simplify{{c[0]}root({c[1]}s+{c[2]},2)+{c[3]}}$ we require that the square root acts on a non-negative number, that is, $\\simplify{{c[1]}s+{c[2]}>=0}$. Rearranging this inequality for $s$ gives $s>= \\simplify[fractionNumbers]{{-c[2]/c[1]}}$ $s<= \\simplify[fractionNumbers]{{-c[2]/c[1]}}$. Therefore, $\\text{dom}(h)=\\{s\\in\\mathbb{R}:\\, s\\ge \\simplify[fractionNumbers]{{-c[2]/c[1]}}\\}$ $\\text{dom}(h)=\\{s\\in\\mathbb{R}:\\, s\\leq \\simplify[fractionNumbers]{{-c[2]/c[1]}}\\}$.

\n

\n

d) For a function such as $\\simplify{{out}({inp})}=\\sqrt{\\simplify{{inp}^2-{a+b}{inp}+{a*b}}}$ we require that the square root acts on a non-negative number, that is, $\\simplify{{inp}^2-{a+b}{inp}+{a*b}>=0}$. Notice $\\simplify{{inp}^2-{a+b}{inp}+{a*b}=({inp}-{a})({inp}-{b})}$, which is non-negative when $\\simplify{({inp}-{a})}$ and $\\simplify{({inp}-{b})}$ are both negative, or both non-negative. That is, we require $\\simplify{{inp}<={a}}$ or $\\simplify{{inp}>={b}}$. Therefore, $\\text{dom}(\\simplify{{out}})=\\{\\simplify{{inp}}\\in\\mathbb{R}:\\,\\simplify{{inp}<={a}} \\text{ or } \\simplify{{inp}>={b}}\\}$.

\n

\n

e) For a function such as $\\simplify{{out}({inp})=root(-{inp}^2+{d}{inp},2)}$ we require that the square root acts on a non-negative number, that is, $\\simplify{-{inp}^2+{d}{inp}>=0}$. Notice $\\simplify{-{inp}^2+{d}{inp}={inp}({d}-{inp})}$, which is non-negative when $\\simplify{{inp}}$ and $\\simplify{({d}-{inp})}$ are both negative, or both non-negative. That is, we require $\\simplify{0<={inp}<={d}}$. Therefore, $\\text{dom}(\\simplify{{out}})=\\{\\simplify{{inp}}\\in\\mathbb{R}:\\,\\simplify{0<={inp}<={d}}\\}$.

\n

\n

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"inp": {"name": "inp", "group": "Ungrouped variables", "definition": "expression(random('x','r','s','t','w'))", "description": "", "templateType": "anything", "can_override": false}, "d": {"name": "d", "group": "Ungrouped variables", "definition": "random(1..12)", "description": "", "templateType": "anything", "can_override": false}, "num": {"name": "num", "group": "Ungrouped variables", "definition": "[random(-12..12),random(-12..12 except 0)]", "description": "", "templateType": "anything", "can_override": false}, "rat": {"name": "rat", "group": "Ungrouped variables", "definition": "if(n=3,'\\\\[\\\\simplify{{out}({inp})=({num[0]}{inp}+{num[1]})/(({inp}-{c[0]})({inp}-{c[1]})*({inp}-{c[2]}))}\\\\]',\nif(n=2,'\\\\[\\\\simplify{{out}({inp})=({num[0]}{inp}+{num[1]})/(({inp}-{c[0]})({inp}-{c[1]}))}\\\\]',\n'\\\\[\\\\simplify{{out}({inp})=({num[0]}{inp}+{num[1]})/(({inp}-{c[0]})({inp}-{c[1]})*({inp}-{c[2]})*({inp}-{c[3]}))}\\\\]'))\n \n \n", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "shuffle(-12..12 except 0)", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(-12..-1)", "description": "", "templateType": "anything", "can_override": false}, "out": {"name": "out", "group": "Ungrouped variables", "definition": "expression(random('f','h','g','p','q','y'))", "description": "", "templateType": "anything", "can_override": false}, "base": {"name": "base", "group": "Ungrouped variables", "definition": "random(2..12 except 10)", "description": "

base

", "templateType": "anything", "can_override": false}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "random(2..4)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "a+random(1..12)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["out", "inp", "num", "n", "c", "rat", "a", "b", "base", "d"], "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": "

Give an example of a real number that is in the domain of the function

\n

\\[f(x)=\\sqrt{x}.\\]

\n

 [[0]] $\\in \\text{dom}(f)$

", "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": "0", "maxValue": "{infinity}", "correctAnswerFraction": false, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"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 the function \\[g(t)=\\sqrt{\\simplify{t-{c[0]}}},\\] what do we require of $t$ so that $g(t)$ is defined?

\n

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": "1", "showCellAnswerState": true, "choices": ["

$t\\ge\\var{c[0]}$

", "

$t> \\var{c[0]}$

", "

$t\\le\\var{c[0]}$

", "

$t< \\var{c[0]}$

", "

$t>0$

", "

$t\\ne0$

"], "matrix": ["1", 0, 0, 0, 0, 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": "

Given the function \\[h(s)=\\simplify{{c[0]}root({c[1]}s+{c[2]},2)+{c[3]}},\\] which of the following represents the domain of $h$?

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": "1", "showCellAnswerState": true, "choices": ["

$[\\var{c[3]},\\infty)$

", "

$(0,\\infty)$

", "

$\\{s\\in\\mathbb{R}:\\, s\\ge 10\\}$

", "

$\\{s\\in\\mathbb{R}:\\, s\\ge \\simplify[fractionNumbers]{{-c[2]/c[1]}}\\}$ $\\{s\\in\\mathbb{R}:\\, s\\le \\simplify[fractionNumbers]{{-c[2]/c[1]}}\\}$

", "

$\\{s\\in\\mathbb{R}:\\, s\\le \\var{c[3]}\\}$

", "

$\\{s\\in\\mathbb{R}:\\, s\\le \\simplify[fractionNumbers]{{-c[2]/c[1]}}\\}$ $\\{s\\in\\mathbb{R}:\\, s\\ge \\simplify[fractionNumbers]{{-c[2]/c[1]}}\\}$

"], "matrix": ["0", 0, 0, "1", 0, 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": "

Given the function \\[\\var{out}(\\var{inp})=\\sqrt{\\simplify{{inp}^2-{a+b}{inp}+{a*b}}},\\] which of the following represents the domain of $\\simplify{{out}}$?

\n

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": "1", "showCellAnswerState": true, "choices": ["

$\\{\\simplify{{inp}}\\in\\mathbb{R}:\\,\\simplify{{inp}<={a}} \\text{ or } \\simplify{{inp}>={b}}\\}$

", "

$\\{\\simplify{{inp}}\\in\\mathbb{R}:\\,\\simplify{{a}<={inp} <={b}}\\}$

", "

$\\{\\simplify{{inp}}\\in\\mathbb{R}:\\,\\simplify{{inp}>={a*b}}\\}$

", "

$\\{\\simplify{{inp}}\\in\\mathbb{R}:\\,\\simplify{{inp}>=0}\\}$

", "

$\\{\\simplify{{inp}}\\in\\mathbb{R}:\\,\\simplify{{min([a+b,a*b])}<={inp} <={max([a+b,a*b])}}\\}$

"], "matrix": ["1", 0, 0, 0, 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": "

Given the function \\[\\var{out}(\\var{inp})=\\simplify{root(-{inp}^2+{d}{inp},2)},\\] which of the following represents the domain of $\\simplify{{out}}$?

\n

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": "1", "showCellAnswerState": true, "choices": ["

$\\{\\simplify{{inp}}\\in\\mathbb{R}:\\,\\simplify{{inp}<=0} \\text{ or } \\simplify{{inp}>={d}}\\}$

", "

$\\{\\simplify{{inp}}\\in\\mathbb{R}:\\,\\simplify{0<={inp} <={d}}\\}$

", "

$\\{\\simplify{{inp}}\\in\\mathbb{R}:\\,\\simplify{{inp}>={d}}\\}$

", "

$\\{\\simplify{{inp}}\\in\\mathbb{R}:\\,\\simplify{{inp}>=0}\\}$

", "

$\\{\\simplify{{inp}}\\in\\mathbb{R}:\\,\\simplify{{-d}<={inp} <={d}}\\}$

"], "matrix": ["0", "1", 0, 0, 0], "distractors": ["", "", "", "", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}