• No results found

Resultatet meddelas: p˚ a studentportalen. F¨ or att se n¨ ar den r¨ attade skrivningen kan h¨ amtas ut, g˚ a till www.ltu.se/atorget.

N/A
N/A
Protected

Academic year: 2021

Share "Resultatet meddelas: p˚ a studentportalen. F¨ or att se n¨ ar den r¨ attade skrivningen kan h¨ amtas ut, g˚ a till www.ltu.se/atorget."

Copied!
3
0
0

Loading.... (view fulltext now)

Full text

(1)

Tentamen i Numerik Amneskod ¨ C0002M MAM208 Tentamensdatum 2008-08-20

Totala antalet uppgifter: 5 Skrivtid 09.00 – 14.00

L¨ arare: Ove Edlund

Jourhavande l¨ arare: Ove Edlund Tel: 070-2828661

Resultatet meddelas: p˚ a studentportalen. F¨ or att se n¨ ar den r¨ attade skrivningen kan h¨ amtas ut, g˚ a till www.ltu.se/atorget.

Till˚ atna hj¨ alpmedel: Minir¨ aknare. Tabellsamling i matematik, t.ex. Beta

Till alla uppgifterna ska fullst¨ andiga l¨ osningar l¨ amnas. Resonemang, inf¨ orda beteckningar och utr¨ akningar f˚ ar inte vara s˚ a knapph¨ andigt presenterade att de blir sv˚ ara att f¨ olja. ¨ Aven endast delvis l¨ osta problem kan ge po¨ ang.

Enbart svar ger 0 po¨ ang.

Institutionen f¨ or matematik

1 (3)

(2)

1 Givet en LU-faktorisering av den inverterbara matri- sen A, uttryckt som PA = LU, (a) redog¨ or f¨ or struk- turen hos matriserna P, L och U, (b) f¨ orklara hur sy- stemet Ax = b l¨ oses med hj¨ alp av dessa matriser, (c) redovisa i detalj hur fram˚ at och bak˚ at-substitution fungerar (endera med Matlabkod, eller pseudokod).

(6 p)

Given an LU-factorization of the invertible matrix A, expressed as PA = LU, (a) describe the structure of the matrices P, L och U, (b) explain how the system Ax = b is solved with these matrices, (c) give a de- tailed account for forward and backward substitution (either using Matlab code, or pseudo code). (6 p)

2 (a) Best¨ am en mistakvadratapproximation till det

¨ overbest¨ amda ekvationssystemet

1 −2 2 1 1 1 1 1 −1

−1 2 0

 β

1

β

2

β

3

 =

 8 6

−4 6

Utnyttja att matrisen har QR-faktorisering

Q = 1 2

1 −1 1 1 1 1 1 1 −1

−1 1 1

 R =

2 −1 1 0 3 −1

0 0 2

(3 p) (b) Bevisa formeln f¨ or minstakvadratapproximatio- nen med QR, som du anv¨ ande ovan. (3 p)

(a) Find a least-squares approximation for the over-determined system om equations

1 −2 2 1 1 1 1 1 −1

−1 2 0

 β

1

β

2

β

3

 =

 8 6

−4 6

Make use of the QR-factorization of the matrix

Q = 1 2

1 −1 1 1 1 1 1 1 −1

−1 1 1

 R =

2 −1 1 0 3 −1 0 0 2

(3 p) (b) Prove the formula for least-squares approxima- tion using QR, that you used above. (3 p)

3 Beskriv hur du finner en numerisk l¨ osning med Newtons metod till f¨ oljande ekvationssystem:

x y z = 1 x + y + z = 6 x

2

+ y

2

− z

2

= 1

H¨ arled hur ing˚ aende matriser och vektorer bildas och redog¨ or f¨ or hur de anv¨ ands. Ber¨ akna inte l¨ osningen.

(En l¨ osning ¨ ar x ≈ 3.02603, y ≈ 0.11561, z ≈

2.85836.) (5 p)

Describe how you find a numerical solution using Newton’s method of the following system of equa- tions:

x y z = 1 x + y + z = 6 x

2

+ y

2

− z

2

= 1

Describe how the matrices and vectors you use are formed and how they are utilized. Do not calcula- te the solution. (One solution is x ≈ 3.02603, y ≈

0.11561, z ≈ 2.85836.) (5 p)

4 (a) Approximera integralen

2

Z

1

p 8 − x

3

dx

med stegl¨ angd h = 0.25 i Simpsons formel.

(2 p)

(b) Trapetsmetoden har ett fel med ordningstal O(h

2

). Ber¨ akna integralen ovan med Trapets- metoden. Anv¨ and b˚ ade stegl¨ angd h = 0.25 och h = 0.5. Anv¨ and Richardson-extrapolation f¨ or att f¨ orb¨ attra ordningstalet f¨ or felet, och j¨ amf¨ or

med resultatet i (a). (3 p)

(a) Approximate the integral

2

Z

1

p 8 − x

3

dx

with step size h = 0.25 using Simpson’s formu-

la. (2 p)

(b) The trapezoid method has an error of order O(h

2

). Evaluate the integral above by using the trapezoid rule with step size h = 0.5 and again with step size h = 0.25. Use Richardson extra- polation to improve the order of the error, and compare the result with the one received in (a).

(3 p)

2 (3)

(3)

5 Vi betraktar differentialekvationen y

00

+ x y

0

+ x y = e

−x

(a) Givet begynnelsevillkoren y(0) = 2, y

0

(0) = 3, beskriv hur du l¨ oser begynnel- sev¨ ardesproblemet numeriskt, t.ex. med Heuns metod, f¨ or att f˚ a en god approximation av y(2). Du beh¨ over inte plocka fram det numeriska v¨ ardet av approximationen. (4 p) (b) Givet randvillkoren y(0) = 2, y(2) = 2, be- skriv hur du l¨ oser randv¨ ardesproblemet nume- riskt med finitadifferensapproximation. Struk- turen hos matrisen ska framg˚ a av l¨ osningen.

D¨ aremot beh¨ over du inte plocka fram det nu- meriska v¨ ardet av l¨ osningen. (4 p)

We consider the differential equation y

00

+ x y

0

+ x y = e

−x

(a) Granted the intitial value conditions y(0) = 2, y

0

(0) = 3, describe how you solve the initial value problem (IVP) numerically, for example with Heuns method, to get a good approxima- tion of y(2). You do not need to find the nume- rical value of the approximation. (4 p) (b) Granted the boundary value conditions y(0) = 2, y(2) = 2, describe how to solve the bounda- ry value problem numerically, using finite dif- ference approximations. The structure of the matrix should be given as a part of your so- lution. But you do not need to calculate the

numerical solution. (4 p)

3 (3)

References

Related documents

Genom föreslagen planlösning och glasning på två sidor av de flesta balkonger kan målet högst 55 dB(A) ekvivalentnivå samt högst 70 dB(A) maximalnivå utanför minst hälften

För den västra anslutningen av bibana Nyköping till Ostlänkens huvudspår finns två olika systemlös- ningar: lång och kort bibana.. Lång bibana nyttjar TGOJ-banan fram till den

Som hemarbete ges sedan figurens utskärning

Vi anser det vara av vikt att först och främst utveckla den diskussion om klassificeringen av studiens företag, som vi påbörjade i avsnittet urval i kapitel tre. Vi är väl medvetna

[r]

Lägenheten har delvis äldre inredning och ytskikt som bedöms vara i slutet av sin tekniska livslängd.. Kök har äldre inredning och

https://caravanclub.se/arsmoteshandlingar/ (Inloggning krävs och markering som förtroendevald) Guide för att ansluta till RP mötet samt regelverk för densamma finns på samma

I recommend to the Annual General Meeting of Share- holders that the income statements and balance sheets of the Parent Company and the Group be adopted, that the profit of the