I'm relearning Mathematica after a long time away, and trying to remember how to do some things best.
At this point, I'm trying to evaluate $\frac{dy}{dx}$, given: $$ \begin{align} y&=\frac{3}{t}\\ x&=\sqrt{1-3t} \end{align} $$
I can, of course, find it using the identity $dy/dx=\frac{dy/dt}{dx/dt}$:
In[1]:= y[t_] = 3/t; x[t_] = Sqrt[1-3t];
In[2]:= D[y[t],t] / D[x[t],t]
2 Sqrt[1 - 3 t]
Out[2]= ---------------
2
t
But it seems that Mathematica probably has a more straightforward way to do this. What is the best way to do this?
Edit: In this case, it's easy to use the identity $dy/dx=\frac{dy/dt}{dx/dt}$ myself. I'm looking for a more general case, though, when it's not as obvious.
Really, I suppose I'm looking for something roughly equivalent to:
Solve[{y == 3/t, x == Sqrt[1-3t]}, Dt[y,x]] (* incorrect *)