Chapter 4: Partial Differentiation
Section 4.8: Unconstrained Optimization
Example 4.8.9
If both and are bound to the origin, project U onto V. Hint: Find the minimum distance from the tip of U to the line along V.
Solution
Mathematical Solution
The distance from the tip of U to the line along V is , the norm of the vector , where is the position-vector form for the line along .
= =
Minimize by solving for , so that .
Of course, the projection of U onto V is also given by , but
=
Maple Solution - Interactive
Initialize
Tools≻Load Package: Student Multivariate Calculus
Loading Student:-MultivariateCalculus
Obtain the line through the origin and along V
Write a sequence of the origin and the vector V.
Context Panel: Student Multivariate Calculus≻Lines & Planes≻Line
Context Panel: Assign to a Name≻
Obtain the projection of U onto the line along V
Write a sequence of the point at the tip of U, and the name , then press the Enter key.
Context Panel: Student Multivariate Calculus≻Lines & Planes≻Projection
Context Panel: Conversions≻Column Vector
Now, obtain this same projection by minimizing the distance from the tip of U to the line along V.
Obtain the position-vector form for line
Write the name .
Context Panel: Evaluate and Display Inline
Context Panel: Student Multivariate Calculus≻Lines & Planes≻Representation
Context Panel: Assign to a Name≻R
Obtain , the distance from U to line
Write the difference of vectors U and R. Press the Enter key.
Context Panel: Norm≻Euclidean
Context Panel: Simplify≻Assuming Real
Minimize
Calculus palette: Differentiation operator Press the Enter key.
Context Panel: Solve≻Solve
Evaluate R at the minimizing value of
Expression palette: Evaluation template
Maple Solution - Coded
Install the Student MultivariateCalculus package.
Define the vectors U and V.
Apply the Projection command to obtain the projection of U onto V.
Apply the simplify command to , using the Norm command from Student LinearAlgebra.
Find the critical number for by applying the diff and solve commands.
Obtain the projection of U onto V by computing the vector .
<< Previous Example Section 4.8 Next Example >>
© Maplesoft, a division of Waterloo Maple Inc., 2024. All rights reserved. This product is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation.
For more information on Maplesoft products and services, visit www.maplesoft.com
Download Help Document