Find the value of the number LaTeX: a a such that the families of curves LaTeX: y=\left(x+c\right)^{-1} y = ( x + c ) − 1 and LaTeX: y\:=\:a\le​ft(x\:+\:k​\right)^{\​frac{1}{3}​} y = a ( x + k ) 1 3 are orthogonal trajectories.

7 ビュー (過去 30 日間)
Find the value of the number a such that the families of curves y=(x+c)−1and y=a(x+k)13 are orthogonal trajectories.
im trying to write htis on matlab to have it solved can you help me
  3 件のコメント
Mauricio Alvarez
Mauricio Alvarez 2020 年 9 月 14 日
then the first is supposed to be y=(x+c)^-1
Walter Roberson
Walter Roberson 2020 年 9 月 14 日
Find the value of the number a such that families of curves and are othogonal trajectories

サインインしてコメントする。

採用された回答

Pranav Verma
Pranav Verma 2020 年 9 月 17 日
Hi Mauricio,
As per my understanding, you intend to solve the above mentioned system of equations pertaining to the specified condition of trajectories being orthogonal. I'd suggest using the diff and solve function in MATLAB for achieving the above task.
Please refer to syms documentation also to use diff and solve.
Also refer to the below discussions on the same lines:
Thanks
  4 件のコメント
Walter Roberson
Walter Roberson 2021 年 4 月 22 日
Orthoganal implies that the angle between angle between the two is 90 degrees. The angle of the original item is arctan of the tangent. Tangent is derivative. Derivative in MATLAB is diff() . So you have to start with diff() of the function, arctan, add pi/2, tan .
If you have calculated the derivative as y/x then tan(atan(y/x) + pi/2) works out as -x/y so you can skip the tan and arctan and go directly to taking the diff and calculating -1/diff as the angle of the orthoganal.
Now you equate the -1/diff and the second function and solve() for the parameter.
The essential MATLAB functions to use are diff() and solve() ... just like @Pranav Verma said.
... Unless you want to count multiplying by negative 1 or division as an essential MATLAB function that people need to call out in their volunteer explanations ?
Carlos Guerrero García
Carlos Guerrero García 2022 年 11 月 16 日
編集済み: Carlos Guerrero García 2022 年 11 月 19 日
I know that the following code is only a visual interpretation, buit I think it would be nice for a visual approach to the problem
[x,y]=meshgrid(-5:0.1:5); % An adecuate region for the visualization
for a=-3:0.01:3;
contour(x,y,x-1./y,20,'r'); % Plotting the curves of the first family
hold on; % For do not clear the figure
contour(x,y,(y/a).^3-x,[-10:10],'b'); % Plotting the curves of the second family for each value of the parameter
axis([-5 5 -5 5]); axis equal; % For the same scale
title(['a= ',num2str(a)]);
drawnow;
hold off;
end
So, while you're visualizing the animation, try to find the answer to the following cuestion: WHEN the blue lines are orthogonal to the red ones ?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCalculus についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by