Essentially I am trying to solve a definite integral for an equation that describes a circle.
I have $\sqrt(R^2 - (x - A)^2) - B)$ (A and B being the circle origin offsets and R the radius)
At a point in the solution I substitute for (x -A) the function Rcos($\theta$), but everywhere on the internet uses Rsin($\theta$), i understand why sin is prefered I do not understand why sin is allowed.
As far as I can tell Rcos($\theta$) seems correct for a circle as it describes the x value of the right triangle that is formed by R,x,y with angle Rx being $\theta$. I do not follow why sin and cos are interchangeable and I am thoroughly confused.
Any help is appreciated. Thanks.
It seems like you're trying to understand why the trigonometric functions sine and cosine are interchangeable in certain contexts. In trigonometry, sine and cosine are related through the unit circle. Since the unit circle has radius 1, the x-coordinate of a point on the unit circle corresponds to cosine and the y-coordinate corresponds to sine.
When you're dealing with a circle with radius R centered at the origin, the substitution x = Rcos(θ) and y = Rsin(θ) comes from considering the parametric equations of the circle. Both sine and cosine are used because they describe the relationship between the angle θ and the x and y coordinates of a point on the circle.
So, it's not that one is "allowed" while the other isn't, but rather that both are valid representations of the relationship between the angle θ and the coordinates of a point on the circle. Depending on the context or preference, one might be more convenient to use over the other. I hope this explanation help