University of Technology: Report Matlab Calculus 1
University of Technology: Report Matlab Calculus 1
University of Technology
·▪•🙢🙞🕮🙜🙠•▪·
REPORT MATLAB
CALCULUS 1
CONTENTS
❖ Theoretical basic.
❖ Handwriting solution.
THEORETICAL BASIC.
2. Derivative .
limit.
3. Taylor.
-
- We can see that the polynomial follow the function very accurately, especially
around x = 0.
- In fact, the error of the above polynomial is no more than (|x|^9)/9!. In
particular, for −1 < x < 1, the error is less than 0.000003.
4. First order differential equations.
often known or assumed between some unknown quantity and its rate
particular.
-
6
HANDWRITING SOLUTION.
1. Problem 1.
7
2. Problem 2.
8
3. Problem 3.
4. Problem 4.
9
10
5. Problem 5
11
6. Problem 6.
7. Problem 7.
12
8. Problem 8.
13
9. Problem 9
14
● Result.
- we have three value of x (8, 22, 14). But x > 10. So we accpet two values of x
(22 and 14).
17
2. Problem 2.
● Code and explanation.
- Find the intersection of f(x) and g(x).
- Input the equation f = 5.^x - x.^5 to find the intersection.
- Using code solve(f) to solve the equation.
- Using code vpa(ans) to show answers in decimal numbers.
- We have one intersection point at x = 1.7 .
- All overall, we can see the function g(x) grows more rapidly when x is large.
● Result.
- We have two intersection points at x = 1.7 and x = 5 .
- All overall, we can see the function g(x) grows more rapidly when x is large.
21
3. Problem 3.
● Code and explanation.
- first, we sut up t = x^(1/3). At x = 0, t =0.
- Input the equation f
- Using code f1 = diff(f,1) to calculate the first order derivative of f.
- Using code subs(f1,0) to calculate the value of the first order derivative of f at t = 0.
● Result.
- The first order derivative of f at t = 0 is 0.
22
4. Problem 4.
● Code and explanation.
- Using code x = 0:1/100:1 to get 100 points in the interval from 0 to 1.
- input the equation f.
- using code plot(x,y) to graph of the function y against the variable x.
- using code title(‘Graph of the function y’) to name the graph.
- using code xlable(‘x’) and ylabel(‘y’) to name horizontal and vertical axis.
● Results.
23
5. Problem 5.
● Code and explanation.
- input the equation f.
- using code taylor(f,x,1,’Order’,2) to write down the Taylor polynomial of degree 2 for
f at x = 1.
● Results.
- the Taylor polynomial of degree 2 for f at x = 1 is x-2 .
24
6. Problem 6.
● Code and explanation.
- input the equation f.
- using code integral(fun,1,Inf) to calculate the integral of f from 1 to inf.
● Results.
- the integral of f from 1 to inf is 1,4437.
25
7. Problem 7.
● Code and explanation.
- input the equation f.
- using code int(y,1,4) to calculate the arc length of the portion of the curve.
- using code vpa(ans) to show the decimal numbers of the answer.
● Results.
- the arc length of the portion of the curve is 6,699.
26
8. Problem 8.
● Code and explanation.
- using code ode = diff(y) == (-3.*x-3.*y+1)/(2.*x+2.*y) to input the first oder
differential equations of y.
- using code cond = y(0) == 2 to input the condition y = 2 at x = 0.
- using code ySol(x) = dsolve(ode,cond) to solve the first order differential equation of
y at condition y(0)=2.
● Results.
27
9. Problem 9.
● Code and explanation.
- using code ode = diff(y,x,2)-4.*diff(y,x)+3.*y == sin(2.*x) to input the second order
differential equation.
- using code ySol(x) = dsolve(ode) to solve the equation.
● Results.
28
● Results.