Drawing with trigonometric function

Click For Summary
The discussion focuses on creating equations to draw a specific image using trigonometric functions. The circle's equation is established as 1000 = sqrt(x^2+y^2), and the sine function is used to model curves, with y_1 = 300 * Sin(pi * x / 1000) proposed for the sine graph. There is a debate about whether the equations need to be expressed as functions of y or can remain in terms of x, with suggestions for incorporating negative signs and domain restrictions. Additionally, participants discuss the need for rotating axes to model lines at a 45-degree angle, recommending the use of rotation matrices for accurate representation. The conversation emphasizes the importance of defining new axes and understanding the relationship between the original and transformed coordinates.
asd1249jf

Homework Statement


Come up with a set of equations to draw the following picture:

http://img197.imageshack.us/img197/7428/equation.jpg

Homework Equations


The Attempt at a Solution



The circle is easy.

1000 = sqrt(x^2+y^2)

I can just model the equation with sines. So

y_1 = 300 * Sin(pi * x / 1000) (Assuming 300 is the highest point in the curve)

The sine graph on the y-axis can be easily tilted by switching x and y. Therefore:

x = 300 * Sin(pi*y_2 / 1000)

sin^-1 (x/300) = pi * y_2 / 1000

y_2 = (1000/pi) * sin^-1(x/300)Is my y_2 correct?

And I'm kinda stumbling on how to translate the axis in 45 degree angle to draw the sine graph like that. Any help would be appreciated.
 
Last edited by a moderator:
Physics news on Phys.org
l46kok said:
I can just model the equation with sines. So

y_1 = 300 * Sin(pi * x / 1000) (Assuming 300 is the highest point in the curve)
You should probably add a restriction for x, like -1000 ≤ x ≤ 1000.

l46kok said:
The sine graph on the y-axis can be easily tilted by switching x and y. Therefore:

x = 300 * Sin(pi*y_2 / 1000)

sin^-1 (x/300) = pi * y_2 / 1000

y_2 = (1000/pi) * sin^-1(x/300)Is my y_2 correct?
Technically, no, because x has the domain restriction -π/2 ≤ x ≤ π/2. Must all equations be y as functions of x? If not, I would just leave it in terms of x. Also, I think you need a negative in front of the R.H.S.:
x = -300 * Sin(pi*y_2 / 1000)
 
No it can be in terms of X too.

How should I modelize the lines which goes at 45 degree angle?
 
l46kok said:
The circle is easy.

1000 = sqrt(x^2+y^2)
Oops! The radius for that equation is about 31.6227766.

l46kok said:
No it can be in terms of X too.

How should I modelize the lines which goes at 45 degree angle?
Are you familiar with rotation of axes? You'll need to make use of it, I think.
 
eumyang said:
Oops! The radius for that equation is about 31.6227766.
No it's not,

l46kok said:
The circle is easy.

1000 = sqrt(x^2+y^2)

:-p
 
eumyang said:
Oops! The radius for that equation is about 31.6227766.


Are you familiar with rotation of axes? You'll need to make use of it, I think.

Yeah, translating the axes by defining a new set of axes such as x' and y', then rotating it via trigonometric function but I was struggling big time about that. Any suggestions?
 
Mentallic said:
No it's not,
:-p
Wow... that's was embarrassing. :redface: Let's try that again.
l46kok said:
The circle is easy.

1000 = sqrt(x^2+y^2)
This only gives you the upper semicircle. Define this implicitly instead:
x2+y2=10002

l46kok said:
Yeah, translating the axes by defining a new set of axes such as x' and y', then rotating it via trigonometric function but I was struggling big time about that. Any suggestions?
Do you know the equations that define x' and y' in terms of x, y, and θ? Take the equation
y' = 300 * sin(pi*x'/1000)
and replace with what x' and y' equals. Then find a new set of equations for x' and y', in terms of a different angle θ, and replace into the equation above.
 
Last edited:
Call your original function y = f(x). The easiest way to rotate is to use the rotation matrix:

R(x) = \left[ \begin{array}{cc}<br /> \cos\theta &amp; -\sin\theta\\<br /> \sin\theta &amp; \cos\theta<br /> \end{array}\right]<br /> \left[<br /> \begin{array}{c}<br /> x\\<br /> f(x)<br /> \end{array}\right]

Pick any θ you wish and plot it parametrically for x from 0 to 1000.
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 21 ·
Replies
21
Views
4K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 0 ·
Replies
0
Views
661
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K