Sei sulla pagina 1di 5

# A.

Exercises chapter 3

## Exercise 3.1: Removing variables

Delete all variables from the workspace.

## Exercise 3.2: Numerical determination of an integral

In MATLAB calculate the following integral:
Z

3
1

(cos(x 1) +

1
)dx
x

(A.8)

## Exercise 3.3: Symbolic determination of extrema

Determine the extrema of the function
f (x) = 2xex sin(x)

(A.9)

## on the interval [0,].

The boundaries of this interval are not taken into account in this exercise.

Exercise 3.4
Plot the following functions on the interval [0, 2]
a) f (x) =

arctan(x)
1+x2

b) f (x) =

1+sin(x)
(1+cos(x))2

## If necessary, symbolise the symbols needed with the command syms.

Exercise 3.5
Enter the following exercises in order and give an explanation for the output.
a) >> x^1/3
b) >> x^(1/3)

94

Exercise 3.6
In MATLAB substitute in the following expression

x2 y 3 + sin(xy)

(A.10)

## the variables x and y for 2 and 3 respectively.

Exercise 3.7
Determine by means of MATLAB the indefinite integral
1
dx
1 + x4

(A.11)

## Show (use MATLAB) that this answer is correct.

HINT: Differentiate the result. Apply the MATLAB function numden on the difference between the result and 1/(1 + x4 ).

Exercise 3.8
In MATLAB determine the following integrals:
a)
b)
c)
d)

x
0 2 sin(x) dx

R
0

R1
0

R4
0

e2x cos(3x)dx
10 log(x)dx

## Call up the numerical values of the result.

Calculate this integral by dividing the integration-interval in two parts and get rid of the
absolute values.
Do the results correspond with each other?

Exercise 3.9
In MATLAB determine the following two integrals and interpret the results.
a)
b)

R2
0

sin(t2 ) 1 + t3 dt
2

et dt

95

Exercise 3.10
In MATLAB plot the function f (x) = 3 + sin(x) on the interval [1, 2].
Make sure that the origin (0,0) is visible.

Exercise 3.11
Look at the result of the following MATLAB commands
>> syms x
>> ezplot(asin(sqrt(x)),[-5,5])
Why is the graph only given on the interval 0 x 1?
Make a better drawing of the graph in MATLAB.

Exercise 3.12
After entering the command >> syms x n, calculate the integral
Z

xn dx

(A.12)

## a) For which n is this answer not correct?

b) Ascribe the value of question a) to n and calculate the integral again. Is the answer
correct this time?

Exercise 3.13
Explain the result of the command >> sqrt(x^2)

Exercise 3.14
log(1+x)+ x

## Consider the function f (x) = (1+x)2 2 .

Enter the following MATLAB statements:
>> syms x y
>> y = (log(1+x)+x^2/2)/(1+x)^2
a) Calculate f (x).
b) Calculate f (1).
c) Plot the graphs of f (x) and f (x) in a figure.
96

Exercise 3.15
The following function is given f (x) = e2x 5ex + 6.
a) Plot the graph of f on a suited interval.
b) Numerically determine the location of the minimum of f by using fminbnd.
c) Calculate the function value and the value of the derivative in the previously obtained
point.
d) How many zeroes does f have?

Exercise 3.16
p
Consider the function f (x) = x 2 + 8 3 (x 1)2
a) Plot the graph of f (first by hand).
b) Determine the zeroes and extrema of f .
c) Show that you have found all zeroes and extrema.

Exercise 3.17
Consider the function f (x) = xsin(x)
a) Determine the extrema of the function f that lie inside the interval [0, 2].
b) Plot the graphs of f (x) and sin(x), for 0 < x < 2, in a figure.
c) Explain the location of the extrema of f in comparison with those of the sine function.

Exercise 3.18
Consider the equation

xsin( x1 ) = 41 ,

x>0

## x sin( x1 ) and the constant

1
4

in one figure.

b) Why does the equation not have any solutions for x close to 0.
c) How many solutions do there exist?
d) Approach at least one solution.

Exercise 3.19
The equation ex = ax(1 x) ,with an unknown x and a positive value for a, has exactly one
solution between 0 and 1. Give an estimation of this value for a by means of graphs.
REMARK: The number a can be calculated exactly.
97

Exercise 3.20
2

## a) Determine the location x0 of the maximum.

b) Calculate f (x0 )

Exercise 3.21
In MATLAB determine the 10th derivative of the function f , i.e. f (10) (x), x 6= 1.
f (x) = sin( x

2 +2x3

x1

98