Group Abstract Group Abstract

Message Boards Message Boards

1
|
2.2K Views
|
3 Replies
|
4 Total Likes
View groups...
Share
Share this post:

Verification using Green theorem

Posted 2 years ago

Compare {xy-x^2} dx+x^2ydy over the triangle bounded lines y=0,x=1,y=x and verify by Green's theorem.
How to solve this? Can't find any solution.

POSTED BY: Md Noor
3 Replies
POSTED BY: Gianluca Gorni
POSTED BY: Michael Rogers
Posted 2 years ago

Our vector field is

Clear[vf, x, y, reg, bnd];
vf = {x y - x^2, x^2 y};

Our region and its boundary are:

reg = Polygon[{{0, 0}, {1, 0}, {1, 1}}];
bnd = RegionBoundary[r]
(*Line[{{0, 0}, {1, 0}, {1, 1}, {0, 0}}]*)

Left hand side of Green theorem is line integral over boundary. We need to break boundary in separate Lines, find integrals and Total:

Total[Table[
  Integrate[
   vf . (#2 - #1) & @@seg
   , {x, y} \[Element] Line@seg]
  , {seg, Partition[First@bnd, 2, 1]}]]
(*-(1/12)*)

Right hand side of Green theorem is 2D integral of Curl over region:

Integrate[Curl[vf, {x, y}], {x, y} \[Element] reg]
  (*-(1/12)*)
POSTED BY: Denis Ivanov
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard