|
1940 | 1940 | "#### Solution:\n", |
1941 | 1941 | "\n", |
1942 | 1942 | "The matrix $P$ which contains $W_1$, $W_2$ as its columns is as follows:\n", |
| 1943 | + "\n", |
1943 | 1944 | "$$\n", |
1944 | 1945 | "\\begin{equation}\n", |
1945 | 1946 | "P = \\left[ \\begin{array}{rrrr} 1 & 2 \\\\ 2 & 3 \\\\ 0 & 0 \\\\ 0 & 0 \\end{array}\\right] \n", |
|
2002 | 2003 | "$$\n", |
2003 | 2004 | "\n", |
2004 | 2005 | "The row reduced form of $S$ looks like:\n", |
| 2006 | + "\n", |
2005 | 2007 | "$$\n", |
2006 | 2008 | "\\begin{equation}\n", |
2007 | 2009 | "\\left[ \\begin{array}{rrrr} 1 & 0 & 0 \\\\ 0 & a - 4 & 0 \\\\ 0 & 0 & a - 1 \\end{array}\\right] \n", |
|
2384 | 2386 | }, |
2385 | 2387 | { |
2386 | 2388 | "cell_type": "markdown", |
2387 | | - "id": "b3024d1b", |
| 2389 | + "id": "4e7a71ab", |
2388 | 2390 | "metadata": {}, |
2389 | 2391 | "source": [ |
2390 | 2392 | "#### 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", |
2393 | 2393 | "\n", |
2394 | | - "This is demonstrated by the following example:\n", |
2395 | 2394 | "Let us consider any four polynomials in $\\mathbb{P}_4$.\n", |
2396 | 2395 | "\n", |
2397 | 2396 | "$$\n", |
|
2403 | 2402 | "\\end{eqnarray*}\n", |
2404 | 2403 | "$$\n", |
2405 | 2404 | "\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", |
2407 | 2406 | "\n", |
2408 | 2407 | "$$\n", |
2409 | 2408 | "\\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", |
2411 | 2410 | "\\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$." |
2413 | 2436 | ] |
2414 | 2437 | }, |
2415 | 2438 | { |
2416 | 2439 | "cell_type": "code", |
2417 | | - "execution_count": 11, |
2418 | | - "id": "f779ac11", |
| 2440 | + "execution_count": 6, |
| 2441 | + "id": "9824ac29", |
2419 | 2442 | "metadata": {}, |
2420 | 2443 | "outputs": [ |
2421 | 2444 | { |
|
2450 | 2473 | }, |
2451 | 2474 | { |
2452 | 2475 | "cell_type": "markdown", |
2453 | | - "id": "e6d3adbc", |
| 2476 | + "id": "73872fae", |
2454 | 2477 | "metadata": {}, |
2455 | 2478 | "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$." |
2457 | 2480 | ] |
2458 | 2481 | }, |
2459 | 2482 | { |
|
2626 | 2649 | "($c$) Determine the dimension of $\\mathbb{D}_{2\\times 2}$." |
2627 | 2650 | ] |
2628 | 2651 | }, |
| 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 | + }, |
2629 | 2726 | { |
2630 | 2727 | "cell_type": "markdown", |
2631 | 2728 | "id": "c48349a9", |
|
0 commit comments