// Numbas version: exam_results_page_options {"name": "Maria's copy of Rational functions: Quadratic over linear", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"ungrouped_variables": ["a", "b", "c", "d", "des"], "variablesTest": {"condition": "", "maxRuns": 100}, "advice": "

The vertical asymptote corresponds to the value of $x$ that results in attempting to divide by $0$. For the equation

\n

\\[\\simplify[all]{y=({b}x^2-{a*b+c}x+{a*c+d})/(x-{a})}\\]

\n

This means the equation of the vertical asymptote is $x=\\var{a}$.

\n

The oblique asymptote corresponds to the value of $y$ that results from $x$ approaching infinity. Let's look at two methods that determine this limit:

\n

Method 1 - Breaking up the fraction

\n

We can rewrite the numerator of $\\simplify[all]{({b}x^2-{a*b+c}x+{a*c+d})/(x-{a})}$ so that it includes multiples of the denominator. We do this term by term. We first write $\\simplify{{b}x^2}$ in terms of $\\simplify{x-{a}}$:

\n

$\\simplify{{b}x^2={b}x(x-{a})+{a*b}x}$

\n

and so the next term is now $\\simplify[!collectNumbers]{{a*b}x-{a*b+c}x=-{c}x}$. We now write this in terms of $\\simplify{x-{a}}$:

\n

$\\simplify{-{c}x=-{c}(x-{a})-{a*c}}$

\n

and so our next term is now $\\simplify[!collectNumbers]{-{a*c}+{a*c+d}={d}}$. Now we can rewrite the numerator and break up our fraction:

\n

$\\begin{align}\\simplify[all]{({b}x^2-{a*b+c}x+{a*c+d})/(x-{a})}&=\\simplify{({b}x(x-{a})-{c}(x-{a})+{d})/(x-{a})}\\\\&=\\simplify{({b}x(x-{a}))/(x-{a})-({c}(x-{a}))/(x-{a})+{d}/(x-{a})}\\\\&=\\simplify{({b}x-{c})+{d}/(x-{a})}\\end{align}$

\n

Now as $x$ gets very large $\\simplify{{d}/(x-{a})}$ gets very close to $0$ and so $y$ approaches $\\simplify{{b}x-{c}}$.

\n

\n

Method 2 - Polynomial long division

\n

There is a procedure called polynomial long division, if you are comfortable with long division of numbers then it isn't too different. You can see an example of the procedure here. The result of the division (in this case $\\simplify{{b}x-{c}}$) will be the oblique asymptote. The remainder will be $\\var{d}$, which 'remains' to be divided by $\\simplify{x-{a}}$. Just like in the method above, you will be able to say \\[y=\\simplify[all]{({b}x^2-{a*b+c}x+{a*c+d})/(x-{a})}=\\simplify{({b}x-{c})+{d}/(x-{a})}\\]
so as $x$ gets very large $\\simplify{{d}/(x-{a})}$ gets very close to $0$ and so $y$ approaches $\\simplify{{b}x-{c}}$. 

\n

\n

This means the equation of the horizontal asymptote is $y=\\simplify{{b}x-{c}}$.

\n

Notice that from Method 1 and Method 2 above we found that our equation can be written as $\\simplify{{b}x-{c}+{d}/(x-{a})}$, and so we can see that $\\var{d}$ is multiplying the fraction $\\simplify{1/(x-{a})}$. It is a general fact that because $\\var{d}$ is positive the graph will be in the top right and bottom left parts of the plane.  negative the graph will be in the top left and bottom right parts of the plane. We can see this as follows:

\n\n

To find the $y$-intercept, let $x=0$ and solve for $y$:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$y$$=$$\\displaystyle\\simplify[!collectNumbers]{({b}0^2-{a*b+c}0+{a*c+d})/(0-{a})}$
$=$$\\displaystyle\\simplify[fractionNumbers]{{-c-d/a}}$
\n

To find the $x$-intercept, let $y=0$ and solve for $x$ (here we use the quadratic equation):

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$0$$=$$\\displaystyle\\simplify{({b}x^2-{a*b+c}x+{a*c+d})/(x-{a})}$
$0$$=$$\\displaystyle\\simplify{({b}x^2-{a*b+c}x+{a*c+d})}$
$x$$=$$\\displaystyle\\frac{-(\\var{-a*b-c})\\pm\\sqrt{(\\var{-a*b-c})^2-4(\\var{b})(\\var{a*c+d})}}{2(\\var{b})}$
\n

Since this includes the square root of a negative number there are no $x$-intercepts.

\n

Therefore, the $x$-intercept is $x=\\simplify[fractionNumbers,simplifyFractions,unitDenominator]{({a*b+c})/{2*b}}$.

\n

Therefore, the $x$-intercepts are $x=\\simplify{({a*b+c}-sqrt({des}))/{2*b}}$ and $x=\\simplify{({a*b+c}+sqrt({des}))/{2*b}}$.

", "metadata": {"description": "

Identifying some of the basic properties (intercepts, asymptotes, quadrants) of a rational function (quadratic over linear)

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "rulesets": {}, "functions": {}, "name": "Maria's copy of Rational functions: Quadratic over linear", "preamble": {"css": "", "js": ""}, "variable_groups": [], "tags": [], "variables": {"c": {"group": "Ungrouped variables", "name": "c", "definition": "random(-12..12 except 0)", "templateType": "anything", "description": ""}, "d": {"group": "Ungrouped variables", "name": "d", "definition": "random(-12..12 except 0)", "templateType": "anything", "description": ""}, "b": {"group": "Ungrouped variables", "name": "b", "definition": "random(-12..12 except 0)", "templateType": "anything", "description": ""}, "a": {"group": "Ungrouped variables", "name": "a", "definition": "random(-12..12 except 0)", "templateType": "anything", "description": ""}, "des": {"group": "Ungrouped variables", "name": "des", "definition": "a^2*b^2+c^2-2*a*b*c-4*b*d", "templateType": "anything", "description": ""}}, "parts": [{"showCorrectAnswer": true, "customName": "", "type": "gapfill", "variableReplacements": [], "customMarkingAlgorithm": "", "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "unitTests": [], "sortAnswers": false, "scripts": {}, "useCustomName": false, "gaps": [{"showCorrectAnswer": true, "showFractionHint": true, "customName": "", "type": "numberentry", "allowFractions": false, "variableReplacements": [], "customMarkingAlgorithm": "", "minValue": "{a}", "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "unitTests": [], "mustBeReduced": false, "correctAnswerStyle": "plain", "correctAnswerFraction": false, "scripts": {}, "useCustomName": false, "maxValue": "{a}", "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "mustBeReducedPC": 0, "marks": 1}], "variableReplacementStrategy": "originalfirst", "prompt": "

The graph of this equation has a vertical asymptote at $x=$ [[0]].

", "marks": 0}, {"showCorrectAnswer": true, "customName": "", "type": "gapfill", "variableReplacements": [], "customMarkingAlgorithm": "", "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "unitTests": [], "sortAnswers": false, "scripts": {}, "useCustomName": false, "gaps": [{"showCorrectAnswer": true, "customName": "", "type": "jme", "variableReplacements": [], "customMarkingAlgorithm": "", "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "unitTests": [], "answer": "{b}x-{c}", "checkVariableNames": false, "checkingAccuracy": 0.001, "checkingType": "absdiff", "scripts": {}, "useCustomName": false, "vsetRangePoints": 5, "variableReplacementStrategy": "originalfirst", "showPreview": true, "vsetRange": [0, 1], "valuegenerators": [{"name": "x", "value": ""}], "marks": 1, "failureRate": 1}], "variableReplacementStrategy": "originalfirst", "prompt": "

The graph of this equation has an oblique asymptote at $y=$ [[0]].

", "marks": 0}, {"displayColumns": "2", "customMarkingAlgorithm": "", "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "unitTests": [], "displayType": "checkbox", "useCustomName": false, "minMarks": 0, "variableReplacementStrategy": "originalfirst", "prompt": "

The two asymptotes break the plane up into four parts: top right, top left, bottom left and bottom right.

\n

\n

The graph is in which of these parts of the plane?

", "minAnswers": 0, "maxAnswers": 0, "showCorrectAnswer": true, "customName": "", "warningType": "none", "variableReplacements": [], "maxMarks": 0, "distractors": ["", "", "", ""], "shuffleChoices": false, "matrix": ["if(d<0, 1, 0)", "if(d>0, 1, 0)", "if(d>0, 1, 0)", "if(d<0, 1, 0)"], "scripts": {}, "type": "m_n_2", "showCellAnswerState": true, "choices": ["

top left        

", "

top right

", "

bottom left

", "

bottom right

"], "marks": 0}, {"showCorrectAnswer": true, "customName": "", "type": "gapfill", "variableReplacements": [], "customMarkingAlgorithm": "", "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "unitTests": [], "sortAnswers": false, "scripts": {}, "useCustomName": false, "gaps": [{"showCorrectAnswer": true, "showFractionHint": true, "customName": "", "type": "numberentry", "allowFractions": true, "variableReplacements": [], "customMarkingAlgorithm": "", "minValue": "{-c-d/a}", "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "unitTests": [], "mustBeReduced": false, "correctAnswerStyle": "plain", "correctAnswerFraction": true, "scripts": {}, "useCustomName": false, "maxValue": "{-c-d/a}", "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "mustBeReducedPC": 0, "marks": 1}], "variableReplacementStrategy": "originalfirst", "prompt": "

The $y$-intercept is at $y=$[[0]].

", "marks": 0}, {"showCorrectAnswer": true, "customName": "", "type": "gapfill", "variableReplacements": [], "customMarkingAlgorithm": "", "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "unitTests": [], "sortAnswers": false, "scripts": {"constructor": {"script": "// override the default 'submit' method for the part\n// we only want to submit gap 1 if the answer to gap 0 is \"one\", and submit gaps 2 and 3 if the answer to gap 0 is \"two\"\nthis.submit = Numbas.util.extend(function() {\n this.gaps[0].submit();\n this.gaps[1].submit();\n this.gaps[2].submit();\n this.gaps[3].submit();\n if(this.gaps[0].one) {\n this.gaps[1].submit();\n } else {\n this.gaps[1].answered = true;\n }\n if(this.gaps[0].two) {\n this.gaps[2].submit();\n this.gaps[3].submit();\n } else {\n this.gaps[2].answered = true;\n this.gaps[3].answered = true;\n }\n},Part.prototype.submit);", "order": "after"}, "mark": {"script": "var gaps = this.gaps;\n// if the student said \"yes\" to gap 2, then mark their factorisation\nif(gaps[0].zero) {\n this.setCredit(gaps[0].credit*credit*gaps[0].marks);\n// otherwise, work out the credit based on the amounts awarded for the first three gaps\n} else {\n if(gaps[0].one){\n this.setCredit((gaps[0].credit*gaps[0].marks+gaps[1].credit*credit*gaps[1].marks)/(gaps[0].marks+gaps[1].marks))\n } else {\n this.setCredit((gaps[0].credit*gaps[0].marks+gaps[2].credit*gaps[2].marks+gaps[3].credit*gaps[3].marks)/(gaps[0].marks+gaps[2].marks+gaps[3].marks));\n }}", "order": "instead"}}, "useCustomName": false, "gaps": [{"showCorrectAnswer": true, "maxMarks": 0, "customName": "", "type": "1_n_2", "variableReplacements": [], "customMarkingAlgorithm": "", "distractors": ["", "", ""], "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "unitTests": [], "displayType": "radiogroup", "matrix": ["if(des<0,1,0)", "if(des=0,1,0)", "if(des>0,1,0)"], "shuffleChoices": false, "minMarks": 0, "scripts": {"mark": {"script": "// apply the normal marking algorithm for this part\nthis.__proto__.mark.apply(this);\n// store whether the student said \"yes\" in an attribute that's easier to access\nthis.zero = this.ticks[0][0];\nthis.one = this.ticks[0][1];\nthis.two = this.ticks[0][2];", "order": "instead"}}, "useCustomName": false, "displayColumns": 0, "variableReplacementStrategy": "originalfirst", "showCellAnswerState": true, "choices": ["

0

", "

1

", "

2

"], "marks": 0}, {"answerSimplification": "simplifyFractions", "showPreview": true, "customMarkingAlgorithm": "", "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "unitTests": [], "useCustomName": false, "answer": "{a*b+c}/{2*b}", "vsetRangePoints": 5, "variableReplacementStrategy": "originalfirst", "checkingAccuracy": 0.001, "vsetRange": [0, 1], "showCorrectAnswer": true, "customName": "", "variableReplacements": [], "valuegenerators": [], "checkVariableNames": false, "checkingType": "absdiff", "scripts": {}, "type": "jme", "marks": 1, "failureRate": 1}, {"showCorrectAnswer": true, "customName": "", "type": "jme", "variableReplacements": [], "customMarkingAlgorithm": "", "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "unitTests": [], "answer": "({a*b+c}-sqrt({des}))/{2*b}", "checkVariableNames": false, "checkingAccuracy": 0.001, "checkingType": "absdiff", "scripts": {}, "useCustomName": false, "vsetRangePoints": 5, "variableReplacementStrategy": "originalfirst", "showPreview": true, "vsetRange": [0, 1], "valuegenerators": [], "marks": 1, "failureRate": 1}, {"showCorrectAnswer": true, "customName": "", "type": "jme", "variableReplacements": [], "customMarkingAlgorithm": "", "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "unitTests": [], "answer": "({a*b+c}+sqrt({des}))/{2*b}", "checkVariableNames": false, "checkingAccuracy": 0.001, "checkingType": "absdiff", "scripts": {}, "useCustomName": false, "vsetRangePoints": 5, "variableReplacementStrategy": "originalfirst", "showPreview": true, "vsetRange": [0, 1], "valuegenerators": [], "marks": 1, "failureRate": 1}], "variableReplacementStrategy": "originalfirst", "prompt": "

How many $x$-intercepts are there? [[0]]

\n

\n
\n

The $x$-intercept is $x=$ [[1]].

\n
\n
\n

The $x$-intercepts are $x=$ [[2]] and $x=$ [[3]] (in ascending order)

\n

Note: You could input $\\frac{1-\\sqrt{133}}{2}$ by typing (1-sqrt(133))/2

\n
", "marks": 0}], "statement": "

You are given the equation  \\[\\simplify[all]{y=({b}x^2-{a*b+c}x+{a*c+d})/(x-{a})}.\\]

", "extensions": [], "type": "question", "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}