免費詳解 / 交大 / 數學 / 103

103 交大資工所考古題解答|數學逐題詳解

103 交大資工所數學考古題的逐題詳解,共 9 題,免費公開。

逐題詳解

110 points

Find a best approximation (in the least-squares error sense) to \(y=x^3\) by a straight line between \(x=-1\) and \(x=3\). (Note: \(C[a,b]\) denotes the set of all real-valued functions that are defined and continuous on the closed interval \([a,b]\). The inner product is defined as \(\langle f,g\rangle=\int_a^bf(x)g(x)\,dx\).)

近似 \(x^3\) 的直線 \(y=a+bx\),誤差 \(x^3-a-bx\) 要和 \(1\)、\(x\) 都正交(normal equations)

\(\langle1,1\rangle=\int_{-1}^31\,dx=4\),\(\langle1,x\rangle=\int_{-1}^3x\,dx=4\),\(\langle x,x\rangle=\int_{-1}^3x^2dx=\tfrac{28}{3}\)

\(\langle x^3,1\rangle=\int_{-1}^3x^3dx=\tfrac{81-1}{4}=20\),\(\langle x^3,x\rangle=\int_{-1}^3x^4dx=\tfrac{243+1}{5}=\tfrac{244}{5}\)

\(4a+4b=20\) → \(a+b=5\)

\(4a+\tfrac{28}{3}b=\tfrac{244}{5}\)

代 \(a=5-b\):\(20+\tfrac{16}{3}b=\tfrac{244}{5}\) → \(\tfrac{16}{3}b=\tfrac{144}{5}\) → \(b=\tfrac{27}{5}\),\(a=-\tfrac25\)

\(y=\dfrac{27}{5}x-\dfrac25\)

25 points

Calculate the following matrix-vector multiplication:

\(\begin{bmatrix}\cos\frac{\pi}{16}&\sin\frac{\pi}{16}\\-\sin\frac{\pi}{16}&\cos\frac{\pi}{16}\end{bmatrix}\begin{bmatrix}\cos\frac{9\pi}{16}&\sin\frac{9\pi}{16}\\-\sin\frac{9\pi}{16}&\cos\frac{9\pi}{16}\end{bmatrix}\begin{bmatrix}\cos\frac{2\pi}{16}&-\sin\frac{2\pi}{16}\\\sin\frac{2\pi}{16}&\cos\frac{2\pi}{16}\end{bmatrix}\begin{bmatrix}1\\1\end{bmatrix}\)

(Hint: \(\begin{bmatrix}\cos\theta&\sin\theta\\-\sin\theta&\cos\theta\end{bmatrix}\begin{bmatrix}e_1\\e_2\end{bmatrix}\) is a clockwise rotation (linear transformation) of vector \(\begin{bmatrix}e_1\\e_2\end{bmatrix}\) by an angle \(\theta\).)

令 \(R(\theta)=\begin{bmatrix}\cos\theta&\sin\theta\\-\sin\theta&\cos\theta\end{bmatrix}\)(順時針轉 \(\theta\)),\(R(\alpha)R(\beta)=R(\alpha+\beta)\)

第三個矩陣是 \(R(\theta)\) 的轉置 \(=R(-\theta)\),\(\theta=\tfrac{2\pi}{16}\) → 順時針轉 \(-\tfrac{2\pi}{16}\)

合起來:順時針轉 \(\tfrac{\pi}{16}+\tfrac{9\pi}{16}-\tfrac{2\pi}{16}=\tfrac{8\pi}{16}=\tfrac\pi2\)

\(R(\tfrac\pi2)\begin{bmatrix}1\\1\end{bmatrix}=\begin{bmatrix}0&1\\-1&0\end{bmatrix}\begin{bmatrix}1\\1\end{bmatrix}\)

\(\begin{bmatrix}1\\-1\end{bmatrix}\)

310 points

Let \(A\) and \(B\) be similar matrices, please show that \(\det(A)=\det(B)\) and also show that if \(\lambda\) is any scalar, then \(\det(A-\lambda I)=\det(B-\lambda I)\).

\(A,B\) similar → 有 nonsingular \(P\) 使 \(B=P^{-1}AP\)

\(\det B=\det(P^{-1})\det A\det P=\dfrac{1}{\det P}\det A\det P=\det A\)

\(\lambda I=P^{-1}(\lambda I)P\) (\(\lambda I\) 與任何矩陣可交換)

\(B-\lambda I=P^{-1}AP-P^{-1}(\lambda I)P=P^{-1}(A-\lambda I)P\)

\(B-\lambda I\) 與 \(A-\lambda I\) 也 similar → 由前一段,\(\det(B-\lambda I)=\det(A-\lambda I)\),得證

415 points((a)(b)(c) 各 2、(d) 4、(e) 5)

Consider the matrix \(A=\begin{bmatrix}1&2&1&2\\1&2&2&5\\0&0&1&3\end{bmatrix}\).

(a) (2 points) Compute the dimensions of the column space \(C(A)\) and the null-space \(N(A)\).

(b) (2 points) Give an orthogonal basis for \(C(A)\) and \(N(A)\), respectively.

(c) (2 points) Find a projection matrix that projects any vector \(b\in\mathbb R^3\) onto the column space \(C(A)\).

(d) (4 points) Find the least-squares solutions to the problem \(A\mathbf x=\begin{bmatrix}-1\\3\\1\end{bmatrix}\).

(e) (5 points) Find the minimum-length, least-squares solution to the problem \(A\mathbf x=\begin{bmatrix}-1\\3\\1\end{bmatrix}\).

列運算:\(R_2-R_1\) 得 \((0,0,1,3)\),與 \(R_3\) 相同

\(\begin{bmatrix}1&2&1&2\\0&0&1&3\\0&0&0&0\end{bmatrix}\) → pivot 在第 1、3 欄,\(\operatorname{rank}A=2\)

(a) \(\dim C(A)=\operatorname{rank}=2\);rank-nullity:\(\dim N(A)=4-2=2\)

\(\dim C(A)=2,\ \dim N(A)=2\)

(b) \(C(A)\):取 pivot 欄 \(\mathbf c_1=(1,1,0)^T\)、\(\mathbf c_3=(1,2,1)^T\),Gram–Schmidt

\(\mathbf u_1=(1,1,0)^T\),\(\mathbf u_2=\mathbf c_3-\dfrac{\mathbf c_3\cdot\mathbf u_1}{\mathbf u_1\cdot\mathbf u_1}\mathbf u_1=(1,2,1)-\tfrac32(1,1,0)=\left(-\tfrac12,\tfrac12,1\right)^T\)

\(N(A)\):\(x_3=-3x_4\),\(x_1=-2x_2+x_4\),自由變數 \(x_2,x_4\)

\(\mathbf v_1=(-2,1,0,0)^T,\ \mathbf v_2=(1,0,-3,1)^T\);\(\mathbf v_1\cdot\mathbf v_2=-2,\ \|\mathbf v_1\|^2=5\)

\(\mathbf w_1=\mathbf v_1\),\(\mathbf w_2=\mathbf v_2+\tfrac25\mathbf v_1=\left(\tfrac15,\tfrac25,-3,1\right)^T\)

\(C(A)\):\(\{(1,1,0)^T,\ (-\tfrac12,\tfrac12,1)^T\}\);\(N(A)\):\(\{(-2,1,0,0)^T,\ (\tfrac15,\tfrac25,-3,1)^T\}\)

(c) 取 \(B=\begin{bmatrix}1&1\\1&2\\0&1\end{bmatrix}\)(\(C(A)\) 的基底),\(B^TB=\begin{bmatrix}2&3\\3&6\end{bmatrix}\),\(\det=3\),\((B^TB)^{-1}=\tfrac13\begin{bmatrix}6&-3\\-3&2\end{bmatrix}\)

\(P=B(B^TB)^{-1}B^T\)

\(P=\dfrac13\begin{bmatrix}2&1&-1\\1&2&1\\-1&1&2\end{bmatrix}\)

(d) \(\mathbf b=(-1,3,1)^T\):\(P\mathbf b=\tfrac13(-2+3-1,\ -1+6+1,\ 1+3+2)=(0,2,2)^T\)

解 \(A\mathbf x=(0,2,2)^T\):用 pivot 欄 \(c_1,c_3\):\(\alpha(1,1,0)+\beta(1,2,1)=(0,2,2)\) → \(\beta=2,\ \alpha=-2\)

特解 \(\mathbf x_p=(-2,0,2,0)^T\),加上 \(N(A)\) 的任意元素

\(\hat{\mathbf x}=\begin{bmatrix}-2\\0\\2\\0\end{bmatrix}+s\begin{bmatrix}-2\\1\\0\\0\end{bmatrix}+t\begin{bmatrix}1\\0\\-3\\1\end{bmatrix},\ \ s,t\in\mathbb R\)

(e) 最短的解落在 row space,即 \(\hat{\mathbf x}\perp N(A)\):與 \(\mathbf v_1,\mathbf v_2\) 內積為 0

\(\hat{\mathbf x}\cdot\mathbf v_1=4+5s-2t=0\);\(\hat{\mathbf x}\cdot\mathbf v_2=-8-2s+11t=0\)

解得 \(s=-\tfrac{28}{51},\ t=\tfrac{32}{51}\)

\(\hat{\mathbf x}^+=\dfrac1{51}(-14,\,-28,\,6,\,32)^T\)

510 points((a) 4、(b) 6)

Let \(A_n\) be the triple diagonal matrix (diagonal 3,上下副對角線 1,其餘 0,\(n\times n\)) \(A_n=\begin{bmatrix}3&1&0&\cdots&0\\1&3&1&\cdots&0\\0&1&3&\ddots&\vdots\\\vdots&&\ddots&\ddots&1\\0&\cdots&0&1&3\end{bmatrix}\).

(a) (4 points) Express the determinant \(\det(A_n)\) in terms of \(\det(A_{n-1})\) and \(\det(A_{n-2})\).

(b) (6 points) Evaluate \(\det(A_n)\) as a function of \(n\).

(a) 沿第一列展開:\(\det A_n=3\det A_{n-1}-1\cdot\det M\),\(M\) 是刪掉第 1 列、第 2 欄的子矩陣,它的第 1 欄只有一個 1(在第 1 列),再沿第 1 欄展開,剩下 \(A_{n-2}\)

\(\det(A_n)=3\det(A_{n-1})-\det(A_{n-2})\)

(b) 令 \(a_n=\det A_n\),\(a_1=3,\ a_2=\det\begin{bmatrix}3&1\\1&3\end{bmatrix}=8\),反推 \(a_0=3a_1-a_2=1\)

特徵方程式 \(x^2-3x+1=0\),\(\alpha=\dfrac{3+\sqrt5}{2},\ \beta=\dfrac{3-\sqrt5}{2}\),\(\alpha-\beta=\sqrt5\)

\(a_n=c_1\alpha^n+c_2\beta^n\);\(a_0=1\):\(c_1+c_2=1\);\(a_1=3\):\(c_1\alpha+c_2\beta=3\)

解得 \(c_1=\dfrac{\alpha}{\sqrt5},\ c_2=-\dfrac{\beta}{\sqrt5}\)

\(\det(A_n)=\dfrac{1}{\sqrt5}\left[\left(\dfrac{3+\sqrt5}{2}\right)^{n+1}-\left(\dfrac{3-\sqrt5}{2}\right)^{n+1}\right]\)

代 \(n=1,2,3,4\):3, 8, 21, 55,就是 Fibonacci 數 \(F_{2n+2}\)

612 points((a)(b)(c)(d) 各 3)

A strict weak ordering is a binary relation on a set that is (1) irreflexive, (2) transitive, and (3) asymmetric in which (4) the relation of incomparability is transitive.

(a) (3 points) One of the four conditions is redundant, i.e. one of them can be implied by the others. Which condition is redundant? What is the smallest set of other conditions that can imply the redundant one?

(b) (3 points) For each relation below, determine if it is a strict weak ordering. (1) \(\lt\) on the set \(\mathbb Z\) of integers (2) \(\subsetneq\) on the power set of \(\mathbb Z\) (3) \(\lt\) on \(\mathbb Z\) defined by \(a\lt b\) iff \(a\bmod2014\lt b\bmod2014\)

(c) (3 points) C++ standard template library provides several sorting algorithms that can be used to order a sequence of elements with respect to a user-defined strict weak ordering \(R\) in the sense that the sorted sequence \(\{a_i\}\) satisfies the property: \((a_j,a_i)\notin R\) whenever \(i\lt j\). Now, assume that "ios", "wp8", "htc", "imac", "ipod", "ipad", "iphone", "google", "itunes" is a sequence of nine strings sorted by a C++ sorting algorithm with respect to some strict weak ordering \(R\). Then, for what condition will \((s,t)\in R\), where \(s\) and \(t\) are strings?

(d) (3 points) Among the nine strings mentioned in part (c), which, if any, are incomparable with respect to the strict weak ordering \(R\)?

(a) \(aRa\):取 \(b=a\),asymmetric 說 \(aRb\Rightarrow\neg bRa\),但這裡 \(aRa\) 與 \(aRa\) 同時成立,矛盾 → asymmetric 一個條件就推出 irreflexive

反方向:若 \(aRb\) 且 \(bRa\),由 transitive 得 \(aRa\),與 irreflexive 矛盾 → \(\{\)irreflexive, transitive\(\}\) 推出 asymmetric

(1) irreflexive 是多餘的,只用 (3) asymmetric 就推得出(同時 (3) asymmetric 也可由 (1)+(2) 推出,所以兩者擇一)

(b) (1) \(\lt\):irreflexive、transitive、asymmetric 都成立;incomparable 即 \(a=b\),是等價關係,遞移 → 是

(2) \(\subsetneq\):前三條成立,但 incomparable 沒有遞移性:\(\{1\}\) 與 \(\{2\}\) incomparable,\(\{2\}\) 與 \(\{1,3\}\) incomparable,可是 \(\{1\}\subsetneq\{1,3\}\) → 不是

(3) 前三條由整數 \(\lt\) 繼承;incomparable 即 \(a\equiv b\pmod{2014}\),等價關係,遞移 → 是

(1) 是 (2) 不是 (3) 是

(c) 序列已照 \(R\) 由小到大排;字串長度依序 3, 3, 3, 4, 4, 4, 6, 6, 6,單調不減,字典序不成立(ios 排在 htc 前面)

\((s,t)\in R\) 若 \(s\) 的長度小於 \(t\) 的長度

(d) 長度相同的互相 incomparable

{ios, wp8, htc}、{imac, ipod, ipad}、{iphone, google, itunes} 各組內部

77 points((a) 3、(b) 4)

The line graph \(L(G)=(V',E')\) of an undirected simple graph \(G=(V,E)\) is defined by (1) \(V'=E\), and (2) \(E'=\{\{(u,v),(v,w)\}\mid(u,v)\in E,\ (v,w)\in E,\ u\ne w\}\). Put another way, (1) the edges of \(G\) are the vertices of \(L(G)\), and (2) there is an edge connecting vertices \((u,v)\) and \((v,w)\) in \(L(G)\) iff the corresponding edges share the same endpoint \(v\) in \(G\).

(a) (3 points) For each statement below, determine if it is true. (1) If \(G\) has an Euler circuit, then \(L(G)\) has a Hamiltonian circuit. (2) If \(G\) is disconnected, then \(L(G)\) is disconnected. (3) If \(G\) is a cycle graph, then \(G\) and \(L(G)\) are isomorphic.

(b) (4 points) How many edges are there in \(L(G)\)? Hint: Count the degrees.

(a) (1) Euler circuit 把每條邊恰好走一次,相鄰兩條邊共用端點 → 這就是 \(L(G)\) 上走遍每個點一次的封閉路徑,即 Hamiltonian circuit → T

(2) 孤立點在 \(L(G)\) 裡不留痕跡。\(G\) = 三角形加一個孤立點,\(G\) 不連通,\(L(G)\) 是連通的三角形 → F

(3) \(C_n\) 的每條邊恰與前後兩條邊共用端點,\(L(C_n)\) 也是 \(n\) 個點的環 → T

(1) T (2) F (3) T

(b) \(L(G)\) 的一條邊 = \(G\) 裡共用某個端點 \(v\) 的一對相異邊;\(v\) 上有 \(\deg(v)\) 條邊,任挑兩條貢獻一條

simple graph 的兩條相異邊最多共用一個端點,不會重複計數

\(|E'|=\sum_{v\in V}\dbinom{\deg v}{2}=\dfrac12\sum_{v\in V}\deg(v)^2-|E|\)

用 \(\binom{\deg v}2=\frac{\deg(v)^2-\deg(v)}{2}\) 與 \(\sum_v\deg(v)=2|E|\)

86 points

Given the recurrence relations \(a_n=2b_{n-1}+1\), \(b_n=a_{n-1}+2b_{n-1}+2\), \(n\ge1\), with the boundary conditions \(a_0=0\) and \(b_0=0\). What is the solution of \(a_n\)? Suffice it to write down the solution; no computations are required.

消去 \(a\):\(a_{n-1}=2b_{n-2}+1\),代入 \(b_n\):\(b_n-2b_{n-1}-2b_{n-2}=3\)

特徵方程式 \(x^2-2x-2=0\),根 \(1\pm\sqrt3\);特解設常數 \(d\):\(d-2d-2d=3\) → \(d=-1\)

\(b_n=C(1+\sqrt3)^n+D(1-\sqrt3)^n-1\)

\(b_0=0\):\(C+D=1\);\(b_1=a_0+2b_0+2=2\):\(C(1+\sqrt3)+D(1-\sqrt3)-1=2\) → \(C-D=\tfrac{2}{\sqrt3}\)

\(C=\dfrac{3+2\sqrt3}{6},\ D=\dfrac{3-2\sqrt3}{6}\)

\(a_n=2b_{n-1}+1=2C(1+\sqrt3)^{n-1}+2D(1-\sqrt3)^{n-1}-1\)

\(a_n=\dfrac{3+2\sqrt3}{3}(1+\sqrt3)^{n-1}+\dfrac{3-2\sqrt3}{3}(1-\sqrt3)^{n-1}-1,\ \ n\ge1\)

驗:\(a_1=1,\ b_1=2,\ a_2=5,\ b_2=7,\ a_3=15\),公式 \(n=1,2,3\) 得 1, 5, 15

925 points((a) 5、(b) 5、(c) 5、(d) 7、(e) 3)

(a) (5 points) Define \(F(x)=x/2\) if \(x\) is even. Otherwise, \(F(x)=F(F(5x+3))\). Prove that we can compute \(F(x)\) in a finite amount of time for any positive integer \(x\).

(b) (5 points) Please translate Goldbach's conjecture into a logical formula using \(\forall,\exists,\wedge,\vee,\neg\), implies and if-and-only-if, and the four basic integer arithmetic operators (\(+,-,*,/\)). You need to state Goldbach's conjecture in Chinese or English first.

(c) (5 points) Show that there are more irrational numbers than rational numbers.

(d) (7 points) Find the prime factors of 820307. Hint. There are two factors that are roughly equivalent.

(e) (3 points) Please find an irrational number that is between 23.3756 and 23.3757.

(a) \(x\) 奇數 → \(5x+3\) 偶數,\(F(5x+3)=\dfrac{5x+3}{2}\),所以 \(F(x)=F\!\left(\dfrac{5x+3}{2}\right)\)

令 \(u=x+1\):\(\dfrac{5x+3}{2}+1=\dfrac{5(x+1)}{2}=\dfrac{5u}{2}\) → 每遞迴一次,\(u\) 變成 \(\dfrac{5u}{2}\)

乘 5 不改變 2 的次方,除以 2 使 \(v_2(u)\)(\(u\) 含 2 的次方數)剛好減 1

\(x\) 為奇數 ⇔ \(x+1\) 為偶數 ⇔ \(v_2(u)\ge1\);\(v_2(u)\) 降到 0 時,引數變偶數,直接除以 2 結束

\(v_2(x+1)\) 是有限的非負整數且嚴格遞減,所以最多遞迴 \(v_2(x+1)\) 次就終止,得證

(b) Goldbach's conjecture:每個大於 2 的偶數都可以寫成兩個質數的和。論域取正整數

\(\text{Prime}(p)\equiv\exists q\,(p=q+1)\wedge\forall a\,\forall b\,\big(a*b=p\rightarrow(a=1\vee b=1)\big)\) (第一個合取項在正整數論域下就是 \(p\ge2\))

\(\forall n\Big[\big(\exists k\,(n=2*k)\wedge\exists m\,(n=m+2)\big)\rightarrow\exists p\,\exists q\,\big(\text{Prime}(p)\wedge\text{Prime}(q)\wedge n=p+q\big)\Big]\)

\(\exists m\,(n=m+2)\) 在正整數論域下就是 \(n\gt2\)

(c) \(\mathbb Q\) 可數:\(\tfrac pq\) 依 \(|p|+q\) 分層列舉,可一一對應到 \(\mathbb N\)

\(\mathbb R\) 不可數(Cantor 對角線論證)

若無理數集 \(\mathbb R\setminus\mathbb Q\) 也可數,則 \(\mathbb R=\mathbb Q\cup(\mathbb R\setminus\mathbb Q)\) 是兩個可數集的聯集,也可數,矛盾

所以無理數集不可數,基數嚴格大於有理數集,得證

(d) 兩個因數差不多大 → Fermat 分解:找 \(a\) 使 \(a^2-N\) 是完全平方

\(\sqrt{820307}\approx905.7\),從 \(a=906\) 試:\(906^2-820307=820836-820307=529=23^2\)

\(N=906^2-23^2=(906-23)(906+23)=883\times929\)

883、929 都不被 \(\le29\) 的質數整除(\(\sqrt{883}\lt30,\ \sqrt{929}\lt31\)),兩個都是質數

\(820307=883\times929\)

(e) 有理數加無理數必為無理數;在 23.3756 上加一個很小的無理數 \(\dfrac{\pi}{10^5}\approx0.0000314\lt0.0001\)

\(23.3756+\dfrac{\pi}{10^5}=23.37563141\ldots\)

109–115 的詳解也是這樣寫的。

國立陽明交通大學 109–115 的詳解收錄在付費版;106–115 全年度完整詳解共 579 頁,逐題推導。

購買 · NT$ 850 看交大其他免費詳解

其他年度與考科

同一年的其他科

同一科的其他年度

聯絡我們

題目有錯、詳解看不懂,都歡迎來信

想許願補哪一份、對購買有疑問也可以,收到後會盡快回覆。

william.chou.123123@gmail.com