// Numbas version: exam_results_page_options {"name": "Slope of a curve at a point", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"preamble": {"js": "", "css": ""}, "extensions": [], "statement": "

Calculate the slope of the curve

\n

\\(f(x)=\\var{a}x^3-\\var{b}x^2+\\var{c}x+\\var{d}\\)

\n

at the point where \\(x=\\var{f}\\). 

", "parts": [{"prompt": "

Input your answer correct to one decimal place.

\n

\\(slope = \\) [[0]]

", "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "gapfill", "gaps": [{"notationStyles": ["plain", "en", "si-en"], "strictPrecision": false, "showCorrectAnswer": true, "scripts": {}, "type": "numberentry", "mustBeReduced": false, "precisionPartialCredit": 0, "minValue": "3*{a}*{f}^2-2*{b}*{f}+{c}", "customMarkingAlgorithm": "", "allowFractions": false, "marks": 1, "precisionType": "dp", "precision": "1", "correctAnswerStyle": "plain", "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "variableReplacements": [], "showPrecisionHint": false, "precisionMessage": "You have not given your answer to the correct precision.", "maxValue": "3*{a}*{f}^2-2*{b}*{f}+{c}", "mustBeReducedPC": 0, "unitTests": []}], "variableReplacements": [], "showCorrectAnswer": true, "sortAnswers": false, "unitTests": [], "customMarkingAlgorithm": "", "marks": 0}], "metadata": {"description": "

Slope of a curve at a point

", "licence": "Creative Commons Attribution 4.0 International"}, "variables": {"c": {"description": "", "templateType": "randrange", "name": "c", "definition": "random(5..12#1)", "group": "Ungrouped variables"}, "f": {"description": "", "templateType": "randrange", "name": "f", "definition": "random(0..4#1)", "group": "Ungrouped variables"}, "b": {"description": "", "templateType": "randrange", "name": "b", "definition": "random(2..10#1)", "group": "Ungrouped variables"}, "d": {"description": "", "templateType": "randrange", "name": "d", "definition": "random(10..20#1)", "group": "Ungrouped variables"}, "a": {"description": "", "templateType": "randrange", "name": "a", "definition": "random(2..6#1)", "group": "Ungrouped variables"}}, "ungrouped_variables": ["a", "b", "c", "d", "f"], "advice": "

\\(f(x)=\\var{a}x^3-\\var{b}x^2+\\var{c}x+\\var{d}\\)

\n

The equation for the slope of a curve is found by differentiating the function.

\n

\\(\\frac{df}{dx}=3*\\var{a}x^2-2*\\var{b}x+\\var{c}\\)

\n

To find the slope at a particular point we simply insert the x-coordinate value into this equation.

\n

Slope = \\(3*\\var{a}*\\var{f}^2-2*\\var{b}*\\var{f}+\\var{c}\\)

\n

Slope = \\(\\simplify{3*{a}*{f}^2-2*{b}*{f}+{c}}\\)

", "variable_groups": [], "name": "Slope of a curve at a point", "variablesTest": {"maxRuns": 100, "condition": ""}, "tags": [], "functions": {}, "rulesets": {}, "type": "question", "contributors": [{"name": "Frank Doheny", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/789/"}]}]}], "contributors": [{"name": "Frank Doheny", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/789/"}]}