// Numbas version: exam_results_page_options {"name": "Algebraic fractions: operations involving algebraic fractions", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variables": {"primes": {"definition": "shuffle([2,3,5,7,11,13,17])", "name": "primes", "description": "", "group": "numerical fractions", "templateType": "anything"}, "a": {"definition": "primes[0]", "name": "a", "description": "", "group": "numerical fractions", "templateType": "anything"}, "d": {"definition": "primes[3]", "name": "d", "description": "", "group": "numerical fractions", "templateType": "anything"}, "c": {"definition": "primes[2]", "name": "c", "description": "", "group": "numerical fractions", "templateType": "anything"}, "h": {"definition": "primes[6]", "name": "h", "description": "", "group": "numerical fractions", "templateType": "anything"}, "g": {"definition": "primes[5]", "name": "g", "description": "", "group": "numerical fractions", "templateType": "anything"}, "f": {"definition": "primes[4]", "name": "f", "description": "", "group": "numerical fractions", "templateType": "anything"}, "j": {"definition": "random(primes except [d,g,h])", "name": "j", "description": "", "group": "numerical fractions", "templateType": "anything"}, "b": {"definition": "primes[1]", "name": "b", "description": "", "group": "numerical fractions", "templateType": "anything"}}, "statement": "

Evaluate the following and write your answer as a single fraction. Use  / to signify a fraction or division, for example $\\frac{2a-1}{x+3}$ is written (2a-1)/(x+3). Simplify/cancel where possible.

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

$\\displaystyle\\frac{\\var{a}x}{\\var{b}}+\\frac{x+\\var{c}}{\\var{b}}=$ [[0]]

\n

$\\displaystyle\\frac{\\var{d}}{\\var{c}y}-\\frac{\\var{a}}{\\var{c}y}=$ [[1]]

", "customName": "", "useCustomName": false, "extendBaseMarkingAlgorithm": true, "sortAnswers": false, "scripts": {}, "steps": [{"showFeedbackIcon": true, "type": "information", "variableReplacementStrategy": "originalfirst", "prompt": "

Add the tops, leave the bottom the same.

\n

\n

These fractions have a common denominator (the number on the bottom). This means they are out of the same number of parts and can be compared easily, for example, it is clear $\\frac{2}{3}$ is less than $\\frac{5}{3}$ but not so clear that $\\frac{3}{5}$ is less than $\\frac{2}{3}$.

\n

\n
\n

\n

Let's say you need to evaluate $\\frac{2}{3}+\\frac{5}{3}$, in words this is 'two thirds plus five thirds', so how many thirds are there in total? Seven thirds!

\n

So we have

\n

\\[\\frac{2}{3}+\\frac{5}{3}=\\frac{2+5}{3}=\\frac{7}{3}\\]

\n

The same logic is used for subtraction. Suppose you had seven fourths and someone borrowed three fourths, then you are left with four fourths. 

\n

That is

\n

\\[\\frac{7}{4}-\\frac{3}{4}=\\frac{7-3}{4}=\\frac{4}{4}=1\\]

\n

", "customName": "", "useCustomName": false, "extendBaseMarkingAlgorithm": true, "scripts": {}, "variableReplacements": [], "showCorrectAnswer": true, "customMarkingAlgorithm": "", "unitTests": [], "marks": 0}], "variableReplacements": [], "showCorrectAnswer": true, "customMarkingAlgorithm": "", "stepsPenalty": "2", "unitTests": [], "marks": 0}, {"showFeedbackIcon": true, "type": "gapfill", "variableReplacementStrategy": "originalfirst", "gaps": [{"showFeedbackIcon": true, "type": "jme", "showPreview": true, "valuegenerators": [{"name": "a", "value": ""}], "variableReplacementStrategy": "originalfirst", "vsetRange": [0, 1], "checkingType": "absdiff", "vsetRangePoints": 5, "answer": "({j+g*h}a+{f*j+g})/{g*j}", "checkVariableNames": true, "answerSimplification": "simplifyFractions", "variableReplacements": [], "marks": "1", "customMarkingAlgorithm": "", "useCustomName": false, "customName": "", "extendBaseMarkingAlgorithm": true, "checkingAccuracy": 0.001, "showCorrectAnswer": true, "scripts": {}, "failureRate": 1, "unitTests": []}, {"showFeedbackIcon": true, "type": "jme", "showPreview": true, "valuegenerators": [{"name": "b", "value": ""}], "variableReplacementStrategy": "originalfirst", "vsetRange": [0, 1], "checkingType": "absdiff", "vsetRangePoints": 5, "answer": "({g-f}b+{g*h-f*j})/{f*g}", "checkVariableNames": true, "answerSimplification": "simplifyFractions", "variableReplacements": [], "marks": "1", "customMarkingAlgorithm": "", "useCustomName": false, "customName": "", "extendBaseMarkingAlgorithm": true, "checkingAccuracy": 0.001, "showCorrectAnswer": true, "scripts": {}, "failureRate": 1, "unitTests": []}, {"showFeedbackIcon": true, "type": "jme", "showPreview": true, "valuegenerators": [{"name": "r", "value": ""}], "variableReplacementStrategy": "originalfirst", "vsetRange": [0, 1], "checkingType": "absdiff", "vsetRangePoints": 5, "answer": "({a}+{f*d}r^2)/({d}r)", "checkVariableNames": true, "answerSimplification": "simplifyFractions", "variableReplacements": [], "marks": "1", "customMarkingAlgorithm": "", "useCustomName": false, "customName": "", "extendBaseMarkingAlgorithm": true, "checkingAccuracy": 0.001, "showCorrectAnswer": true, "scripts": {}, "failureRate": 1, "unitTests": []}], "prompt": "

$\\displaystyle\\simplify{(a+{f})/{g}+({h}a+1)/{j}}=$ [[0]]

\n

$\\displaystyle\\simplify{(b+{h})/{f}-(b+{j})/{g}}=$ [[1]]

\n

$\\displaystyle \\frac{\\var{a}}{\\var{d}r}+\\var{f}r=$ [[2]]

", "customName": "", "useCustomName": false, "extendBaseMarkingAlgorithm": true, "sortAnswers": false, "scripts": {}, "steps": [{"showFeedbackIcon": true, "type": "information", "variableReplacementStrategy": "originalfirst", "prompt": "

Rewrite the fractions so they have a common denominator. Then perform the addition or subtraction as required.

\n

\n
\n

\n

If your question was $\\frac{5}{4}+\\frac{3}{8}$ we could rewrite the first fraction as $\\frac{10}{8}$ (by multiplying the top and bottom by 2) and then both fractions would have a denominator of 8. At this point, we can perform the addition. Our working might look like this:

\n

\\[\\frac{5}{4}+\\frac{3}{8}=\\frac{5\\times 2}{4\\times 2}+\\frac{3}{8}=\\frac{10}{8}+\\frac{3}{8}=\\frac{13}{8}\\]

\n

\n

\n
\n

\n

Often we need to rewrite both fractions to get a common denominator, for instance, $\\frac{5}{4}-\\frac{2}{3}$. We could multiply the first fraction by 3 on the top and bottom, so that it's denominator was 12, and then multiply the second fraction by 4 on the top and bottom so that it also had a denominator of 12. Then we could perform the subtraction. Our working might look like this:

\n

\\[\\frac{5}{4}-\\frac{2}{3}=\\frac{5\\times 3}{4\\times 3}-\\frac{2\\times 4}{3\\times 4}=\\frac{15}{12}-\\frac{8}{12}=\\frac{7}{12}\\]

\n

\n

\n
\n

\n

Also, recall that whole numbers are just fractions with a denominator of 1, for example $3=\\frac{3}{1}$.

\n

\n

In general, the best denominator is the lowest common multiple (LCM) of the two denominators. 

", "customName": "", "useCustomName": false, "extendBaseMarkingAlgorithm": true, "scripts": {}, "variableReplacements": [], "showCorrectAnswer": true, "customMarkingAlgorithm": "", "unitTests": [], "marks": 0}], "variableReplacements": [], "showCorrectAnswer": true, "customMarkingAlgorithm": "", "stepsPenalty": "2", "unitTests": [], "marks": 0}, {"showFeedbackIcon": true, "type": "gapfill", "variableReplacementStrategy": "originalfirst", "gaps": [{"showFeedbackIcon": true, "type": "jme", "showPreview": true, "valuegenerators": [{"name": "m", "value": ""}, {"name": "n", "value": ""}, {"name": "x", "value": ""}, {"name": "y", "value": ""}], "variableReplacementStrategy": "originalfirst", "vsetRange": [0, 1], "checkingType": "absdiff", "vsetRangePoints": 5, "answer": "((m+1)*y)/((n+1)*x)", "checkVariableNames": true, "answerSimplification": "simplifyFractions", "variableReplacements": [], "marks": 1, "customMarkingAlgorithm": "", "useCustomName": false, "customName": "", "extendBaseMarkingAlgorithm": true, "checkingAccuracy": 0.001, "showCorrectAnswer": true, "scripts": {}, "failureRate": 1, "unitTests": []}, {"showFeedbackIcon": true, "type": "jme", "showPreview": true, "valuegenerators": [{"name": "w", "value": ""}], "variableReplacementStrategy": "originalfirst", "vsetRange": [0, 1], "checkingType": "absdiff", "vsetRangePoints": 5, "answer": "-({d*f}+{d}w)/{j}", "checkVariableNames": true, "answerSimplification": "simplifyFractions", "variableReplacements": [], "marks": 1, "customMarkingAlgorithm": "", "useCustomName": false, "customName": "", "extendBaseMarkingAlgorithm": true, "checkingAccuracy": 0.001, "showCorrectAnswer": true, "scripts": {}, "failureRate": 1, "unitTests": []}], "prompt": "

$\\displaystyle\\frac{m+1}{n+1}\\times \\frac{y}{x}=$ [[0]]

\n

$\\displaystyle -\\frac{\\var{f}+w}{\\var{j}}\\times \\var{d}=$ [[1]]

\n

\n

\n

", "customName": "", "useCustomName": false, "extendBaseMarkingAlgorithm": true, "sortAnswers": false, "scripts": {}, "steps": [{"showFeedbackIcon": true, "type": "information", "variableReplacementStrategy": "originalfirst", "prompt": "

Multiply the tops and the bottoms.

\n

\n
\n

\n

For example 

\n

\\[\\frac{4}{5}\\times \\frac{2}{3}=\\frac{4\\times 2}{5 \\times 3}=\\frac{8}{15}\\]

\n

\n

\n
\n

\n

Also recall that whole numbers are just fractions with a denominator of 1, for example $7=\\frac{7}{1}$.

", "customName": "", "useCustomName": false, "extendBaseMarkingAlgorithm": true, "scripts": {}, "variableReplacements": [], "showCorrectAnswer": true, "customMarkingAlgorithm": "", "unitTests": [], "marks": 0}], "variableReplacements": [], "showCorrectAnswer": true, "customMarkingAlgorithm": "", "stepsPenalty": "2", "unitTests": [], "marks": 0}, {"showFeedbackIcon": true, "type": "gapfill", "variableReplacementStrategy": "originalfirst", "gaps": [{"showFeedbackIcon": true, "type": "jme", "showPreview": true, "valuegenerators": [{"name": "x", "value": ""}], "variableReplacementStrategy": "originalfirst", "vsetRange": [0, 1], "checkingType": "absdiff", "vsetRangePoints": 5, "answer": "({a*j}x^2+{j*f}x)/{g*h}", "checkVariableNames": true, "answerSimplification": "simplifyFractions", "variableReplacements": [], "marks": "1", "customMarkingAlgorithm": "", "useCustomName": false, "customName": "", "extendBaseMarkingAlgorithm": true, "checkingAccuracy": 0.001, "showCorrectAnswer": true, "scripts": {}, "failureRate": 1, "unitTests": []}, {"showFeedbackIcon": true, "type": "jme", "showPreview": true, "valuegenerators": [{"name": "t", "value": ""}], "variableReplacementStrategy": "originalfirst", "vsetRange": [0, 1], "checkingType": "absdiff", "vsetRangePoints": 5, "answer": "{b}/({c}({d}+t))", "checkVariableNames": false, "answerSimplification": "simplifyFractions", "variableReplacements": [], "marks": "1", "customMarkingAlgorithm": "", "useCustomName": false, "customName": "", "extendBaseMarkingAlgorithm": true, "checkingAccuracy": 0.001, "showCorrectAnswer": true, "scripts": {}, "failureRate": 1, "unitTests": []}, {"showFeedbackIcon": true, "type": "jme", "showPreview": true, "valuegenerators": [{"name": "z", "value": ""}], "variableReplacementStrategy": "originalfirst", "vsetRange": [0, 1], "checkingType": "absdiff", "vsetRangePoints": 5, "answer": "({j*f}z^2)/({-d}(z+1)^2)", "checkVariableNames": false, "answerSimplification": "simplifyFractions", "variableReplacements": [], "marks": "1", "customMarkingAlgorithm": "", "useCustomName": false, "customName": "", "extendBaseMarkingAlgorithm": true, "checkingAccuracy": 0.001, "showCorrectAnswer": true, "scripts": {}, "failureRate": 1, "unitTests": []}], "prompt": "

$\\displaystyle{\\simplify{({f}+{a}x)^2/{h}}}\\div \\simplify{(({f}+{a}x){g})/({j}x)}=$ [[0]]

\n

$\\displaystyle \\frac{\\var{b}q}{\\var{c}q}\\div (\\var{d}+t)=$ [[1]]

\n

$\\displaystyle \\var{j}z\\div \\left(\\frac{\\var{-d}(z+1)^2}{\\var{f}z}\\right)=$ [[2]]

\n

", "customName": "", "useCustomName": false, "extendBaseMarkingAlgorithm": true, "sortAnswers": false, "scripts": {}, "steps": [{"showFeedbackIcon": true, "type": "information", "variableReplacementStrategy": "originalfirst", "prompt": "

Flip the second fraction and then multiply.

\n

\n
\n

\n

Flipping a fraction is also known as taking the reciprocal of the fraction (or inverting a fraction). Note that a whole number is also a fraction with a denominator of 1, for example, $6=\\frac{6}{1}$.

\n

How do you find half of a number? You could 'divide it by 2', or you could 'multiply by $\\frac{1}{2}$. Notice that $\\frac{1}{2}$ is the reciprocal of 2. When we divide by a number this is actually the same as multiplying by its reciprocal.

\n

\n
\n

\n

Suppose you need to evaluate $\\frac{3}{7}\\div\\frac{5}{4}$. Recall this is the same as asking 'how many $\\frac{5}{4}$s are in $\\frac{3}{7}$?', but that doesn't seem to be very helpful here! What is helpful is realising that dividing by $\\frac{5}{4}$ is the same as multiplying by $\\frac{4}{5}$. Our working could look like this

\n

\\[\\frac{3}{7}\\div\\frac{5}{4}=\\frac{3}{7}\\times\\frac{4}{5}=\\frac{3\\times 4}{7\\times 5}=\\frac{12}{35}\\]

\n

 

", "customName": "", "useCustomName": false, "extendBaseMarkingAlgorithm": true, "scripts": {}, "variableReplacements": [], "showCorrectAnswer": true, "customMarkingAlgorithm": "", "unitTests": [], "marks": 0}], "variableReplacements": [], "showCorrectAnswer": true, "customMarkingAlgorithm": "", "stepsPenalty": "2", "unitTests": [], "marks": 0}, {"showFeedbackIcon": true, "type": "gapfill", "variableReplacementStrategy": "originalfirst", "gaps": [{"showFeedbackIcon": true, "type": "jme", "showPreview": true, "vsetRangePoints": 5, "variableReplacementStrategy": "originalfirst", "checkVariableNames": true, "valuegenerators": [{"name": "x", "value": ""}, {"name": "y", "value": ""}], "vsetRange": [0, 1], "answer": "({a}*({b}+x))/({b}(y+{a}))", "customName": "", "useCustomName": false, "checkingAccuracy": 0.001, "extendBaseMarkingAlgorithm": true, "checkingType": "absdiff", "scripts": {}, "variableReplacements": [], "showCorrectAnswer": true, "customMarkingAlgorithm": "", "failureRate": 1, "unitTests": [], "marks": "1"}, {"showFeedbackIcon": true, "type": "jme", "showPreview": true, "valuegenerators": [{"name": "w", "value": ""}], "variableReplacementStrategy": "originalfirst", "vsetRange": [0, 1], "checkingType": "absdiff", "vsetRangePoints": 5, "answer": "1/({g}w)", "checkVariableNames": true, "answerSimplification": "simplifyFractions", "variableReplacements": [], "marks": "1", "customMarkingAlgorithm": "", "useCustomName": false, "customName": "", "extendBaseMarkingAlgorithm": true, "checkingAccuracy": 0.001, "showCorrectAnswer": true, "scripts": {}, "failureRate": 1, "unitTests": []}, {"showFeedbackIcon": true, "type": "jme", "showPreview": true, "valuegenerators": [{"name": "r", "value": ""}], "variableReplacementStrategy": "originalfirst", "vsetRange": [0, 1], "checkingType": "absdiff", "vsetRangePoints": 5, "answer": "{j*c}r/{h}", "checkVariableNames": true, "answerSimplification": "simplifyFractions", "variableReplacements": [], "marks": "1", "customMarkingAlgorithm": "", "useCustomName": false, "customName": "", "extendBaseMarkingAlgorithm": true, "checkingAccuracy": 0.001, "showCorrectAnswer": true, "scripts": {}, "failureRate": 1, "unitTests": []}], "prompt": "

$\\displaystyle \\frac{\\frac{\\var{b}+x}{y+\\var{a}}}{\\frac{ \\var{b}}{\\var{a}}}=$ [[0]]

\n

\n

$\\displaystyle \\frac{\\frac{w+\\var{f}}{\\var{g}w}}{w+\\var{f}}=$ [[1]]

\n

\n

$\\displaystyle \\frac{\\var{j}r}{\\frac{\\var{h}r}{\\var{c}r}}=$ [[2]]

\n

", "customName": "", "useCustomName": false, "extendBaseMarkingAlgorithm": true, "sortAnswers": false, "scripts": {}, "steps": [{"showFeedbackIcon": true, "type": "information", "variableReplacementStrategy": "originalfirst", "prompt": "

The fraction bar means division.

\n

\n
\n

\n

The fraction $\\frac{2}{3}$ means 2 divided by 3. So these questions are just division questions! It is important to note which fraction bar is big and which are small, so you know the order of the divisions.  

\n

\n
\n

\n

Here are some examples:

\n

\\[\\frac{7}{\\frac{5}{6}}=7\\div\\frac{5}{6} =7\\times\\frac{6}{5}=\\frac{42}{5}\\]

\n

\\[\\frac{\\frac{7}{5}}{6}=\\frac{7}{5}\\div 6=\\frac{7}{5}\\times \\frac{1}{6}=\\frac{7}{30}\\]

\n

\\[\\frac{\\frac{9}{11}}{\\frac{5}{3}}=\\frac{9}{11}\\div\\frac{5}{3}=\\frac{9}{11}\\times \\frac{3}{5}=\\frac{27}{55}\\]

", "customName": "", "useCustomName": false, "extendBaseMarkingAlgorithm": true, "scripts": {}, "variableReplacements": [], "showCorrectAnswer": true, "customMarkingAlgorithm": "", "unitTests": [], "marks": 0}], "variableReplacements": [], "showCorrectAnswer": true, "customMarkingAlgorithm": "", "stepsPenalty": "2", "unitTests": [], "marks": 0}], "rulesets": {}, "metadata": {"description": "

Add, subtract, multiply and divide algebraic fractions.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "ungrouped_variables": [], "variable_groups": [{"variables": ["a", "b", "c", "d", "f", "g", "h", "j", "primes"], "name": "numerical fractions"}], "functions": {}, "extensions": [], "advice": "

Learn from your mistakes and have another attempt by clicking on 'Try another question like this one' until you get full marks.

", "name": "Algebraic fractions: operations involving algebraic fractions", "preamble": {"js": "", "css": ""}, "tags": ["adding fractions", "algebra", "Algebra", "algebraic fractions", "dividing fractions", "multiplying fractions", "rational", "subtracting fractions"], "variablesTest": {"condition": "", "maxRuns": 100}, "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/"}]}