Artificial intelligent assistant

Quasilinear PDE:$(x^2+1)u_x +2xu_y = 0, u(0,y)=\phi(y)$ I am trying to solve the PDE $$(x^2+1)u_x +2xu_y = 0, u(0,y)=\phi(y)$$ The solution is given here at the end of the third page and begining of the fourth and the author concluded at a step that $\dot{y} = 2y \tan(t)$. But I dont understand: Since $\dot{y}=2x$ and $x=\tan(t)$, isnt $\dot{y}=2\tan(t) \Rightarrow y = -\ln|cos(t)| + C$? I dont uderstand what he did and the answer. What is wro g with my idea? Thanks in advance!

It looks like an error in the notes to me. If you plug in the solution found in the notes (which is what the author suggests you do in Exercise 0.4), you get $$ (x^2 + 1) u_x = (x^2 + 1) \left[ 2 y x \phi'(y(1 + x^2))\right] $$ but $$ 2x u_y = 2x \left[ (1 + x^2) \phi'(y(1 + x^2))\right] $$ and so $$ (x^2+1)u_x +2xu_y = \left[ (x^2 + 1) (2 y x + 2x) \right] \phi'(y(1 + x^2)) \
eq 0. $$ The solution found in the notes would be the solution to the equation $(x^2+1)u_x - 2xyu_y = 0$ (note the change in sign in the second term) with the same boundary conditions.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy c09f54a6582a72c24bb536153c13e214