I'm racking my brain trying to solve some formulae that I will need to implement into a program I'm making.
The program is based around statics of a particle, as in that all forces acting on the particle must keep it in equilibrium.
Take this example (excerpt from my program because I can't be bothered to draw a detailed diagram):
$P$, $Q$, $F$, and $W$ are all forces acting on the particle, and $W$ is the weight.
$P$, $Q$ and $F$ have angles of $a$, $b$, and $c$ respectively.
From the basic concept of equilibrium, all the horizontal forces must cancel each other out, and all the vertical forces must cancel each other out.
Measuring each angle from the positive $x$ axis, going anti-clockwise, where $0 \le x \le 360$, I gathered these two equations:
$$P\cos a + Q\cos b + F\cos c = 0\qquad(1)$$ $$P\sin a + Q\sin b + F\sin c = W\qquad(2)$$
In order for the system to be in equilibrium, these two simultaneous equations must be true. Now I'm in the middle of trying to implement some functionality in which the user can create a situation where an angle and a magnitude, lets say, $b$ and $P$, are unknown, and the program will calculate what they need to be in order to keep the system in equilibrium.
This is where my problem arises.
Since both equation are simultaneous, I rearranged $(1)$ for $P$ to get:
$$P = \frac{-(Q\cos b + F\cos c)}{\cos a}$$
And then subbed it into $(2)$ to get:
$$-\tan a(Q\cos b + F\cos c) + Q\sin b + F\sin c = W$$
rearranged that to get all the b's on one side, and ended up with:
$$\sin b - \cos b\tan a = \frac{W + F(\cos c\tan a - \sin c)}{Q}$$
Let $N$ = the right hand side, and $K$ = $\tan a$:
$$\sin b - K\cos b = N$$
That's as far as I got. Any attempt to simplify further has been futile. I tried to plug it into to wolframalpha but it didn't seem to work, it just showed me the interpretation of the equation and no solution.
Thanks for reading and I appreciate any help.