// Numbas version: exam_results_page_options {"name": "Quadratics", "metadata": {"description": "", "licence": "None specified"}, "duration": 0, "percentPass": "0", "showQuestionGroupNames": false, "shuffleQuestionGroups": false, "showstudentname": true, "question_groups": [{"name": "Group", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": ["", "", "", ""], "variable_overrides": [[], [], [], []], "questions": [{"name": "Quadratic functions: Working with the Formula - Fitness of Population", "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": "Evi Papadaki", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/18113/"}], "tags": [], "metadata": {"description": "

The relationship between the frequency of an allele A, $x$, at a genetic locus in a diploid population and the fitness of a population with this frequency of allele A, $w$, is described by the function $w=ax^2+x(b-x)+c(b-x)^2$ . The aims are (a) ti simplify the algebraic expression, (b) calculate the fitness of a population with a given allele A frequency, and (c) calculate the allele A frequency when the fitness of the population is given.

", "licence": "None specified"}, "statement": "

Let $x$ represent the frequency of an allele A at a genetic locus in a diploid population. The fitness, $w$, of a population with this frequency of allele A is given by:

\n

\\[ \\simplify{w={a}x^2+x({b}-x)+{c}({b}-x)^2} \\]

", "advice": "

a) We need to open the brackets and collect like terms:

\n

\\[ \\begin{split} w &= \\simplify{{a}x^2+x({b}-x)+{c}({b}-x)^2} \\\\ \\implies w &= \\simplify[!basic]{{a}x^2+x({b}-x)+{c}({b}-x)({b}-x)}\\\\ \\implies w &= \\simplify [unitFactor, !basic] {{a}x^2+x({b}-x)+{c}({b}^2-{b}x-{b}x+x^2)} \\\\ \\implies w &= \\simplify {{a}x^2+x({b}-x)+{c}({b}^2-{b}x-{b}x+x^2)} \\\\ \\implies w &= \\simplify[unitFactor, !collectNumbers] {{a}x^2+{b}*x-x^2+{c}*{b^2}-{c}*{2*b}x+{c}x^2} \\\\ \\implies w &=\\simplify[all, !noLeadingMinus] {{a}x^2+{b}*x-x^2+{c}*{b}^2-2*{c}*{b}x+{c}x^2} \\end{split}\\]

\n

b) We substitute $x=\\var{x_1}$ in the simplified formula:

\n

\\[w=\\simplify[unitfactor, !basic]{{coef_a}*{x_1}^2+{coef_b}*{x_1}+{coef_c}} \\\\ \\implies w=\\simplify [unitfactor, !basic]{{coef_a}*{x_1^2}+{coef_b}*{x_1}+{coef_c}} \\\\ \\implies w=\\var{w_ans_rounded} \\text{  (2 d.p.)}\\]

\n

Note: we get the same result regardless of which version of the formula we use. Using the simplified formula however is quicker.

\n

c) We need to substitute $w=\\var{w_1}$ and solve the quadratic equation:

\n

\\[ \\simplify[!noLeadingMinus]{{w_1}={coef_a}*x^2+{coef_b}*x+{coef_c}} \\\\ \\implies \\simplify[!noLeadingMinus]{{w_1}-{coef_a}*x^2-{coef_b}*x-{coef_c}=0} \\\\ \\implies \\simplify{{w_1}-{coef_a}*x^2-{coef_b}*x-{coef_c}=0}\\]

\n

Using the quadratic formula

\n

\\[ x=\\frac{-b\\pm \\sqrt{b^2-4ac}}{2a}\\]

\n

We get the solutions:

\n

\\[ \\begin{split} x_1 &\\,= \\frac{\\simplify{-{co_b}+sqrt({co_b}^2-4*{co_a}*{co_c})}}{\\simplify{{2*co_a}}} \\qquad \\text{and} \\qquad  x_2 &\\,= \\frac{\\simplify{-{co_b}-sqrt({co_b}^2-4*{co_a}*{co_c})}}{\\simplify{{2*co_a}}} \\\\\\\\ &\\,= \\var{ansx_1_rounded},\\quad &\\,=\\var{ansx_2_rounded}. \\end{split}\\]

\n

Taking into consideration the context of the problem, we need to reject one of the two answers if it is negative. Thus, the final answer is $x=\\var{ans_c}$.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "problem posing variables", "definition": "random (0 .. 0.5 # 0.1 except 0)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "problem posing variables", "definition": "random([1,2])", "description": "", "templateType": "anything", "can_override": false}, "x_1": {"name": "x_1", "group": "problem posing variables", "definition": "random (0..1 #0.05 except [0,1]) ", "description": "", "templateType": "anything", "can_override": false}, "w_1": {"name": "w_1", "group": "problem posing variables", "definition": "random (0..1 #0.1 except [0,1]) ", "description": "", "templateType": "anything", "can_override": false}, "coef_a": {"name": "coef_a", "group": "answer variables", "definition": "{a}+{c}-1", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "problem posing variables", "definition": "random (0 .. 0.5 # 0.1 except 0)", "description": "", "templateType": "anything", "can_override": false}, "coef_b": {"name": "coef_b", "group": "answer variables", "definition": "{b}-2*{c}*{b}", "description": "", "templateType": "anything", "can_override": false}, "coef_c": {"name": "coef_c", "group": "answer variables", "definition": "{c}*{b}^2", "description": "", "templateType": "anything", "can_override": false}, "w_ans": {"name": "w_ans", "group": "answer variables", "definition": "coef_a*x_1^2+coef_b*x_1+coef_c", "description": "", "templateType": "anything", "can_override": false}, "disc": {"name": "disc", "group": "answer variables", "definition": "(-coef_b)^2 - 4*coef_a*(coef_c-w_1)", "description": "", "templateType": "anything", "can_override": false}, "ansx_1": {"name": "ansx_1", "group": "Final part coefficients", "definition": "(-co_b+sqrt(co_b^2-4*co_a*co_c))/(2*co_a)", "description": "", "templateType": "anything", "can_override": false}, "ansx_2": {"name": "ansx_2", "group": "Final part coefficients", "definition": "(-co_b-sqrt(co_b^2-4*co_a*co_c))/(2*co_a)", "description": "", "templateType": "anything", "can_override": false}, "w_ans_rounded": {"name": "w_ans_rounded", "group": "answer variables", "definition": "precround(w_ans,2)", "description": "", "templateType": "anything", "can_override": false}, "ansx_1_rounded": {"name": "ansx_1_rounded", "group": "Final part coefficients", "definition": "precround(ansx_1,2)", "description": "", "templateType": "anything", "can_override": false}, "ansx_2_rounded": {"name": "ansx_2_rounded", "group": "Final part coefficients", "definition": "precround(ansx_2,2)", "description": "", "templateType": "anything", "can_override": false}, "ans_c": {"name": "ans_c", "group": "Final part coefficients", "definition": "if(ansx_1_rounded>0, ansx_1_rounded,ansx_2_rounded)", "description": "", "templateType": "anything", "can_override": false}, "co_a": {"name": "co_a", "group": "Final part coefficients", "definition": "-coef_a", "description": "", "templateType": "anything", "can_override": false}, "co_b": {"name": "co_b", "group": "Final part coefficients", "definition": "-coef_b", "description": "", "templateType": "anything", "can_override": false}, "co_c": {"name": "co_c", "group": "Final part coefficients", "definition": "w_1-coef_c", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "(coef_a<0)and(0<=w_ans<=1)and(disc>0)and(coef_c-w_1>0)", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "problem posing variables", "variables": ["a", "b", "x_1", "w_1", "c"]}, {"name": "answer variables", "variables": ["coef_a", "coef_b", "coef_c", "w_ans", "w_ans_rounded", "disc"]}, {"name": "Final part coefficients", "variables": ["co_a", "co_b", "co_c", "ansx_1", "ansx_2", "ansx_1_rounded", "ansx_2_rounded", "ans_c"]}], "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": "

Write $w$ in the form $ax^2+bx+c$.

\n

$w=$[[0]]

\n

", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{coef_a}*x^2+{coef_b}*x+{coef_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": ""}]}], "sortAnswers": false}, {"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 fitness of a population with allele frequency $x=\\var{x_1}$.

\n

$w=$[[0]]

\n

Give your answer rounded to 2 decimal places.

\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": "{w_ans_rounded}", "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}, {"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": "

Find the allele frequency, $x$, of a population with fitness $\\var{w_1}$.

\n

$x=$[[0]]

\n

Give your answer rounded to 2 decimal places, if needed.

", "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": "{ans_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"}, {"name": "Quadratic functions: Interpreting Graphs - Fitness of Population", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Evi Papadaki", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/18113/"}], "tags": [], "metadata": {"description": "

The question includes a quadratic graph depicting the relationship between the frequency of an allele A at a genetic locus in a diploid population and the fitness of a population with this frequency of allele A. The aim is to estimate the maximum and minimum fitness of the population and the corresponding frequency of allele A.

", "licence": "None specified"}, "statement": "

The following graph depicts the relationship between the frequency, $x$, of an allele A at a genetic locus in a diploid population and the fitness, $w$, of a population with this frequency of allele A.

\n

{geogebra_applet('https://www.geogebra.org/m/rtngjns4', defs)}

", "advice": "

{geogebra_applet('https://www.geogebra.org/m/xw4jjqxa',defsad1)}

\n

Note: you can zoom in and out of the figure as needed.

\n

a) We first need to locate the highest point on the graph. From that point, we can draw a line perpendicular to the vertical axis to estimate the maximum fitness and a line perpendicular to the horizontal axis to estimate the corresponding frequency of allele A. 

\n

Here, a good estimate could be:

\n\n

b)We first need to locate the lowest point on the graph. From that point, we can draw a line perpendicular to the vertical axis to estimate the minimum fitness and a line perpendicular to the horizontal axis to estimate the corresponding frequency of allele A. 

\n

Here, a good estimate could be:

\n", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "problem posing variables", "definition": "random (0 .. 0.5 # 0.1 except 0)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "problem posing variables", "definition": "random([1,2])", "description": "", "templateType": "anything", "can_override": false}, "x_1": {"name": "x_1", "group": "problem posing variables", "definition": "random (0..1 #0.05 except [0,1]) ", "description": "", "templateType": "anything", "can_override": false}, "w_1": {"name": "w_1", "group": "problem posing variables", "definition": "random (0..1 #0.1 except [0,1]) ", "description": "", "templateType": "anything", "can_override": false}, "coef_a": {"name": "coef_a", "group": "answer variables", "definition": "{a}+{c}-1", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "problem posing variables", "definition": "random (0 .. 0.5 # 0.1 except 0)", "description": "", "templateType": "anything", "can_override": false}, "coef_b": {"name": "coef_b", "group": "answer variables", "definition": "{b}-2*{c}*{b}", "description": "", "templateType": "anything", "can_override": false}, "coef_c": {"name": "coef_c", "group": "answer variables", "definition": "{c}*{b}^2", "description": "", "templateType": "anything", "can_override": false}, "defs": {"name": "defs", "group": "Ungrouped variables", "definition": "[\n ['a',coef_a],\n ['b',coef_b],\n ['c',coef_c]\n ]", "description": "", "templateType": "anything", "can_override": false}, "turn": {"name": "turn", "group": "answer variables", "definition": "-coef_b/(2*coef_a)", "description": "", "templateType": "anything", "can_override": false}, "max": {"name": "max", "group": "answer variables", "definition": "if(turn<1, max([{coef_c},{coef_a}+{coef_b}+{coef_c}, {coef_a}*{turn}^2+{coef_b}*{turn}+{coef_c}]), max({coef_c},{coef_a}+{coef_b}+{coef_c))", "description": "", "templateType": "anything", "can_override": false}, "min": {"name": "min", "group": "answer variables", "definition": "if(turn<1, min([{coef_c},{coef_a}+{coef_b}+{coef_c}, {coef_a}*{turn}^2+{coef_b}*{turn}+{coef_c}]), min({coef_c},{coef_a}+{coef_b}+{coef_c))", "description": "", "templateType": "anything", "can_override": false}, "xmax": {"name": "xmax", "group": "answer variables", "definition": "if(max=coef_c,0,if(max=coef_a+coef_b+coef_c,1,turn))", "description": "", "templateType": "anything", "can_override": false}, "xmin": {"name": "xmin", "group": "answer variables", "definition": "if(min=coef_c,0,if(min=coef_a+coef_b+coef_c,1,turn))", "description": "", "templateType": "anything", "can_override": false}, "Maxpoint": {"name": "Maxpoint", "group": "Ungrouped variables", "definition": "vector(xmax,max)", "description": "", "templateType": "anything", "can_override": false}, "MinPoint": {"name": "MinPoint", "group": "Ungrouped variables", "definition": "vector(xmin,min)", "description": "", "templateType": "anything", "can_override": false}, "defsad1": {"name": "defsad1", "group": "Ungrouped variables", "definition": "[\n ['a',coef_a],\n ['b',coef_b],\n ['c',coef_c],\n ['A',maxpoint],\n ['B',minpoint]\n ]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "(coef_a<0)", "maxRuns": 100}, "ungrouped_variables": ["defs", "Maxpoint", "MinPoint", "defsad1"], "variable_groups": [{"name": "problem posing variables", "variables": ["a", "b", "x_1", "w_1", "c"]}, {"name": "answer variables", "variables": ["coef_a", "coef_b", "coef_c", "turn", "max", "min", "xmax", "xmin"]}], "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": "

Use the graph to find the maximum possible fitness and the value of $x$ at which this maximum is attained.

\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": "{max}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": "0.025", "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": "{xmax}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": "0.05", "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}], "sortAnswers": false}, {"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": "

Use the graph to find the minimum possible fitness and the value of $x$ at which this maximum is attained.

\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": "{min}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": "0.025", "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": "{xmin}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": "0.05", "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"}, {"name": "Quadratic functions: Working with the Formula - Dilution", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Evi Papadaki", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/18113/"}], "tags": [], "metadata": {"description": "

The proportion of the sodium carbonate, $p$, which has dissolved by time $t$ seconds is given by the formula $ p=\\frac{bt-at^2}{c}$. The aim is to calculate the proportion of sodium carbonate in a solution at a given time and vice versa.

", "licence": "None specified"}, "statement": "

A small volume of sodium carbonate is added to a beaker of water. The proportion of the sodium carbonate, $p$, which has dissolved by time $t$ seconds is given by:

\n

\\[p=\\frac{\\var{b}t-\\var{a}t^2}{\\var{c}}\\]

", "advice": "

a) We need to substitute $t=\\var{t_1}$
\\[ p=\\frac{\\var{b}\\times\\var{t_1}-\\var{a}\\times \\var{t_1}^2}{\\var{c}}\\\\ \\implies p=\\frac{\\var{b}\\times\\var{t_1}-\\var{a}\\times \\var{t_1^2}}{\\var{c}} \\\\ \\implies p=\\frac{\\simplify{{b}*{t_1}}-\\simplify{{a}*{t_1^2}}}{\\var{c}} \\\\ \\implies p=\\frac{\\simplify{{b}*{t_1}-{a}*{t_1^2}}}{\\var{c}} \\\\ \\implies p=\\simplify{{b*t_1-a*t_1^2}/{c}} ~~~~ \\text{or}  ~~~~ \\var{ans_a_rounded}~\\text{(2d.p.)} \\]

\n

b) We first need to transform the percentage value which we were given into a proportion written as a decimal.

\n

\\[ \\var{p_1*100}\\%=\\var{p_1}\\]

\n

Then, substituting $p=\\var{p_1}$ we get the following equation to solve:

\n

\\[ \\var{p_1}=\\frac{\\var{b}t-\\var{a}t^2}{\\var{c}} \\\\ \\implies \\var{c}\\times
\\var{p_1}=\\var{b}t-\\var{a}t^2 \\\\ \\implies \\simplify[unitFactor]{{a}t^2-{b}t+{c*p_1}}=0\\]

\n

Using the quadratic formula

\n

\\[ t=\\frac{-b\\pm \\sqrt{b^2-4a c}}{2a}\\]

\n

we get the solutions:

\n

\\[ t_1=\\var{anst_1_rounded} \\\\ t_2=\\var{anst_2_rounded}\\]

\n

However, we are solving the equation to find a time which is $0\\leq p\\leq \\var{tmax}$. Therefore, the final answer is only $t=\\var{ans_t}$.

\n

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Problem posing variables", "definition": "random (1 ..5 )", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Problem posing variables", "definition": "Random(50..90)", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Problem posing variables", "definition": "random(100..400 #10)", "description": "", "templateType": "anything", "can_override": false}, "p_1": {"name": "p_1", "group": "Problem posing variables", "definition": "random(0 .. 1 # 0.1 except [ 0 , 1 ] )", "description": "", "templateType": "anything", "can_override": false}, "t_1": {"name": "t_1", "group": "Problem posing variables", "definition": "random(2 .. 10 )", "description": "", "templateType": "anything", "can_override": false}, "ans_a": {"name": "ans_a", "group": "answering variables", "definition": "({b}*{t_1}-{a}*{t_1}^2)/{c}", "description": "", "templateType": "anything", "can_override": false}, "disc": {"name": "disc", "group": "answering variables", "definition": "(-b)^2-(4*a*(p_1*c))", "description": "", "templateType": "anything", "can_override": false}, "anst_1": {"name": "anst_1", "group": "answering variables", "definition": "(b+sqrt(disc))/(2*a)", "description": "", "templateType": "anything", "can_override": false}, "anst_2": {"name": "anst_2", "group": "answering variables", "definition": "(b-sqrt(disc))/(2*a)", "description": "", "templateType": "anything", "can_override": false}, "anst_1_rounded": {"name": "anst_1_rounded", "group": "answering variables", "definition": "precround(anst_1,2)", "description": "", "templateType": "anything", "can_override": false}, "anst_2_rounded": {"name": "anst_2_rounded", "group": "answering variables", "definition": "precround(anst_2,2)", "description": "", "templateType": "anything", "can_override": false}, "ans_a_rounded": {"name": "ans_a_rounded", "group": "answering variables", "definition": "precround(ans_a,2)", "description": "", "templateType": "anything", "can_override": false}, "Disc_max_t": {"name": "Disc_max_t", "group": "answering variables", "definition": "b^2-(4*a*c)", "description": "", "templateType": "anything", "can_override": false}, "tmax1": {"name": "tmax1", "group": "answering variables", "definition": "(b+sqrt(disc_max_t))/(2*a)", "description": "", "templateType": "anything", "can_override": false}, "tmax2": {"name": "tmax2", "group": "answering variables", "definition": "(b-sqrt(disc_max_t))/(2*a)", "description": "", "templateType": "anything", "can_override": false}, "tmax": {"name": "tmax", "group": "answering variables", "definition": "round (min(tmax1,tmax2))", "description": "", "templateType": "anything", "can_override": false}, "ans_t": {"name": "ans_t", "group": "answering variables", "definition": "if(anst_10)and(disc_max_t>0)and(ans_a<=1)", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "Problem posing variables", "variables": ["a", "b", "c", "p_1", "t_1"]}, {"name": "answering variables", "variables": ["disc", "ans_a", "anst_1", "anst_2", "anst_1_rounded", "anst_2_rounded", "ans_a_rounded", "Disc_max_t", "tmax1", "tmax", "tmax2", "ans_t"]}], "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 proportion of the sodium carbonate which has dissolved after $\\var{t_1}$ seconds.

\n

$p=$ [[0]]

\n

Give your answer rounded to 2 decimal places.

\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": "{ans_a_rounded}", "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}, {"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 time taken for $\\simplify{{p_1}*100}$ % of sodium carbonate to dissolve. 

\n

$t=$ [[0]] sec.

\n

Give your answer rounded to 2 decimal places.

\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": "{ans_t}", "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"}, {"name": "Quadratic functions: Interpreting Graphs - Dilution", "extensions": ["geogebra"], "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": "Evi Papadaki", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/18113/"}], "tags": [], "metadata": {"description": "

Estimating the proportion of sodium carbonate in a solutionat a specific timepoint and vice versa, depicted as a quadratic graph.

", "licence": "None specified"}, "statement": "

A small volume of sodium carbonate is added to a beaker of water. The proportion of the sodium carbonate, $p$, which has dissolved by time $t$ seconds is illustrated in the graph below for $0\\leq t\\leq \\var{tmax}$.

\n

{geogebra_applet('https://www.geogebra.org/m/uhnbdxaf', defs)}

", "advice": "

a) We first need to find the point on the time axis for $\\var{t_1}$ seconds. From that point, we draw a line vertically to find a point on the graph. From the point on the graph, we need to draw a horizontal line, and then estimate the value of $p$. 

\n

{geogebra_applet('https://www.geogebra.org/m/wnracghs', defsad)}

\n

Here, a good estimate could be $p=\\var{ans_a_rounded} $.

\n

b) We first need to estimate the point where the $\\var{p_1*100}$% would lay on would lie on the p-axis. That is $ \\frac{\\var{p_1*100}}{100}=\\var{p_1}$. From here, we draw a line horizontally to find a point on the graph. From the point on the graph, we draw a vertical line, and then estimate the value of $t$. 

\n

{geogebra_applet('https://www.geogebra.org/m/wnracghs', defsad1)}

\n

Here, a good estimate could be $\\var{ans_t}$ seconds.

\n

c) At 7 seconds, the proportion of sodium carbonate which has dessolved is $p=1$ or, if transformed to a percentage, $100$%. That means all the sodium carbonate will have dissolved completely at $t=7$ seconds and the quadratic graph  cannot describe the situation beyond the 7 seconds.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Problem posing variables", "definition": "random (1 ..5 )", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Problem posing variables", "definition": "Random(50..90)", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Problem posing variables", "definition": "random(100..400 #10)", "description": "", "templateType": "anything", "can_override": false}, "p_1": {"name": "p_1", "group": "Problem posing variables", "definition": "random(0 .. 1 # 0.1 except [ 0 , 1 ] )", "description": "", "templateType": "anything", "can_override": false}, "t_1": {"name": "t_1", "group": "Problem posing variables", "definition": "random(2 .. tmax)", "description": "", "templateType": "anything", "can_override": false}, "ans_a": {"name": "ans_a", "group": "answering variables", "definition": "({b}*{t_1}-{a}*{t_1}^2)/{c}", "description": "", "templateType": "anything", "can_override": false}, "disc": {"name": "disc", "group": "answering variables", "definition": "(b)^2-(4*a*(p_1*c))", "description": "", "templateType": "anything", "can_override": false}, "anst_1": {"name": "anst_1", "group": "answering variables", "definition": "(b+sqrt(disc))/(2*a)", "description": "", "templateType": "anything", "can_override": false}, "anst_2": {"name": "anst_2", "group": "answering variables", "definition": "(b-sqrt(disc))/(2*a)", "description": "", "templateType": "anything", "can_override": false}, "anst_1_rounded": {"name": "anst_1_rounded", "group": "answering variables", "definition": "precround(anst_1,2)", "description": "", "templateType": "anything", "can_override": false}, "anst_2_rounded": {"name": "anst_2_rounded", "group": "answering variables", "definition": "precround(anst_2,2)", "description": "", "templateType": "anything", "can_override": false}, "ans_a_rounded": {"name": "ans_a_rounded", "group": "answering variables", "definition": "precround(ans_a,2)", "description": "", "templateType": "anything", "can_override": false}, "disc_max_t": {"name": "disc_max_t", "group": "answering variables", "definition": "b^2-(4*a*c)", "description": "", "templateType": "anything", "can_override": false}, "tmax1": {"name": "tmax1", "group": "answering variables", "definition": "(b+sqrt(disc_max_t))/(2*a)", "description": "", "templateType": "anything", "can_override": false}, "tmax2": {"name": "tmax2", "group": "answering variables", "definition": "(b-sqrt(disc_max_t))/(2*a)", "description": "", "templateType": "anything", "can_override": false}, "tmax": {"name": "tmax", "group": "answering variables", "definition": "precround (tmax2,1)", "description": "", "templateType": "anything", "can_override": false}, "ans_t": {"name": "ans_t", "group": "answering variables", "definition": "if(anst_1[
['a',a],
['b',b],
['c',c]
]

", "templateType": "anything", "can_override": false}, "defsad": {"name": "defsad", "group": "Ungrouped variables", "definition": "[\n ['a',a],\n ['b',b],\n ['c',c],\n ['A',pointa]\n]", "description": "", "templateType": "anything", "can_override": false}, "pointA": {"name": "pointA", "group": "Ungrouped variables", "definition": "vector(t_1,({b}*{t_1}-{a}*{t_1}^2)/{c})", "description": "", "templateType": "anything", "can_override": false}, "defsad1": {"name": "defsad1", "group": "Ungrouped variables", "definition": "[\n ['a',a],\n ['b',b],\n ['c',c],\n ['A',pointb]\n]", "description": "", "templateType": "anything", "can_override": false}, "pointB": {"name": "pointB", "group": "Ungrouped variables", "definition": "vector(ans_t,p_1)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "(disc>0)and(disc_max_t>0)and(tmax<>t_1)and(tmax<>1)", "maxRuns": 100}, "ungrouped_variables": ["defs", "defsad", "pointA", "defsad1", "pointB"], "variable_groups": [{"name": "Problem posing variables", "variables": ["a", "b", "c", "p_1", "t_1"]}, {"name": "answering variables", "variables": ["tmax", "ans_a", "disc", "anst_1", "anst_2", "anst_1_rounded", "anst_2_rounded", "ans_a_rounded", "disc_max_t", "tmax1", "tmax2", "ans_t"]}], "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": "

Use the graph to estimate the proportion of sodium carbonate which has dissolved after $\\var{t_1}$ seconds.

\n

$p=$ [[0]]

\n

Give your answer as a decimal, if needed, rounded to 2 decimal places.

\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": "{ans_a}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": "0.025", "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}], "sortAnswers": false}, {"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": "

Use the graph to estimate the time taken for $\\simplify{{p_1}*100}$ % of the sodium carbonate to dissolve. 

\n

$t=$ [[0]] sec.

\n

Give your answer rounded to 2 decimal places.

\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": "{ans_t}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": "0.15", "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}], "sortAnswers": false}, {"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": "

Why is this model not appropriate when $t\\geq \\var{tmax}$. You can choose only one of the answers.

\n

[[0]]

", "gaps": [{"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": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["After $\\var{tmax}$ seconds, the volume of sodium carbonate is removed from the beaker.", "After $\\var{tmax}$ seconds, the sodium carbonate will continue dissolving at a different rate.", "After $\\var{tmax}$ seconds, the sodium carbonate will have dissolved completely.", "After $\\var{tmax}$ seconds, the proportion will be negative, $p\\leq 0$."], "matrix": [0, 0, "1", 0], "distractors": ["", "", "", ""]}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}], "allowPrinting": true, "navigation": {"allowregen": true, "reverse": true, "browse": true, "allowsteps": true, "showfrontpage": true, "showresultspage": "oncompletion", "navigatemode": "sequence", "onleave": {"action": "none", "message": ""}, "preventleave": true, "startpassword": ""}, "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "feedback": {"showactualmark": true, "showtotalmark": true, "showanswerstate": true, "allowrevealanswer": true, "advicethreshold": 0, "intro": "", "reviewshowscore": true, "reviewshowfeedback": true, "reviewshowexpectedanswer": true, "reviewshowadvice": true, "feedbackmessages": []}, "diagnostic": {"knowledge_graph": {"topics": [], "learning_objectives": []}, "script": "diagnosys", "customScript": ""}, "contributors": [{"name": "Evi Papadaki", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/18113/"}], "extensions": ["geogebra"], "custom_part_types": [], "resources": []}