A function describing a tilted tube

  • Context: Graduate 
  • Thread starter Thread starter Niles
  • Start date Start date
  • Tags Tags
    Function Tube
Click For Summary

Discussion Overview

The discussion revolves around constructing a function that describes a tilted tube based on a cylindrical symmetric function. Participants explore how to modify the function to achieve a contour plot that shifts with the variable y, and they consider the implications of rotating the function around the y-axis and slanting it in both x and z dimensions.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • One participant presents a function f(x, y, z) = exp(-x^2 - z^2) and seeks to modify it so that the center of the contour plot shifts linearly with y.
  • Another participant suggests that the function can be expressed in terms of r, where r is the distance from the y-axis, and proposes a modified form for the slanted case.
  • A participant discusses the need for a rotation matrix to rotate the function around the y-axis, proposing a new function form that incorporates this rotation.
  • Some participants express uncertainty about the correctness of the rotation approach, noting that the rotation should be along the line ky = x rather than the y-axis.
  • There is a proposal to extend the function to allow independent slanting in both x and z dimensions, leading to a new function form that reflects this independence.
  • One participant expresses interest in generalizing the results to ellipses and mentions the intention to create a new thread for further exploration.

Areas of Agreement / Disagreement

Participants generally agree on the potential for modifying the function to achieve the desired characteristics, but there is uncertainty regarding the specifics of the rotation and slanting processes. Multiple competing views remain on the correct approach to these modifications.

Contextual Notes

Participants acknowledge the complexity of the transformations and the need for further exploration of the implications of slanting and rotating the function. There are unresolved details regarding the mathematical steps involved in these transformations.

Niles
Messages
1,834
Reaction score
0
Hi

I have a function, which is cylindrical symmetric given by
[tex] f(x, y, z) = \exp(-x^2-z^2)[/tex]
For a given [itex]y[/itex], the function [itex]\exp(-x^2-z^2) = c[/itex] traces out a circle (where c is a constant). A contourplot of [itex]f(x, 0, z)[/itex] is attached.

However, this is for [itex]y=0[/itex] (currently, I get the same plot for an arbitrary value of y). I am interested in constructing a function, which is identical to [itex]f[/itex], but where the center of the above circle increases linearly with y. In other words, at [itex]y=y'[/itex] I want my function to have the same contour plot as attached, but its center should be at [itex]y=y'[/itex].

Is it possible to construct such a function? I guess this is merely a tube, which is tilted.
 

Attachments

  • cplot.jpg
    cplot.jpg
    15.4 KB · Views: 496
Mathematics news on Phys.org
Hi Niles! :smile:

Essentially, this is a function of r, where in the simple case r is the distance from the y-axis,

ie r2 = x2 + z2.

In the slanted case, r is the distance (parallel to the x-z-plane) from (ky',y',0),

so r2 = (x - ky')2 + z2. :wink:
 
Thanks tiny-tim, that is a good explanation.
 
If I want to rotate this function by an angle α around the y-axis (for a given slope k), then I need to invoke the rotation matrix. So we now have
[tex] f(x, y, z) = \exp(-(x-ky)^2)\exp(-z^2)[/tex]
and in order to rotate it I would use
[tex] f(x\cos(\alpha) - z\sin(\alpha), y, x\sin(\alpha) + z\cos(\alpha))[/tex]
Is this correct?
 
Last edited:
Hi Niles! :smile:

Yes, that looks ok.
 
tiny-tim said:
Hi Niles! :smile:

Yes, that looks ok.
Thanks. However, I think I am not 100% correct - simply because we're not rotating the function along the [itex]y[/itex]-axis (which is what I suggested above), but along the line [itex]ky=x[/itex]. I'll have to work on this a little more... I can let you know how it turns out.

By the way, can I slant [itex]f[/itex] independenty in both [itex]x[/itex] and [itex]z[/itex]? So if I want a gradient in both of these dimensions, I am allowed to make the trivial extension
[tex] f(x, y, z) = \exp(-(x-k'y)^2)\exp(-(z-k''z)^2)[/tex]
I believe so, because the two dimensions are independent of each other.
 
Niles said:
By the way, can I slant [itex]f[/itex] independenty in both [itex]x[/itex] and [itex]z[/itex]? So if I want a gradient in both of these dimensions, I am allowed to make the trivial extension
[tex] f(x, y, z) = \exp(-(x-k'y)^2)\exp(-(z-k''z)^2)[/tex]
I believe so, because the two dimensions are independent of each other.

let's see …

that makes r the distance from (x,y,z) to (k'y,y,k''z),

so yes, that would be from the axis x/k' = z'k'' = y, but slanted so as to be parallel to the x-z plane :smile:
 
tiny-tim said:
let's see …

that makes r the distance from (x,y,z) to (k'y,y,k''z),

so yes, that would be from the axis x/k' = z'k'' = y, but slanted so as to be parallel to the x-z plane :smile:

Thanks, that's also what I thought.. I'm interested in seeing how to generalize this result to ellipses. I'll best create a new thread in order to keep things organized, but I will refer to this thread.
 
Last edited:

Similar threads

  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
Replies
3
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K