0% found this document useful (0 votes)
15 views16 pages

EEE Math (ALM)

Uploaded by

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

EEE Math (ALM)

Uploaded by

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

SRI RAMAKRISHNA ENGINEERING COLLEGE

[Educational Service: SNR Sons Charitable Trust]


[Autonomous Institution, Reaccredited by NAAC with
‘A+’

[Approved by AICTE and Permanently Affiliated to Anna University,


Chennai]
[ISO 9001:2015 Certified and all eligible programs Accredited by NBA]
Vattamalaipalayam, N.G.G.O. Colony Post, Coimbatore – 641 022.

DEPARTMENT OF MATHEMATICS

ACTIVE LEARNING METHODOLOGY

FIRST YEAR B.TECH AI&DS - II SEM


Academic Year : 2023 – 2024

20MA208 – LINEAR ALGEBRA AND VECTOR CALCULUS

COURSE INSTRUCTOR :
Dr.N.Gopalakrishanan, A P(Sr.G)/Maths
SRI RAMAKRISHNA ENGINEERING COLLEGE
[Educational Service: SNR Sons Charitable Trust]
[Autonomous Institution, Reaccredited by NAAC with ‘A+’
Grade]
[Approved by AICTE and Permanently Affiliated to Anna University,
Chennai] [ISO 9001:2015 Certified and all eligible programmes Accredited by
NBA] Vattamalaipalayam, N.G.G.O. Colony Post, Coimbatore – 641 022.

P SO P
ANA R LVING R
LY O PROBLE E TOT TOT
S. REGIST NAME OF THE B S
ER STUDENT ZI M USING
N L E
NUMBE NG MATLAB AL A
O E N
. R TH /R/SCILA
E M B T
A (20 L
PR C/
S T
OB PYTHO
O I ) (5)
LE N (5)
L O
M N
(5) V
I (
N 5
G )
MA
NU
ALL
Y
(5)
1 7181231100 AKSHAYA LAKSHMI
7 S
2 7181231101 HARSHITHA S
7
KAVISH KUMAR S
3 7181231102
7
4 7181230110 NANDHANA
37 YAZHIINI R
5 7181231104 RAKSHAN R B
7
6 7181230110 SREERAJ P P

57
SIGNATURE OF STAFF IN-CHARGE

Dr.N.Gopalakrishanan, A P(Sr.G)/Maths
INTRODUCTION:

Integration and vector calculus are fundamental concepts in


mathematics, indispensable in various fields like physics,
engineering, and economics. Integration involves finding the
area under curves and plays a crucial role in determining
quantities such as displacement, work, and probability. Vector
calculus deals with functions that have both magnitude and
direction, essential for understanding concepts like velocity,
acceleration, and force.
Together, integration and vector calculus provide powerful
tools for analyzing and solving real-world problems, making
them essential topics for students and professionals alike.
MATLAB :
MATLAB provides built-in integralor quad
functions like
and the vector calculus to perform numerical integration and the
vector operation. These functions allow you to input the
function you want to integrate and the limits of integration.
MATLAB then computes the integral numerically using
techniques like Simpson's rule or Gauss- Kronrod quadrature..

For example, to integrate the function 𝑓(𝑓)=𝑓2f(x)=x2 from


𝑓=0x=0 to 𝑓=2x=2, you integra
would use the
integral(@(x) x.^2, 0, 2)
function:
QUESTIONS FOR SOLVING
1.A current-carrying wire has a non-uniform cross-sectional area described by the function
A(x, y) x2 2xy y2 for 0 surface
x1 area of and 0 y 1 . Using vector integration, calculate
the wire. the total
MATLAB CODE TO SOLVE THE ABOVE PROBLEM

% Define the function for the


area A = @(x, y) x.^2 + 2.*x.*y +
y.^2;

% Set the limits for x and


y x_limit = [0, 1];
y_limit = [0, 1];

% Calculate the double integral for the


surface area
total_surface_area = integral2(A, x_limit(1),
x_limit(2), y_limit(1), y_limit(2));

% Display the result

disp('Total Surface Area of the


Wire:'); disp(total_surface_area);
disp("which is equal to the the value of 7/6”)
2. An electric field in a dielectric material is given by E(x,y,z) Calculate the electric
flux Through the surface bounded by the planes x=0,x=2,y=0,y=3, and z=0 when z=4.
MATLAB CODE TO SOLVE THE ABOVE PROBLEM

%define the limits of integration


X_min =0;x_max=2;
Y_min =0;y_max=3;
Z_min =0;z_max=4;

%define step sizes


dx=0.1;dy=0.1;dz=0.1;

% Initialize flux
flux=0;

%perform numerical
integration for
x=x_min:dx:x_max
for y=y_min:dy:y_max
for z=z_min:dz:z_max
flux=flux+dot(electric_field(x,y,z),[0,0,1])*dx*dy*dz;
end
end
end

disp(flux);
15. An electric field in a dielectric material is given by
E(x, y, z) = (3xy² + 2xz)i + (x2 + 3yz²) j + (2xy + yz²)k V/m. determine the magnitude of the electric field at the
Point (1,1,1)
MATLABCODETOSOLVETHEABOVEPROBLEM

% Given electric field vector


equation Ex = (x, y, z) 3*x*y^2 +
2*x*z;
Ey = (x, y, z) x^2 + 3*y*z^2;
Ez = (x, y, z) 2*x*y + y*z^2;

% Point (1, 1, 1)
x = 1;
y = 1;
z = 1;

% Calculate the components of the electric field vector


Ex_val = Ex(x, y, z);
Ey_val = Ey(x, y, z);
Ez_val = Ez(x, y, z);

% Calculate the magnitude of the electric field vector


E_mag = sqrt(Ex_val^2 + Ey_val^2 + Ez_val^2);

% Display the result


disp(['The magnitude of the electric field at (1, 1, 1) is:’num2str(E_mag)’V/m’]);
4. A conducting wire is shaped like a helix described by the vector function
r(t) = a cos (t)i+a sin(t)j+ bt k where 0≤t≤2π. Calculate the total surface area of the wire
using vector integration.
CODING:
b = 1;\% Adjust the value of b as needed

tlinspace(0, 2*pi, 1000); % Divide the range of t into intervals


x = cos(t)

v =

sin(t) z

= bt

% Calculate the derivative of r(t)

dxdt= - sin(t):

dvdt= cos(t);

dzdtbones(size(t)); % Derivative of bat is b


magnitude=sqrt(dxdt.^ ^ 2 +dydt.^ ^ 2+dzdt.^ ^ 2);

% Integrate |r' * (t)| over the range of t

total_surface_area= trapz(t, magnitude);

% Plot the helix-shaped wire

figure; xlabel('x'); ylabel('y');

zlabel('z'); plot3(x, y, z, b' 'LineWidth',

2); title('Helix-shaped Wire');

% Add tangent vectors to the plot

hold on;

quiver3(x, y, z dxdt, dydt, dzdt, 'r');

hold off

disp(['Total surface area of the wire: ', num2str(total_surface_area)])


CONCLUSION:
In conclusion, integration and vector calculus are indispensable
tools in mathematics and its applications. Integration enables
us to find areas, volumes, and accumulated quantities, while
vector calculus provides insights into the behavior of vector
fields and their properties. Together, they offer powerful
methods for solving real-world problems across various fields,
making them essential pillars of mathematical analysis and
problem-solving.
REFERENCE:

1. https://nptel.ac.in/courses/111107108/

2. https://nptel.ac.in/courses/111105123/

3. https://nptel.ac.in/courses/111107112/

4. https://matlab.mathworks.com/

TEXTBOOKS

1.Erwin Kreyszig,’Advance Engineering


Mathematics’,10th Edition,wiley
India,2016.

You might also like