\[ y''(x)=-y'(x) \left (\frac {-\text {a1}-\text {b1}+1}{x-\text {c1}}+\frac {-\text {a2}-\text {b2}+1}{x-\text {c2}}+\frac {-\text {a3}-\text {b3}+1}{x-\text {c3}}\right )-\frac {y(x) \left (\frac {\text {a1} \text {b1} (\text {c1}-\text {c2}) (\text {c1}-\text {c3})}{x-\text {c1}}+\frac {\text {a2} \text {b2} (\text {c2}-\text {c1}) (\text {c2}-\text {c3})}{x-\text {c2}}+\frac {\text {a3} \text {b3} (\text {c3}-\text {c1}) (\text {c3}-\text {c2})}{x-\text {c3}}\right )}{(x-\text {c1}) (x-\text {c2}) (x-\text {c3})} \] ✓ Mathematica : cpu = 18.4876 (sec), leaf count = 316
\[\left \{\left \{y(x)\to c_1 (x-\text {c1})^{\text {a1}} (x-\text {c2})^{\text {a2}} (x-\text {c3})^{\text {b3}} \text {HeunG}\left [\frac {\text {c1}-\text {c3}}{\text {c1}-\text {c2}},\frac {\text {a1} (\text {c1} (-\text {a3}-2 \text {b1}-\text {b2}+2)+\text {c2} (\text {a3}+\text {b1}-1)+\text {c3} (\text {b1}+\text {b2}-1))+\text {c2} (-\text {a2} \text {b2}+(\text {a3}-1) \text {b3}+\text {b1} \text {b3})+\text {c3} (\text {a2} \text {b1}+\text {a2} (\text {b2}-1)-\text {a3} \text {b3})+(1-\text {b1}) \text {c1} (\text {a2}+\text {b3})}{\text {c1}-\text {c2}},\text {a1}+\text {a2}+\text {b3},-\text {a3}-\text {b1}-\text {b2}+2,\text {a1}-\text {b1}+1,\text {a2}-\text {b2}+1,\frac {\text {c1}-x}{\text {c1}-\text {c2}}\right ]+c_2 (x-\text {c2})^{\text {a2}} (x-\text {c1})^{\text {b1}} (x-\text {c3})^{\text {b3}} \text {HeunG}\left [\frac {\text {c1}-\text {c3}}{\text {c1}-\text {c2}},\frac {\text {c2} (\text {a1} \text {b3}-\text {a2} \text {b2}+(\text {a3}-1) \text {b3})+\text {c3} (\text {a1} \text {a2}+\text {a2} (\text {b2}-1)-\text {a3} \text {b3})+(1-\text {a1}) \text {c1} (\text {a2}+\text {b3})+\text {b1} (\text {c1} (-2 \text {a1}-\text {a3}-\text {b2}+2)+\text {c2} (\text {a1}+\text {a3}-1)+\text {c3} (\text {a1}+\text {b2}-1))}{\text {c1}-\text {c2}},\text {a2}+\text {b1}+\text {b3},-\text {a1}-\text {a3}-\text {b2}+2,-\text {a1}+\text {b1}+1,\text {a2}-\text {b2}+1,\frac {\text {c1}-x}{\text {c1}-\text {c2}}\right ]\right \}\right \}\] ✓ Maple : cpu = 0.892 (sec), leaf count = 298
\[\left \{y \left (x \right ) = \left (c_{1} \left (-\mathit {c1} +x \right )^{\mathit {a1}} \mathit {HG}\left (\frac {\mathit {c1} -\mathit {c3}}{\mathit {c1} -\mathit {c2}}, \frac {\left (\left (-\mathit {a3} -2 \mathit {b1} -\mathit {b2} +2\right ) \mathit {c1} +\left (\mathit {a3} +\mathit {b1} -1\right ) \mathit {c2} +\left (\mathit {b1} +\mathit {b2} -1\right ) \mathit {c3} \right ) \mathit {a1} -\left (\mathit {b1} -1\right ) \left (\mathit {a2} +\mathit {b3} \right ) \mathit {c1} +\left (-\mathit {a2} \mathit {b2} +\mathit {b1} \mathit {b3} +\left (\mathit {a3} -1\right ) \mathit {b3} \right ) \mathit {c2} +\left (\mathit {a2} \mathit {b1} -\mathit {a3} \mathit {b3} +\left (\mathit {b2} -1\right ) \mathit {a2} \right ) \mathit {c3}}{\mathit {c1} -\mathit {c2}}, \mathit {a1} +\mathit {a2} +\mathit {b3} , -\mathit {a3} -\mathit {b1} -\mathit {b2} +2, \mathit {a1} -\mathit {b1} +1, \mathit {a2} -\mathit {b2} +1, \frac {\mathit {c1} -x}{\mathit {c1} -\mathit {c2}}\right )+c_{2} \left (-\mathit {c1} +x \right )^{\mathit {b1}} \mathit {HG}\left (\frac {\mathit {c1} -\mathit {c3}}{\mathit {c1} -\mathit {c2}}, \frac {\left (\left (-2 \mathit {a1} -\mathit {a3} -\mathit {b2} +2\right ) \mathit {c1} +\left (\mathit {a1} +\mathit {a3} -1\right ) \mathit {c2} +\left (\mathit {a1} +\mathit {b2} -1\right ) \mathit {c3} \right ) \mathit {b1} -\left (\mathit {a2} +\mathit {b3} \right ) \left (\mathit {a1} -1\right ) \mathit {c1} +\left (\mathit {a1} \mathit {b3} -\mathit {a2} \mathit {b2} +\left (\mathit {a3} -1\right ) \mathit {b3} \right ) \mathit {c2} +\left (\mathit {a1} \mathit {a2} -\mathit {a3} \mathit {b3} +\left (\mathit {b2} -1\right ) \mathit {a2} \right ) \mathit {c3}}{\mathit {c1} -\mathit {c2}}, \mathit {a2} +\mathit {b1} +\mathit {b3} , -\mathit {a1} -\mathit {a3} -\mathit {b2} +2, -\mathit {a1} +\mathit {b1} +1, \mathit {a2} -\mathit {b2} +1, \frac {\mathit {c1} -x}{\mathit {c1} -\mathit {c2}}\right )\right ) \left (-\mathit {c2} +x \right )^{\mathit {a2}} \left (-\mathit {c3} +x \right )^{\mathit {b3}}\right \}\]