Skip to main content

Further Algebra — Diagnostic Tests

Unit Tests

UT-1: Roots of Polynomials

Question: The cubic f(x)=x33x2+4x2f(x) = x^3 - 3x^2 + 4x - 2 has roots α,β,γ\alpha, \beta, \gamma where α=1\alpha = 1 is a root. (a) Verify that α=1\alpha = 1 is a root and factorise f(x)f(x). (b) Find β\beta and γ\gamma. (c) Calculate α2+β2+γ2\alpha^2 + \beta^2 + \gamma^2 without finding β\beta and γ\gamma individually. (d) Find a cubic with roots 2α,2β,2γ2\alpha, 2\beta, 2\gamma.

Solution:

(a) f(1)=13+42=0f(1) = 1 - 3 + 4 - 2 = 0 \checkmark. f(x)=(x1)(x22x+2)f(x) = (x-1)(x^2 - 2x + 2).

(b) x22x+2=0x^2 - 2x + 2 = 0. x=LB2±48RB◆◆LB2RB=1±ix = \frac◆LB◆2 \pm \sqrt{4-8}◆RB◆◆LB◆2◆RB◆ = 1 \pm i. So β=1+i\beta = 1+i, γ=1i\gamma = 1-i.

(c) α2+β2+γ2=(α+β+γ)22(αβ+αγ+βγ)\alpha^2 + \beta^2 + \gamma^2 = (\alpha+\beta+\gamma)^2 - 2(\alpha\beta+\alpha\gamma+\beta\gamma). By Vieta's: α+β+γ=3\alpha+\beta+\gamma = 3, αβ+αγ+βγ=4\alpha\beta+\alpha\gamma+\beta\gamma = 4, αβγ=2\alpha\beta\gamma = 2. =98=1= 9 - 8 = 1.

(d) If roots are 2α,2β,2γ2\alpha, 2\beta, 2\gamma: sum =2×3=6= 2 \times 3 = 6, sum of products =4×4=16= 4 \times 4 = 16, product =8×2=16= 8 \times 2 = 16. g(x)=x36x2+16x16g(x) = x^3 - 6x^2 + 16x - 16.

UT-2: Partial Fractions and Series

Question: (a) Express 2x+3(x+1)(x2)2\frac{2x+3}{(x+1)(x-2)^2} in partial fractions. (b) Find r=1n1r(r+1)\sum_{r=1}^{n} \frac{1}{r(r+1)}. (c) Find r=1nr2\sum_{r=1}^{n} r^2. (d) Use the method of differences to find r=1n1r(r+2)\sum_{r=1}^{n} \frac{1}{r(r+2)}.

Solution:

(a) 2x+3(x+1)(x2)2=Ax+1+Bx2+C(x2)2\frac{2x+3}{(x+1)(x-2)^2} = \frac{A}{x+1} + \frac{B}{x-2} + \frac{C}{(x-2)^2}. 2x+3=A(x2)2+B(x+1)(x2)+C(x+1)2x+3 = A(x-2)^2 + B(x+1)(x-2) + C(x+1). x=1x = -1: 1=9A1 = 9A, A=1/9A = 1/9. x=2x = 2: 7=3C7 = 3C, C=7/3C = 7/3. Comparing x2x^2: 0=A+B=1/9+B0 = A + B = 1/9 + B, B=1/9B = -1/9. =19(x+1)19(x2)+73(x2)2= \frac{1}{9(x+1)} - \frac{1}{9(x-2)} + \frac{7}{3(x-2)^2}.

(b) 1r(r+1)=1r1r+1\frac{1}{r(r+1)} = \frac{1}{r} - \frac{1}{r+1}. r=1n=(112)+(1213)++(1n1n+1)=11n+1=nn+1\sum_{r=1}^{n} = (1 - \frac{1}{2}) + (\frac{1}{2} - \frac{1}{3}) + \cdots + (\frac{1}{n} - \frac{1}{n+1}) = 1 - \frac{1}{n+1} = \frac{n}{n+1}.

(c) r=1nr2=n(n+1)(2n+1)6\sum_{r=1}^n r^2 = \frac{n(n+1)(2n+1)}{6}.

(d) 1r(r+2)=12(1r1r+2)\frac{1}{r(r+2)} = \frac{1}{2}\left(\frac{1}{r} - \frac{1}{r+2}\right). r=1n=12[(113)+(1214)++(1n1n+2)]\sum_{r=1}^n = \frac{1}{2}\left[(1 - \frac{1}{3}) + (\frac{1}{2} - \frac{1}{4}) + \cdots + (\frac{1}{n} - \frac{1}{n+2})\right] =12(1+121n+11n+2)=12(322n+3(n+1)(n+2))= \frac{1}{2}\left(1 + \frac{1}{2} - \frac{1}{n+1} - \frac{1}{n+2}\right) = \frac{1}{2}\left(\frac{3}{2} - \frac{2n+3}{(n+1)(n+2)}\right).

UT-3: Mathematical Induction

Question: Prove by induction that r=1nr3=n2(n+1)24\sum_{r=1}^{n} r^3 = \frac{n^2(n+1)^2}{4} for all positive integers nn.

Solution:

Base case (n=1n = 1): LHS =13=1= 1^3 = 1. RHS =LB1×4RB◆◆LB4RB=1= \frac◆LB◆1 \times 4◆RB◆◆LB◆4◆RB◆ = 1. LHS == RHS \checkmark.

Inductive hypothesis: Assume r=1kr3=k2(k+1)24\sum_{r=1}^{k} r^3 = \frac{k^2(k+1)^2}{4} for some k1k \ge 1.

Inductive step: Show for n=k+1n = k + 1: r=1k+1r3=r=1kr3+(k+1)3=k2(k+1)24+(k+1)3\sum_{r=1}^{k+1} r^3 = \sum_{r=1}^{k} r^3 + (k+1)^3 = \frac{k^2(k+1)^2}{4} + (k+1)^3 =(k+1)2[k24+(k+1)]=(k+1)24[k2+4k+4]=(k+1)2(k+2)24= (k+1)^2\left[\frac{k^2}{4} + (k+1)\right] = \frac{(k+1)^2}{4}[k^2 + 4k + 4] = \frac{(k+1)^2(k+2)^2}{4}.

This is the formula with n=k+1n = k+1. By induction, the result holds for all n1n \ge 1.


Integration Tests

IT-1: Polynomial Identities (with Complex Numbers)

Question: If α,β,γ\alpha, \beta, \gamma are the roots of x3+px+q=0x^3 + px + q = 0: (a) express α3+β3+γ3\alpha^3 + \beta^3 + \gamma^3 in terms of pp and qq. (b) express α2β+αβ2+α2γ+αγ2+β2γ+βγ2\alpha^2\beta + \alpha\beta^2 + \alpha^2\gamma + \alpha\gamma^2 + \beta^2\gamma + \beta\gamma^2 in terms of pp and qq. (c) If q=8q = -8 and α3+β3+γ3=0\alpha^3 + \beta^3 + \gamma^3 = 0, find pp. (d) Explain the relationship between these identities and symmetric functions.

Solution:

(a) α3+β3+γ3=(α+β+γ)33(α+β+γ)(αβ+αγ+βγ)+3αβγ\alpha^3 + \beta^3 + \gamma^3 = (\alpha+\beta+\gamma)^3 - 3(\alpha+\beta+\gamma)(\alpha\beta+\alpha\gamma+\beta\gamma) + 3\alpha\beta\gamma. By Vieta's (since x3+px+q=0x^3 + px + q = 0): α+β+γ=0\alpha+\beta+\gamma = 0, αβ+αγ+βγ=p\alpha\beta+\alpha\gamma+\beta\gamma = p, αβγ=q\alpha\beta\gamma = -q. =00+3(q)=3q= 0 - 0 + 3(-q) = -3q.

(b) α2β+αβ2+α2γ+αγ2+β2γ+βγ2=(α+β+γ)(αβ+αγ+βγ)3αβγ=0p3(q)=3q\alpha^2\beta + \alpha\beta^2 + \alpha^2\gamma + \alpha\gamma^2 + \beta^2\gamma + \beta\gamma^2 = (\alpha+\beta+\gamma)(\alpha\beta+\alpha\gamma+\beta\gamma) - 3\alpha\beta\gamma = 0 \cdot p - 3(-q) = 3q.

(c) If q=8q = -8: α3+β3+γ3=3(8)=24\alpha^3 + \beta^3 + \gamma^3 = -3(-8) = 24. If this equals 0, then 24=024 = 0, which is impossible. So no such pp exists. The conditions are inconsistent.

(d) These are Newton's identities connecting power sums sk=αiks_k = \sum \alpha_i^k with elementary symmetric polynomials eke_k. For a cubic with zero x2x^2 term: s1=e1=0s_1 = e_1 = 0, s2=e122e2=2ps_2 = e_1^2 - 2e_2 = -2p, s3=e133e1e2+3e3=3qs_3 = e_1^3 - 3e_1e_2 + 3e_3 = -3q. These identities generalize to polynomials of any degree.

IT-2: Series and Induction Combined (with Calculus)

Question: (a) Prove by induction that r=1n1r(r+1)(r+2)=n(n+3)4(n+1)(n+2)\sum_{r=1}^{n} \frac{1}{r(r+1)(r+2)} = \frac{n(n+3)}{4(n+1)(n+2)}. (b) Hence find r=11r(r+1)(r+2)\sum_{r=1}^{\infty} \frac{1}{r(r+1)(r+2)}. (c) Use the standard expansion of 11x\frac{1}{1-x} to find the Maclaurin series of 1(1x)3\frac{1}{(1-x)^3}. (d) Verify the result by differentiating the series for 1(1x)2\frac{1}{(1-x)^2}.

Solution:

(a) Base case (n=1n=1): LHS =LB1RB◆◆LB123RB=16= \frac◆LB◆1◆RB◆◆LB◆1 \cdot 2 \cdot 3◆RB◆ = \frac{1}{6}. RHS =LB14RB◆◆LB423RB=16= \frac◆LB◆1 \cdot 4◆RB◆◆LB◆4 \cdot 2 \cdot 3◆RB◆ = \frac{1}{6}. \checkmark.

Hypothesis: Assume true for n=kn = k.

Step: For n=k+1n = k+1: r=1k+11r(r+1)(r+2)=k(k+3)4(k+1)(k+2)+1(k+1)(k+2)(k+3)\sum_{r=1}^{k+1} \frac{1}{r(r+1)(r+2)} = \frac{k(k+3)}{4(k+1)(k+2)} + \frac{1}{(k+1)(k+2)(k+3)} =k(k+3)2+44(k+1)(k+2)(k+3)=k3+6k2+9k+44(k+1)(k+2)(k+3)=(k+1)2(k+4)4(k+1)(k+2)(k+3)=(k+1)(k+4)4(k+2)(k+3)= \frac{k(k+3)^2 + 4}{4(k+1)(k+2)(k+3)} = \frac{k^3 + 6k^2 + 9k + 4}{4(k+1)(k+2)(k+3)} = \frac{(k+1)^2(k+4)}{4(k+1)(k+2)(k+3)} = \frac{(k+1)(k+4)}{4(k+2)(k+3)}.

This equals (k+1)((k+1)+3)4((k+1)+1)((k+1)+2)\frac{(k+1)((k+1)+3)}{4((k+1)+1)((k+1)+2)}, which is the formula with n=k+1n = k+1. Proven.

(b) limnn(n+3)4(n+1)(n+2)=14\lim_{n \to \infty} \frac{n(n+3)}{4(n+1)(n+2)} = \frac{1}{4}. So r=11r(r+1)(r+2)=14\sum_{r=1}^{\infty} \frac{1}{r(r+1)(r+2)} = \frac{1}{4}.

(c) 1(1x)3=12d2dx2(11x)=12d2dx2(n=0xn)=12n=2n(n1)xn2=12n=0(n+2)(n+1)xn\frac{1}{(1-x)^3} = \frac{1}{2}\frac{d^2}{dx^2}\left(\frac{1}{1-x}\right) = \frac{1}{2}\frac{d^2}{dx^2}\left(\sum_{n=0}^{\infty} x^n\right) = \frac{1}{2}\sum_{n=2}^{\infty} n(n-1)x^{n-2} = \frac{1}{2}\sum_{n=0}^{\infty} (n+2)(n+1)x^n.

So 1(1x)3=n=0(n+1)(n+2)2xn=1+3x+6x2+10x3+\frac{1}{(1-x)^3} = \sum_{n=0}^{\infty}\frac{(n+1)(n+2)}{2}x^n = 1 + 3x + 6x^2 + 10x^3 + \cdots

(d) 1(1x)2=n=0(n+1)xn\frac{1}{(1-x)^2} = \sum_{n=0}^{\infty}(n+1)x^n. Differentiating: 2(1x)3=n=1n(n+1)xn1=n=0(n+1)(n+2)xn\frac{2}{(1-x)^3} = \sum_{n=1}^{\infty}n(n+1)x^{n-1} = \sum_{n=0}^{\infty}(n+1)(n+2)x^n. 1(1x)3=n=0(n+1)(n+2)2xn\frac{1}{(1-x)^3} = \sum_{n=0}^{\infty}\frac{(n+1)(n+2)}{2}x^n. Verified.

IT-3: Algebraic Manipulation (with Matrices)

Question: (a) If M=(abcd)M = \begin{pmatrix} a & b \\ c & d \end{pmatrix} satisfies M2=IM^2 = \mathbf{I}, show that a2+bc=1a^2 + bc = 1. (b) Find all 2×22 \times 2 matrices with integer entries satisfying M2=IM^2 = \mathbf{I}. (c) The trace of MM is tr(M)=a+d\text{tr}(M) = a + d. What relationship must the trace satisfy for M2=IM^2 = \mathbf{I}? (d) How many such matrices exist with entries in {0,1,1}\{0, 1, -1\}?

Solution:

(a) M2=(a2+bcab+bdac+cdbc+d2)=(1001)M^2 = \begin{pmatrix} a^2+bc & ab+bd \\ ac+cd & bc+d^2 \end{pmatrix} = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}. So a2+bc=1a^2 + bc = 1, b(a+d)=0b(a+d) = 0, c(a+d)=0c(a+d) = 0, bc+d2=1bc + d^2 = 1.

(b) From a2+bc=1a^2 + bc = 1 and d2+bc=1d^2 + bc = 1: a2=d2a^2 = d^2, so d=±ad = \pm a.

Case 1: d=ad = a. Then b(a+a)=2ab=0b(a+a) = 2ab = 0 and c(a+a)=2ac=0c(a+a) = 2ac = 0. So either a=0a = 0 or b=c=0b = c = 0.

  • If a=0a = 0: bc=1bc = 1, so (b,c)=(1,1)(b, c) = (1, 1) or (1,1)(-1, -1). Matrices: (0110)\begin{pmatrix}0&1\\1&0\end{pmatrix}, (0110)\begin{pmatrix}0&-1\\-1&0\end{pmatrix}.
  • If a0a \ne 0: b=c=0b = c = 0, a2=1a^2 = 1, a=±1a = \pm 1. Matrices: ±I\pm\mathbf{I}.

Case 2: d=ad = -a. Then b(aa)=0b(a-a) = 0 and c(aa)=0c(a-a) = 0 (always satisfied). Need a2+bc=1a^2 + bc = 1. With integer entries and a,b,c1|a|, |b|, |c| \le 1: if a=0a = 0: bc=1bc = 1, same as above. If a=1a = 1: bc=0bc = 0. If a=1a = -1: bc=0bc = 0.

  • a=1,d=1,bc=0a = 1, d = -1, bc = 0: (b,c)=(0,0),(1,0),(1,0),(0,1),(0,1)(b,c) = (0,0), (1,0), (-1,0), (0,1), (0,-1). But bb and cc must be in {1,0,1}\{-1, 0, 1\}. Matrices: (1001)\begin{pmatrix}1&0\\0&-1\end{pmatrix}, (1101)\begin{pmatrix}1&1\\0&-1\end{pmatrix}, (1101)\begin{pmatrix}1&-1\\0&-1\end{pmatrix}, (1011)\begin{pmatrix}1&0\\1&-1\end{pmatrix}, (1011)\begin{pmatrix}1&0\\-1&-1\end{pmatrix}.
  • a=1,d=1a = -1, d = 1: similarly, 5 matrices with (1,1)(-1, 1) diagonal.

(c) From M2=IM^2 = \mathbf{I}: det(M)2=1\det(M)^2 = 1, so det(M)=±1\det(M) = \pm 1. Also tr(M)=a+d\text{tr}(M) = a + d. From d=±ad = \pm a: tr=2a\text{tr} = 2a or tr=0\text{tr} = 0. If d=ad = a: tr=2a{2,0,2}\text{tr} = 2a \in \{-2, 0, 2\}. If d=ad = -a: tr=0\text{tr} = 0. So tr(M){2,0,2}\text{tr}(M) \in \{-2, 0, 2\}.

(d) From case 1 (d = a): 2I2\mathbf{I}, 2I-2\mathbf{I}, (0110)\begin{pmatrix}0&1\\1&0\end{pmatrix}, (0110)\begin{pmatrix}0&-1\\-1&0\end{pmatrix}. That is 4 matrices. From case 2 (d = -a): For a=1a = 1: 5 matrices. For a=1a = -1: 5 matrices. For a=0a = 0: same 2 matrices (already counted). Total: 4+5+5=144 + 5 + 5 = 14 matrices with entries in {0,1,1}\{0, 1, -1\}.