for a solution.
Once we obtain $$P(t) = S^{-1}(t)$$ it seems like we would want to compute the LQR gain matrix $$K(t) = R^{-1} B^\top S(t) = R^{-1} B^\top P^{-1}(t)$$, but we know that $$P^{-1}(t_f)$$ does not exist. Is this OK considering that our control input does not actually matter at time $$t_f$$ (since we have already reached the solution?)