1.
Write and execute the MATLAB code to find the gradient vector of f(x,y)=xe^(x^2-y^2) with respect to
vector [x,y] and also plot the contour lines and vectors.
2. Write and execute the MATLAB code to show that the divergence of the curl of the vector field V=(x, 2
y^2, 3 z^3) is 0.
3. Write and execute the MATLAB code to Compute the area of the circle lying in the first quadrant with
radius a.
4. Write and execute the MATLAB code to .
5. Write and execute the MATLAB code to find the dimension a n d b a s i s of subspace spanned by the
vectors (1, 2, 1, -1), (3,1,0,5) and (0,5,3,-8).
6. Write and execute the MATLAB code to verify the rank-nullity theorem for the linear transformation T:
R3 → R3 defined by T (x, y, z) = (x + 4y + 7z, 2x + 5y + 8z, 3x + 6y + 9z).
7. Write and execute the MATLAB code to find Compute the inner product of the vectors [2 -1 3] and [5
4 -2].
8. Write and execute the MATLAB code to find the root of y=cos(x) near 1 with tolerance 0.0001. Carry
out four iterations by Newton- Raphson method.
9. Write and execute the MATLAB code to find the root of y=sin(x)+cos(x)+exp(x)-8 at 2 and 3 with
tolerable error 0.00001 by Regula-Falsi method.
10. Write and execute the MATLAB code that uses Newton's forward interpolation formula and find the
approximate value of f (9) given the following data points (x,y) = (8,10), (10,19), (12,32.5), (14,54),
(16,89.5) & (18,154).
11. Write and execute the MATLAB code that uses Newton's backward interpolation formula and find the
approximate value of f(17) given the following data points (x,y) = (8,10), (10,19), (12,32.5), (14,54),
(16,89.5) & (18,154).
1
12. Write and execute the MATLAB code to evaluate ∫0 √(sin(x) + cos(x)) dx with 6 sub intervals by using
Simpson’s 1/3rd Rule.
𝜋⁄2
13. Write and execute the MATLAB code to evaluate ∫0 √sin (x) dx with 6 subintervals by using
Simpson’s 3/8th Rule.
𝑑𝑦
14. Write and execute the MATLAB code to solve = 3𝑥 + 𝑦/2, 𝑦(0) = 1 by Runge Kutta method for
𝑑𝑥
𝑦(0.5) taking h=0.1. Display output for each value of x upto 0.5.
𝑑𝑦
15. Write and execute the MATLAB code to solve 𝑑𝑥 = 𝑙𝑜𝑔𝑒 (𝑥 + 𝑦), 𝑦(1) = 2 by Modified Euler’s method
for 𝑦(1.4)taking h=0.1. Display output for each value of x upto 1.4. Perform 4 modifications at every
step.