I'm having a hard time solving this problem:
Let there be a town $A$ in a shore of a river. Let $x=0$ be the shore. Let $(0,0)$ be the location of the town. Let $B$ be another town, in the oppossite shore, $x=b$, and let the town be in $(b,0)$. Suppose a person from town $A$ goes in a boat with velocity $v$ to $B$, always poiting at $B$ (see the picture), and let the river flow in the positive direction of $y$ with velocity $u$. Find the curve that gives the person's trayectory over time.
In an arbitrary point of the curve there will always be a system of three vectors, $v$, $u$ and $w=v+u$ in the following manner, where $w$, the tangent vector, is $u+v$. Their modulus is constant, thus since $v+u$ varies, the variables here are the angles and the modulus. Remember that $v$ always points at $B$. IN the image, the lengths of $v$ and $v_1$ and of $u$ and $u_1$ should be the same (since they're the same vector).

You can see that $v$ is "pushing" to get to $B$ but the vector $u$ will always modify $v$'s direction (and thus the man's), making the tangent actually be $w = u+v$. The dotted parallel lines are a reference to the tangent angle which is that between the dotted line and $w$. My approach is:
$$ \tan \theta = \frac{dy}{dx}$$
and the modulus of $v+u$ will satisfy, being a function of time.
$$|| v+u||(t) = \frac{ds}{dt}$$
I just need then to find a way of relating the modulus to the angle to find the solution.
Another thing that comes to mind is thinking as the solution in a parametric way, thus first finding $$\frac{dy}{dt} = f(t) $$ and $$\frac{dx}{dt} = g(t) $$ then taking the quotient and integrating.

I assume that $|u|$ and $|v|$ are constant. Since the boat is always pointing towards $(b.0)$, we know that $$ \frac{v_y}{v_x}=\frac{-y}{b-x}\tag{1} $$ Since $|v|^2=v_x^2+v_y^2$, we can square $(1)$ and add $1$, or square the reciprocal of $(1)$ and add $1$ to get $$ \begin{array}{} v_x=|v|\frac{b-x}{\sqrt{(b-x)^2+y^2}}&\text{and}&v_y=|v|\frac{-y}{\sqrt{(b-x)^2+y^2}} \end{array}\tag{2} $$ Since the river flow is in the positive $y$ direction, $u_y=|u|$ and $u_x=0$. The slope of the trajectory is the ratio of the total $y$-velocity to the total $x$-velocity: $$ \begin{align} \frac{\mathrm{d}y}{\mathrm{d}x} &=\frac{v_y+u_y}{v_x+u_x}\\ &=\frac{v_y+|u|}{v_x}\\ &=\frac{|u|\sqrt{(b-x)^2+y^2}-|v|y}{|v|(b-x)}\tag{3} \end{align} $$ which becomes $$ |v|((b-x)\;\mathrm{d}y-y\;\mathrm{d}(b-x))=-|u|\sqrt{(b-x)^2+y^2}\;\mathrm{d}(b-x)\tag{4} $$ Dividing $(4)$ by $(b-x)^2$ and rearranging yields $$ 0=|v|\;\mathrm{d}\frac{y}{b-x}+|u|\sqrt{1+\left(\frac{y}{b-x}\right)^2}\;\mathrm{d}\log\left(b-x\right)\tag{5} $$ Dividing $(5)$ by $\sqrt{1+\left(\frac{y}{b-x}\right)^2}$ yields $$ |v|\;\mathrm{d}\operatorname{arcsinh}\left(\frac{y}{b-x}\right)+|u|\;\mathrm{d}\log(b-x)=0\tag{6} $$ which means $$ |v|\operatorname{arcsinh}\left(\frac{y}{b-x}\right)+|u|\log(b-x)=C|v|\tag{7} $$ which leads to $$ \begin{align} y &=(b-x)\sinh\left(C-\frac{|u|}{|v|}\log(b-x)\right)\\ &=(b-x)\sinh\left(\frac{|u|}{|v|}\log\left(\frac{b}{b-x}\right)\right)\\ &=\frac{b-x}{2}\left[\left(\frac{b}{b-x}\right)^{|u|/|v|}-\left(\frac{b-x}{b}\right)^{|u|/|v|}\right]\tag{8} \end{align} $$ Note that $$ \lim_{x\to b^-}y=\left\{\begin{array}{}0&\text{if }|u|<|v|\\b/2&\text{if }|u|=|v|\\\infty&\text{if }|u|>|v|\end{array}\right.\tag{9} $$
Path of Crossing:
All paths below, except $\dfrac{|u|}{|v|}=1$, end directly across the river from the starting point, but most are very steep at the end. For $\dfrac{|u|}{|v|}=1$, the boat never reaches the other side, but it limits to the point $\frac12$ the river width downstream.
Time to Cross:
As the relative speed of the stream gets closer to the speed of the boat, the time to cross the stream increases. Combining $(2)$ and $(8)$ yields $$ \begin{align} T &=\int_0^b\frac{\mathrm{d}x}{v_x}\\ &=\frac{1}{|v|}\int_0^b\frac{\sqrt{(b-x)^2+y^2}}{b-x}\;\mathrm{d}x\\ &=\frac{1}{|v|}\int_0^b\sqrt{1+\left(\frac{y}{b-x}\right)^2}\;\mathrm{d}x\\ &=\frac{1}{|v|}\int_0^b\sqrt{1+\frac14\left[\left(\frac{b}{b-x}\right)^{|u|/|v|}-\left(\frac{b-x}{b}\right)^{|u|/|v|}\right]^2}\;\mathrm{d}x\\ &=\frac{1}{2|v|}\int_0^b\left[\left(\frac{b}{b-x}\right)^{|u|/|v|}+\left(\frac{b-x}{b}\right)^{|u|/|v|}\right]\;\mathrm{d}x\\ &=\frac{1}{2|v|}\left[\frac{b}{1-|u|/|v|}+\frac{b}{1+|u|/|v|}\right]\\ &=\frac{b}{|v|}\frac{1}{1-(|u|/|v|)^2}\tag{10} \end{align} $$ Thus, with no cross-current ($|u|=0$), $T=\dfrac{b}{|v|}$, and as $|u|\to|v|$, $T\to\infty$; both as expected.