0% found this document useful (0 votes)
11 views7 pages

Lab 3

The document outlines the submission guidelines for Experiment 3 of the MAT1011 course, focusing on Jacobian and Multiple Integrals. It includes instructions for formatting, MATLAB coding exercises, and specific tasks to evaluate functions and compute Jacobians. The document emphasizes strict adherence to submission formats and deadlines to avoid penalties in grading.

Uploaded by

mzrcfh9my5
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views7 pages

Lab 3

The document outlines the submission guidelines for Experiment 3 of the MAT1011 course, focusing on Jacobian and Multiple Integrals. It includes instructions for formatting, MATLAB coding exercises, and specific tasks to evaluate functions and compute Jacobians. The document emphasizes strict adherence to submission formats and deadlines to avoid penalties in grading.

Uploaded by

mzrcfh9my5
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

FS 2020-21

• Course: MAT1011(CFE) - ELA


• Regd. No. 20BCT0066
• Name: N.JAYANTH
• Slot: L43 + L44

Last Date of submission: 11.01.2021

Experiment 3: Jacobian and Multiple Integrals

Guidelines for Submission:

• Download this sheet, and write your answers in detail neatly without any corrections.
In case of graphical answer, create the image file of it and paste it in the answer, where
ever needed
• Write your name and do the signature on the top of every page
• Take the snap shot of the title page and the filled-in answer sheet carefully which should
be clearly visible, and make a single pdf file only
• Then upload it through the lab log-in portal.
• Do not send different image files or zipped files. Do not send the answer sheet to my
mail
• Follow the guidelines strictly. Any deviation from the above instructions will lead to the
reduction in marks

Submission Format:
(a) Aim of the Experiment
(b) Definitions, Mathematical formulas or brief concept related to the exercise
(c) Matlab Code
(d) Input
(e) Output (including the graphical representation)
Uploading of answers in any other format is not acceptable
Regd. No. 20BCT0066 Name: N.JAYANTH Sign.

R b R g(x)
Exercise 1 (3 marks). Write a MATLAB code to evaluate a f (x)
φ( x, y) d y dx and visualize
R 1 R px
the region. Use the code to evaluate 0 x2 x y d y dx.

Answers:

Aim:- To write a MATLAB code for evaluation of a function and visualization of the region.

Matlab Experiment 3 2 MAT1011


Regd. No. 20BCT0066 Name: N.JAYANTH Sign.

Answer (Continued...)

MATLAB Code:-

clc
clear
close all

syms x y

phii(x,y) = input("Enter the function in x and y: ");


f(x) = input('Enter the inner integral lower limit: ');
g(x) = input('Enter the inner integral upper limit: ');
a = input('Enter the outer integral lower limit: ');
b = input('Enter the outer integral upper limit: ');

p = int(phii,y,f,g);
q = int(p,x,a,b);
disp(['The value of the double integration of the given function within the given limits is: ',char(q)])

val = a:0.01:b;
for i = val;
plot([i,i],[0,p(i)])
hold on
end
grid on
xlabel('X-axis')
ylabel('Y-axis')
title(['Region Bounded by ',char(p),' and x-axis from x= ',char(a),' to x= ',char(b)])

Input:-

Enter the function in x and y:


x*y
Enter the inner integral lower limit:
x^2
Enter the inner integral upper limit:
x^1/2
Enter the outer integral lower limit:
0
Enter the outer integral upper limit:
1

Output:-

The value of the double integration of the given function within the given limits is -5/96.

Matlab Experiment 3 3 MAT1011


Regd. No. 20BCT0066 Name: N.JAYANTH Sign.

Answer (Continued...)

GRAPH:

Matlab Experiment 3 4 MAT1011


Regd. No. 20BCT0066 Name: N.JAYANTH Sign.

∂(u,v,w)
Exercise 2 (3 marks). Write a MATLAB code to find the Jacobian ∂(x,y,z)
, where u = f ( x, y, z),
∂(u,v,w)
v = g( x, y, z) and w = h( x, y, z). Use the code to find ∂(x,y,z)
, where u = 2 yz/ x, v = 3 zx/ y and
w = 4 x y/ z .

Answers:

Aim:- To write the MATLAB code to find the Jacobian value of the given function and
to use the code to find the derivative.

JACOBIAN 3rd ORDER :

Matlab Experiment 3 5 MAT1011


Regd. No. 20BCT0066 Name: N.JAYANTH Sign.

Answer (Continued...)

MATLAB Code:-

clc
clear
close all

syms x y z

u(x,y,z) = input('Enter the first function in x, y and z ');


v(x,y,z) = input('Enter the second function in x, y and z');
w(x,y,z) = input('Enter the third function in x, y and z');

ux(x,y,z) = diff(u,x); uy(x,y,z) = diff(u,y); uz(x,y,z) = diff(u,z);


vx(x,y,z) = diff(v,x); vy(x,y,z) = diff(v,y); vz(x,y,z) = diff(v,z);

wx(x,y,z) = diff(w,x);
wy(x,y,z) = diff(w,y);
wz(x,y,z) = diff(w,z);

d = det([ux uy uz, vx vy vz, wx wy wz ]);


disp(['The Jacobian value of the given functions is: ',char(d)])

Matlab Experiment 3 6 MAT1011


Regd. No. 20BCT0066 Name: N.JAYANTH Sign.

Answer (Continued...)

Input:-

Enter the first function =


2*y*z/x

Enter the second function =


3*z*x/y

Enter the third function =


4*x*y/z

Output:-

96
symbolic function inputs: x, y, z

Matlab Experiment 3 7 MAT1011

You might also like