When solving a calculus of variations problem with an endpoint that is free to vary in two dimensions (e.g. in t and x), it is necessary to relate the variation in $x_f$ with the variations in $x(t_f)$, and $t_f$, as seen here. According to the textbook, Optimal Control Theory: An Introduction by Donald E. Kirk, this is found to be the following:
$$\delta{x_f} \doteq \delta{x(t_f)} + \dot{x}^*(t_f)\delta{t_f}$$
Where the $\doteq$ sign means "equals on the first order" and we are assuming $\delta{x(t_f)}$ and $\delta{t_f}$ are unrelated and arbitrary. However, when I try solving for this relationship, I get an extra first-order term in my expression. My method is as follows:
- Start with the following equation based on the geometry shown in the graph linked above: $$\delta{x_f} = x(t_f + \delta{t_f}) - x^*(t_f)$$
- Focus, momentarily, on the first part of the right-hand expression: $$x(t_f + \delta{t_f}) = x^*(t_f + \delta{t_f}) + \delta{x^*(t_f + \delta{t_f})}$$
- Find the first-order taylor approximation of $x(t)$ about $t=t_f$: $$x(t) \doteq x^*(t_f) + \delta{x^*(t_f)} + \dot{x}^*(t_f)(t-t_f) + \delta\dot{x}^*(tf)(t-t_f)$$
- Plug this back into (1) and get the following: $$\delta{x_f} \doteq x^*(t_f) + \delta{x^*(t_f)} + \dot{x}^*(tf)\delta{t_f} + \delta\dot{x}(t_f)\delta{t_f} - x^*(t_f)$$
- Finally, cancel out the $x^*(t_f)$ terms and get: $$\delta{x_f} \doteq \delta{x(t_f)} + \dot{x}^*(t_f)\delta{t_f} + \delta\dot{x}^*(t_f)\delta{t_f}$$
Why does the textbook solution not include this extra $\delta\dot{x}^*(t_f)\delta{t_f}$ term? Did I mess up somewhere in my solution? Any help would be greatly appreciated.
