Calculus · Differential equations

First-Order Differential Equations: A Field Guide for Students

A differential equation tells you how something changes, and asks you to figure out what it is. This post walks through the main types of first-order equations, how to recognise each one, and the trick that solves it, with worked examples throughout.

1. What is a first-order ODE?

Suppose you know the slope of a curve at every point, but not the curve itself. Writing that down gives a first-order differential equation. If it is solved for the derivative, it has the form

\[ y' = f(x, y), \tag{1} \]

where \(y = y(x)\) is the unknown function. You can picture the equation as a slope field: at each point \((x, y)\) of the plane draw a tiny segment of slope \(f(x, y)\). A solution is a curve that follows those segments everywhere.

Vocabulary
  • A function \(y = y(x)\) satisfying (1) is a solution (or integral) of the equation. Its graph is an integral curve.
  • A relation \( \varphi(x, y, c) = 0 \) containing an arbitrary constant \(c\) that satisfies (1) is the general integral (general solution).
  • Fixing a concrete value of \(c\) gives a particular solution.
  • A solution that cannot be obtained from the general one for any value of \(c\), and at whose every point uniqueness fails, is a singular solution (Section 8).

Why is there one constant? Because solving a first-order equation is "integrating once", and every integration brings in one constant. Geometrically, the general solution is a one-parameter family of curves, one for each \(c\).

2. The Cauchy problem: does a solution exist, and is it unique?

Usually we don't want the whole family, but the one curve passing through a given point. Finding the solution of (1) that satisfies the initial condition

\[ y = y_0 \quad \text{for} \quad x = x_0 \tag{2} \]

is called the Cauchy problem (initial value problem). If the equation is not defined at \((x_0, y_0)\) itself, but only near it, or if the initial values are infinite, we talk about a singular Cauchy problem: then we ask for a solution with \( y(x) \to y_0 \) as \( x \to x_0 \) (or \( x(y) \to x_0 \) as \( y \to y_0 \)).

Two classical theorems tell us when the Cauchy problem can be solved. Let \(R\) be the rectangle

\[ R:\ |x - x_0| < a, \quad |y - y_0| < b. \]
Theorem 1 · Peano (existence) If \(f(x, y)\) is continuous in \(R\) and bounded there, \( |f(x, y)| < M \), then (1) has at least one solution \(y = y(x)\) satisfying (2), defined and continuously differentiable on \[ |x - x_0| < h, \qquad h = \min\Big(a,\ \frac{b}{M}\Big). \]
Theorem 2 · Picard (existence and uniqueness) If, in addition, \( \dfrac{\partial f}{\partial y} \) exists and is bounded in \(R\), \[ \left|\frac{\partial f}{\partial y}\right| < K, \] then this solution is unique on the same interval \( |x - x_0| < h \).

Where does \( h = \min(a, b/M) \) come from? The slope of the solution never exceeds \(M\) in absolute value. Starting at \((x_0, y_0)\), the curve can therefore climb at most \(M\cdot|x - x_0|\), so it is guaranteed to stay inside the rectangle as long as \(M|x - x_0| < b\), that is, \(|x - x_0| < b/M\). It also cannot leave the rectangle sideways, which gives the bound \(a\).

Example 1 · Existence without uniqueness Consider \( y' = 3y^{2/3} \), \( y(0) = 0 \). The right side is continuous, so Peano guarantees a solution. But there are at least two: \[ y \equiv 0 \qquad \text{and} \qquad y = x^3. \] (Check: \( (x^3)' = 3x^2 = 3(x^3)^{2/3} \).) Picard fails because \( \frac{\partial f}{\partial y} = 2y^{-1/3} \) is unbounded near \(y = 0\). The extra condition in Picard's theorem is exactly what prevents this kind of branching.

3. Separable equations

This is the simplest type and the one every other method tries to reduce to. An equation of the form

\[ P(x)\,dx + Q(y)\,dy = 0 \]

is called separable: everything with \(x\) is on one side, everything with \(y\) on the other. Integrate both:

\[ \int P(x)\,dx + \int Q(y)\,dy = c. \]

An equation \( y' = g(x)h(y) \) is separable too: write \( \frac{dy}{h(y)} = g(x)\,dx \).

Example 2 \( y' = xy,\ y(0) = 1 \). Separate: \( \frac{dy}{y} = x\,dx \). Integrate: \( \ln|y| = \frac{x^2}{2} + c \), so \( y = Ce^{x^2/2} \). The initial condition gives \(C = 1\): \[ y = e^{x^2/2}. \]
Don't lose solutions Dividing by \(h(y)\) silently assumes \(h(y) \ne 0\). The constant functions \(y = y^*\) with \(h(y^*) = 0\) are also solutions; check whether they are included in your general formula (above, \(y = 0\) is included as \(C = 0\)).

4. Homogeneous equations (and equations reducible to them)

4.1 The basic homogeneous equation

An equation of the form

\[ y' = f\Big(\frac{y}{x}\Big), \quad \text{or equivalently} \quad M(x, y)\,dx + N(x, y)\,dy = 0 \]

with \(M\) and \(N\) homogeneous functions of the same degree, is called homogeneous. The slope depends only on the ratio \(y/x\), so it is the same along every ray through the origin.

The trick: substitute \( y = ux \), where \(u\) is a new unknown function. Then \( y' = u + xu' \), and the equation becomes \( u + xu' = f(u) \), which is separable:

\[ \int \frac{du}{f(u) - u} = \ln|x| + c. \]
Example 3 \( y' = \dfrac{x + y}{x} = 1 + \dfrac{y}{x} \). With \(y = ux\): \( u + xu' = 1 + u \), so \( u' = \frac1x \) and \( u = \ln|x| + c \). Therefore \[ y = x\ln|x| + cx. \]

4.2 Linear fractions: shifting the origin

An equation of the form

\[ y' = f\left(\frac{a_1x + b_1y + c_1}{ax + by + c}\right) \]

is not homogeneous because of the constants \(c, c_1\). The fix is geometric:

Example 4 \( y' = \dfrac{x + y - 3}{x - y - 1} \). The lines \(x + y = 3\) and \(x - y = 1\) meet at \((2, 1)\). Put \(x = X + 2,\ y = Y + 1\): \[ \frac{dY}{dX} = \frac{X + Y}{X - Y}. \] With \(Y = uX\): \( u + Xu' = \frac{1+u}{1-u} \), so \( Xu' = \frac{1+u^2}{1-u} \). Separating, \[ \int \frac{1-u}{1+u^2}\,du = \ln|X| + c \;\Longrightarrow\; \arctan u - \tfrac12\ln(1+u^2) = \ln|X| + c. \] Back in the original variables: \[ \arctan\frac{y-1}{x-2} = \ln\sqrt{(x-2)^2 + (y-1)^2} + c. \] In polar coordinates around \((2, 1)\) this reads \( \theta = \ln r + c \): a family of logarithmic spirals. Remember this one, we meet it again in Section 9.

4.3 Making an equation homogeneous with \(y = z^m\)

Some equations become homogeneous after the substitution \( y = z^m \). The number \(m\) is not known in advance: substitute, then choose \(m\) so that all terms have the same total degree in \(x\) and \(z\) (the derivative \(z'\) counts as degree 0, since \(z'\) behaves like \(z/x\)).

Example 5 · Finding m \( 2x^4yy' + y^4 = 4x^6 \). With \( y = z^m \), \( y' = mz^{m-1}z' \), the three terms have degrees \[ 4 + 2m - 1, \qquad 4m, \qquad 6. \] Setting them equal: \( 2m + 3 = 4m = 6 \Rightarrow m = \tfrac32 \). So \( y = z^{3/2} \) turns the equation into a homogeneous one, which is then solved with \(z = ux\). If no such \(m\) exists, this method doesn't apply.

5. Linear, Bernoulli and Riccati equations

5.1 The linear equation

An equation of the form

\[ y' + p(x)\,y = q(x) \]

is called linear (linear in \(y\) and \(y'\), the coefficients can be any functions of \(x\)). Its general solution is

\[ y = e^{-\int p(x)\,dx}\left(c + \int q(x)\,e^{\int p(x)\,dx}\,dx\right). \]

Where does the formula come from? Multiply the equation by \( \mu(x) = e^{\int p\,dx} \). Since \( \mu' = p\mu \), the left side becomes a perfect derivative:

\[ (\mu y)' = \mu q \quad\Longrightarrow\quad \mu y = \int \mu q\,dx + c. \]

You don't need to memorise the formula if you remember this step. In many courses the same result is reached with the substitution \( y = uv \): choose \(v\) so that the terms with \(u\) cancel (\(v' + pv = 0\)), then find \(u\) from \(u'v = q\).

Example 6 \( y' + \dfrac{y}{x} = x^2 \). Here \( \mu = e^{\int dx/x} = x \), and \[ (xy)' = x^3 \;\Longrightarrow\; xy = \frac{x^4}{4} + c \;\Longrightarrow\; y = \frac{x^3}{4} + \frac{c}{x}. \]

5.2 Bernoulli's equation

\[ y' + p(x)\,y = q(x)\,y^{\alpha} \qquad (\alpha \ne 0, 1). \]

For \(\alpha = 0\) or \(1\) it is already linear. Otherwise, divide by \(y^\alpha\) and substitute \( z = y^{1-\alpha} \); the equation becomes linear in \(z\):

\[ \frac{1}{1-\alpha}\,z' + p(x)\,z = q(x). \]

(It can also be solved directly with \( y = uv \).)

Example 7 \( y' + \dfrac{y}{x} = xy^2 \), so \(\alpha = 2\) and \( z = y^{-1} \), \( z' = -y^{-2}y' \). Dividing by \(y^2\): \[ -z' + \frac{z}{x} = x \;\Longrightarrow\; z' - \frac{z}{x} = -x. \] With \(\mu = \frac1x\): \( \big(\frac{z}{x}\big)' = -1 \), so \( z = cx - x^2 \) and \[ y = \frac{1}{cx - x^2}. \] (Also \(y = 0\) is a solution, lost when we divided by \(y^2\).)

5.3 Riccati's equation

\[ y' + p(x)\,y^2 + q(x)\,y = r(x). \]

In general, Riccati's equation cannot be solved by elementary integration. But if you know (or can guess) one particular solution \(y_1\), the substitution

\[ y = y_1 + \frac{1}{z} \]

turns it into a linear equation for \(z\).

Example 8 \( y' + y^2 = \dfrac{2}{x^2} \). Guess \( y_1 = \frac{a}{x} \): \( -\frac{a}{x^2} + \frac{a^2}{x^2} = \frac{2}{x^2} \), so \( a^2 - a - 2 = 0 \) and \(a = 2\) works. Put \( y = \frac2x + \frac1z \). After simplifying: \[ z' - \frac{4}{x}\,z = 1. \] With \(\mu = x^{-4}\): \( (zx^{-4})' = x^{-4} \), so \( z = Cx^4 - \frac{x}{3} \), and \[ y = \frac{2}{x} + \frac{3}{3Cx^4 - x}. \]

6. Exact equations and integrating factors

6.1 Exact equations

Recall from multivariable calculus: the total differential of \(F(x, y)\) is \( dF = F_x\,dx + F_y\,dy \). If an equation

\[ P(x, y)\,dx + Q(x, y)\,dy = 0 \]

happens to be \(dF = 0\) for some \(F\), then its solutions are simply the level curves \(F(x, y) = C\). Such an equation is called exact (an equation of the total differential), and the test is

\[ \frac{\partial P}{\partial y} = \frac{\partial Q}{\partial x}. \]

The general integral can be found from

\[ \int P(x, y)\,dx + \int\left[Q(x, y) - \frac{\partial}{\partial y}\int P(x, y)\,dx\right]dy = C, \]

or, if \(P\) and \(Q\) are defined at a point \((x_0, y_0)\), from the line-integral form

\[ \int_{x_0}^{x} P(x, y)\,dx + \int_{y_0}^{y} Q(x_0, y)\,dy = C. \]

In practice it's easiest to proceed step by step: integrate \(P\) with respect to \(x\) (adding an unknown \(g(y)\) instead of a constant), then differentiate with respect to \(y\) and compare with \(Q\) to find \(g\).

Example 9 \( (2xy + 3)\,dx + (x^2 + 4y)\,dy = 0 \). Check: \( P_y = 2x = Q_x \). Exact.

\( F = \int (2xy + 3)\,dx = x^2y + 3x + g(y) \). Then \( F_y = x^2 + g'(y) = x^2 + 4y \), so \( g(y) = 2y^2 \). The general integral is

\[ x^2y + 3x + 2y^2 = C. \]

6.2 Integrating factors

Most equations are not exact, but some become exact after multiplying by a suitable function \(\mu(x, y)\), an integrating factor. The condition \( \frac{\partial(\mu P)}{\partial y} = \frac{\partial(\mu Q)}{\partial x} \) expands to

\[ P\frac{\partial\mu}{\partial y} - Q\frac{\partial\mu}{\partial x} = \mu\left(Q_x' - P_y'\right). \]

This is a partial differential equation, generally harder than the original problem. It becomes easy when \(\mu\) depends on only one variable:

Integrating factor of one variable
  • \(\mu = \mu(x)\) exists if \( \dfrac{P_y' - Q_x'}{Q} \) depends only on \(x\); then \( \dfrac{d\ln\mu}{dx} = \dfrac{P_y' - Q_x'}{Q}. \)
  • \(\mu = \mu(y)\) exists if \( \dfrac{Q_x' - P_y'}{P} \) depends only on \(y\); then \( \dfrac{d\ln\mu}{dy} = \dfrac{Q_x' - P_y'}{P}. \)
Example 10 \( (x^2 + y)\,dx - x\,dy = 0 \). Here \(P_y = 1\), \(Q_x = -1\): not exact. Compute \[ \frac{P_y - Q_x}{Q} = \frac{2}{-x} = -\frac{2}{x}, \] which depends only on \(x\). So \( \ln\mu = -2\ln|x| \), \( \mu = \frac{1}{x^2} \). Multiplying: \[ \Big(1 + \frac{y}{x^2}\Big)dx - \frac{1}{x}\,dy = 0, \] which is exact with \( F = x - \frac{y}{x} \). Hence \( x - \frac{y}{x} = C \), i.e. \( y = x^2 - Cx \). (Note: the original equation is also linear, \( y' - \frac{y}{x} = x \). Often several methods work.)

7. Equations not solved for \(y'\): parameters, Clairaut and Lagrange

Sometimes the equation comes in the general form \( F(x, y, y') = 0 \), and solving for \(y'\) is impossible or ugly. The key idea in this section: treat \(y' = p\) as a parameter and describe the solution curves parametrically.

7.1 Equations \(f(x, y') = 0\) and \(f(y, y') = 0\)

If from \( f(x, y') = 0 \) we can express \( x = \varphi(p) \), where \(p = y'\), then \( dx = \varphi'(p)\,dp \), and since \( dy = p\,dx \),

\[ x = \varphi(p), \qquad y + c = \int p\,\varphi'(p)\,dp. \]

This is the solution in parametric form. The equation \(f(y, y') = 0\) is handled the same way, using \( dx = \frac{dy}{p} \).

Example 11 \( x = y'^3 + y' \). Put \(y' = p\): \( x = p^3 + p \), \( dx = (3p^2 + 1)\,dp \), so \( dy = p(3p^2 + 1)\,dp \): \[ x = p^3 + p, \qquad y = \frac{3p^4}{4} + \frac{p^2}{2} + c. \]

For the general equation \(F(x, y, y') = 0\), it often helps to solve it for \(y\) first. When this gives \( y = \varphi(y')\,x + \psi(y') \), linear in \(x\), the equation can always be integrated. Two cases matter:

7.2 Clairaut's equation: \(\varphi(y') = y'\)

\[ y = y'x + \psi(y'). \]

Its general solution is obtained by simply replacing \(y'\) with \(c\):

\[ y = cx + \psi(c), \]

a family of straight lines. In addition, the equation can have a singular integral, obtained by eliminating \(p\) from

\[ y = px + \psi(p) \qquad \text{and} \qquad x + \psi'(p) = 0. \]
Example 12 \( y = xy' + y'^2 \). General solution: \( y = cx + c^2 \). Singular: \( x + 2p = 0 \Rightarrow p = -\frac{x}{2} \), and \[ y = -\frac{x^2}{2} + \frac{x^2}{4} = -\frac{x^2}{4}. \] Every line \(y = cx + c^2\) is tangent to this parabola: the parabola is the envelope of the family (Section 8).

7.3 Lagrange's equation: \(\varphi(y') \ne y'\)

\[ y = \varphi(y')\,x + \psi(y'). \]

Put \(y' = p\), differentiate with respect to \(x\), and treat \(x\) as a function of \(p\). Since \(dy = p\,dx\), you get a linear equation for \(x(p)\):

\[ \big[\varphi(p) - p\big]\frac{dx}{dp} + x\,\varphi'(p) + \psi'(p) = 0. \]

Solve it for \(x(p)\), then \(y\) follows from the original equation. Additionally, the equation may have singular solutions of the form \( y = \varphi(c)\,x + \psi(c) \), where \(c\) is a root of \( c = \varphi(c) \) (these straight lines are lost when dividing by \(\varphi(p) - p\)).

Example 13 \( y = 2xy' - y'^2 \): \(\varphi(p) = 2p\), \(\psi(p) = -p^2\). The linear equation is \[ p\,\frac{dx}{dp} + 2x - 2p = 0 \;\Longrightarrow\; (xp^2)' = 2p^2 \;\Longrightarrow\; x = \frac{2p}{3} + \frac{C}{p^2}. \] Then \( y = 2xp - p^2 = \frac{p^2}{3} + \frac{2C}{p} \). Together these give the solution parametrically. From \(c = \varphi(c) = 2c\) we get \(c = 0\), i.e. the extra solution \(y = 0\).

8. Singular solutions and envelopes

8.1 The p-discriminant

Suppose \(F(x, y, y')\) and its partial derivatives \(\frac{\partial F}{\partial y}\), \(\frac{\partial F}{\partial y'}\) are continuous. Then every singular solution of

\[ F(x, y, y') = 0 \tag{6} \]

also satisfies

\[ \frac{\partial F(x, y, y')}{\partial y'} = 0. \tag{7} \]

So, to find candidates, eliminate \(y'\) from (6) and (7). The resulting curve \(\psi(x, y) = 0\) is the discriminant curve.

Candidates, not answers For each branch of the discriminant curve you must check two things:
  1. Is it a solution of (6) at all? (Plug it in.)
  2. If yes, is it singular, i.e. is uniqueness violated at every one of its points? This is easy to check when you know the general solution: see whether other solutions touch it at each point.
The discriminant curve can also contain curves that are not solutions at all (for example, cusp loci of the integral curves).

8.2 Envelopes: the c-discriminant

An envelope of a family of curves is a curve that touches every member of the family. If the general solution \( \Phi(x, y, c) = 0 \) has an envelope \(y = \varphi(x)\), that envelope is a singular solution: at each of its points the envelope and a family member share the same point and the same slope, so two different solutions pass through it and uniqueness fails.

If \(\Phi\) has continuous first derivatives, the envelope is found by eliminating \(c\) from

\[ \Phi(x, y, c) = 0 \qquad \text{and} \qquad \frac{\partial \Phi(x, y, c)}{\partial c} = 0, \]

after which you must check that the obtained curve really is an envelope (again, it could instead be a locus of singular points of the curves).

Example 14 · Both methods agree \( y'^2 = 4y \).

p-discriminant: \(F = p^2 - 4y\), \(F_p = 2p = 0\), so \(p = 0\) and \(y = 0\). It is a solution (\(0 = 0\)).

General solution: \( y' = \pm 2\sqrt{y} \Rightarrow \sqrt{y} = \pm(x - c) \Rightarrow y = (x - c)^2 \), a family of parabolas.

c-discriminant: \( \Phi = (x - c)^2 - y \), \( \Phi_c = -2(x - c) = 0 \Rightarrow c = x \Rightarrow y = 0 \).

Each parabola \(y = (x - c)^2\) touches the \(x\)-axis at \((c, 0)\). So \(y = 0\) is the envelope, and through every one of its points two solutions pass: \(y = 0\) itself and a parabola. Hence \(y = 0\) is a singular solution.

9. Isogonal and orthogonal trajectories

Here is a lovely geometric application. Given a family of curves \(f(x, y, a) = 0\), an isogonal trajectory is a curve that crosses every member of the family at the same angle \(\alpha\). When \(\alpha = \frac{\pi}{2}\), the trajectories are called orthogonal. Think of field lines crossing equipotential curves, or the lines of steepest descent crossing the contour lines on a map.

The slope of the family curve through \((x, y)\) is \( k = -\frac{f_x}{f_y} \). If the trajectory has slope \(y'\), the angle between them satisfies \( \operatorname{tg}\alpha = \frac{y' - k}{1 + ky'} \). Substituting \(k\), the differential equation of the trajectories is obtained by eliminating \(a\) from

\[ f(x, y, a) = 0 \qquad \text{and} \qquad \operatorname{tg}\alpha = \frac{\dfrac{\partial f}{\partial y}\,y' + \dfrac{\partial f}{\partial x}}{\dfrac{\partial f}{\partial y} - \dfrac{\partial f}{\partial x}\,y'}. \]
Shortcut for orthogonal trajectories For \(\alpha = \frac{\pi}{2}\) the denominator must vanish. In practice: find the differential equation of the family, \( y' = g(x, y) \), then replace \( y' \) by \( -\dfrac{1}{y'} \) (perpendicular slopes multiply to \(-1\)) and solve.
Example 15 · Orthogonal trajectories of parabolas Family: \( y = ax^2 \). Eliminate \(a\): \( a = \frac{y}{x^2} \), and \( y' = 2ax = \frac{2y}{x} \). Replace \(y'\) by \(-\frac{1}{y'}\): \[ -\frac{1}{y'} = \frac{2y}{x} \;\Longrightarrow\; 2y\,dy = -x\,dx \;\Longrightarrow\; \frac{x^2}{2} + y^2 = C. \] The orthogonal trajectories are a family of ellipses, centred at the origin.
Example 16 · Isogonal trajectories at 45° Family: lines through the origin, \( y = ax \), so \(f = y - ax\), \(f_y = 1\), \(f_x = -a = -\frac{y}{x}\). With \(\alpha = \frac{\pi}{4}\) (\(\operatorname{tg}\alpha = 1\)): \[ 1 = \frac{y' - \frac{y}{x}}{1 + \frac{y}{x}y'} \;\Longrightarrow\; y' = \frac{x + y}{x - y}. \] That is precisely the homogeneous equation from Example 4! Its solutions are the logarithmic spirals \( r = Ce^{\theta} \), which cross every ray from the origin at 45°.

10. How to recognise the type

Solving first-order equations is mostly about recognition. Run through this list:

  1. Can you separate the variables? Then integrate both sides.
  2. Does \(y'\) depend only on \(y/x\)? Homogeneous, substitute \(y = ux\). Linear fractions with constants: shift the origin first.
  3. Are \(y\) and \(y'\) only to the first power? Linear: use \(\mu = e^{\int p\,dx}\) or \(y = uv\).
  4. Linear, except for a \(y^\alpha\) on the right? Bernoulli: \(z = y^{1-\alpha}\).
  5. Is there a \(y^2\) term and you know one solution? Riccati: \(y = y_1 + \frac1z\).
  6. Written as \(P\,dx + Q\,dy = 0\)? Test \(P_y = Q_x\). If not exact, look for \(\mu(x)\) or \(\mu(y)\).
  7. Not solvable for \(y'\)? Put \(y' = p\). Check for Clairaut (\(y = xp + \psi(p)\)) or Lagrange (\(y = x\varphi(p) + \psi(p)\)).
  8. Asked for singular solutions? Use the p-discriminant or the c-discriminant, then verify.
TypeFormMethod
Separable\(P(x)\,dx + Q(y)\,dy = 0\)integrate each side
Homogeneous\(y' = f(y/x)\)\(y = ux\)
Linear fractional\(y' = f\big(\frac{a_1x+b_1y+c_1}{ax+by+c}\big)\)shift origin, or \(z = ax + by\)
Linear\(y' + p(x)y = q(x)\)\(\mu = e^{\int p\,dx}\) or \(y = uv\)
Bernoulli\(y' + py = qy^\alpha\)\(z = y^{1-\alpha}\)
Riccati\(y' + py^2 + qy = r\)\(y = y_1 + 1/z\)
Exact\(P\,dx + Q\,dy = 0,\ P_y = Q_x\)find \(F\), answer \(F = C\)
Clairaut\(y = xy' + \psi(y')\)\(y = cx + \psi(c)\) + singular
Lagrange\(y = x\varphi(y') + \psi(y')\)linear equation for \(x(p)\)

11. Practice problems

Identify the type first, then solve. Solutions are hidden. More solved problems from this topic are in First-Order Differential Equations.

Problem 1: \( (1 + x^2)\,y' = 1 + y^2 \)

Separable: \( \frac{dy}{1+y^2} = \frac{dx}{1+x^2} \Rightarrow \arctan y = \arctan x + c \). Taking tangents: \( y = \dfrac{x + C}{1 - Cx} \).

Problem 2: \( xy' = y + \sqrt{x^2 + y^2} \) (\(x > 0\))

Homogeneous: \( y' = u + \sqrt{1 + u^2} \). With \(y = ux\): \( xu' = \sqrt{1+u^2} \Rightarrow \ln\big(u + \sqrt{1+u^2}\big) = \ln x + c \Rightarrow u + \sqrt{1+u^2} = Cx \). Solving for \(u\): \( y = \dfrac{Cx^2}{2} - \dfrac{1}{2C} \), a family of parabolas.

Problem 3: \( y' - 2xy = x \)

Linear, \( \mu = e^{-x^2} \): \( (ye^{-x^2})' = xe^{-x^2} \Rightarrow ye^{-x^2} = -\frac12e^{-x^2} + c \Rightarrow y = Ce^{x^2} - \frac12 \).

Problem 4: \( y' + y = e^{x}y^{2} \)

Bernoulli with \(\alpha = 2\), \(z = y^{-1}\): \( z' - z = -e^x \). With \(\mu = e^{-x}\): \( (ze^{-x})' = -1 \Rightarrow z = (c - x)e^x \). So \( y = \dfrac{e^{-x}}{c - x} \) (and \(y = 0\)).

Problem 5: \( (3x^2 + y\cos x)\,dx + (\sin x - 4y^3)\,dy = 0 \)

\( P_y = \cos x = Q_x \): exact. \( F = x^3 + y\sin x + g(y) \), \( F_y = \sin x + g'(y) = \sin x - 4y^3 \Rightarrow g = -y^4 \). Answer: \( x^3 + y\sin x - y^4 = C \).

Problem 6: \( y = xy' + \dfrac{1}{y'} \)

Clairaut with \(\psi(p) = \frac1p\). General solution: \( y = cx + \frac1c \). Singular: \( x - \frac{1}{p^2} = 0 \Rightarrow p = \pm\frac{1}{\sqrt x} \), and \( y = px + \frac1p = \pm 2\sqrt{x} \), i.e. \( y^2 = 4x \), the envelope of the family of lines.

Problem 7: Orthogonal trajectories of the circles \( x^2 + y^2 = 2ax \)

Differentiate: \( 2x + 2yy' = 2a \), with \( 2a = \frac{x^2 + y^2}{x} \): \( y' = \frac{y^2 - x^2}{2xy} \). Replace \(y'\) by \(-\frac{1}{y'}\): \( y' = \frac{2xy}{x^2 - y^2} \), a homogeneous equation. Its solution is \( x^2 + y^2 = 2by \): circles tangent to the \(x\)-axis at the origin.

Final thoughts

All the methods here share one strategy: transform the equation into one you can already solve. Homogeneous equations become separable; Bernoulli and Riccati equations become linear; multiplying by an integrating factor makes an equation exact; Lagrange's equation turns into a linear one for \(x(p)\). When you meet a new equation, the question to ask isn't "what's the formula?" but "which substitution brings it back to familiar ground?"

Next in the series: higher-order equations, reducing the order, and linear equations with constant coefficients.