// Numbas version: exam_results_page_options {"name": "John's copy of Represent a linear map as a matrix given a basis", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variablesTest": {"condition": "", "maxRuns": 100}, "rulesets": {}, "advice": "

We have:

\n

\\[\\phi(1)=\\simplify[all,!zerofactor,!collectNumbers,!constantsfirst,!noleadingminus]{1+1= 2*1= 2 * 1 + 0 * x + 0 * x ^ 2 + 0 * x ^ 3 + 0 * x ^ 4}\\]

\n

gives the first column of the matrix.

\n

\\[\\phi(x)=\\simplify[all,!zerofactor,!collectNumbers,!constantsfirst,!noleadingminus]{{a}+ ({b} * x + {c}) = {a+c} + {b} * x = {a+c} * 1 + {b} * x + 0 * x ^ 2 + 0 * x ^ 3 + 0 * x ^ 4}\\]

\n

gives the second column of the matrix.

\n

\\[\\phi(x^2)=\\simplify[all,!zerofactor,!collectNumbers,!constantsfirst,!noleadingminus]{ {a}^ 2 + ({b} * x + {c})^2 = {a^2+c^2} + {2 * b* c} * x + {b^2} * x ^ 2 = {a^2+c^2} * 1 + {2*b*c} * x + {b^2} * x ^ 2 + 0 * x ^ 3 + 0 * x ^ 4}\\]

\n

 

\n

gives the third column of the matrix.

\n

Continuing on in this way for $\\phi(x^3),\\;\\phi(x^4)$ we obtain the matrix for $\\phi$ with respect to the given bases for domain and range.

\n

 

\n

\\[\\begin{pmatrix}\\var{2}&\\var{a+c}&\\var{a^2+c^2}&\\var{a^3+c^3}&\\var{a^4+c^4}\\\\0&\\var{b}&\\var{2*b*c}&\\var{3*b*c^2}&\\var{4*b*c^3}\\\\0&0&\\var{b^2}&\\var{3*b^2*c}&\\var{6*b^2*c^2}\\\\0&0&0&\\var{b^3}&\\var{4*b^3*c}\\\\0&0&0&0&\\var{b^4}\\end{pmatrix}\\]

", "ungrouped_variables": ["a", "c", "b"], "parts": [{"prompt": "

Using the ordered basis $\\{1,\\;x,\\;x^2,\\;x^3,\\;x^4\\}$ of $P_4$ for both range and domain, $\\phi$ is represented by a 5 x 5 matrix. Fill in the entries for this matrix below:

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\\[\\left( \\begin{matrix}\\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\end{matrix} \\right.\\][[0]][[1]][[2]][[3]][[4]]\\[\\left) \\begin{matrix}\\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.}\\\\ \\phantom{.} \\\\ \\phantom{.}\\\\ \\phantom{.}\\\\\\end{matrix} \\right.\\]
$0$[[5]][[6]][[7]][[8]]
$0$$0$[[9]][[10]][[11]]
$0$$0$$0$[[12]][[13]]
$0$$0$$0$$0$[[14]]
", "showCorrectAnswer": true, "gaps": [{"allowFractions": false, "showCorrectAnswer": true, "minValue": "2", "maxValue": "2", "type": "numberentry", "scripts": {}, "correctAnswerFraction": false, "marks": 0.6, "showPrecisionHint": false}, {"allowFractions": false, "showCorrectAnswer": true, "minValue": "{a+c}", "maxValue": "{a+c}", "type": "numberentry", "scripts": {}, "correctAnswerFraction": false, "marks": 0.6, "showPrecisionHint": false}, {"allowFractions": false, "showCorrectAnswer": true, "minValue": "{a^2+c^2}", "maxValue": "{a^2+c^2}", "type": "numberentry", "scripts": {}, "correctAnswerFraction": false, "marks": 0.6, "showPrecisionHint": false}, {"allowFractions": false, "showCorrectAnswer": true, "minValue": "{a^3+c^3}", "maxValue": "{a^3+c^3}", "type": "numberentry", "scripts": {}, "correctAnswerFraction": false, "marks": 0.6, "showPrecisionHint": false}, {"allowFractions": false, "showCorrectAnswer": true, "minValue": "{a^4+c^4}", "maxValue": "{a^4+c^4}", "type": "numberentry", "scripts": {}, "correctAnswerFraction": false, "marks": 0.6, "showPrecisionHint": false}, {"allowFractions": false, "showCorrectAnswer": true, "minValue": "{b}", "maxValue": "{b}", "type": "numberentry", "scripts": {}, "correctAnswerFraction": false, "marks": 0.6, "showPrecisionHint": false}, {"allowFractions": false, "showCorrectAnswer": true, "minValue": "{2*b*c}", "maxValue": "{2*b*c}", "type": "numberentry", "scripts": {}, "correctAnswerFraction": false, "marks": 0.6, "showPrecisionHint": false}, {"allowFractions": false, "showCorrectAnswer": true, "minValue": "{3*b*c^2}", "maxValue": "{3*b*c^2}", "type": "numberentry", "scripts": {}, "correctAnswerFraction": false, "marks": 0.6, "showPrecisionHint": false}, {"allowFractions": false, "showCorrectAnswer": true, "minValue": "{4*b*c^3}", "maxValue": "{4*b*c^3}", "type": "numberentry", "scripts": {}, "correctAnswerFraction": false, "marks": 0.6, "showPrecisionHint": false}, {"allowFractions": false, "showCorrectAnswer": true, "minValue": "{b^2}", "maxValue": "{b^2}", "type": "numberentry", "scripts": {}, "correctAnswerFraction": false, "marks": 0.6, "showPrecisionHint": false}, {"allowFractions": false, "showCorrectAnswer": true, "minValue": "{3*b^2*c}", "maxValue": "{3*b^2*c}", "type": "numberentry", "scripts": {}, "correctAnswerFraction": false, "marks": 0.6, "showPrecisionHint": false}, {"allowFractions": false, "showCorrectAnswer": true, "minValue": "{6*b^2*c^2}", "maxValue": "{6*b^2*c^2}", "type": "numberentry", "scripts": {}, "correctAnswerFraction": false, "marks": 0.6, "showPrecisionHint": false}, {"allowFractions": false, "showCorrectAnswer": true, "minValue": "{b^3}", "maxValue": "{b^3}", "type": "numberentry", "scripts": {}, "correctAnswerFraction": false, "marks": 0.6, "showPrecisionHint": false}, {"allowFractions": false, "showCorrectAnswer": true, "minValue": "{4*b^3*c}", "maxValue": "{4*b^3*c}", "type": "numberentry", "scripts": {}, "correctAnswerFraction": false, "marks": 0.6, "showPrecisionHint": false}, {"allowFractions": false, "showCorrectAnswer": true, "minValue": "{b^4}", "maxValue": "{b^4}", "type": "numberentry", "scripts": {}, "correctAnswerFraction": false, "marks": 0.6, "showPrecisionHint": false}], "scripts": {}, "marks": 0, "type": "gapfill"}], "preamble": {"js": "", "css": ""}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "notes": "

15/02/2013:

\n

First draft finished.

", "description": "

Let $P_n$ denote the vector space over the reals of polynomials $p(x)$ of degree $n$  with coefficients in the real numbers. Let the linear map $\\phi: P_4 \\rightarrow P_4$ be defined by: \\[\\phi(p(x))=p(a)+p(bx+c).\\]Using the standard basis for range and domain find the matrix given by $\\phi$.

"}, "variable_groups": [], "tags": ["basis", "checked2015", "linear map", "linear spaces", "MAS2223", "matrix", "matrix given by a basis", "matrix of a linear map", "poynomials", "vector spaces"], "type": "question", "functions": {}, "question_groups": [{"pickingStrategy": "all-ordered", "pickQuestions": 0, "name": "", "questions": []}], "showQuestionGroupNames": false, "variables": {"b": {"definition": "random(1..5)", "templateType": "anything", "group": "Ungrouped variables", "description": "", "name": "b"}, "a": {"definition": "random(-5..5 except 0)", "templateType": "anything", "group": "Ungrouped variables", "description": "", "name": "a"}, "c": {"definition": "random(-5..5 except 0)", "templateType": "anything", "group": "Ungrouped variables", "description": "", "name": "c"}}, "name": "John's copy of Represent a linear map as a matrix given a basis", "statement": "

Let $P_n$ denote the vector space over the reals of polynomials $p(x)$ of degree $n$  with coefficients in the real numbers.

\n

Let the linear map $\\phi: P_4 \\rightarrow P_4$ be defined by:

\n

\\[\\phi(p(x))=p(\\var{a})+p(\\simplify{{b}x+{c}})\\]

\n

This is given by evaluating $p(x)$ at $x=\\var{a}$ and adding this to the polynomial given by replacing $x$ by $\\simplify{{b}x+{c}}$ in $p(x)$.

\n

For example:

\n

$\\phi(x^2+2x)=\\simplify[all,!collectnumbers,!noleadingminus]{{a}^2+2*{a}+({b}x+{c})^2+2*({b}x+{c})={a^2+2*a+2*c}+{2*b*c+2*b}*x+{b^2}*x^2}$.

\n

Using the standard basis for range and domain find the matrix given by $\\phi$.

", "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "John Steele", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2218/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "John Steele", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2218/"}]}