Question

In: Mechanical Engineering

Use MuPAD to find the point on the line y = 2 – x/3 that is closest to the point x = -3, y = 1.

Use MuPAD to find the point on the line y = 2 – x/3 that is closest to the point x = -3, y = 1.

 

 

Solutions

Expert Solution

The distance between two points (x1, y1) and (x2, y2) is given by the formula

d = √{(x1, x2)2 + (y1, y2)2}

 

A co-ordinate on the line can be obtained in terms of y. That point can be used to find the distance between the point on the line and (-3, 1). Finally, the function obtained can be differentiated and solved to find the root and minimum distance.

 

Now, our line is:

y = 2 – x/3

3y + x – 6 = 0

 

Therefore, point on the line is (6 – 3y, y).

 

The distance is

d = √{(6 – 3y + 3)2 + (y – 1)2}

 

We need to minimize the above function in MATLAB

 

The MATLAB code is given below:

 

Input:

syms y

d = (6-3*y+3)^2 + (y-1)^2;

dif = diff(d)

solve(dif)

 

Output:

 

Therefore,

y = 14/5

x = 6 – 3y

x = 6 – 42/5 = -2.4


Therefore,

y = 14/5

x = 6 – 3y

x = 6 – 42/5 = -2.4

Related Solutions

Find the point on the line 2x − y + 2 = 0 that is closest...
Find the point on the line 2x − y + 2 = 0 that is closest to the point (1, 5).
2. Find the point on the line 6x+y=9 that is closest to the point (-3,1). a....
2. Find the point on the line 6x+y=9 that is closest to the point (-3,1). a. Find the objective function. b. Find the constraint. c. Find the minimum (You need to specify your method)
Find the point on the line y = 3x + 4 that is closest to the...
Find the point on the line y = 3x + 4 that is closest to the origin. (x, y) =   
Homework #3 a) Find the point of intersection of the line x = 2-3t, y =...
Homework #3 a) Find the point of intersection of the line x = 2-3t, y = 3 + t, z = 5t and the plane 3x-2y + z = 5 b)Find the equation of the plane that passes through (1,2,3) and is parallel to the plane 2x-3y + z = 1 c)Find the equation of the plane that contains the line x = 2-3t, y = 3 + t, z = 5t and goes through the point (1,2, 3)
Find the point on the curve y=4x+4 closest to the point (0,8) (x,y)=
Find the point on the curve y=4x+4 closest to the point (0,8) (x,y)=
Find an equation of the tangent line to y = (x+1)/(x−3) at the point (1, −1)....
Find an equation of the tangent line to y = (x+1)/(x−3) at the point (1, −1). Show all work legibly
Use MuPAD to find all the values of x where the graph of y = 3x - 2x has a horizontal tangent line.
Use MuPAD to find all the values of x where the graph of y = 3x - 2x has a horizontal tangent line.  
Find the point on the line −4x+4y+4=0 which is closest to the point (−3,−5)
Find the point on the line −4x+4y+4=0 which is closest to the point (−3,−5)
find the point on the line 6x+2y-3=0 which is closest to the point (-4, -4)
find the point on the line 6x+2y-3=0 which is closest to the point (-4, -4)
Find the point of intersection of the lines (x-2)/- 3 = (y-2)/6 = z-3 & (x-3)/2...
Find the point of intersection of the lines (x-2)/- 3 = (y-2)/6 = z-3 & (x-3)/2 = y+5 = (z+2)/4. Write the answer as (a, b, c). If they are not cut, write: NO
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT