I have a small system of 6 equations. These contain 6 unknowns, and I've been trying to figure out how to solve them. I feel I could handle fewer equations by a bit of high-school algebra, but once it gets up to 6 I'm reaching the limit on what I find practical to do by hand.
I found a few websites that claim to be able to solve this type of equation (eg. this one), however while they can get some of the way and deal with simplified versions of the problem, none seem to be able to solve the whole thing.
The problem itself is a rendevous of two objects in 2D space, given a starting displacement and relative velocity. One object is accelerating at a constant rate. I've assumed this acceleration has two phases: accelerating in one direction for a time (prograde) then accelerating in another (retrograde).
The aim is to match the location and velocity of the objects. In the trivial case (no starting displacement or velocity) this would be done by accelerating toward the target until half-distance, then accelerating away from it. I've chosen a co-ordinate system where the axes are parallel and perpendicular to the initial relative velocity. Given that the set of equations I've come to is as follows:
1) $d_1 = (p_1t_p^2 + r_1t_r^2) / 2 + p_1t_pt_r + v(t_p+t_r)$
2) $d_2 = (p_2t_p^2 + r_2t_r^2) / 2 + p_2t_pt_r$
3) $-v = (p_1t_p+r_1t_r)$
4) $0 = (p_2t_p+r_2t_r)$
5) $a = \sqrt(p_1^2 + p_2^2)$
6) $a = \sqrt(r_1^2 + r_2^2)$
Where subscripts 1 and 2 denote parallel and perpendicular to the initial velocity vector respectively. $d$ is the starting displacement, $v$ the starting velocity, $p$ the prograde acceleration, $r$ the retrograde acceleration, $t$ the prograde/retrograde times and finally $a$ is the magnitude of the acceleration. The unkowns are $p_1$, $p_2$, $r_1$, $r_2$, $t_p$ and $t_r$.
How can I solve these equations? Are there any useful tools for this sort of problem beyond substitution/elimination?