When does a real solution exist for this system of trigonometric equations?

sodemus
Messages
28
Reaction score
0
So, my question is really simple. What are the requirements for a1, a2, C1, C2 for a real solution to exist for the following system of equations?

sin(theta1) + a1*sin(theta2) = C1
cos(theta1) + a2*cos(theta2) = C2

If it would be helpful, I'm not interested in the solution, necessarily (could do that with numerical methods), just interested for what parameter configurations it exists over real numbers.

I have tried assuming a complex solution and then imposing conditions on that but it hasn't really taken me anywhere...
 
Last edited:
Mathematics news on Phys.org
Hi sodemus! :smile:

(have a theta: θ and try using the X2 tag just above the Reply box :wink:)

Put the θ1s on the left, then get rid of them by squaring and adding …

then use standard trigonometric identities to get a quadratic equation in sin2θ2. :wink:
 
Hey Tim, thanks for the reply!
Well, I knew that would be a possibility, I just didn't want to go there since it doesn't really yield a quadratic equation. As far as I can see it does actually give me a intrinsically 4th order equation, doesn't it? And a pretty ugly looking one as well.

I was thinking that through assuming a real solution one could see the parametric conditions and get away with solving a lesser order equation but without actually solving the original equation, but that might not be possible.

Edit: sorry, did I miss an obvious factorizing!?
 
Last edited:
Yes, you're right, it is a 4th order equation in sinθ2

I can't see any way of getting round that :redface:

(if there was one, it would be an easy solution to general 4th order equations!).
 
I'm not mathematician, but I suspect there is no easy solution. If you multiply the first equation by imaginary i and add it to the second, you realize that this problem is equivalent to the task of finding an intersection between an ellipse and a displaced circle. Maybe that helps? I'll think about that :)
 
I don't think it's really an ellipse, and certainly not for all parameter values (I might be wrong though). Look at the where a1+1>C1 for example. Anyway, I agree with you, I think it takes at least two steps of calculations and decisions (pretty simple calculations, but kind of messy in the original parameter space) to decide whether the solution is real or complex. I hoped for one closed form expression. Oh, well, math can't be beautiful everywhere. :)

Thanks for the input in any case! I appreciate it!

Edit: d-mn, it looked like such an easy problem at first glance! Just two freakin' sines and cosines!
 
Last edited:
I think the following (almost) solves the problem.

If you write
a_1\sin\theta_2=C_1-\sin\theta_1
a_2\cos\theta_2=C_2-\cos\theta_1
you see that the problem is equivalent to finding if there is an intersection between an ellipse at the origin with axis a1 and a2 and a circle of unit radius at (C2,C1).

They just start to have intersections, when both of them touch (at only one point). For this case the tangents have an equal gradient
<br /> \frac{a_1}{a_2}\tan\theta_2=\tan\theta_1=g<br />
Looking at the two equations you can further derive
<br /> g=\frac{C_1}{C_2}<br />

Now you can rearrange
<br /> \frac{C_1}{C_2}=\frac{a_1}{a_2}\tan\theta_2=\tan\theta_1<br />
for both theta1 and theta2 and put it back into the second equation (remember \tan^2\alpha+1=1/\cos^2\alpha).

You finally get
<br /> \pm\frac{1}{\sqrt{C_1^2+C_2^2}}\pm\frac{1}{\sqrt{\frac{C_1^2}{a_1^2}+\frac{C_2^2}{a_2^2}}}=1<br />
which is the boundary of the 4-dimensional solution space you are looking for. The tricky part is now to think which direction (slightly smaller/bigger variables) is "inside" that region.

Good luck :)
 
Last edited:
Thank you so much Gerenuk! It is exactly what I was looking for! I think solutions exist when the expression lies between 0 and 1. Would that make sense? Anyway, I apologize for my doubt about the circles, I didn't think in the right coordinates.

Again,
Thanks!

Edit: Hah! Quite an interesting equation by the way...
 
Thanks for question btw. :smile:

That makes me look up inversion in geometry. The final equation suspiciously looks like a triangle inequality in a transformed space.

Let me know if you somehow check this equation visually/numerically.
 
  • #10
Gerenuk said:
...
They just start to have intersections, when both of them touch (at only one point). For this case the tangents have an equal gradient

...

Unfortunatly at the point of intersection the graphs cross, therefore the slopes CANNOT be equal.
 
  • #11
Integral said:
Unfortunatly at the point of intersection the graphs cross, therefore the slopes CANNOT be equal.
Please read all of the post. They *touch* where they *start* to have intersections. The equation determine the parameters for which they touch.
 
  • #12
Yes, Gerenuk :smile: is right …

the original question (which I'd completely forgotten! :rolleyes:) was only to determine whether there were real solutions! :wink:
 
  • #13
Gerenuk said:
I think the following (almost) solves the problem.

If you write
a_1\sin\theta_2=C_1-\sin\theta_1
a_2\cos\theta_2=C_2-\cos\theta_1
you see that the problem is equivalent to finding if there is an intersection between an ellipse at the origin with axis a1 and a2 and a circle of unit radius at (C2,C1).

They just start to have intersections, when both of them touch (at only one point). For this case the tangents have an equal gradient
<br /> \frac{a_1}{a_2}\tan\theta_2=\tan\theta_1=g<br />
Looking at the two equations you can further derive
<br /> g=\frac{C_1}{C_2}<br />

Now you can rearrange
<br /> \frac{C_1}{C_2}=\frac{a_1}{a_2}\tan\theta_2=\tan\theta_1<br />
for both theta1 and theta2 and put it back into the second equation (remember \tan^2\alpha+1=1/\cos^2\alpha).

You finally get
<br /> \pm\frac{1}{\sqrt{C_1^2+C_2^2}}\pm\frac{1}{\sqrt{\frac{C_1^2}{a_1^2}+\frac{C_2^2}{a_2^2}}}=1<br />
which is the boundary of the 4-dimensional solution space you are looking for. The tricky part is now to think which direction (slightly smaller/bigger variables) is "inside" that region.

Good luck :)

I think you were right the first time around. I can't come up with a single case where the signs matter. They change the situation slightly but not in the when it comes to the binary decision making.
 
  • #14
To determine the signs I guess one can consider the a1=a2 simplification and look at the circles.

Then the result is the sign combination + + > and + - < for the equation and thus
<br /> \left|\frac{1}{\sqrt{C_1^2+C_2^2}}-1\right|&lt;\frac{1}{\sqrt{\frac{C_1^2}{a_1^2}+\frac{C_2^2}{a_2^2}}}<br />
for intersections.
 
  • #15
Gerenuk said:
To determine the signs I guess one can consider the a1=a2 simplification and look at the circles.

Then the result is the sign combination + + > and + - < for the equation and thus
<br /> \left|\frac{1}{\sqrt{C_1^2+C_2^2}}-1\right|&lt;\frac{1}{\sqrt{\frac{C_1^2}{a_1^2}+\frac{C_2^2}{a_2^2}}}<br />
for intersections.

Agreed. :)
 
  • #16
Actually on the bus I just figured that I didn't consider all cases circle sizes and all signs matter. The three quantities indeed have to fulfil the "triangle inequality".
<br /> \left|\frac{1}{\sqrt{C_1^2+C_2^2}}-\frac{1}{\sqrt{\frac{C_1^2}{a_1^2}+\frac{C_2^2}{a_2^2}}}\right|&lt;1&lt;\frac{1}{\sqrt{C_1^2+C_2^2}}+\frac{1}{\sqrt{\frac{C_1^2}{a_1^2}+\frac{C_2^2}{a_2^2}}}<br />
That's my final result I hope :smile:
 
Back
Top