Hopp til innhold
Velg skoleslag

Leksjon 2.2

Koordinater og basisskifte

Koordinatvektoren til en vektor med hensyn på en basis, og basisskiftematrisen som oversetter mellom to baser.

En basis gir hver vektor én adresse: tallene du må gange basisvektorene med for å nå den. Tallene heter koordinatene med hensyn på basisen. Med dem blir hvert vektorrom med en basis av nn vektorer en kopi av Rn\mathbb{R}^n, så polynomer og matriser kan regnes med Gauss-eliminasjon som vanlige vektorer. Her lærer du å finne koordinatvektoren, å bruke den på polynomer, og å skifte fra én basis til en annen med basisskiftematrisen.

Koordinatene er oppskriften

Definisjon

Koordinatvektor

La B={b1,…,bn}\mathcal{B} = \{\mathbf{b}_1, \dots, \mathbf{b}_n\} være en basis for VV. For x\mathbf{x} i VV er koordinatene til x\mathbf{x} med hensyn på B\mathcal{B} tallene c1,…,cnc_1, \dots, c_n med

x=c1b1+⋯+cnbn\mathbf{x} = c_1\mathbf{b}_1 + \dots + c_n\mathbf{b}_n

Koordinatvektoren er

[x]B=[c1⋮cn][\mathbf{x}]_{\mathcal{B}} = \begin{bmatrix} c_1 \\ \vdots \\ c_n \end{bmatrix}

Tallene finnes og er entydige fordi B\mathcal{B} er en basis (leksjon 2.1). Rekkefølgen i basisen teller: c1c_1 hører til b1\mathbf{b}_1, c2c_2 til b2\mathbf{b}_2, og bytter du om på basisvektorene, bytter koordinatene plass. Settene skriver derfor gjerne «den ordnede basisen».

Koordinatvektoren er en oppskrift: [x]B=(3,−1)[\mathbf{x}]_{\mathcal{B}} = (3, -1) betyr «gå 3 steg langs b1\mathbf{b}_1 og −1-1 steg langs b2\mathbf{b}_2». I standardbasisen er oppskriften og vektoren det samme, for x=x1e1+⋯+xnen\mathbf{x} = x_1\mathbf{e}_1 + \dots + x_n\mathbf{e}_n. I en annen basis er de forskjellige.

Eksempel

Fra koordinater til vektor

La B={b1,b2}\mathcal{B} = \{\mathbf{b}_1, \mathbf{b}_2\} med b1=(1,1)\mathbf{b}_1 = (1, 1) og b2=(−1,2)\mathbf{b}_2 = (-1, 2). Finn y\mathbf{y} når [y]B=(−1,2)[\mathbf{y}]_{\mathcal{B}} = (-1, 2).

Løsning

Koordinatene er koeffisientene:

y=−1[11]+2[−12]=[−1−2−1+4]=[−33]\mathbf{y} = -1\begin{bmatrix} 1 \\ 1 \end{bmatrix} + 2\begin{bmatrix} -1 \\ 2 \end{bmatrix} = \begin{bmatrix} -1 - 2 \\ -1 + 4 \end{bmatrix} = \begin{bmatrix} -3 \\ 3 \end{bmatrix}

Vektoren er y=(−3,3)\mathbf{y} = (-3, 3). Samme vektor har koordinatene (−3,3)(-3, 3) i standardbasisen og (−1,2)(-1, 2) i B\mathcal{B}.

Basisskiftematrisen

Regningen i eksempelet er en matrise ganget med en vektor. Sett basisvektorene inn som søyler:

Formel

Koordinatene og basisskiftematrisen

Med basisvektorene som søyler, PB=[ b1  b2  ⋯  bn ]P_{\mathcal{B}} = [\,\mathbf{b}_1 \ \ \mathbf{b}_2 \ \ \cdots \ \ \mathbf{b}_n\,]:

x=PB[x]B\mathbf{x} = P_{\mathcal{B}}[\mathbf{x}]_{\mathcal{B}}

PBP_{\mathcal{B}} heter basisskiftematrisen fra B\mathcal{B} til standardbasisen. I noen av settene, blant annet TMA4110 høsten 2023, heter slike matriser basisbyttematriser: det er det samme. Den gjør oppskriften om til vektoren. Fordi søylene er en basis for Rn\mathbb{R}^n, er de lineært uavhengige, og PBP_{\mathcal{B}} er invertibel. Den andre veien er derfor

[x]B=PB−1x[\mathbf{x}]_{\mathcal{B}} = P_{\mathcal{B}}^{-1}\mathbf{x}

I praksis regner du ikke ut inversen. Du løser systemet PBc=xP_{\mathcal{B}}\mathbf{c} = \mathbf{x} med Gauss-eliminasjon, altså radreduserer [ PB∣x ][\,P_{\mathcal{B}} \mid \mathbf{x}\,].

0:00 / 0:59
Tekstversjon

Vektoren x = (4, 5) står i standardrutenettet: 4 steg langs e₁ og 5 steg langs e₂. Rutenettet glir over til basisen B med b₁ = (2, 1) og b₂ = (−1, 1), mens pila står stille, og nå tar det 3 steg langs b₁ og 2 langs b₂, så [x]_B = (3, 2). Samme vektor har altså nye koordinater. Til slutt settes b₁ og b₂ inn som søyler i basisskiftematrisen P_B, og P_B(3, 2) = 3(2, 1) + 2(−1, 1) = (4, 5) gir x tilbake.

Eksempel

Koordinatene til en vektor

Finn [x]B[\mathbf{x}]_{\mathcal{B}} når x=(4,1)\mathbf{x} = (4, 1) og B\mathcal{B} er basisen fra eksempelet over.

Løsning

Løs c1b1+c2b2=xc_1\mathbf{b}_1 + c_2\mathbf{b}_2 = \mathbf{x}. R2→R2−R1R_2 \to R_2 - R_1:

[1−14121]∼[1−1403−3]\left[\begin{array}{cc|c} 1 & -1 & 4 \\ 1 & 2 & 1 \end{array}\right] \sim \left[\begin{array}{cc|c} 1 & -1 & 4 \\ 0 & 3 & -3 \end{array}\right]

3c2=−33c_2 = -3 gir c2=−1c_2 = -1, og c1=4+c2=3c_1 = 4 + c_2 = 3:

[x]B=[3−1][\mathbf{x}]_{\mathcal{B}} = \begin{bmatrix} 3 \\ -1 \end{bmatrix}

Kontroll: 3b1−b2=(3+1, 3−2)=(4,1)3\mathbf{b}_1 - \mathbf{b}_2 = (3 + 1,\ 3 - 2) = (4, 1).

I figuren er x\mathbf{x} og basisen fra eksempelet. De stålblå linjene er rutenettet til B\mathcal{B}: linjene der c1c_1 eller c2c_2 er et helt tall. Dra x\mathbf{x}, b1\mathbf{b}_1 og b2\mathbf{b}_2, og se hvordan koordinatene endrer seg.

Vektoren x og basisen B = {b₁, b₂} i planet, med rutenettet til B. Dra x, b₁ og b₂ og se koordinatvektoren [x]_B: hvor mange steg langs b₁ og b₂ som når x.
b₁
(1; 1)
b₂
(−1; 2)
x
(4; 1)
[x]B
(3,00; −1,00)
b1b2x

Hele tall: x står i et hjørne av rutenettet til B. Tell stegene langs b₁ og b₂.

Tre ting er verdt å prøve. I standardbasisen er [x]B=x[\mathbf{x}]_{\mathcal{B}} = \mathbf{x}. Gjør b1\mathbf{b}_1 og b2\mathbf{b}_2 nesten parallelle: rutene blir smale skråstriper, og koordinatene blir store selv om x\mathbf{x} er kort. Gjør dem parallelle: da spenner de bare ut en linje, er ikke lenger en basis, og [x]B[\mathbf{x}]_{\mathcal{B}} finnes ikke. Det er det samme som at det⁡PB=0\det P_{\mathcal{B}} = 0.

Koordinater i polynom- og matriserom

Koordinatene gjør et hvilket som helst vektorrom med en basis til Rn\mathbb{R}^n. I P2\mathbb{P}_2 med standardbasisen {1,t,t2}\{1, t, t^2\} er koordinatvektoren til et polynom koeffisientene:

p(t)=a0+a1t+a2t2⟹[p]=[a0a1a2]p(t) = a_0 + a_1t + a_2t^2 \quad\Longrightarrow\quad [p] = \begin{bmatrix} a_0 \\ a_1 \\ a_2 \end{bmatrix}

Det som gjør dette nyttig, er at oversettelsen respekterer regningen.

Regel

Koordinatavbildningen

La B\mathcal{B} være en basis for VV med nn vektorer. For alle u\mathbf{u} og w\mathbf{w} i VV og alle tall cc er

[u+w]B=[u]B+[w]B[\mathbf{u} + \mathbf{w}]_{\mathcal{B}} = [\mathbf{u}]_{\mathcal{B}} + [\mathbf{w}]_{\mathcal{B}}
[cu]B=c[u]B[c\mathbf{u}]_{\mathcal{B}} = c[\mathbf{u}]_{\mathcal{B}}

og [u]B=0[\mathbf{u}]_{\mathcal{B}} = \mathbf{0} bare når u=0\mathbf{u} = \mathbf{0}. Derfor er u1,…,up\mathbf{u}_1, \dots, \mathbf{u}_p lineært uavhengige i VV hvis og bare hvis koordinatvektorene deres er lineært uavhengige i Rn\mathbb{R}^n.

Bevis: Er u=∑cibi\mathbf{u} = \sum c_i\mathbf{b}_i og w=∑dibi\mathbf{w} = \sum d_i\mathbf{b}_i, er u+w=∑(ci+di)bi\mathbf{u} + \mathbf{w} = \sum (c_i + d_i)\mathbf{b}_i og cu=∑(cci)bic\mathbf{u} = \sum (cc_i)\mathbf{b}_i. Koordinatene til summen er altså summen av koordinatene, og det samme for multiplum. Er [u]B=0[\mathbf{u}]_{\mathcal{B}} = \mathbf{0}, er u=0b1+⋯+0bn=0\mathbf{u} = 0\mathbf{b}_1 + \dots + 0\mathbf{b}_n = \mathbf{0}. For uavhengigheten: etter de to første reglene er

[ x1u1+⋯+xpup ]B=x1[u1]B+⋯+xp[up]B\begin{aligned} &[\,x_1\mathbf{u}_1 + \dots + x_p\mathbf{u}_p\,]_{\mathcal{B}} \\ &= x_1[\mathbf{u}_1]_{\mathcal{B}} + \dots + x_p[\mathbf{u}_p]_{\mathcal{B}} \end{aligned}

Venstresiden er 0\mathbf{0} nøyaktig når x1u1+⋯+xpup=0x_1\mathbf{u}_1 + \dots + x_p\mathbf{u}_p = \mathbf{0}. De to ligningene har altså de samme løsningene x1,…,xpx_1, \dots, x_p, og den ene har bare den trivielle løsningen hvis og bare hvis den andre har det. ∎

Det samme gjelder utspenning: w\mathbf{w} ligger i Span⁡{u1,…,up}\operatorname{Span}\{\mathbf{u}_1, \dots, \mathbf{u}_p\} hvis og bare hvis [w]B[\mathbf{w}]_{\mathcal{B}} ligger i utspenningen av koordinatvektorene. Spørsmål om polynomer blir spørsmål om søyler i en matrise.

Eksempel

Er polynomene uavhengige?

Er p1=1+2t−t2p_1 = 1 + 2t - t^2, p2=2+t+t2p_2 = 2 + t + t^2 og p3=1−t+2t2p_3 = 1 - t + 2t^2 lineært uavhengige i P2\mathbb{P}_2?

Løsning

Koordinatvektorene i standardbasisen {1,t,t2}\{1, t, t^2\} som søyler. R2→R2−2R1R_2 \to R_2 - 2R_1 og R3→R3+R1R_3 \to R_3 + R_1, så R3→R3+R2R_3 \to R_3 + R_2:

[12121−1−112]∼[1210−3−3033]\begin{bmatrix} 1 & 2 & 1 \\ 2 & 1 & -1 \\ -1 & 1 & 2 \end{bmatrix} \sim \begin{bmatrix} 1 & 2 & 1 \\ 0 & -3 & -3 \\ 0 & 3 & 3 \end{bmatrix}
∼[1210−3−3000]\sim \begin{bmatrix} 1 & 2 & 1 \\ 0 & -3 & -3 \\ 0 & 0 & 0 \end{bmatrix}

Søyle 3 har ingen pivot, så koordinatvektorene er avhengige, og da er polynomene det også.

Relasjonen: sett x3=1x_3 = 1. Rad 2 gir x2=−1x_2 = -1, og rad 1 gir x1=−2x2−x3=1x_1 = -2x_2 - x_3 = 1. Altså er p1−p2+p3=0p_1 - p_2 + p_3 = 0, eller p3=p2−p1p_3 = p_2 - p_1. Kontroll:

(2+t+t2)−(1+2t−t2)=1−t+2t2(2 + t + t^2) - (1 + 2t - t^2) = 1 - t + 2t^2

Koordinater med hensyn på en annen basis enn standardbasisen finner du på samme måte som i Rn\mathbb{R}^n: skriv polynomet som en kombinasjon av basisvektorene, og sammenlign koeffisientene.

Eksempel

Koordinatene til et polynom

B={1, 1+t, (1+t)2}\mathcal{B} = \{1,\ 1 + t,\ (1 + t)^2\} er en basis for P2\mathbb{P}_2. Finn [p]B[p]_{\mathcal{B}} for p(t)=3−t+2t2p(t) = 3 - t + 2t^2.

Løsning

Skriv p=c1⋅1+c2(1+t)+c3(1+2t+t2)p = c_1 \cdot 1 + c_2(1 + t) + c_3(1 + 2t + t^2) og samle leddene etter potensene av tt:

p(t)=(c1+c2+c3)+(c2+2c3) t+c3t2p(t) = (c_1 + c_2 + c_3) + (c_2 + 2c_3)\,t + c_3t^2

Sammenlign med 3−t+2t23 - t + 2t^2:

c1+c2+c3=3c2+2c3=−1c3=2\begin{aligned} c_1 + c_2 + c_3 &= 3 \\ c_2 + 2c_3 &= -1 \\ c_3 &= 2 \end{aligned}

Systemet er allerede på trappeform. Bakfra: c3=2c_3 = 2, c2=−1−4=−5c_2 = -1 - 4 = -5 og c1=3+5−2=6c_1 = 3 + 5 - 2 = 6:

[p]B=[6−52][p]_{\mathcal{B}} = \begin{bmatrix} 6 \\ -5 \\ 2 \end{bmatrix}

Kontroll: 6−5(1+t)+2(1+2t+t2)=(6−5+2)+(−5+4)t+2t2=3−t+2t26 - 5(1 + t) + 2(1 + 2t + t^2) = (6 - 5 + 2) + (-5 + 4)t + 2t^2 = 3 - t + 2t^2.

At B\mathcal{B} er en basis, kan du se av systemet: matrisen er en trekantmatrise med 1 på diagonalen, så den har pivot i hver søyle, og hvert polynom i P2\mathbb{P}_2 har nøyaktig én løsning.

Basisskifte mellom to baser

Ofte har du koordinatene i én basis og trenger dem i en annen. La B={b1,…,bn}\mathcal{B} = \{\mathbf{b}_1, \dots, \mathbf{b}_n\} og C\mathcal{C} være to baser for VV. Er [x]B=(c1,…,cn)[\mathbf{x}]_{\mathcal{B}} = (c_1, \dots, c_n), er x=c1b1+⋯+cnbn\mathbf{x} = c_1\mathbf{b}_1 + \dots + c_n\mathbf{b}_n. Ta koordinatene med hensyn på C\mathcal{C} på begge sider, og bruk koordinatavbildningen:

[x]C=c1[b1]C+⋯+cn[bn]C[\mathbf{x}]_{\mathcal{C}} = c_1[\mathbf{b}_1]_{\mathcal{C}} + \dots + c_n[\mathbf{b}_n]_{\mathcal{C}}

Det er en matrise ganget med [x]B[\mathbf{x}]_{\mathcal{B}}, der søylene er de gamle basisvektorene skrevet i den nye basisen.

Formel

Basisskiftematrisen fra B til C

[x]C=PC←B [x]B[\mathbf{x}]_{\mathcal{C}} = P_{\mathcal{C}\leftarrow\mathcal{B}}\,[\mathbf{x}]_{\mathcal{B}}
PC←B=[ [b1]C  ⋯  [bn]C ]P_{\mathcal{C}\leftarrow\mathcal{B}} = \big[\,[\mathbf{b}_1]_{\mathcal{C}} \ \ \cdots \ \ [\mathbf{b}_n]_{\mathcal{C}}\,\big]

Pila leses fra høyre mot venstre, som matriseproduktet: PC←BP_{\mathcal{C}\leftarrow\mathcal{B}} tar inn koordinater i B\mathcal{B} og gir ut koordinater i C\mathcal{C}. Matrisen PBP_{\mathcal{B}} fra før er PE←BP_{\mathcal{E}\leftarrow\mathcal{B}}, der E\mathcal{E} er standardbasisen.

I Rn\mathbb{R}^n er hver søyle [bi]C[\mathbf{b}_i]_{\mathcal{C}} løsningen av PCy=biP_{\mathcal{C}}\mathbf{y} = \mathbf{b}_i. Alle nn systemene har samme koeffisientmatrise, så de løses på én gang:

Regel

Basisskiftematrisen i Rⁿ

Radreduser [ c1 ⋯ cn∣b1 ⋯ bn ][\,\mathbf{c}_1 \ \cdots \ \mathbf{c}_n \mid \mathbf{b}_1 \ \cdots \ \mathbf{b}_n\,] til [ I∣PC←B ][\,I \mid P_{\mathcal{C}\leftarrow\mathcal{B}}\,]. Den nye basisen står til venstre, den gamle til høyre. Det er det samme som PC←B=PC−1PBP_{\mathcal{C}\leftarrow\mathcal{B}} = P_{\mathcal{C}}^{-1}P_{\mathcal{B}}.

Eksempel

Fra B til C

B\mathcal{B} er basisen fra eksemplene over, med b1=(1,1)\mathbf{b}_1 = (1, 1) og b2=(−1,2)\mathbf{b}_2 = (-1, 2), og C\mathcal{C} har c1=(1,2)\mathbf{c}_1 = (1, 2) og c2=(1,3)\mathbf{c}_2 = (1, 3). Finn PC←BP_{\mathcal{C}\leftarrow\mathcal{B}}, og bruk den til å finne [x]C[\mathbf{x}]_{\mathcal{C}} for x=(4,1)\mathbf{x} = (4, 1).

Løsning

R2→R2−2R1R_2 \to R_2 - 2R_1, så R1→R1−R2R_1 \to R_1 - R_2:

[111−12312]∼[111−101−14]\left[\begin{array}{cc|cc} 1 & 1 & 1 & -1 \\ 2 & 3 & 1 & 2 \end{array}\right] \sim \left[\begin{array}{cc|cc} 1 & 1 & 1 & -1 \\ 0 & 1 & -1 & 4 \end{array}\right]
∼[102−501−14]\sim \left[\begin{array}{cc|cc} 1 & 0 & 2 & -5 \\ 0 & 1 & -1 & 4 \end{array}\right]
PC←B=[2−5−14]P_{\mathcal{C}\leftarrow\mathcal{B}} = \begin{bmatrix} 2 & -5 \\ -1 & 4 \end{bmatrix}

Kontroll av første søyle: 2c1−c2=(2−1, 4−3)=(1,1)=b12\mathbf{c}_1 - \mathbf{c}_2 = (2 - 1,\ 4 - 3) = (1, 1) = \mathbf{b}_1.

Fra eksempelet «Koordinatene til en vektor» er [x]B=(3,−1)[\mathbf{x}]_{\mathcal{B}} = (3, -1). Da er

[x]C=[2−5−14][3−1]=[6+5−3−4]=[11−7][\mathbf{x}]_{\mathcal{C}} = \begin{bmatrix} 2 & -5 \\ -1 & 4 \end{bmatrix}\begin{bmatrix} 3 \\ -1 \end{bmatrix} = \begin{bmatrix} 6 + 5 \\ -3 - 4 \end{bmatrix} = \begin{bmatrix} 11 \\ -7 \end{bmatrix}

Kontroll: 11c1−7c2=(11−7, 22−21)=(4,1)=x11\mathbf{c}_1 - 7\mathbf{c}_2 = (11 - 7,\ 22 - 21) = (4, 1) = \mathbf{x}.

Samme vektor har nå tre koordinatvektorer: (4,1)(4, 1) i standardbasisen, (3,−1)(3, -1) i B\mathcal{B} og (11,−7)(11, -7) i C\mathcal{C}.

Å gå tilbake er å snu pila. Gjør du PB←CPC←B[x]BP_{\mathcal{B}\leftarrow\mathcal{C}}P_{\mathcal{C}\leftarrow\mathcal{B}}[\mathbf{x}]_{\mathcal{B}}, havner du der du startet, for alle x\mathbf{x}. Derfor er

PB←C=(PC←B)−1P_{\mathcal{B}\leftarrow\mathcal{C}} = \left(P_{\mathcal{C}\leftarrow\mathcal{B}}\right)^{-1}

Basisskiftet virker på samme måte i polynomrommene. Med B={1, 1+t, (1+t)2}\mathcal{B} = \{1,\ 1 + t,\ (1 + t)^2\} fra eksempelet over og standardbasisen E={1,t,t2}\mathcal{E} = \{1, t, t^2\} er søylene i PE←BP_{\mathcal{E}\leftarrow\mathcal{B}} koeffisientene til 11, 1+t1 + t og 1+2t+t21 + 2t + t^2:

PE←B=[111012001]P_{\mathcal{E}\leftarrow\mathcal{B}} = \begin{bmatrix} 1 & 1 & 1 \\ 0 & 1 & 2 \\ 0 & 0 & 1 \end{bmatrix}

og koordinatvektoren (6,−5,2)(6, -5, 2) fra eksempelet blir

PE←B[6−52]=[6−5+2−5+42]=[3−12]P_{\mathcal{E}\leftarrow\mathcal{B}}\begin{bmatrix} 6 \\ -5 \\ 2 \end{bmatrix} = \begin{bmatrix} 6 - 5 + 2 \\ -5 + 4 \\ 2 \end{bmatrix} = \begin{bmatrix} 3 \\ -1 \\ 2 \end{bmatrix}

Det er koeffisientene i p(t)=3−t+2t2p(t) = 3 - t + 2t^2, som det skal være.

Slik svarer du på eksamen

TMA4115 våren 2025 ba om koordinatvektoren til et polynom med hensyn på en gitt basis for P2\mathbb{P}_2. TMA4110 høsten 2023 ga en vektor i koordinater med hensyn på en basis for R2\mathbb{R}^2 og spurte etter den i standardbasisen, og så etter basisskiftematrisen mellom to baser. I det samme settet og i TMA4110/TMA4115 august 2025 brukte løsningsforslaget koordinatvektorer til å avgjøre om tre polynomer er uavhengige.

  • Koordinatvektor: sett opp x=c1b1+⋯+cnbn\mathbf{x} = c_1\mathbf{b}_1 + \dots + c_n\mathbf{b}_n og løs systemet. For polynomer sammenligner du koeffisientene.
  • Fra koordinater til vektor: gang ut PB[x]BP_{\mathcal{B}}[\mathbf{x}]_{\mathcal{B}}. Det er ingen ligning å løse.
  • Basisskifte: [ ny basis∣gammel basis ]∼[ I∣Pny←gammel ][\,\text{ny basis} \mid \text{gammel basis}\,] \sim [\,I \mid P_{\text{ny}\leftarrow\text{gammel}}\,]. Skriv hvilken vei matrisen går.
  • Polynomer eller matriser uavhengige: koordinatvektorene i standardbasisen som søyler, og tell pivotene.
  • Kontroller ved å gange ut. Det tar et halvt minutt og avslører de fleste fortegnsfeil.

Kort oppsummert

  • [x]B=(c1,…,cn)[\mathbf{x}]_{\mathcal{B}} = (c_1, \dots, c_n) betyr x=c1b1+⋯+cnbn\mathbf{x} = c_1\mathbf{b}_1 + \dots + c_n\mathbf{b}_n. Rekkefølgen i basisen teller.
  • x=PB[x]B\mathbf{x} = P_{\mathcal{B}}[\mathbf{x}]_{\mathcal{B}} med PB=[ b1 ⋯ bn ]P_{\mathcal{B}} = [\,\mathbf{b}_1 \ \cdots \ \mathbf{b}_n\,], og [x]B[\mathbf{x}]_{\mathcal{B}} finner du ved å løse PBc=xP_{\mathcal{B}}\mathbf{c} = \mathbf{x}.
  • Koordinatavbildningen bevarer summer og multipler, så uavhengighet og utspenning i VV kan avgjøres med koordinatvektorene i Rn\mathbb{R}^n.
  • [x]C=PC←B[x]B[\mathbf{x}]_{\mathcal{C}} = P_{\mathcal{C}\leftarrow\mathcal{B}}[\mathbf{x}]_{\mathcal{B}}, der søylene er [bi]C[\mathbf{b}_i]_{\mathcal{C}}. I Rn\mathbb{R}^n: [ C∣B ]∼[ I∣PC←B ][\,\mathcal{C} \mid \mathcal{B}\,] \sim [\,I \mid P_{\mathcal{C}\leftarrow\mathcal{B}}\,].
  • PB←C=(PC←B)−1P_{\mathcal{B}\leftarrow\mathcal{C}} = (P_{\mathcal{C}\leftarrow\mathcal{B}})^{-1}.

Sjekk at du har det

Spørsmål 1 av 3

Fra koordinater til vektor

Basisen B={b1,b2}\mathcal B = \{\mathbf b_1, \mathbf b_2\} for R2\mathbb R^2 har b1=(2,−1)\mathbf b_1 = (2, -1) og b2=(1,3)\mathbf b_2 = (1, 3). En vektor x\mathbf x har koordinatvektoren

[x]B=[3−2][\mathbf x]_{\mathcal B} = \begin{bmatrix} 3 \\ -2 \end{bmatrix}

Hva er x\mathbf x?

Oppgaver

0 av 6
Oppgave 1Vanskelighet: Grunnleggende

Fra koordinater til vektor

Basisen B={b1,b2}\mathcal B = \{\mathbf b_1, \mathbf b_2\} for R2\mathbb R^2 har b1=(2,−1)\mathbf b_1 = (2, -1) og b2=(1,3)\mathbf b_2 = (1, 3). En vektor x\mathbf x har koordinatvektoren

[x]B=[3−2][\mathbf x]_{\mathcal B} = \begin{bmatrix} 3 \\ -2 \end{bmatrix}

Hva er x\mathbf x?

  1. A.x=(8,−3)\mathbf x = (8, -3)
  2. B.x=(3,−2)\mathbf x = (3, -2)
  3. C.x=(4,−9)\mathbf x = (4, -9)
  4. D.x=(117,−17)\mathbf x = (\frac{11}{7}, -\frac{1}{7})
  5. E.x=(−1,11)\mathbf x = (-1, 11)
Vis løsning

Svar: C. x=(4,−9)\mathbf x = (4, -9)x=(4,−9)\mathbf x = (4, -9), fordi x=3b1−2b2\mathbf x = 3\mathbf b_1 - 2\mathbf b_2.

  1. Koordinatvektoren er vektene i lineærkombinasjonen. [x]B=(3,−2)[\mathbf x]_{\mathcal B} = (3, -2) betyr

    x=3b1−2b2\mathbf x = 3\mathbf b_1 - 2\mathbf b_2

    Du skal altså gange ut, ikke løse et system.

  2. Regn ut:

    x=3[2−1]−2[13]=[6−2−3−6]=[4−9]\mathbf x = 3\begin{bmatrix} 2 \\ -1 \end{bmatrix} - 2\begin{bmatrix} 1 \\ 3 \end{bmatrix} = \begin{bmatrix} 6 - 2 \\ -3 - 6 \end{bmatrix} = \begin{bmatrix} 4 \\ -9 \end{bmatrix}
  3. Med basisskiftematrisen PB=[b1 b2]P_{\mathcal B} = [\mathbf b_1 \ \mathbf b_2] er det samme x=PB[x]B\mathbf x = P_{\mathcal B}[\mathbf x]_{\mathcal B}:

    [21−13][3−2]=[4−9]\begin{bmatrix} 2 & 1 \\ -1 & 3 \end{bmatrix}\begin{bmatrix} 3 \\ -2 \end{bmatrix} = \begin{bmatrix} 4 \\ -9 \end{bmatrix}

    Basisvektorene står som søyler.

  4. De gale alternativene er vanlige feil. (8,−3)(8, -3) får du med basisvektorene som rader i matrisen. (−1,11)(-1, 11) er −2b1+3b2-2\mathbf b_1 + 3\mathbf b_2, med vektene byttet om. (117,−17)(\frac{11}{7}, -\frac{1}{7}) er PB−1[x]BP_{\mathcal B}^{-1}[\mathbf x]_{\mathcal B}: da har du gått fra vektor til koordinater, motsatt vei. (3,−2)(3, -2) er koordinatene selv, som bare er lik x\mathbf x når basisen er standardbasisen.

  5. Kontroll den andre veien: løs c1b1+c2b2=(4,−9)c_1\mathbf b_1 + c_2\mathbf b_2 = (4, -9). Første rad gir 2c1+c2=42c_1 + c_2 = 4, andre gir −c1+3c2=−9-c_1 + 3c_2 = -9. Den første gir c2=4−2c1c_2 = 4 - 2c_1, og innsatt i den andre blir −c1+12−6c1=−9-c_1 + 12 - 6c_1 = -9, så c1=3c_1 = 3 og c2=−2c_2 = -2. Digitalt: P @ np.array([3, -2]) med P = np.array([[2, 1], [-1, 3]]) gir [ 4 -9].

Oppgave 2Vanskelighet: Middels

Atomene i gitteret

I et krystallgitter sitter atomene i punktene c1a1+c2a2c_1\mathbf a_1 + c_2\mathbf a_2 der c1c_1 og c2c_2 er heltall. Vi ser på et tenkt todimensjonalt gitter med gittervektorene a1=(4,0)\mathbf a_1 = (4, 0) og a2=(2,3)\mathbf a_2 = (2, 3), målt i ångström (Å). G={a1,a2}\mathcal G = \{\mathbf a_1, \mathbf a_2\} er en basis for R2\mathbb R^2, og koordinatene med hensyn på G\mathcal G kalles gitterkoordinatene.

a) Et atom sitter i x=(22,9)\mathbf x = (22, 9). Finn gitterkoordinatene [x]G[\mathbf x]_{\mathcal G}.

b) Er y=(13,6)\mathbf y = (13, 6) et gitterpunkt?

c) Finn matrisen PG−1P_{\mathcal G}^{-1}, som gjør om en posisjon til gitterkoordinater.

Vis løsning

Svar: a) [x]G=(4,3)[\mathbf x]_{\mathcal G} = (4, 3): fire steg langs a1\mathbf a_1 og tre langs a2\mathbf a_2. b) Nei, [y]G=(94,2)[\mathbf y]_{\mathcal G} = (\frac{9}{4}, 2) er ikke heltallig. c) PG−1=112[3−204]P_{\mathcal G}^{-1} = \frac{1}{12}\begin{bmatrix} 3 & -2 \\ 0 & 4 \end{bmatrix}.

  1. a) Gitterkoordinatene er vektene c1c_1 og c2c_2 i c1a1+c2a2=xc_1\mathbf a_1 + c_2\mathbf a_2 = \mathbf x. Koordinat for koordinat:

    4c1+2c2=224c_1 + 2c_2 = 22
    3c2=93c_2 = 9

    Systemet er allerede på trappeform.

  2. Den andre ligningen gir c2=3c_2 = 3, og den første 4c1=22−6=164c_1 = 22 - 6 = 16, så c1=4c_1 = 4. Altså er [x]G=(4,3)[\mathbf x]_{\mathcal G} = (4, 3): atomet sitter fire celler ut langs a1\mathbf a_1 og tre langs a2\mathbf a_2.

  3. b) Samme regning for y=(13,6)\mathbf y = (13, 6): 3c2=63c_2 = 6 gir c2=2c_2 = 2, og 4c1=13−4=94c_1 = 13 - 4 = 9 gir c1=94c_1 = \frac{9}{4}. Et gitterpunkt har heltallige gitterkoordinater, så y\mathbf y er ikke et gitterpunkt. Det ligger inne i en celle, en kvart celle forbi gitterpunktet 2a1+2a2=(12,6)2\mathbf a_1 + 2\mathbf a_2 = (12, 6) i retning a1\mathbf a_1.

  4. c) Basisskiftematrisen har gittervektorene som søyler, og x=PG[x]G\mathbf x = P_{\mathcal G}[\mathbf x]_{\mathcal G}:

    PG=[4203]P_{\mathcal G} = \begin{bmatrix} 4 & 2 \\ 0 & 3 \end{bmatrix}

    Den andre veien går med inversen. det⁡PG=12\det P_{\mathcal G} = 12, så

    PG−1=112[3−204]P_{\mathcal G}^{-1} = \frac{1}{12}\begin{bmatrix} 3 & -2 \\ 0 & 4 \end{bmatrix}

    og [x]G=PG−1x[\mathbf x]_{\mathcal G} = P_{\mathcal G}^{-1}\mathbf x.

  5. Kontroll:

    PG−1[229]=112[66−1836]=[43]P_{\mathcal G}^{-1}\begin{bmatrix} 22 \\ 9 \end{bmatrix} = \frac{1}{12}\begin{bmatrix} 66 - 18 \\ 36 \end{bmatrix} = \begin{bmatrix} 4 \\ 3 \end{bmatrix}

    og 4a1+3a2=(16+6,9)=(22,9)4\mathbf a_1 + 3\mathbf a_2 = (16 + 6, 9) = (22, 9). Et program som skal finne hvilken celle et punkt ligger i, regner ut nettopp PG−1xP_{\mathcal G}^{-1}\mathbf x og runder ned. Digitalt: np.linalg.solve(np.array([[4, 2], [0, 3]]), [22, 9]) gir [4. 3.].

Oppgave 3Vanskelighet: Middels

Koordinatene til et polynom

B={1+t, t+t2, 1+t2}\mathcal B = \{1 + t,\ t + t^2,\ 1 + t^2\} er en basis for P2\mathbb P_2. Hva er koordinatvektoren [p]B[p]_{\mathcal B} til p(t)=1+5t+2t2p(t) = 1 + 5t + 2t^2?

  1. A.(3,6,7)(3, 6, 7)
  2. B.(2,−1,3)(2, -1, 3)
  3. C.(−1,2,3)(-1, 2, 3)
  4. D.(1,5,2)(1, 5, 2)
  5. E.(2,3,−1)(2, 3, -1)
Vis løsning

Svar: E. (2,3,−1)(2, 3, -1)[p]B=(2,3,−1)[p]_{\mathcal B} = (2, 3, -1), fordi p=2(1+t)+3(t+t2)−(1+t2)p = 2(1 + t) + 3(t + t^2) - (1 + t^2).

  1. Du skal finne c1c_1, c2c_2 og c3c_3 med

    c1(1+t)+c2(t+t2)+c3(1+t2)c_1(1 + t) + c_2(t + t^2) + c_3(1 + t^2)
    =1+5t+2t2= 1 + 5t + 2t^2

    Samle venstresiden etter potenser av tt:

    (c1+c3)+(c1+c2)t+(c2+c3)t2(c_1 + c_3) + (c_1 + c_2)t + (c_2 + c_3)t^2
  2. To polynomer er like når koeffisientene er like:

    c1+c3=1c_1 + c_3 = 1
    c1+c2=5c_1 + c_2 = 5
    c2+c3=2c_2 + c_3 = 2

    Det er systemet PBc=(1,5,2)P_{\mathcal B}\mathbf c = (1, 5, 2), der søylene i PBP_{\mathcal B} er koeffisientene til basispolynomene.

  3. Legg sammen alle tre: 2(c1+c2+c3)=82(c_1 + c_2 + c_3) = 8, så c1+c2+c3=4c_1 + c_2 + c_3 = 4. Trekk fra hver ligning: c2=4−1=3c_2 = 4 - 1 = 3, c3=4−5=−1c_3 = 4 - 5 = -1 og c1=4−2=2c_1 = 4 - 2 = 2.

  4. Kontroll:

    2(1+t)+3(t+t2)−(1+t2)2(1 + t) + 3(t + t^2) - (1 + t^2)
    =(2−1)+(2+3)t+(3−1)t2= (2 - 1) + (2 + 3)t + (3 - 1)t^2
    =1+5t+2t2= 1 + 5t + 2t^2

    Altså er [p]B=(2,3,−1)[p]_{\mathcal B} = (2, 3, -1).

  5. De gale svarene: (1,5,2)(1, 5, 2) er koordinatene i standardbasisen {1,t,t2}\{1, t, t^2\}. (3,6,7)(3, 6, 7) er PB(1,5,2)P_{\mathcal B}(1, 5, 2): ganget i stedet for løst. (−1,2,3)(-1, 2, 3) kommer av å sette koeffisientene til basispolynomene som rader. (2,−1,3)(2, -1, 3) har de riktige tallene i feil rekkefølge; rekkefølgen i B\mathcal B bestemmer rekkefølgen i [p]B[p]_{\mathcal B}. Digitalt: np.linalg.solve(np.array([[1, 0, 1], [1, 1, 0], [0, 1, 1]]), [1, 5, 2]) gir [ 2. 3. -1.].

Oppgave 4Vanskelighet: Middels

Basisskifte mellom to baser

To baser for R2\mathbb R^2 er B={b1,b2}\mathcal B = \{\mathbf b_1, \mathbf b_2\} og C={c1,c2}\mathcal C = \{\mathbf c_1, \mathbf c_2\}, der

b1=[2−3],b2=[−12]\mathbf b_1 = \begin{bmatrix} 2 \\ -3 \end{bmatrix}, \quad \mathbf b_2 = \begin{bmatrix} -1 \\ 2 \end{bmatrix}
c1=[2−1],c2=[1−1]\mathbf c_1 = \begin{bmatrix} 2 \\ -1 \end{bmatrix}, \quad \mathbf c_2 = \begin{bmatrix} 1 \\ -1 \end{bmatrix}

a) En vektor x\mathbf x har [x]B=(2,1)[\mathbf x]_{\mathcal B} = (2, 1). Finn x\mathbf x i standardbasisen.

b) Finn basisskiftematrisen PC←BP_{\mathcal C \leftarrow \mathcal B}.

c) Finn [x]C[\mathbf x]_{\mathcal C}, og kontroller svaret.

Vis løsning

Svar: a) x=(3,−4)\mathbf x = (3, -4). b) PC←B=[−114−3]P_{\mathcal C \leftarrow \mathcal B} = \begin{bmatrix} -1 & 1 \\ 4 & -3 \end{bmatrix}. c) [x]C=(−1,5)[\mathbf x]_{\mathcal C} = (-1, 5).

  1. a) [x]B=(2,1)[\mathbf x]_{\mathcal B} = (2, 1) betyr x=2b1+b2\mathbf x = 2\mathbf b_1 + \mathbf b_2:

    x=2[2−3]+[−12]=[3−4]\mathbf x = 2\begin{bmatrix} 2 \\ -3 \end{bmatrix} + \begin{bmatrix} -1 \\ 2 \end{bmatrix} = \begin{bmatrix} 3 \\ -4 \end{bmatrix}
  2. b) Søylene i PC←BP_{\mathcal C \leftarrow \mathcal B} er C\mathcal C-koordinatene til basisvektorene i B\mathcal B:

    PC←B=[ [b1]C  [b2]C ]P_{\mathcal C \leftarrow \mathcal B} = \big[\, [\mathbf b_1]_{\mathcal C} \ \ [\mathbf b_2]_{\mathcal C} \,\big]

    Begge søylene løser et system med koeffisientmatrisen PC=[c1 c2]P_{\mathcal C} = [\mathbf c_1 \ \mathbf c_2], så radreduser [ c1 c2∣b1 b2 ][\,\mathbf c_1 \ \mathbf c_2 \mid \mathbf b_1 \ \mathbf b_2\,] én gang.

  3. [212−1−1−1−32]\left[\begin{array}{cc|cc} 2 & 1 & 2 & -1 \\ -1 & -1 & -3 & 2 \end{array}\right]

    Bytt radene, og gang den nye første raden med −1-1:

    [113−2212−1]\left[\begin{array}{cc|cc} 1 & 1 & 3 & -2 \\ 2 & 1 & 2 & -1 \end{array}\right]

    R2→R2−2R1R_2 \to R_2 - 2R_1:

    [113−20−1−43]\left[\begin{array}{cc|cc} 1 & 1 & 3 & -2 \\ 0 & -1 & -4 & 3 \end{array}\right]
  4. Gang rad 2 med −1-1, og trekk den fra rad 1:

    [10−11014−3]\left[\begin{array}{cc|cc} 1 & 0 & -1 & 1 \\ 0 & 1 & 4 & -3 \end{array}\right]

    Høyre halvdel er svaret:

    PC←B=[−114−3]P_{\mathcal C \leftarrow \mathcal B} = \begin{bmatrix} -1 & 1 \\ 4 & -3 \end{bmatrix}
  5. Det samme er PC−1PBP_{\mathcal C}^{-1}P_{\mathcal B}: først fra B\mathcal B til standardbasisen, så videre til C\mathcal C. Radreduksjonen over regner ut produktet uten å finne PC−1P_{\mathcal C}^{-1} for seg.

  6. c)

    [x]C=PC←B[x]B[\mathbf x]_{\mathcal C} = P_{\mathcal C \leftarrow \mathcal B}[\mathbf x]_{\mathcal B}
    =[−114−3][21]=[−15]= \begin{bmatrix} -1 & 1 \\ 4 & -3 \end{bmatrix}\begin{bmatrix} 2 \\ 1 \end{bmatrix} = \begin{bmatrix} -1 \\ 5 \end{bmatrix}
  7. Kontroll med a): −c1+5c2=(−2+5, 1−5)=(3,−4)=x-\mathbf c_1 + 5\mathbf c_2 = (-2 + 5,\ 1 - 5) = (3, -4) = \mathbf x. Settet TMA4110 høsten 2023 hadde en oppgave av denne typen og kalte matrisen basisbyttematrisen. Digitalt: np.linalg.solve(PC, PB) gir hele PC←BP_{\mathcal C \leftarrow \mathcal B} på én gang, fordi solve tar en matrise på høyre side.

Oppgave 5Vanskelighet: Krevende

Vurder løsningen til Emil

I P2\mathbb P_2 er E={1,t,t2}\mathcal E = \{1, t, t^2\} standardbasisen, og C={1, t−1, (t−1)2}\mathcal C = \{1,\ t - 1,\ (t - 1)^2\} er en annen basis. Emil skal finne [p]C[p]_{\mathcal C} for p(t)=4−t+2t2p(t) = 4 - t + 2t^2. Han skriver t=1+(t−1)t = 1 + (t - 1) og t2=1+2(t−1)+(t−1)2t^2 = 1 + 2(t - 1) + (t - 1)^2, og setter opp

PC←E=[100110121]P_{\mathcal C \leftarrow \mathcal E} = \begin{bmatrix} 1 & 0 & 0 \\ 1 & 1 & 0 \\ 1 & 2 & 1 \end{bmatrix}

«Da er [p]C=PC←E(4,−1,2)=(4,3,4)[p]_{\mathcal C} = P_{\mathcal C \leftarrow \mathcal E}(4, -1, 2) = (4, 3, 4).»

Vurder løsningen. Finn feilen og riktig [p]C[p]_{\mathcal C}, og kontroller svaret.

Vis løsning

Svar: Emil har satt koordinatvektorene som rader, ikke søyler. Riktig er PC←E=[111012001]P_{\mathcal C \leftarrow \mathcal E} = \begin{bmatrix} 1 & 1 & 1 \\ 0 & 1 & 2 \\ 0 & 0 & 1 \end{bmatrix} og [p]C=(5,3,2)[p]_{\mathcal C} = (5, 3, 2), altså p(t)=5+3(t−1)+2(t−1)2p(t) = 5 + 3(t - 1) + 2(t - 1)^2.

  1. Omskrivningene til Emil er riktige: 1+(t−1)=t1 + (t - 1) = t, og

    1+2(t−1)+(t−1)21 + 2(t - 1) + (t - 1)^2
    =1+2t−2+t2−2t+1=t2= 1 + 2t - 2 + t^2 - 2t + 1 = t^2

    Feilen er hvor han setter dem.

  2. Søylene i PC←EP_{\mathcal C \leftarrow \mathcal E} skal være C\mathcal C-koordinatene til basisvektorene i E\mathcal E: [1]C=(1,0,0)[1]_{\mathcal C} = (1, 0, 0), [t]C=(1,1,0)[t]_{\mathcal C} = (1, 1, 0) og [t2]C=(1,2,1)[t^2]_{\mathcal C} = (1, 2, 1). Emil har satt dem som rader. Riktig er den transponerte av matrisen hans:

    PC←E=[111012001]P_{\mathcal C \leftarrow \mathcal E} = \begin{bmatrix} 1 & 1 & 1 \\ 0 & 1 & 2 \\ 0 & 0 & 1 \end{bmatrix}
  3. Da er

    [p]C=[111012001][4−12][p]_{\mathcal C} = \begin{bmatrix} 1 & 1 & 1 \\ 0 & 1 & 2 \\ 0 & 0 & 1 \end{bmatrix}\begin{bmatrix} 4 \\ -1 \\ 2 \end{bmatrix}
    =[4−1+2−1+42]=[532]= \begin{bmatrix} 4 - 1 + 2 \\ -1 + 4 \\ 2 \end{bmatrix} = \begin{bmatrix} 5 \\ 3 \\ 2 \end{bmatrix}
  4. Kontroll ved å gange ut:

    5+3(t−1)+2(t−1)25 + 3(t - 1) + 2(t - 1)^2
    =5+3t−3+2t2−4t+2= 5 + 3t - 3 + 2t^2 - 4t + 2
    =4−t+2t2= 4 - t + 2t^2

    Det er pp. Emils (4,3,4)(4, 3, 4) gir derimot 4+3(t−1)+4(t−1)2=5−5t+4t24 + 3(t - 1) + 4(t - 1)^2 = 5 - 5t + 4t^2, et annet polynom.

  5. En kontroll til: koordinatene med hensyn på C\mathcal C er Taylor-koeffisientene om t=1t = 1 (se 7.1 Taylorpolynomer og Taylors teorem i Matematikk 1): p(1)=5p(1) = 5, p′(1)=−1+4=3p'(1) = -1 + 4 = 3 og p′′(1)2=42=2\frac{p''(1)}{2} = \frac{4}{2} = 2.

  6. Huskeregel: det du kjenner koordinatene til, står som søyler. I PC←EP_{\mathcal C \leftarrow \mathcal E} er det basisvektorene i E\mathcal E. Digitalt: P = np.array([[1, 1, 1], [0, 1, 2], [0, 0, 1]]) og P @ np.array([4, -1, 2]) gir [5 3 2].

Oppgave 6Vanskelighet: Krevende

Koordinatavbildningen er lineær

La B={b1,…,bn}\mathcal B = \{\mathbf b_1, \dots, \mathbf b_n\} være en basis for et vektorrom VV.

a) Vis at hver x∈V\mathbf x \in V kan skrives som en lineærkombinasjon av b1,…,bn\mathbf b_1, \dots, \mathbf b_n på nøyaktig én måte.

b) Vis at [u+v]B=[u]B+[v]B[\mathbf u + \mathbf v]_{\mathcal B} = [\mathbf u]_{\mathcal B} + [\mathbf v]_{\mathcal B} og [ku]B=k[u]B[k\mathbf u]_{\mathcal B} = k[\mathbf u]_{\mathcal B} for alle u,v∈V\mathbf u, \mathbf v \in V og alle tall kk.

c) I P2\mathbb P_2 er B={1, 1+t, 1+t+t2}\mathcal B = \{1,\ 1 + t,\ 1 + t + t^2\}. Polynomene uu og vv har [u]B=(1,−2,3)[u]_{\mathcal B} = (1, -2, 3) og [v]B=(2,0,−1)[v]_{\mathcal B} = (2, 0, -1). Finn [3u−2v]B[3u - 2v]_{\mathcal B} og polynomet 3u−2v3u - 2v.

Vis løsning

Svar: a) Gir to framstillinger samme x\mathbf x, er differansen en kombinasjon som gir 0\mathbf 0, og uavhengigheten gir at vektene er like. b) Følger av entydigheten i a). c) [3u−2v]B=(−1,−6,11)[3u - 2v]_{\mathcal B} = (-1, -6, 11) og 3u−2v=4+5t+11t23u - 2v = 4 + 5t + 11t^2.

  1. a) At det finnes en framstilling, er at B\mathcal B spenner ut VV. For entydigheten: anta at

    x=c1b1+⋯+cnbn\mathbf x = c_1\mathbf b_1 + \dots + c_n\mathbf b_n

    og

    x=d1b1+⋯+dnbn\mathbf x = d_1\mathbf b_1 + \dots + d_n\mathbf b_n
  2. Trekk den ene fra den andre:

    0=(c1−d1)b1+⋯+(cn−dn)bn\mathbf 0 = (c_1 - d_1)\mathbf b_1 + \dots + (c_n - d_n)\mathbf b_n

    Basisvektorene er lineært uavhengige, så alle vektene er null: ci=dic_i = d_i for hver ii. De to framstillingene er den samme. Det er dette som gjør [x]B[\mathbf x]_{\mathcal B} veldefinert: uten entydigheten kunne én vektor hatt to koordinatvektorer.

  3. b) Skriv [u]B=(c1,…,cn)[\mathbf u]_{\mathcal B} = (c_1, \dots, c_n) og [v]B=(d1,…,dn)[\mathbf v]_{\mathcal B} = (d_1, \dots, d_n). Da er

    u+v=(c1+d1)b1+…\mathbf u + \mathbf v = (c_1 + d_1)\mathbf b_1 + \dots
    ⋯+(cn+dn)bn\dots + (c_n + d_n)\mathbf b_n

    Dette er en framstilling av u+v\mathbf u + \mathbf v, og etter a) den eneste. Altså er [u+v]B=(c1+d1,…,cn+dn)=[u]B+[v]B[\mathbf u + \mathbf v]_{\mathcal B} = (c_1 + d_1, \dots, c_n + d_n) = [\mathbf u]_{\mathcal B} + [\mathbf v]_{\mathcal B}.

  4. På samme måte er ku=(kc1)b1+⋯+(kcn)bnk\mathbf u = (kc_1)\mathbf b_1 + \dots + (kc_n)\mathbf b_n, så [ku]B=k[u]B[k\mathbf u]_{\mathcal B} = k[\mathbf u]_{\mathcal B}. Koordinatavbildningen x↦[x]B\mathbf x \mapsto [\mathbf x]_{\mathcal B} er altså lineær. Den lar deg regne i Rn\mathbb R^n i stedet for i VV.

  5. c) Med b):

    [3u−2v]B=3[1−23]−2[20−1][3u - 2v]_{\mathcal B} = 3\begin{bmatrix} 1 \\ -2 \\ 3 \end{bmatrix} - 2\begin{bmatrix} 2 \\ 0 \\ -1 \end{bmatrix}
    =[−1−611]= \begin{bmatrix} -1 \\ -6 \\ 11 \end{bmatrix}

    Polynomet er

    −1−6(1+t)+11(1+t+t2)-1 - 6(1 + t) + 11(1 + t + t^2)
    =4+5t+11t2= 4 + 5t + 11t^2
  6. Kontroll uten koordinater: u=1−2(1+t)+3(1+t+t2)=2+t+3t2u = 1 - 2(1 + t) + 3(1 + t + t^2) = 2 + t + 3t^2 og v=2−(1+t+t2)=1−t−t2v = 2 - (1 + t + t^2) = 1 - t - t^2. Da er

    3u−2v=(6+3t+9t2)−(2−2t−2t2)3u - 2v = (6 + 3t + 9t^2) - (2 - 2t - 2t^2)
    =4+5t+11t2= 4 + 5t + 11t^2

    det samme som med koordinatene.

  7. Full uttelling i a) krever at du bruker uavhengigheten og sier hvor. Digitalt: 3*np.array([1, -2, 3]) - 2*np.array([2, 0, -1]) gir [-1 -6 11].