// Numbas version: exam_results_page_options {"name": "Ethan's copy of Graphing: quadratic", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Ethan's copy of Graphing: quadratic", "variables": {"xints": {"name": "xints", "definition": "if(switch=-1,set() ,if(switch=0,set(axis_x),set(axis_x-s/(2*a),axis_x+s/(2*a))))", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "axis_x": {"name": "axis_x", "definition": "random(-4..4#0.5)", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "thres": {"name": "thres", "definition": "b^2/(4a)", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "switch": {"name": "switch", "definition": "random(-1,0,1)", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "xint0": {"name": "xint0", "definition": "axis_x-s/(2*a)", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "concave": {"name": "concave", "definition": "[if(a>0,1,0),if(a<0,1,0)]", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "c": {"name": "c", "definition": "if(switch=0, thres,if(switch<0,(b^2+s^2)/(4a),(b^2-s^2)/(4a)))", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "xint1": {"name": "xint1", "definition": "axis_x+s/(2*a)", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "disc": {"name": "disc", "definition": "b^2-4*a*c", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "axis_y": {"name": "axis_y", "definition": "a*axis_x^2+b*axis_x+c", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "b": {"name": "b", "definition": "-2*a*axis_x", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "s": {"name": "s", "definition": "random(map(n^2,n,1..12))*2*a", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "a": {"name": "a", "definition": "random(-6..6 except 0)", "group": "Ungrouped variables", "description": "", "templateType": "anything"}}, "ungrouped_variables": ["switch", "axis_x", "a", "b", "thres", "s", "c", "concave", "axis_y", "xints", "disc", "xint0", "xint1"], "type": "question", "tags": ["graphing", "parabola", "parabolas", "polynomial", "Polynomial", "polynomials", "quadratic", "quadratics", "sketching"], "preamble": {"css": "", "js": ""}, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "questions": [], "pickQuestions": 0}], "variablesTest": {"maxRuns": 100, "condition": ""}, "rulesets": {}, "parts": [{"marks": 0, "prompt": "

This equation, or its graph, can be described as a

", "minMarks": 0, "shuffleChoices": true, "type": "1_n_2", "maxMarks": 0, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "distractors": ["", "", "", "", "", ""], "steps": [{"marks": 0, "showCorrectAnswer": true, "type": "information", "scripts": {}, "variableReplacements": [], "prompt": "

An equation of the form $y=ax^2+bx+c$ is a quadratic and the graph of it is called a parabola.

", "variableReplacementStrategy": "originalfirst"}], "showCorrectAnswer": true, "displayType": "radiogroup", "displayColumns": 0, "scripts": {}, "stepsPenalty": "1", "choices": ["

straight line

", "

parabola/quadratic

", "

cubic

", "

hyperbola

", "

circle

", "

quartic

"], "matrix": [0, "1", 0, 0, 0, 0]}, {"marks": 0, "prompt": "

The graph of this equation 

", "minMarks": 0, "shuffleChoices": false, "type": "1_n_2", "maxMarks": 0, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "steps": [{"marks": 0, "showCorrectAnswer": true, "type": "information", "scripts": {}, "variableReplacements": [], "prompt": "

The number in front of $x^2$ is called the coefficient of $x^2$ or the leading coefficient because it belongs to the term with the highest power.

\n

If this coefficient is postive then the parabola will be concave up, or 'open upwards', or in other words, look like a smiley face!

\n

If this coefficient is negative then the parabola will be concave down, or 'open downwards', or in other words, look like a sad face!

", "variableReplacementStrategy": "originalfirst"}], "showCorrectAnswer": true, "displayType": "radiogroup", "displayColumns": 0, "scripts": {}, "stepsPenalty": "1", "choices": ["

opens upwards (is concave up)

", "

opens downwards (is concave down)

"], "matrix": "concave"}, {"marks": 0, "prompt": "

The $y$-intercept of the graph is $y=$[[0]].

", "gaps": [{"marks": 1, "showCorrectAnswer": true, "maxValue": "{c}", "type": "numberentry", "minValue": "{c}", "showPrecisionHint": false, "correctAnswerFraction": true, "scripts": {}, "variableReplacements": [], "allowFractions": true, "variableReplacementStrategy": "originalfirst"}], "type": "gapfill", "steps": [{"marks": 0, "showCorrectAnswer": true, "type": "information", "scripts": {}, "variableReplacements": [], "prompt": "

The $y$-intercept is the value of $y$ when $x=0$, that is, the value of $y$ where the graph hits the $y$-axis. To find it, substitute $x=0$ into our equation:

\n

\\[y=\\simplify[unitFactor,basic,fractionNumbers]{{a}0^2+{b}0+{c}}=\\var{c}.\\]

\n

", "variableReplacementStrategy": "originalfirst"}], "stepsPenalty": "1", "variableReplacements": [], "scripts": {}, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst"}, {"marks": 0, "prompt": "

The axis of symmetry of the graph of this function is $x=$[[0]]. 

\n


The vertex of the graph of this function is at $\\large($ [[0]], [[1]] $\\large)$.

", "gaps": [{"marks": 1, "showCorrectAnswer": true, "maxValue": "{axis_x}", "type": "numberentry", "minValue": "{axis_x}", "showPrecisionHint": false, "correctAnswerFraction": true, "scripts": {}, "variableReplacements": [], "allowFractions": true, "variableReplacementStrategy": "originalfirst"}, {"marks": 1, "showCorrectAnswer": true, "maxValue": "{axis_y}", "type": "numberentry", "minValue": "{axis_y}", "showPrecisionHint": false, "correctAnswerFraction": true, "scripts": {}, "variableReplacements": [], "allowFractions": true, "variableReplacementStrategy": "originalfirst"}], "type": "gapfill", "steps": [{"marks": 0, "showCorrectAnswer": true, "type": "information", "scripts": {}, "variableReplacements": [], "prompt": "

The axis of symmetry of a parabola is the line along which you could reflect the parabola and it would look exactly the same. For the quadratic $y=ax^2+bx+c$, the equation of the axis of symmetry is \\[x=-\\dfrac{b}{2a}.\\] Using our given equation $y=\\simplify[all,fractionNumbers]{{a}x^2+{b}x+{c}}$, we get $x=\\var{axis_x}$.

\n

\n

The vertex, or the turning point, or the stationary point of the parabola is on this line, so it's $x$ coordinate must be $\\var{axis_x}$ and its $y$ coordinate must be the $y$ value that corresponds to this $x$ value after susbstituting it into the equation $y=\\simplify[all,fractionNumbers]{{a}x^2+{b}x+{c}}$. That is \\[y=\\simplify[unitFactor,basic,fractionNumbers]{{a}({axis_x})^2+{b}({axis_x})+{c}}=\\var{axis_y}.\\]

", "variableReplacementStrategy": "originalfirst"}], "stepsPenalty": "2", "variableReplacements": [], "scripts": {}, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst"}, {"marks": 0, "prompt": "

The set of $x$-intercepts of the graph would be [[0]].

\n

Note: If there are no intercepts, enter set()

\n

If there is only one intercept, say $x=5$, enter set(5)

\n

If there are two intercepts, say $x=-2$ and $x=1.5$, enter set(-2,1.5)

\n

If there are three intercepts, say $x=-2$, $x=1.5$ and $x=5$, enter set(-2,1.5,5)

", "gaps": [{"marks": 1, "variableReplacementStrategy": "originalfirst", "checkingaccuracy": 0.001, "type": "jme", "checkvariablenames": false, "variableReplacements": [], "vsetrange": [0, 1], "vsetrangepoints": 5, "answer": "{xints}", "showCorrectAnswer": true, "checkingtype": "absdiff", "scripts": {}, "showpreview": true, "expectedvariablenames": []}], "type": "gapfill", "steps": [{"marks": 0, "showCorrectAnswer": true, "type": "information", "scripts": {}, "variableReplacements": [], "prompt": "

For the quadratic $y=ax^2+bx+c$, the $x$-intercepts (if they exist) are given by \\[x=\\dfrac{-b}{2a}\\pm\\dfrac{\\sqrt{b^2-4ac}}{2a}.\\]

\n

Notice how the first term gives the axis of symmetry and the second term says how far away from the axis of symmetry to go in both directions!

\n\n

\n

\n

For the equation $y=\\simplify[all,fractionNumbers]{{a}x^2+{b}x+{c}}$, we have $b^2-4ac=\\simplify[all,fractionNumbers]{{b}^2-4{a}{c}}=\\var{disc}$ and so there are no $x$-intercepts. is one $x$-intercept: are two $x$-intercepts: 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$x$$=$$\\dfrac{-b}{2a}\\pm\\dfrac{\\sqrt{b^2-4ac}}{2a}$
 
$=$$\\simplify[basic,unitFactor,fractionNumbers]{{axis_x}}\\pm\\simplify[basic,unitFactor,fractionNumbers]{sqrt{{disc}}/({2*a})}$
 
$=$$\\var{axis_x}$  $\\var{xint0}, \\, \\var{xint1}$
\n

", "variableReplacementStrategy": "originalfirst"}], "stepsPenalty": "1", "variableReplacements": [], "scripts": {}, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst"}, {"marks": 0, "prompt": "

Given the degree of a polynomial is $2$, the maximum number of possible 'bends' or 'turns' in the graph is [[0]].

", "gaps": [{"marks": 1, "showCorrectAnswer": true, "maxValue": "1", "type": "numberentry", "minValue": "1", "showPrecisionHint": false, "correctAnswerFraction": false, "scripts": {}, "variableReplacements": [], "allowFractions": false, "variableReplacementStrategy": "originalfirst"}], "type": "gapfill", "steps": [{"marks": 0, "showCorrectAnswer": true, "type": "information", "scripts": {}, "variableReplacements": [], "prompt": "

A degree $n$ polynomial has at most $n-1$ bends in its graph.

", "variableReplacementStrategy": "originalfirst"}], "stepsPenalty": "1", "variableReplacements": [], "scripts": {}, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst"}], "variable_groups": [], "statement": "

You are given the equation $y=\\simplify[all,fractionNumbers]{{a}x^2+{b}x+{c}}$. 

", "advice": "", "showQuestionGroupNames": false, "functions": {}, "extensions": [], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "contributors": [{"name": "Ethan Smith", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/739/"}]}]}], "contributors": [{"name": "Ethan Smith", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/739/"}]}