// Numbas version: exam_results_page_options {"name": "binomial product", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"rulesets": {}, "variable_groups": [], "tags": [], "parts": [{"variableReplacementStrategy": "originalfirst", "steps": [{"variableReplacementStrategy": "originalfirst", "customName": "", "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "scripts": {}, "marks": 0, "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "useCustomName": false, "unitTests": [], "type": "information", "prompt": "

Method 1 (the distributive law)

\n

We expand \$\\simplify{(x+{a[0]})(x-{a[0]})}\$ one bracket at a time.

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
 \$\\simplify{(x+{a[0]})(x-{a[0]})}\$ \$=\$ \n\$\\simplify{x(x-{a[0]})+{a[0]}(x-{a[0]})}\$\n \n          (each term in one bracket times the entire other bracket)\n \$=\$ \$\\simplify{x^2-{a[0]}x+{a[0]}x-{a[0]*a[0]}}\$ (use the distributive law on each bracket) \$=\$ \$\\simplify{x^2-{a[0]*a[0]}}\$ (collect like terms)
\n

Method 2 (FOIL)

\n

Multiply the First terms in each bracket, then the Outer terms, then the Inner terms and then the Last terms. Add them all together.

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
 \$\\simplify{(x+{a[0]})(x-{a[0]})}\$ \$=\$ \n\$\\simplify[basic]{x^2-{a[0]}x+{a[0]}x-{a[0]*a[0]}}\$\n \n          (First, Outer, Inner, Last)\n \$=\$ \$\\simplify{x^2-{a[0]*a[0]}}\$ (collect like terms)
\n

Method 3 (difference of two squares)

\n

Notice that the product will expand to be a difference of two squares. Square the first term minus the square of the second term.

\n\n\n\n\n\n\n\n\n\n
 \$\\simplify{(x+{a[0]})(x-{a[0]})}\$ \$=\$ \n\$\\simplify{x^2-{a[0]*a[0]}}\$\n \n          (difference of two squares)\n
\n

"}], "customName": "", "showCorrectAnswer": true, "showFeedbackIcon": true, "sortAnswers": false, "variableReplacements": [], "scripts": {}, "marks": 0, "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "useCustomName": false, "stepsPenalty": "1", "gaps": [{"variableReplacementStrategy": "originalfirst", "unitTests": [], "showFeedbackIcon": true, "vsetRangePoints": 5, "variableReplacements": [], "useCustomName": false, "marks": 1, "extendBaseMarkingAlgorithm": true, "checkingType": "absdiff", "vsetRange": [0, 1], "showCorrectAnswer": true, "type": "jme", "showPreview": true, "valuegenerators": [{"name": "x", "value": ""}], "checkVariableNames": true, "failureRate": 1, "customName": "", "scripts": {}, "notallowed": {"strings": ["(", ")"], "showStrings": false, "partialCredit": 0, "message": "

"}, "checkingAccuracy": 0.001, "customMarkingAlgorithm": "", "answer": "x^2-{a[0]*a[0]}"}], "unitTests": [], "type": "gapfill", "prompt": "

\$\\simplify{(x+{a[0]})(x-{a[0]})}\$ = [[0]]

\n

\n

"}, {"variableReplacementStrategy": "originalfirst", "steps": [{"variableReplacementStrategy": "originalfirst", "customName": "", "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "scripts": {}, "marks": 0, "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "useCustomName": false, "unitTests": [], "type": "information", "prompt": "

It is important to realise that \$\\simplify{(x+{a[2]})^2}=\\simplify{(x+{a[2]})(x+{a[2]})}\$. Recall that squaring something is multiplying it by itself.

\n

\n

Method 1 (the distributive law)

\n

We expand \$\\simplify{(x+{a[2]})(x+{a[2]})}\$ one bracket at a time.

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
 \$\\simplify{(x+{a[2]})(x+{a[2]})}\$ \$=\$ \n\$\\simplify{x(x+{a[2]})+{a[2]}(x+{a[2]})}\$\n \n          (each term in one bracket times the entire other bracket)\n \$=\$ \$\\simplify{x^2+{a[2]}x+{a[2]}x+{a[2]*a[2]}}\$ (use the distributive law on each bracket) \$=\$ \$\\simplify{x^2+{2*a[2]}x+{a[2]*a[2]}}\$ (collect like terms)
\n

Method 2 (FOIL)

\n

Multiply the First terms in each bracket, then the Outer terms, then the Inner terms and then the Last terms. Add them all together.

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
 \$\\simplify{(x+{a[2]})(x+{a[2]})}\$ \$=\$ \n\$\\simplify[basic]{x^2+{a[2]}x+{a[2]}x+{a[2]*a[2]}}\$\n \n          (First, Outer, Inner, Last)\n \$=\$ \$\\simplify{x^2+{2*a[2]}x+{a[2]*a[2]}}\$ (collect like terms)
\n

Method 3 (perfect square)

\n

Notice that \$\\simplify{(x+{a[2]})^2}\$ is a perfect square. Square the first term, double the second term times the first, then square the last term, add them all together.

\n\n\n\n\n\n\n\n\n\n
 \$\\simplify{(x+{a[2]})}\$ \$=\$ \n\$\\simplify{x^2+{2*a[2]}x+{a[2]*a[2]}}\$\n \n          (perfect square)\n
"}], "customName": "", "showCorrectAnswer": true, "showFeedbackIcon": true, "sortAnswers": false, "variableReplacements": [], "scripts": {}, "marks": 0, "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "useCustomName": false, "stepsPenalty": "1", "gaps": [{"variableReplacementStrategy": "originalfirst", "unitTests": [], "showFeedbackIcon": true, "vsetRangePoints": 5, "variableReplacements": [], "useCustomName": false, "marks": 1, "extendBaseMarkingAlgorithm": true, "checkingType": "absdiff", "vsetRange": [0, 1], "showCorrectAnswer": true, "type": "jme", "showPreview": true, "valuegenerators": [{"name": "x", "value": ""}], "checkVariableNames": true, "failureRate": 1, "customName": "", "scripts": {}, "notallowed": {"strings": ["(", ")"], "showStrings": false, "partialCredit": 0, "message": "

"}, "checkingAccuracy": 0.001, "customMarkingAlgorithm": "", "answer": "x^2+{2*a[2]}x+{a[2]*a[2]}"}], "unitTests": [], "type": "gapfill", "prompt": "

\$\\simplify{(x+{a[2]})^2}\$ = [[0]]

\n

\n

"}, {"variableReplacementStrategy": "originalfirst", "steps": [{"variableReplacementStrategy": "originalfirst", "customName": "", "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "scripts": {}, "marks": 0, "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "useCustomName": false, "unitTests": [], "type": "information", "prompt": "

Method 1 (the distributive law)

\n

We expand \$\\simplify{(w+{a[1]})(w-{a[1]})}\$ one bracket at a time.

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
 \$\\simplify{(w+{a[1]})(w-{a[1]})}\$ \$=\$ \n\$\\simplify{w(w-{a[1]})+{a[1]}(w-{a[1]})}\$\n \n          (each term in one bracket times the entire other bracket)\n \$=\$ \$\\simplify{w^2-{a[1]}w+{a[1]}w-{a[1]*a[1]}}\$ (use the distributive law on each bracket) \$=\$ \$\\simplify{w^2-{a[1]*a[1]}}\$ (collect like terms)
\n

Method 2 (FOIL)

\n

Multiply the First terms in each bracket, then the Outer terms, then the Inner terms and then the Last terms. Add them all together.

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
 \$\\simplify{(w+{a[1]})(w-{a[1]})}\$ \$=\$ \n\$\\simplify[basic]{w^2-{a[1]}w+{a[1]}w-{a[1]*a[1]}}\$\n \n          (First, Outer, Inner, Last)\n \$=\$ \$\\simplify{w^2-{a[1]*a[1]}}\$ (collect like terms)
\n

Method 3 (difference of two squares)

\n

Notice that the product will expand to be a difference of two squares. Square the first term minus the square of the second term.

\n\n\n\n\n\n\n\n\n\n
 \$\\simplify{(w+{a[1]})(w-{a[1]})}\$ \$=\$ \n\$\\simplify{w^2-{a[1]*a[1]}}\$\n \n          (difference of two squares)\n
"}], "customName": "", "showCorrectAnswer": true, "showFeedbackIcon": true, "sortAnswers": false, "variableReplacements": [], "scripts": {}, "marks": 0, "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "useCustomName": false, "stepsPenalty": "1", "gaps": [{"variableReplacementStrategy": "originalfirst", "unitTests": [], "showFeedbackIcon": true, "vsetRangePoints": 5, "variableReplacements": [], "useCustomName": false, "marks": 1, "extendBaseMarkingAlgorithm": true, "checkingType": "absdiff", "vsetRange": [0, 1], "showCorrectAnswer": true, "type": "jme", "showPreview": true, "valuegenerators": [{"name": "w", "value": ""}], "checkVariableNames": true, "failureRate": 1, "customName": "", "scripts": {}, "notallowed": {"strings": ["(", ")"], "showStrings": false, "partialCredit": 0, "message": "

"}, "checkingAccuracy": 0.001, "customMarkingAlgorithm": "", "answer": "w^2-{a[1]*a[1]}"}], "unitTests": [], "type": "gapfill", "prompt": "

\$\\simplify{(w+{a[1]})(w-{a[1]})}\$ = [[0]]

\n

\n

"}, {"variableReplacementStrategy": "originalfirst", "steps": [{"variableReplacementStrategy": "originalfirst", "customName": "", "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "scripts": {}, "marks": 0, "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "useCustomName": false, "unitTests": [], "type": "information", "prompt": "

Method 1 (the distributive law)

\n

We expand \$\\simplify{(r+{a[3]})(r+{a[3]})}\$ one bracket at a time.

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
 \$\\simplify{(r+{a[3]})(r+{a[3]})}\$ \$=\$ \n\$\\simplify{r(r+{a[3]})+{a[3]}(r+{a[3]})}\$\n \n          (each term in one bracket times the entire other bracket)\n \$=\$ \$\\simplify{r^2+{a[3]}r+{a[3]}r+{a[3]*a[3]}}\$ (use the distributive law on each bracket) \$=\$ \$\\simplify{r^2+{2*a[3]}r+{a[3]*a[3]}}\$ (collect like terms)
\n

Method 2 (FOIL)

\n

Multiply the First terms in each bracket, then the Outer terms, then the Inner terms and then the Last terms. Add them all together.

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
 \$\\simplify{(r+{a[3]})(r+{a[3]})}\$ \$=\$ \n\$\\simplify[basic]{r^2+{a[3]}r+{a[3]}r+{a[3]*a[3]}}\$\n \n          (First, Outer, Inner, Last)\n \$=\$ \$\\simplify{r^2+{2*a[3]}r+{a[3]*a[3]}}\$ (collect like terms)
\n

Method 3 (perfect square)

\n

Notice that \$\\simplify{(r+{a[3]})(r+{a[3]})}\$ is a perfect square. Square the first term, double the second term times the first, then square the last term, add them all together.

\n\n\n\n\n\n\n\n\n\n
 \$\\simplify{(r+{a[3]})(r+{a[3]})}\$ \$=\$ \n\$\\simplify{r^2+{2*a[3]}r+{a[3]*a[3]}}\$\n \n          (perfect square)\n
"}], "customName": "", "showCorrectAnswer": true, "showFeedbackIcon": true, "sortAnswers": false, "variableReplacements": [], "scripts": {}, "marks": 0, "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "useCustomName": false, "stepsPenalty": "1", "gaps": [{"variableReplacementStrategy": "originalfirst", "unitTests": [], "showFeedbackIcon": true, "vsetRangePoints": 5, "variableReplacements": [], "useCustomName": false, "marks": 1, "extendBaseMarkingAlgorithm": true, "checkingType": "absdiff", "vsetRange": [0, 1], "showCorrectAnswer": true, "type": "jme", "showPreview": true, "valuegenerators": [{"name": "r", "value": ""}], "checkVariableNames": true, "failureRate": 1, "customName": "", "scripts": {}, "notallowed": {"strings": ["(", ")"], "showStrings": false, "partialCredit": 0, "message": "

"}, "checkingAccuracy": 0.001, "customMarkingAlgorithm": "", "answer": "r^2+{2*a[3]}r+{a[3]*a[3]}"}], "unitTests": [], "type": "gapfill", "prompt": "

\$\\simplify{(r+{a[3]})(r+{a[3]})}\$ = [[0]]

\n

\n

"}], "functions": {}, "name": "binomial product", "ungrouped_variables": ["a"], "preamble": {"js": "", "css": ""}, "variablesTest": {"maxRuns": "127", "condition": ""}, "metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": ""}, "extensions": [], "statement": "

Expand and simplify the following.

", "advice": "", "variables": {"a": {"description": "", "definition": "shuffle(-12..12 except 0)[0..4]", "group": "Ungrouped variables", "name": "a", "templateType": "anything"}}, "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}, {"name": "heike hoffmann", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2960/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}, {"name": "heike hoffmann", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2960/"}]}