We can find a and b by comparing the coordinate values of P0 and Pf with the components of r(t). This is simple since the i component of r(t) is just t, such that:
i:a=P0x=−21
We can check this against the j and k components to verify if they are correct:
A suitable path would have low and smooth curvature in order to avoid sudden changes in acceleration. We can quantitatively analyze the acceleration by finding the magnitude of the second derivative of r(t). First we can parametrize r(t) so that we have:
x(t)y(t)z(t)=t=3t=1.5t2−0.25t
Taking the second derivatives we have:
x′′(t)y′′(t)z′′(t)=0=0=3
Thus, the magnitude the acceleration vector r′′(t)=⟨0,0,3⟩ is just constant at 3 m/s. This is a suitable drone path because there are no sudden changes in acceleration. However, it should be considered whether the acceleration of 3 m/s is too high, which can be a concern due to increased power consumption, potential instability, and increased wear and tear on components.
Question 3
3a.
3b.
When comparing the plot and the results from part (a), it seems that fminsearch converges to local minima of −2 in various places in the domain. The function f(x,y)=cos(x)+sin(y) has multiple local minima, which makes sense as both sine and cosine functions are periodic but they have minima at different points. As far as I know, there is no way we can address the problem with fminsearch for this particular function due to its periodic nature.