// Numbas version: exam_results_page_options {"name": "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": [{"name": "Rational functions: Quadratic over linear", "tags": [], "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"}, "statement": "

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

", "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}}$.

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"d": {"name": "d", "group": "Ungrouped variables", "definition": "random(-12..12 except 0)", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(-12..12 except 0)", "description": "", "templateType": "anything", "can_override": false}, "des": {"name": "des", "group": "Ungrouped variables", "definition": "a^2*b^2+c^2-2*a*b*c-4*b*d", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(-12..12 except 0)", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(-12..12 except 0)", "description": "", "templateType": "anything", "can_override": false}, "xint": {"name": "xint", "group": "Ungrouped variables", "definition": "if(des>0, set((a*b+c-sqrt(des))/(2*b), ((a*b+c)+sqrt(des))/(2*b)), set())", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "b", "c", "d", "des", "xint"], "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": "

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

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{a}", "maxValue": "{a}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "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": "

The graph of this equation has an oblique asymptote at $y=$ [[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": "{b}x-{c}", "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": "m_n_2", "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": "

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?

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "checkbox", "displayColumns": "2", "minAnswers": 0, "maxAnswers": 0, "warningType": "none", "showCellAnswerState": true, "markingMethod": "sum ticked cells", "choices": ["

top left        

", "

top right

", "

bottom left

", "

bottom right

"], "matrix": ["if(d<0, 1, 0)", "if(d>0, 1, 0)", "if(d>0, 1, 0)", "if(d<0, 1, 0)"], "distractors": ["", "", "", ""]}, {"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": "

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

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{-c-d/a}", "maxValue": "{-c-d/a}", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "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": "

Find the $x$ intercepts.

\n

If there are none, enter set(). If there is one, say $x=1$, enter set(1). If there are two, say x=1 and x=2, enter set(1, 2), etc.

\n

You could input an expression such as $\\frac{1-\\sqrt{133}}{2}$ by typing (1-sqrt(133))/2

\n

The set of $x$ intercepts is [[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": "{xint}", "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 Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}