Given a triangle, and two points inside it, I want to determine all the ellipses that are inscribed in the triangle and passing through both of the two given points.
My attempt: is outlined in my solution below.
Your comments, hints, and answers are highly appreciated.



Suppose an inellipse is tangent to the side-lines of $\triangle ABC$ at $D$, $E$, $F$ (with $D$ on $BC$, etc). It is "known" (see, for instance, Wikipedia's "Inellipse" entry) that the lines $AD$, $BE$, $CF$ concur at the Brianchon point of the inellipse. Thinking backwards, we can choose an ostensible Brianchon point $K$, define $D$, $E$, $F$ as the points line $AK$, $BK$, $CK$ meet the triangle's side-lines, and determine the corresponding inellipse.
The forms are a bit neater if we use $u:v:w$ barycentric coordinates. For instance, let our starting point have these coordinates $$K \;=\; u_K : v_K : w_K \qquad\text{that is,} \quad K = \frac{u_K A + v_K B + w_K C}{u_K + v_K + w_K}$$ Then $$D \;=\; 0:v_K:w_K \qquad E \;=\; u_K:0:w_K \qquad F \;=\; u_K:v_K:0$$ and one can verify that the inellipse has this equation $$ \left(\frac{u}{u_K}\right)^2 + \left(\frac{v}{v_K}\right)^2 + \left(\frac{w}{w_K}\right)^2 -2 \frac{v}{v_K}\,\frac{w}{w_K} -2 \frac{w}{w_K}\,\frac{u}{u_K} -2 \frac{u}{u_K}\,\frac{v}{v_K} =0 \tag1$$ If the inellipse must also pass through given points $P$ and $Q$ with coordinates $$P \;=\; u_P:v_P:w_P \qquad Q \;=\; u_Q:v_Q:w_Q$$ then "all we have to do" is substitute those coordinates into $(1)$ to get a homogeneous system in $u_K$, $v_K$, $w_K$, solve the system for $v_K$ and $w_K$, substitute back into $(1)$, and clear the $u_K$ factors. This seems like a daunting task until we observe that the left-hand side of $(1)$ factors as $$\left(\frac{u'}{u_K'}+\frac{v'}{v_K'}+\frac{w'}{w_K'}\right) \left(-\frac{u'}{u_K'}+\frac{v'}{v_K'}+\frac{w'}{w_K'}\right) \left(\frac{u'}{u_K'}-\frac{v'}{v_K'}+\frac{w'}{w_K'}\right) \left(\frac{u'}{u_K'}+\frac{v'}{v_K'}-\frac{w'}{w_K'}\right)$$ where $x' := \sqrt{x}$. (Note that points inside $\triangle ABC$ have non-negative barycentric coordinates, so we need not worry about any complexities here.) We can even ignore the necessarily-non-negative first factor. Thus, the solving process effectively involves nine pairs of linear equations; the nine results have the form $$u_K' : v_K' : w_K' \;=\; \frac{\pm1}{v_P'w_Q' \pm w_P' v_Q'} : \frac{\pm1}{w_P'u_Q' \pm u_P'w_Q'} : \frac{\pm1}{u_P'v_Q' \pm v_P'u_Q'} $$ for various combinations of $\pm$. However, since left-hand side is a proportion of non-negative square roots, each triple of components on the right-hand side must share a sign (if it's negative, we can divide it out). Ultimately, we find ourselves with four viable candidates for the coordinates of $K$; namely,
$$ u_K:v_K:w_K \;=\; \frac{1}{(v_P'w_Q'+\sigma_1 w_P' v_Q')^2} : \frac{1}{(w_P'u_Q' + \sigma_2 u_P'w_Q')^2} : \frac{1}{(u_P'v_Q' + \sigma_3 v_P'u_Q')^2} $$ where $$(\sigma_1,\sigma_2,\sigma_3) \;=\; (-1,1,1),\; (1,-1,1), \;(1,1,-1), \;(-1,-1,-1) $$
Substituting back into $(1)$ doesn't offer any symbolic benefits, so I won't bother.
Taking the example from OP's solution of $A=(0,0)$, $B=(14,0)$, $C=(5,12)$, $P=(6,1)$, $Q=(7/2,6)$, we have $$u_P:v_P:w_P \;=\; 87:67:14 \qquad\qquad u_Q:v_Q:w_Q \;=\; 6:1:7$$ and then $$ u_K:v_K:w_K \;=\; \frac{1}{(\sqrt{469}+\sigma_1\sqrt{14})^2}: \frac{1}{(\sqrt{609}+2\sigma_2\sqrt{21})^2}: \frac{1}{(\sqrt{402}+\sigma_3\sqrt{87})^2} \\[4pt] $$
The Cartesian equations of the resulting inellipses are $$\begin{align} 0 &= 16468 x^2 + 13412 y^2 - 2019 x y - 169792 x - 94500 y + 519106 \\ &- 14 \sigma_1 \sqrt{29} (144 x^2 + 11 y^2 - 140 x y - 828 x + 613 y) \\ &- \phantom{1}7 \sigma_2 \sqrt{134} (48 x^2 - y^2 + 112 x y - 948 x - 575 y + 3864) \\ &- \phantom{1}2 \sigma_3 \sqrt{3886} (12 x^2 - 91 y^2 + 19 x y - 168 x + 553 y)) \end{align}$$
Visually, they seem to match nicely with OP's result, so I'll consider our answers compatible.