// Numbas version: exam_results_page_options {"name": "Differentiation: Exponential and Logarithmic functions - Gradient of Hill", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Differentiation: Exponential and Logarithmic functions - Gradient of Hill", "tags": [], "metadata": {"description": "

Using basic derivatives to calculate the gradient function of a hill $y=-e^{x}+b\\ln{\\left(x\\right)+c$, and then substituting values to find the gradient at specific distance from the sea. 

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

The cross-section of a hill with a steep cliff face is modelled by the equation:
\\[y=-e^{x}+\\var{b}\\ln{\\left(x\\right)+\\var{c}}\\]
where $y$ is the height of the ground above sea level, measured in decametres ($\\mathrm{dam}$), and $x$ is the horizontal distance from the sea, also measured in decametres.

\n

The model applies for values of $x$ in the range $0.01\\le\\ x\\le3$.

", "advice": "

a) To find the gradient of the hill at any given horizontal distance from the sea, $x$, we need to differentiate the equation

\n

\\[y=-e^{x}+\\var{b}\\ln{\\left(x\\right)+\\var{c}}\\]

\n

with respect to x:

\n
\n

\\[ \\begin{split} \\frac{dy}{dx}&=-e^x+\\var{b}\\times\\frac{1}{x}+0 \\\\&=-e^x+\\frac{\\var{b}}{x} \\end{split}\\]

\n
\n

\\[ \\begin{split} \\frac{dy}{dx}&=-e^x+\\frac{1}{x}+0 \\\\&=-e^x+\\frac{\\var{b}}{x} \\end{split}\\]

\n

Therefore, the formula that describes the gradient of the hill at any horizontal distance from the sea is:

\n

\\[ \\begin{split} \\frac{dy}{dx}&=-e^x+\\frac{\\var{b}}{x} \\end{split}\\]

\n

b) We can use the formula from part (a) to calculate the gradient at specific points. 

\n

Remember that the distance in this problem is measured in decametres ($\\mathrm{dam}$) and $1 ~~\\mathrm{dam}$ = $10~~ \\mathrm{m}$.

\n

So, when $x=1$:

\n

\\[ \\begin{split} \\frac{dy}{dx}&=-e^1+\\frac{\\var{b}}{1} \\\\&=-e+\\var{b} \\\\ &= \\var{ansb1} ~ \\text{[2 d.p.]}\\end{split}\\]

\n

Thus, the gradient of the hill at a horizontal distance of $1~~\\mathrm{dam}$ from the sea is $\\frac{dy}{dx}=\\var{ansb1} ~~ \\mathrm{dam}$.

\n

When $x=0.1$:

\n

\\[ \\begin{split} \\frac{dy}{dx}&=-e^{0.1}+\\frac{\\var{b}}{0.1} \\\\ &= \\var{ansb2} ~ \\text{[2 d.p.]}\\end{split}\\]

\n

Thus, the gradient of the hill at a horizontal distance of $0.1~~\\mathrm{dam}$ from the sea is $\\frac{dy}{dx}=\\var{ansb2} ~~ \\mathrm{dam}$.

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"b": {"name": "b", "group": "Ungrouped variables", "definition": "random (1..5)", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(4..10)", "description": "", "templateType": "anything", "can_override": false}, "ansB2": {"name": "ansB2", "group": "Ungrouped variables", "definition": "precround(-e^(0.1)+10*{b},2)", "description": "", "templateType": "anything", "can_override": false}, "ansB1": {"name": "ansB1", "group": "Ungrouped variables", "definition": "precround(-e^1+{b},2)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["b", "c", "ansB2", "ansB1"], "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": "

Find the formula that describes the gradient of the hill at any given horizontal distance from the sea.

\n

$\\frac{dy}{dx}=$ [[0]].

", "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": "-e^x+{b}/x", "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": "

What is the gradient of the hill at a horizontal distance of:

\n\n

[[0]] $\\mathrm{dam}$

\n\n

[[1]] $\\mathrm{dam}$

\n

Give your answers to 2 decimal places when necessary.

", "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": "{ansB1}", "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": []}, {"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": "{ansB2}", "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": "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/"}]}]}], "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/"}]}