// Numbas version: exam_results_page_options {"name": "Evaluate a limit", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a", "b"], "name": "Evaluate a limit", "tags": [], "advice": "

\\(\\displaystyle{\\lim_{x \\to \\var{a}}}\\frac{x-\\var{a}}{x^2-\\simplify{{a}+{b}}x+\\simplify{{a}*{b}}}\\)

\n

We can factorise the denominator

\n

\\(\\displaystyle{\\lim_{x \\to \\var{a}}}\\frac{x-\\var{a}}{(x-\\var{a})(x-\\var{b})}\\)

\n

Cancel out the common factor

\n

\\(\\displaystyle{\\lim_{x \\to \\var{a}}}\\frac{1}{x-\\var{b}}\\)

\n

Insert the value \\(\\var{a}\\) in for \\(x\\) to evaluate the limit

\n

\\(-\\frac{1}{\\simplify{{b}-{a}}}\\)

\n

", "rulesets": {}, "parts": [{"prompt": "

Input your answer as a fraction.

", "allowFractions": true, "variableReplacements": [], "maxValue": "1/({a}-{b})", "minValue": "1/({a}-{b})", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": true, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry"}], "extensions": [], "statement": "

Evaluate the following limit

\n

\\(\\displaystyle{\\lim_{x \\to \\var{a}}}\\frac{x-\\var{a}}{x^2-\\simplify{{a}+{b}}x+\\simplify{{a}*{b}}}\\)

\n
", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": "aEvaluate a limit

", "licence": "Creative Commons Attribution 4.0 International"}, "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/"}]}