Integration of part of a radius gives a complex number....

Click For Summary

Homework Help Overview

The discussion revolves around finding a specific length related to a geometric configuration involving a radius, an angle, and a distance. The original poster attempts to derive this length as a function of the distance \(d\) and angle \(\theta\), and subsequently integrate it over a specified range. The problem involves the application of the law of cosines and integration, leading to unexpected complex results.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants explore the use of the law of cosines to express relationships between the sides of a triangle formed by the radius, distance, and the desired length. Questions arise regarding the validity of the equations used and the implications of integrating a length resulting in a complex number. Some participants suggest reviewing the assumptions made in the setup and the implications of varying \(\theta\).

Discussion Status

The discussion is ongoing, with participants providing insights and questioning the original poster's approach. Some have offered clarifications on the relationships between the variables involved, while others are exploring the implications of the integration process. There is no explicit consensus yet, but several productive lines of inquiry are being pursued.

Contextual Notes

Participants note potential constraints, such as the conditions under which the triangle's sides must operate and the implications of the integration limits. There is also mention of the need to consider the absolute value of the resulting lengths in the context of the problem.

Adel Makram
Messages
632
Reaction score
15
Missing homework template due to originally being posted in other forum.
I am interested to find the length shown in red in the attached figure. I want this length as a function of d (shown in blue) and the angle θ. Then I will integrate this length to dθ from 0 to π/2.

Firstly, I used the law of the triangle to determine the length s which when subtracted from the radius r yields the desired length p.
s2+2sd cosθ+ d2-r2=0

Then I used a substitute a2=d2/ r2-d2
which gives, -sqrt(r2-d2 ∫ sqrt {(a2 cos2(θ)-1} dθ

Lastly, I used wolframe alfa to calculate the part under integration, here is what I got.( I used r=1 and d=1/2 r).

The result is a complex number ( attached). I don`t understand how the integration of a length which is a real number results into a complex number.
 

Attachments

  • circle.png
    circle.png
    35.9 KB · Views: 443
  • Snap 2015-08-08 at 13.35.09.png
    Snap 2015-08-08 at 13.35.09.png
    8.1 KB · Views: 478
Last edited:
Physics news on Phys.org
"law of the triangle" to determine the length s which when subtracted from the radius r yields the desired length p.
s2+2sd cosθ+ d2-r2=0
Could you explain this ? To me it looks as if ##(s+d\cos\theta)^2 < r^2 ## !
 
BvU said:
Could you explain this ? To me it looks as if ##(s+d\cos\theta)^2 < r^2 ## !
Consider the triangle with sides r, d and s,

r2= d2 + s2 + 2 ds cosθ

This is a quadratic equation of s, given d and r.
 
Funny, I would say that ##
(s+d\cos\theta)^2 + z^2 = r^2##
 
BvU said:
Funny, I would say that ##
(s+d\cos\theta)^2 + z^2 = r^2##
True, I am using this too later in the calculation of p.

Please see the word file I just attached.
 

Attachments

Using it later is pointless if your first step is simply wrong
[edit] Oops -- looks like I'm off track. Let me review ...
 
Last edited:
About the question: you want to vary ##\theta## from ##0## to ## \pi/2##. Is s a constant ? then doesn't d stay constant too ?
 
BvU said:
About the question: you want to vary ##\theta## from ##0## to ## \pi/2##. Is s a constant ? then doesn't d stay constant too ?
Yes ##\theta## varies from ##0## to ##\pi/2##. d is a constant.
 
d was shown in blue. What happens when ##\theta## reaches ##{\pi\over 2} + \arcsin ({2r\over d})## ?

[edit] Sorry, ##{\pi\over 2} + \arcsin ({d\over 2r})## of course. This is when s = r and p goes through zero.

(to me that means d is approximately where z is in your drawing. meaning p = 0.
 
Last edited:
  • #10
BvU said:
d was shown in blue. What happens when ##\theta## reaches ##{\pi\over 2} + \arcsin ({2r\over d})## ?

(to me that means d is approximately where z is in your drawing. meaning p = 0.
I drew another circle with more clear lines. z is always perpendicular to r.

I didn`t get you at the second sentence. d is always ≤r
 

Attachments

  • d, p and r.png
    d, p and r.png
    18.3 KB · Views: 454
Last edited:
  • #11
OK, so I see: ##z = d\sin\theta, \quad s = \sqrt{r^2-z^2} - d\cos\theta, \quad p = r - s## ( or ##p = | r - s | ## since you want the length of p). The p = 0 occurs when ##\theta## reaches ##
{\pi\over 2} + \arcsin ({d\over 2r})##; that's when the bottom end of the blue line is on the circle as well.

Note only the + sign in your solution of the quadratic equation for s applies because s > 0. So ## s = \sqrt{r^2-d^2\sin^2\theta} - d\cos\theta ##

In your word document you want to integrate $$
\int_0^{\pi/2} r + d\cos\theta - \sqrt{d^2\cos^2\theta + r^2 - d^2 } \ d\theta$$ but you evaluate $$
\int_0^{\pi/2} - \sqrt{d^2\cos^2\theta - r^2 + d^2 } \ d\theta$$could that be the problem ?

By the way, ##d^2\cos^2\theta + r^2 - d^2 = r^2 - d^2\sin^2\theta## ; as long as ##d \le r## taking the square root should be OK.
 
  • Like
Likes   Reactions: Adel Makram
  • #12
BvU said:
OK, so I see: ##z = d\sin\theta, \quad s = \sqrt{r^2-z^2} - d\cos\theta, \quad p = r - s## ( or ##p = | r - s | ## since you want the length of p). The p = 0 occurs when ##\theta## reaches ##
{\pi\over 2} + \arcsin ({d\over 2r})##; that's when the bottom end of the blue line is on the circle as well.

Note only the + sign in your solution of the quadratic equation for s applies because s > 0. So ## s = \sqrt{r^2-d^2\sin^2\theta} - d\cos\theta ##

In your word document you want to integrate $$
\int_0^{\pi/2} r + d\cos\theta - \sqrt{d^2\cos^2\theta + r^2 - d^2 } \ d\theta$$ but you evaluate $$
\int_0^{\pi/2} - \sqrt{d^2\cos^2\theta - r^2 + d^2 } \ d\theta$$could that be the problem ?

By the way, ##d^2\cos^2\theta + r^2 - d^2 = r^2 - d^2\sin^2\theta## ; as long as ##d \le r## taking the square root should be OK.
This is nice step that: ##d^2\cos^2\theta + r^2 - d^2 = r^2 - d^2\sin^2\theta## , I overlooked it at all.
Nothing wrong with $$ \int_0^{\pi/2} r + d\cos\theta - \sqrt{d^2\cos^2\theta + r^2 - d^2 } \ d\theta$$ because I know how to evaluate the the first two terms but I stuck at the third one.

Now how to evaluate

$$\int_0^{\pi/2} \sqrt{r^2 - d^2\sin^2\theta } \ d\theta$$
 
Last edited:
  • #13
Adel Makram said:
This is nice step that: ##d^2\cos^2\theta + r^2 - d^2 = r^2 - d^2\sin^2\theta## , I overlooked it at all.
Nothing wrong with $$ \int_0^{\pi/2} r + d\cos\theta - \sqrt{d^2\cos^2\theta + r^2 - d^2 } \ d\theta$$ because I know how to evaluate the the first two terms but I stuck at the third one.

Now how to evaluate

$$\int_0^{\pi/2} \sqrt{r^2 - d^2\sin^2\theta } \ d\theta$$

I don't think that is an elementary integral. Maple gives an answer in terms of Elliptic functions.
 
  • #14
So are we doing OK now Adel ?
 
  • Like
Likes   Reactions: Adel Makram
  • #15
BvU said:
So are we doing OK now Adel ?
But still I don`t know how to evaluate
$$\int_0^{\pi/2} \sqrt{r^2 - d^2\sin^2\theta } \ d\theta$$
WolframAlfa didn`t give me a solution.
 
Last edited:
  • #16
Adel Makram said:
But still I don`t know how to evaluate
$$\int_0^{\pi/2} \sqrt{r^2 - d^2\sin^2\theta } \ d\theta$$
WolframAlfa didn`t give me a solution.
Maple gives this:
upload_2015-8-9_8-41-0.png

where
upload_2015-8-9_8-41-41.png
upload_2015-8-9_8-41-0.png
 
  • #17
I am not familiar with elliptic integrals so I don not know what z and k in this solution are related to my problem.

For example, $$ \int_0^{\pi/2} r + d\cos\theta - \sqrt{d^2\cos^2\theta + r^2 - d^2 } \ d\theta = {\pi/2} r + d - f(d, r)$$. So how to represent f(d,r)? If it is not elementary function so how to approximate it to an elementary one or at least represent it as a series?
 
  • #18
Approximate with elementary functions, represent as series: Is that really going to help you ? When I plot ##p(\theta)## for r = 3 and d = 2, I get something like

upload_2015-8-9_23-41-35.png


so you still want to pay attention to the point where the bottom end of d crosses the circle ( I assume you want |p| ). I have no hope of doing anything analytical with this one, so I would turn to numerics without much hesitation.

--
 
  • Like
Likes   Reactions: Adel Makram
  • #19
So if we taking the area under the curve, p(theta), it should represent the desired integration, right!.

Remember Buffon needle problem, a needle with a length 2d and the distance between the vertical lines is L crosses those lines with a probability = $$ 2d/ \pi L$$, One of smart solution to this problem is shown in wikipedia where it evaluates the integral $$\int_0^{(\pi/2} 2d cos\theta d\theta$$ as a nominator divided on $$\int_0^{\pi/2} L d\theta$$ as a denominator.

So what if I want to calculate the probability of the needle of length 2d crossing the circle circumference with a radius r.

I proposed to consider the length p, as it is done in this post, instead of $$d cos\theta$$ in the classical problem. Intuitively, the probability of crossing the circle is larger than the probability of crossing vertical lines which is consistent with $$p> dcos\theta$$.

Lastly, I am not sure if considering the bottom point of d when it crosses the circle will have a logic ground in calculating the probability. The reason is that when $$\theta > \pi/2$$, the lower half of the needle under the diameter of the circle will be considered instead of the upper half because of the symmetry. So, we always considering the half of the needle that makes $$\theta<\pi/2$$ with the diameter of the circle.
 
Last edited:
  • #20
Adel Makram said:
So if we taking the area under the curve, p(theta), it should represent the desired integration, right!.
Not ##p(\theta)## but the absolute value of ##p(\theta)##. After all, in your original post, you wanted to integrate "the length shown in red" .

Remember Buffon needle problem, a needle with a length 2d and the distance between the vertical lines is L crosses those lines with a probability = $$ 2d/ \pi L$$, One of smart solution to this problem is shown in wikipedia where it evaluates the integral $$\int_0^{(\pi/2} 2d cos\theta d\theta$$ as a nominator divided on $$\int_0^{\pi/2} L d\theta$$ as a denominator.

So what if I want to calculate the probability of the needle of length 2d crossing the circle circumference with a radius r.

I proposed to consider the length p, as it is done in this post, instead of $$d cos\theta$$ in the classical problem. Intuitively, the probability of crossing the circle is larger than the probability of crossing vertical lines which is consistent with $$p> dcos\theta$$.

Lastly, I am not sure if considering the bottom point of d when it crosses the circle will have a logic ground in calculating the probability. The reason is that when $$\theta > \pi/2$$, the lower half of the needle under the diameter of the circle will be considered instead of the upper half because of the symmetry. So, we always considering the half of the needle that makes $$\theta<\pi/2$$ with the diameter of the circle.
You are losing me completely. My perception was that your d is fixed and you wanted p as a function of theta. So your blue line has the top end point on the circle and the bottom end point on the horizontal axis. Nowhere is there a probability coming in.

"So what if I want to calculate the probability of the needle of length 2d crossing the circle circumference with a radius r." Is not a well defined problem. Is the circle in a football field or on a chess board ?


--
 
  • #21
Adel Makram said:
This is nice step that: ##d^2\cos^2\theta + r^2 - d^2 = r^2 - d^2\sin^2\theta## , I overlooked it at all.
Nothing wrong with $$ \int_0^{\pi/2} r + d\cos\theta - \sqrt{d^2\cos^2\theta + r^2 - d^2 } \ d\theta$$ because I know how to evaluate the the first two terms but I stuck at the third one.

Now how to evaluate

$$\int_0^{\pi/2} \sqrt{r^2 - d^2\sin^2\theta } \ d\theta$$
Adel Makram said:
I am not familiar with elliptic integrals so I don not know what z and k in this solution are related to my problem.

For example, $$ \int_0^{\pi/2} r + d\cos\theta - \sqrt{d^2\cos^2\theta + r^2 - d^2 } \ d\theta = {\pi/2} r + d - f(d, r)$$. So how to represent f(d,r)? If it is not elementary function so how to approximate it to an elementary one or at least represent it as a series?
BvU said:
Not ##p(\theta)## but the absolute value of ##p(\theta)##. After all, in your original post, you wanted to integrate "the length shown in red" .

You are losing me completely. My perception was that your d is fixed and you wanted p as a function of theta. So your blue line has the top end point on the circle and the bottom end point on the horizontal axis. Nowhere is there a probability coming in.

"So what if I want to calculate the probability of the needle of length 2d crossing the circle circumference with a radius r." Is not a well defined problem. Is the circle in a football field or on a chess board ?--
d is still fixed and represents half length of the needle.
I followed the same reasoning of the classical Buffon needle. In classical version, the needle crosses the vertical line when the projection of the needle on the horizontal axis is not larger than $$2dcos\theta$$ . In other words, the needle needs to be displaced away from the nearest vertical line by $$2dcos\theta$$ until its upper end touch it.
In the circle version with a very large radius, the problem is then reduced to the classical one omitting very small number of times where the upper tip of the needle crosses the circle circumference. When the circle is getting smaller in radius, the needle needs to be displaced to the left side away from the circumference by a length p in order not to touch the circumference.

N.B: 2d is used in the classical version and d in the circle version but this should not be a source of confusion as long as the horizontal line between the vertical lines is used in the classical and only the radius (half the diameter) is used in the circle version.
 
Last edited:
  • #22

Attachments

  • upload_2015-8-10_13-54-32.png
    upload_2015-8-10_13-54-32.png
    893 bytes · Views: 442

Similar threads

  • · Replies 30 ·
2
Replies
30
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K