Top Banner
1 Tutorial 2 Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis Applied Numerical Method for Engineers
16

1 Tutorial 2 Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis Applied Numerical Method for Engineers.

Dec 22, 2015

Download

Documents

Nathan York
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 1 Tutorial 2 Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis Applied Numerical Method for Engineers.

1

Tutorial 2

Lecture NotesDr. Rakhmad Arief SiregarUniversiti Malaysia Perlis

Applied Numerical Method for Engineers

Page 2: 1 Tutorial 2 Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis Applied Numerical Method for Engineers.

2

Quiz (60 Minutes)

What do you know about mathematical model in solving engineering problem? (10 marks)

Use zero through third order Taylor series expansions to predict f(2.5) for f(x) = ln x using a base point at x = 1. Compute the true percent relative error for each approximation. (15 marks)

Determine the real root of f(x)= 5x3-5x2+6x-2 using bisection method. Employ initial guesses of xl = 0 and xu = 1. iterate until the estimated error a falls below a level of s = 15% (20 marks)

Page 3: 1 Tutorial 2 Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis Applied Numerical Method for Engineers.

3

Quiz (60 Minutes)

What do you know about mathematical model in solving engineering problem? (10 marks)

Use zero through third order Taylor series expansions to predict f(2.5) for f(x) = ln x using a base point at x = 1. Compute the true percent relative error for each approximation. (15 marks)

Determine the real root of f(x)= 5x3-5x2+6x-2 using bisection method. Employ initial guesses of xl = 0 and xu = 1. iterate until the estimated error a falls below a level of s = 15% (20 marks)

Page 4: 1 Tutorial 2 Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis Applied Numerical Method for Engineers.

4

Solution 2

True value:f(2.5) = ln(2.5) = 0.916291...

Page 5: 1 Tutorial 2 Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis Applied Numerical Method for Engineers.

5

Solution 1

True value:f(2.5) = ln(2.5) = 0.916291...

Page 6: 1 Tutorial 2 Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis Applied Numerical Method for Engineers.

6

Solution 1

The process seems to be diverging suggesting that a smaller step would be required for convergence

Page 7: 1 Tutorial 2 Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis Applied Numerical Method for Engineers.

7

Quiz (60 Minutes)

What do you know about mathematical model in solving engineering problem? (10 marks)

Use zero through third order Taylor series expansions to predict f(2.5) for f(x) = ln x using a base point at x = 1. Compute the true percent relative error for each approximation. (15 marks)

Determine the real root of f(x)= 5x3-5x2+6x-2 using bisection method. Employ initial guesses of xl = 0 and xu = 1. iterate until the estimated error a falls below a level of s = 15% (20 marks)

Page 8: 1 Tutorial 2 Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis Applied Numerical Method for Engineers.

8

Solution 3

Graphically

-8

-4

0

4

8

-1 0 1

Page 9: 1 Tutorial 2 Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis Applied Numerical Method for Engineers.

9

Solution 3

First iteration 563-583

Page 10: 1 Tutorial 2 Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis Applied Numerical Method for Engineers.

10

Solution 3

First iteration The process can be repeated until the approximate error falls

below 10%. As summarized below, this occurs after 5 iterations yielding a root estimate of 0.40625.

Page 11: 1 Tutorial 2 Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis Applied Numerical Method for Engineers.

11

Problems 5.1

Solution A plot indicates that a single real root occurs at

about x = 0.58

-8

-4

0

4

8

-5 0 5 10

Page 12: 1 Tutorial 2 Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis Applied Numerical Method for Engineers.

12

Solution 5.1

Using quadratic formula

First iteration:

40512.6

40512.1

)5.0(2

)5.4)(5.0(4)5.2(5.2 2

x

Page 13: 1 Tutorial 2 Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis Applied Numerical Method for Engineers.

13

Solution 5.1

Second iteration:

Page 14: 1 Tutorial 2 Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis Applied Numerical Method for Engineers.

14

Solution 5.1

Third iteration:

Page 15: 1 Tutorial 2 Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis Applied Numerical Method for Engineers.

15

Solution 5.4

Solve for the reactions:

Page 16: 1 Tutorial 2 Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis Applied Numerical Method for Engineers.

16

Solution 5.4

A plot of these equations can be generated

-500

0

500

1000

0 4 8 12

0<x<3 3<x<6 6<x<10 10<x<12