How do you approach this conundrum? My background is not in Mathematics but I am willing to learn.
QUESTION:
Given this equation:
$$ y = c * sin\theta - r * \theta*sin\theta - r * cos\theta;\ where \begin{cases} y = variable\\ c = fixed\ length \\ r = radius \\ \theta = angle\ in\ radians \end{cases} $$
How do you find $\theta_1$ given $y_1$?
BACKGROUND:
I am ultimately trying to solve this diagram: Get $x$ when given $y$
Where the following constraints must be satisfied:
- The length of red lines ($ARC LENGTH + DIAGONAL$) must equal the $FIXED \ LENGTH$.
- As the $HEIGHT$ increases, the $BASE$ decreases.
- The maximum ${HEIGHT}$ is given by the equation: $$ HEIGHT_{max} = (FIXED\ LENGTH - r*\fracπ2) + r $$ at which point $${BASE}_{min} = r $$
The minimum ${HEIGHT}$ is given by the equation: $$ HEIGHT_{min} = 0 $$ at which point $${BASE}_{max} = FIXED\ LENGTH$$
The red lines must always start at $x=0$, rotate over a circle of radius $r$, and end at $y=0$ (it must always be attached to the $x-$ and $y-axis$).
- As such, $r$ and $FIXED\ LENGTH$ are constants
- $\theta$ is dependent on $y$ .
WHAT HAS BEEN DONE:
When $\theta$ is given, it is relatively easy to find $y$. For example for the cases:
$$ \begin{cases} y = variable\\ c = 100 \\ r = 10 \\ \theta = 0\ to\ \fracπ2 \end{cases} $$
This is a plot of all the possible values for $\theta$ and $y$.
WHAT I AM LOOKING FOR (FOLLOW-UP):
I know that the function is an oscillating function, and that for each value of $y$, there are numerous values for $x$. However, I am only looking for the specific range where $\theta = 0\ to\ \frac\pi2$ and $y = -r\ to\ c-r\frac\pi2$.
If finding $\theta_1$ given $y_1$ is not possible, these are my follow-up questions:
- How can the problem be viewed differently?
- How should the problem be approached?
- What concepts are needed to solve these types of problems?
- any technical terms for what these types of problem are?
- what branches of mathematics are useful for understanding these types of problems?
DISCLAIMER:
- This problem is for a "fun" side project and I am stuck on the mathematics side since I absolutely have no background about the advanced branches of mathematics needed for this.
- If you can suggest tags or better ways to phrase this question. Please do not hesitate to point it out. Thanks.



As I mentioned in a comment, you need to solve $$f(\theta) = \frac{c}{r} - \frac{\cos\theta}{\sin\theta} - \frac{y}{r \sin\theta} - \theta = 0 \tag{1}\label{NA1}$$
If you have a specific value of $y$ (and $c$ and $r$) you want to solve $\theta$ for, one way to do it is numerically, using a binary search; also known as the bisection method. The derivative of $f(\theta)$ is $$\frac{d f(\theta)}{d \theta} = \frac{\cos^2\theta}{\sin^2\theta} + \frac{y\cos\theta}{r \sin^2\theta}$$ i.e. $$\frac{d f(\theta)}{d \theta} = \frac{\left ( y + r \cos\theta \right ) \cos\theta }{r \sin^2 \theta} \tag{2}\label{NA2}$$ which is positive for $0 \lt \theta \lt \pi/2$ if $y \ge 0$ and $r \gt 0$. This means that in this interval, the function $f(\theta)$ is monotonically increasing, and that the bisection method will work well without any issues. In particular, $f(\theta)$ has at most one root.
Thorough sheer experimentation, I found that the function $$y(\theta) = (c - r\theta)\sin\theta - r\cos\theta$$could be approximated with$$g(\theta) = C_3 \sin\left(C_2 \theta^2 + C_1 \theta\right) - r$$ where $C_1$ is a shape parameter, slightly over 1, $C_2 = 2(1-C_1)/\pi$, and $C_3 = c + r(1 - \pi/2)$. Solving $y = g(\theta)$ for $\theta$ yields $$\theta = \frac{-C_1 \pm \sqrt{C_1^2 + 4 C_2 \sin^{-1}\left( \frac{r + y}{C3}\right)}}{2 C_2}$$where you should choose the $+$ sign in this case; or more generally, the sign that yields $0 \lt \theta \lt \pi/2$.
I am not sure if this approximation is acceptable, but it is quite straightforward, as $C_1$ (and therefore also $C_2$ and $C_3$) only depends on the ratio $c/r$. For starters, test and examine the properties of $$\begin{array}{cc|ccc} c / r & C_1 \\ \hline 1.5 & 1.64 \\ 2.0 & 1.38 \\ 5.0 & 1.12 \\ 10.0 & 1.05 \\ 20.0 & 1.03 \end{array}$$ The approximation does not work well for $c/r \lt 1.5$, though, because the function $y(\theta)$ diverges from the shape of a sine-like function, with a "hump" before $\pi/2$.