Skip to content

Commit 2040a27

Browse files
committed
Solutions revised
1 parent 805bef1 commit 2040a27

1 file changed

Lines changed: 108 additions & 11 deletions

File tree

Vector_Spaces_Solutions.ipynb

Lines changed: 108 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1940,6 +1940,7 @@
19401940
"#### Solution:\n",
19411941
"\n",
19421942
"The matrix $P$ which contains $W_1$, $W_2$ as its columns is as follows:\n",
1943+
"\n",
19431944
"$$\n",
19441945
"\\begin{equation}\n",
19451946
"P = \\left[ \\begin{array}{rrrr} 1 & 2 \\\\ 2 & 3 \\\\ 0 & 0 \\\\ 0 & 0 \\end{array}\\right] \n",
@@ -2002,6 +2003,7 @@
20022003
"$$\n",
20032004
"\n",
20042005
"The row reduced form of $S$ looks like:\n",
2006+
"\n",
20052007
"$$\n",
20062008
"\\begin{equation}\n",
20072009
"\\left[ \\begin{array}{rrrr} 1 & 0 & 0 \\\\ 0 & a - 4 & 0 \\\\ 0 & 0 & a - 1 \\end{array}\\right] \n",
@@ -2384,14 +2386,11 @@
23842386
},
23852387
{
23862388
"cell_type": "markdown",
2387-
"id": "b3024d1b",
2389+
"id": "4e7a71ab",
23882390
"metadata": {},
23892391
"source": [
23902392
"#### Solution:\n",
2391-
"Any set of four polynomials in $\\mathbb{P}_4$ would generate a $5 \\times 4$ coefficient matrix. For the polynomials to span $\\mathbb{P}_4$, there should be a pivot in each row of the coefficient matrix. Since the matrix is $5 \\times 4$, there can be atmost 4 pivots as there are only four columns. This means that one of the rows will always be without a pivot. \n",
2392-
"Since there will always be atleast one row without a pivot, any set of four polynomials in $\\mathbb{P}_4$ cannot span $\\mathbb{P}_4$.\n",
23932393
"\n",
2394-
"This is demonstrated by the following example:\n",
23952394
"Let us consider any four polynomials in $\\mathbb{P}_4$.\n",
23962395
"\n",
23972396
"$$\n",
@@ -2403,19 +2402,43 @@
24032402
"\\end{eqnarray*}\n",
24042403
"$$\n",
24052404
"\n",
2406-
"The corresponding coefficient matrix $A$ is as follows:\n",
2405+
"If the four polynomials span $\\mathbb{P}_4$, then we should be able to express every polynomial in $\\mathbb{P}_4$ as a linear combination of $p_1$, $p_2$, $p_3$ and $p_4$. An arbitrary polynomial in $\\mathbb{P}_4$ has the form $ax^4 + bx^3 + cx^2 + dx + e $. We are therefore concerned with solving the following equation.\n",
24072406
"\n",
24082407
"$$\n",
24092408
"\\begin{equation}\n",
2410-
"A = \\left[ \\begin{array}{rrr} 1 & 1 & 2 & 3 \\\\ 1 & 0 & 1 & 1 \\\\ 1 & 2 & 1 & 2 \\\\ 1 & 1 & 1 & 1 \\\\2 & 1 & 2 & 2 \\end{array}\\right]\n",
2409+
"ax^4 + bx^3 + cx^2 + dx + e = c_1(x^4 + x^3 + x^2 + x + 2 ) + c_2(x^4 + 2x^2 + x + 1) + c_3(2x^4 + x^3 + x^2 + x + 2) + c_4(3x^4 + x^3 + 2x^2 + x + 2)\n",
24112410
"\\end{equation}\n",
2412-
"$$"
2411+
"$$\n",
2412+
"\n",
2413+
"This equation is true for all values of $x$ only if the left and right side are the same polynomial. Gathering the like terms on the right side gives a system of equations.\n",
2414+
"\n",
2415+
"$$\n",
2416+
"\\begin{eqnarray*}\n",
2417+
"c_1 + c_2 + 2c_3 + 3c_4 & = & a \\\\\n",
2418+
"c_1 +\\,\\,\\,\\,\\,\\,\\,\\,\\,\\,\\,\\,c_3 \\,\\,+ \\,\\,\\,c_4 & = & b \\\\\n",
2419+
"c_1 + 2c_2 + c_3 + 2c_4 & = & c \\\\\n",
2420+
"c_1 + \\,c_2 \\,+\\, c_3\\, +\\, c_4 & = & d \\\\\n",
2421+
"2c_1 + c_2 + 2c_3 + 2c_4 & = & e \\\\\n",
2422+
"\\end{eqnarray*}\n",
2423+
"$$\n",
2424+
"\n",
2425+
"We write the system as a matrix equation and observe that the coefficient matrix $A$ is $5\\times 4$.\n",
2426+
"\n",
2427+
"$$\n",
2428+
"\\begin{equation}\n",
2429+
"AX = \\left[ \\begin{array}{rrr} 1 & 1 & 2 & 3 \\\\ 1 & 0 & 1 & 1 \\\\ 1 & 2 & 1 & 2 \\\\ 1 & 1 & 1 & 1 \\\\2 & 1 & 2 &2\\end{array}\\right]\n",
2430+
"\\left[ \\begin{array}{r} c_1 \\\\ c_2 \\\\ c_3 \\\\c_4\\end{array}\\right]=\n",
2431+
"\\left[ \\begin{array}{r} a \\\\ b \\\\ c \\\\d\\\\e \\end{array}\\right]= B\n",
2432+
"\\end{equation}\n",
2433+
"$$\n",
2434+
"\n",
2435+
"The system is consistent for any vector $B$ if there is a pivot in each row of $A$."
24132436
]
24142437
},
24152438
{
24162439
"cell_type": "code",
2417-
"execution_count": 11,
2418-
"id": "f779ac11",
2440+
"execution_count": 6,
2441+
"id": "9824ac29",
24192442
"metadata": {},
24202443
"outputs": [
24212444
{
@@ -2450,10 +2473,10 @@
24502473
},
24512474
{
24522475
"cell_type": "markdown",
2453-
"id": "e6d3adbc",
2476+
"id": "73872fae",
24542477
"metadata": {},
24552478
"source": [
2456-
"We can see from the computaions done in the above code cell that there is no pivot in the fifth row. Therefore, any set of four polynomials cannot span $\\mathbb{P}_4$."
2479+
"The computations show that there is no pivot in the fifth row, which implies that the set $\\{ p_1, p_2, p_3, p_4 \\}$ does not span $\\mathbb{P}_4$. In general, a $5\\times 4$ matrix can have at most $4$ pivots and can thus never have a pivot in each row. We can therefore conclude that *any* set of four polynomials does not span $\\mathbb{P}_4$."
24572480
]
24582481
},
24592482
{
@@ -2626,6 +2649,80 @@
26262649
"($c$) Determine the dimension of $\\mathbb{D}_{2\\times 2}$."
26272650
]
26282651
},
2652+
{
2653+
"cell_type": "markdown",
2654+
"id": "9fdb0982",
2655+
"metadata": {},
2656+
"source": [
2657+
"#### Solution:\n",
2658+
"\n",
2659+
"$(a)$ \n",
2660+
"\n",
2661+
"Let us consider two arbitrary matrices $X$ and $Y$ in $\\mathbb{D}_{2\\times 2}$:\n",
2662+
"\n",
2663+
"$$\n",
2664+
"\\begin{equation}\n",
2665+
"A = \\left[ \\begin{array}{ccc} a & 0 \\\\ 0 & b \\end{array}\\right] \\hspace{1cm}\n",
2666+
"B = \\left[ \\begin{array}{ccc} c & 0 \\\\ 0 & d \\end{array}\\right] \\hspace{1cm}\n",
2667+
"\\end{equation}\n",
2668+
"$$\n",
2669+
"\n",
2670+
"$$\n",
2671+
"\\begin{equation}\n",
2672+
"A + B = \\left[ \\begin{array}{ccc} a + c & 0 \\\\ 0 & b + d \\end{array}\\right] \n",
2673+
"\\end{equation}\n",
2674+
"$$ \n",
2675+
"\n",
2676+
"$$\n",
2677+
"\\begin{equation}\n",
2678+
"kA = \\left[ \\begin{array}{ccc} ka & 0 \\\\ 0 & kb \\end{array}\\right] \n",
2679+
"\\end{equation}\n",
2680+
"$$ \n",
2681+
"\n",
2682+
"For any two arbitrary matrices $X$ and $Y$ in $\\mathbb{D}_{2\\times 2}$, $X+Y$ and $kA$ are also in $\\mathbb{D}_{2\\times 2}$. Therefore, $\\mathbb{D}_{2\\times 2}$ is a subspace of $\\mathbb{M}_{2\\times 2}$.\n",
2683+
"\n",
2684+
"\n",
2685+
"\n",
2686+
"\n",
2687+
"\n",
2688+
"$(b)$ \n",
2689+
"\n",
2690+
"Any matrix in $\\mathbb{D}_{2\\times 2}$ has the form:\n",
2691+
"\n",
2692+
"$$\n",
2693+
"\\begin{equation}\n",
2694+
"\\left[ \\begin{array}{ccc} a & 0 \\\\ 0 & b \\end{array}\\right] \\hspace{1cm}\n",
2695+
"\\end{equation}\n",
2696+
"$$ where $a$ and $b$ are some scalars.\n",
2697+
"\n",
2698+
"This matrix can also be written as:\n",
2699+
"\n",
2700+
"$$\n",
2701+
"\\begin{equation}\n",
2702+
"\\left[ \\begin{array}{ccc}a & 0 \\\\0 & b \\end{array}\\right] =\n",
2703+
"a\\left[ \\begin{array}{ccc} 1& 0\\\\ 0 &0 \\end{array}\\right] +\n",
2704+
"b\\left[ \\begin{array}{ccc} 0 & 0 \\\\ 0 & 1 \\end{array}\\right] \n",
2705+
"\\end{equation}\n",
2706+
"$$\n",
2707+
"\n",
2708+
"Let $$\n",
2709+
"\\begin{equation}\n",
2710+
"P = \\left[ \\begin{array}{ccc} 1 & 0 \\\\ 0 & 0 \\end{array}\\right] \\hspace{1cm}\n",
2711+
"Q = \\left[ \\begin{array}{ccc} 0 & 0 \\\\ 0 & 1 \\end{array}\\right] \\hspace{1cm}\n",
2712+
"\\end{equation}\n",
2713+
"$$\n",
2714+
"\n",
2715+
"Since every matrix in $\\mathbb{D}_{2\\times 2}$ can be written as a unique linear combination of $P$ and $Q$, $\\{P,Q\\}$ is a basis for $\\mathbb{D}_{2\\times 2}$.\n",
2716+
"\n",
2717+
"\n",
2718+
"\n",
2719+
"\n",
2720+
"\n",
2721+
"$(c)$ \n",
2722+
"\n",
2723+
"Since there are two matrices in the basis for $\\mathbb{D}_{2\\times 2}$, the dimension of $\\mathbb{D}_{2\\times 2}$ is 2. "
2724+
]
2725+
},
26292726
{
26302727
"cell_type": "markdown",
26312728
"id": "c48349a9",

0 commit comments

Comments
 (0)