Sign in to follow this  
Jotaf

Simple Calculus problem: integrating over a line segment in 3D

Recommended Posts

I probably should know this, but somehow I can't be sure of the answer to this problem. Surely it will be considered trivial by some of you in this forum :) I have a function f(x,y,z) in 3D space - the domain is R^3, and it returns a value in R. I need to find out how to integrate this function over a line segment, defined by 2 points. If you can just help me with this, I'll deal with the rest myself (actually integrating the function I have), so don't worry about that! I just want some pointers on how someone would go about doing this integration with any function. My hypothetical solution might be terribly wrong, so I won't post it for now, just in case someone gives me a quick reply. Thanks in advance!

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
I don't really know much about this stuff but I think you can represent your line as a parametric function and then express the value of the line in the 3d function as a composite function, and then integrate that. I think that would work but I really haven't done this stuff so...

Share this post


Link to post
Share on other sites
f(x,y,z) is your function
a and b are the points.

the line segment between a and b may be parametrized as s(t) = (1-t)a + tb, t in [0,1].

So, to integrate you must do:

I(f(s(t))*norm(ds/dt)*dt) = I(f(s(t))*norm(a-b)dt), from 0 to 1.

I is the integrate signal.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this