// Numbas version: exam_results_page_options {"name": "Algebra I: collecting like terms", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"statement": "

Simplify the following by collecting like terms.

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

Some practice collecting like terms of algebraic expressions, with detailed advice.

\n

Adapted from 'Collecting like terms' by Ben Brawn.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "rulesets": {}, "variables": {"a": {"group": "Ungrouped variables", "description": "", "definition": "shuffle(list(-10..10))[0..3]", "templateType": "anything", "name": "a"}, "f": {"group": "Ungrouped variables", "description": "", "definition": "shuffle(list(-10..10)+[0,0])[0..2]", "templateType": "anything", "name": "f"}, "b": {"group": "Ungrouped variables", "description": "", "definition": "shuffle(list(-10..10)+[0,0])[0..3]", "templateType": "anything", "name": "b"}, "d": {"group": "Ungrouped variables", "description": "", "definition": "shuffle(list(-10..10))[0..2]", "templateType": "anything", "name": "d"}, "c": {"group": "Ungrouped variables", "description": "", "definition": "shuffle(list(-10..10)+[0,0,0,0])[0..3]", "templateType": "anything", "name": "c"}, "g": {"group": "Ungrouped variables", "description": "", "definition": "shuffle(list(-10..10))[0..2]", "templateType": "anything", "name": "g"}}, "type": "question", "variable_groups": [], "tags": [], "extensions": [], "parts": [{"steps": [{"type": "information", "scripts": {}, "showCorrectAnswer": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "prompt": "

Like terms are terms where the variable part is the same. For example $4x$ and $-x$ have the same variable part $x$. However, $3x$ and $-2y$ have different variable parts and are therefore unlike terms (or not like terms). 

\n

\n

We can only collect like terms! Just like we can't say 2 m + 3 cm equals 5 m or 5 cm, we can't say $2x+3y$ equals $5x$ or $5y$! We can however, say $2a+3a=5a$.

\n

\n

In our question we look at all the terms with a variable part of $x$ and add up all the corresponding coefficients, we do the same for the $y$ terms and the $z$ terms:

\n

\\[\\simplify{{a[1]}x+{b[1]}y+{c[1]}z+{b[2]}y+{a[2]}x+{c[2]}z+{a[0]}x+{c[0]}z+{b[0]}y}=\\simplify[basic]{({a[1]}+{a[2]}+{a[0]})x+({b[1]}+{b[2]}+{b[0]})y+({c[1]}+{c[2]}+{c[0]})z}\\]

\n

We present this as the sum of three unlike terms:

\n

\\[\\simplify{{sum(a)}x+{sum(b)}y+{sum(c)}z}\\]

", "marks": 0}], "type": "gapfill", "stepsPenalty": "0", "scripts": {}, "marks": 0, "showCorrectAnswer": true, "gaps": [{"type": "jme", "maxlength": {"message": "", "length": "14", "partialCredit": 0}, "scripts": {}, "expectedvariablenames": [], "checkvariablenames": false, "vsetrangepoints": 5, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "checkingaccuracy": 0.001, "marks": 1, "showCorrectAnswer": true, "checkingtype": "absdiff", "showpreview": true, "answer": "{sum(a)}*x+{sum(b)}*y+{sum(c)}*z", "vsetrange": [0, 1]}], "variableReplacementStrategy": "originalfirst", "prompt": "

$\\simplify{{a[1]}x+{b[1]}y+{c[1]}z+{b[2]}y+{a[2]}x+{c[2]}z+{a[0]}x+{c[0]}z+{b[0]}y}$ = [[0]]

", "variableReplacements": []}, {"steps": [{"type": "information", "scripts": {}, "showCorrectAnswer": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "prompt": "

Like terms are terms where the variable part is the same. For example $4x$ and $-x$ have the same variable part $x$. However, $3x^2$ and $-2x$ have different variable parts and are therefore unlike terms (or not like terms). 

\n

\n

We can only collect like terms! Just like we can't say 2 m + 3 cm equals 5 m or 5 cm, we can't say $2x^2+3x$ equals $5x^2$ or $5x$! We can however, say $2x^2+3x^2=5x^2$.

\n

\n

In our question we look at all the terms with a variable part of $x^2$ and add up all the corresponding coefficients (the numbers in front of the variables), we do the same for the $x$ terms and the constant terms (the terms with no variable part):

\n

\\[\\simplify{{d[1]}x^2+{f[1]}x+{g[1]}+{d[0]}x^2+{f[0]}x+{g[0]}}=\\simplify[basic]{({d[1]}+{d[0]})x^2+({f[1]}+{f[0]})x+({g[1]}+{g[0]})}\\]

\n

We present this as the sum of three unlike terms:

\n

\\[\\simplify{{sum(d)}x^2+{sum(f)}x+{sum(g)}}\\]

", "marks": 0}], "type": "gapfill", "stepsPenalty": "0", "scripts": {}, "marks": 0, "showCorrectAnswer": true, "gaps": [{"type": "jme", "maxlength": {"message": "", "length": "16", "partialCredit": 0}, "scripts": {}, "expectedvariablenames": [], "checkvariablenames": false, "vsetrangepoints": 5, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "checkingaccuracy": 0.001, "marks": 1, "showCorrectAnswer": true, "checkingtype": "absdiff", "showpreview": true, "answer": "{sum(d)}x^2+{sum(f)}x+{sum(g)}", "vsetrange": [0, 1]}], "variableReplacementStrategy": "originalfirst", "prompt": "

$\\simplify{{d[1]}x^2+{f[1]}x+{g[1]}+{d[0]}x^2+{f[0]}x+{g[0]}}$ = [[0]]

", "variableReplacements": []}], "showQuestionGroupNames": false, "advice": "", "name": "Algebra I: collecting like terms", "variablesTest": {"maxRuns": 100, "condition": ""}, "functions": {}, "preamble": {"css": "", "js": ""}, "ungrouped_variables": ["a", "b", "c", "d", "f", "g"], "question_groups": [{"pickingStrategy": "all-ordered", "name": "", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Luke Park", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/826/"}, {"name": "heike hoffmann", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2960/"}]}]}], "contributors": [{"name": "Luke Park", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/826/"}, {"name": "heike hoffmann", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2960/"}]}