// Numbas version: exam_results_page_options {"name": "Quadratic functions: Working with the Formula - Dilution", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Quadratic functions: Working with the Formula - Dilution", "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": {}, "extensions": [], "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", "contributors": [{"name": "Evi Papadaki", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/18113/"}]}]}], "contributors": [{"name": "Evi Papadaki", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/18113/"}]}