Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Math242 hw4

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

MATH-242

(Spring2024)
Homework 4

Due date: 1 April 2024

1 Instructions
1. Use this assignment format to be uploaded on MOODLE.
2. Show all steps of your work clearly.
3. No partial credit for unjustified answers.

4. Extra pages of work can be attached before uploading.


5. After the due date 20% marks will be deducted.
6. If you are going to use MATLAB for the first time, please get acquainted
with basic commands and codes from the tutorial provided at https://www.mathworks.com
or from any other suitable site. For questions email mumirza@ee.bilkent.edu.tr

1
Question 1. (25 points)
1 1
Let f (u, v) = uv 2 + + , where u(x, y) = x2 + 2xy y 2 and v(x, y) =
u v
@F @F
sin(x) + cos(y). Evaluate and , where F (x, y) = f (u(x, y), v(x, y)).
@x @y

Question 2. (25 points)


Obtain the first three terms in the Taylor Series expansion of the following
functions about the given point.

1. e2x , a=3
1
2. sin , a=1
x
1
3. , a= 1
1 + x2

Question 3. (25 points)


i) Expand the following functions about the given points up to and including
the second order terms.

1. ex+y , (a, b) = (1, 1)


1
2. , (a, b) = (2, 2)
2xy

ii) If only the linear terms are used to calculate the value of the function any-
where inside the rectangle 1  x  1, 1  y  3, then find a bound on the
error of approximation for each function in 1 and 2.

Question 4. (25 points)


Solve the following di↵erential equations using the fourth order Runge-Kutta
method with MATLAB and plot the output.

1. y 0 = 2y 8x + 4, y(0) = 0
2. y 0 = y + 5e 4x
, y(0) = 1

2
-F-Of .EU +Efe
e

-(a )(2x
+ 2y) +
(uz 2)(0s(X) Plug U(X , y) x+
2xy y- andw(X y) stn(x) + Cosy
- -
= =
, ,
-

(s!n(x) cosly))2
( xy542)(2x 2y)
(2(X 2xy yz)(s!n(x) cosly)
(
MoseyCos(x)
= + -
+ + + -
+

EF-Ef .Eu +E e
en

-(2 !)(2x 2y)


Ruz- /s!n(y) Plug U(X , y) x+
2xy y- and w(X
y) stn(x) + Cosy
- -
-
= =
, ,
-

(s!n(x) Cosly))2
-( xy542)(2x 2y)
(2(x 2xy y2)(s!n(x) cosly)
cos!ys!ncy)
=
+ -
-
+ -
+
-

-
f(x) f(a) f'(al(x a) al
+
fa(x
=
+
-
-

2X

1) f(x) = 2
1 f(3) = et

f'(X) = 222*, f'(3) = 220


2X
f"(X) = 42 f "(3) = 4et
6
f(x) =
e + 22(x -
3) + 226(X 3)2 -

=
e + 226(X 3)(x 2) - -

2) f(x) = s!n('/x) f(1) = s!n(1) f "(1) = 2005 11) -


s!n(1)

f(x) =

-cos((X) , f'(l) = -
(0s(1)

f"(x) =

2 cos(YX) +
(2)fs!nk(x) (2) EcosKy)-ys!n =

f(x) = s!n(1) Cos(2)(X 1) + (2(0s(1)


s!n(2)
- - -

3) f(x) f( 1) f'(1) f" )


=

x
=

1 , =

1 ,
=

f!x)
=
f!(X) = ( 2(1 + x -(2 -
(2x)2( + x2)(2x) 1

Tx2)4

f(x) 1) +
1 4(x 1(x
= + +
+
!
Y
ex
+

1) fx =
fy fxx fyy
=
= =
fxy =

fx(1 1)
,
-
=
fy(1 ,
-
1) fxx(1 1)
=
,
-
=
fyy(1 ,
-
1) =
fxy(1 ,
-
1) =
1

L(X, y) = f(1 ,
- 1) + fx(1 ,
-

1)(X 1) -
+
fy(1 1)(y ,
-
+ 1)
= 1 + (X 1)-
+
(y + 1) =
1 + x + Y

Q(x , y) = ((X , y) + fxx(1 ,


1)((A)) + fyy(1 ,
-

1) (2 + fxy(1 ,
-
1)(X- )(y 1)+

+
1 x+ Y x+1 1 Y
Xy +
= +
+ +
+ + X -

A+N 1+
1+
2 * 4 y xy 4+ 1 1 + x + 4 + xY
+
=
+ -
+
+ + + X -
=

21 fx (2 , 2) f (2 2) 1
24, =
fx =
, =

23

fy
fy
T
12, 2)
=
=
1

( 2)
(24
fxx fxx (2 , 2)
=
-

=
,

fyy
(2x)(-2)
= , fyy12 21 ,

fxy 2 2)(2xy)2 - 2y)2(2x4)(2x)


=
-

(2xY) Y

((X , y) = f (2 , 2) + fx(2 2)(X 2) ,


- +
fy(2 2)(y ,
-
2)

5
(X 2) (y 2)
= -T =B-
= -

-
-

a(x, y) = ((X, y) + fxx (2 ,


2)(2)2 + fy y (2 ,
2)(2)2 fxy(2 2)(X 2)(y 2)
+ ,
- -

(2)
) K
- (
- +(X 2)()
= -

+ + +
!!
1((X y) ,
= 1 + x + y

ex + Y
fx =
fy =

3+ H +"

(R) =
(X Ke
-
+
(yH)e = 3 =
1 and n 3 =
, X = 1 and y 3
=

1R11 = 0e + 4e" =
4e4

2)((x y) ,
=

- -

**
Ex =
-

+y
z!yz
-
=

1RV = (x 2)
-

(n) + (3-2) (2) = x=

3 =
-

1
2 and
and
y
n
=

= 3
3

1-3/2) +
(9) =

t +
T =

=
Quest!on 4:

You might also like