Transformation and reduction

So far we have seen how to solve differential equations by direct integration, by separation of variables, by integrating factors: conversion to a product (linear equations), and by gradients (exact equations).

Many differential equations do not immediately appear to have the standard form to which these methods are applicable, but in fact these methods can be applied after performing a transformation. The possibility of some of these transformations can be checked systematically, but for others we rely on an art – not a mechanical science – of finding an appropriate substitution. This art is based on experience and honed by practice.

Homogeneous equations: conversion to separable

Homogeneous functions A function is homogeneous when the input variable appears everywhere in the same degree. More precisely and technically, f(x) is homogeneous when f(tx)=tαf(x) for some α. Similarly g(x,y) is homogeneous when g(tx,ty)=tαg(x,y) for some α. (Likewise for more variables.) In this situation α is called the degree of homogeneity.

In other words, a function is homogeneous when the action of scaling the inputs simultaneously can be factored out to an action of scaling the output.

For example, these functions are homogeneous:

x2+xy,sin(x/y),x2+y2

whereas these are not:

x2+x,sin(xy),x1y2.

Homogeneous differential equations Now, suppose we have a differential equation in the form:

dydx=M(x,y)N(x,y),

where M and N are homogeneous functions of the same degree. Then the change of variables z=y/x (by substituting y=zx) will convert the quotient on the right to a function of z alone, and the equation as a whole to a separable equation, which we can solve for z and at the end the solution can be converted to an expression in y by substituting back z=y/x.

Homogeneous substitution

Suppose M(x,y) and N(x,y) are homogeneous of the same degree α. Then M(x,y)/N(x,y) depends only on the ratio z=y/x:

M(x,y)N(x,y)=M(x,zx)N(x,zx)=xαM(1,z)xαN(1,z)=M(1,z)N(1,z)=:F(z).

Separability then occurs because:

ddxy=ddx(zx)=dzdxx+z,

so the equation dydx=F(z) is equivalent to

dzF(z)z=dxx,

and the general solution is the family of curves given by:

dzF(z)z=ln|x|+c.

Alternate format The differential equation

M(x,y)dx+N(x,y)dy=0

is homogeneous if M(x,y) and N(x,y) are both homogeneous of the same degree. It can be transformed with the same substitution z=y/x and the result is separable.

Question 03-01

Homogeneous?

Is xy=y+2xey/x a homogeneous differential equation?

Example

Homogeneous equation

Consider the differential equation xy=2x+3y. Assuming x0, this is equivalent to the homogeneous equation dydx=2x+3yx. Define z=y/x, and we find:

xdzdx+z=2+3zand sodz1+z=2xdx.

The solution is therefore ln|1+z|=2ln|x|+c, or 1+z=Cx2 for any C, i.e. y=Cx3x .

Example

See an example in “Families of integral curves” below, where we solve the homogeneous equation dydx=y2x22xy.

Exercise 03A-01

Homogeneous equations

For the following differential equations, show that they are homogeneous, and then solve them by substitution and separation:

  • (a) (x22y2)dx+xydy=0
  • (b) x2y=3(x2+y2)tan1(y/x)+xy
  • (c) xy=x2+y2

Linear quotients: almost homogeneous Suppose we are given a differential equation

dydx=a1x+b1y+c1a2x+b2y+c2.

This equation is not homogeneous, but it is easily converted to a homogeneous equation by a change of variables. Find h,k that solve the system:

a1h+b1k=c1a2h+b2k=c2.

Then by plugging in x=u+h and y=v+k, the quotient on the right side is transformed to a quotient of homogeneous functions in u and v:

dydx=a1u+b1va2u+b2v

The left side transforms as desired:

dydx=dydududx=dvdu1=dvdu.
Question 03-02

Transform linear quotient to homogeneous

Transform this equation to a homogeneous equation:

dydx=x+y+4xy6.

Integrating factors: conversion to exact

Sometimes an equation

M(x,y)dx+N(x,y)dy=0

is not exact, but there is a function μ(x,y) which when multiplied through the equation gives an exact equation:

μMdx+μNdy=0.
Question 03-03

Integrating factor

Check that xy2 is an integrating factor for (2y6x)dx+(3x4x2y1)dy=0.

How can we find such a function μ(x,y)? There is no recipe that can find all possibilities for μ(x,y). However, if there is a μ that works and is a function of either x or y alone, then there is a recipe. Here it is:

Integrating factors: single variable

  • Check x: if the function g(x)=1N(MyNx) depends on x alone, we can use μ(x)=eg(x)dx.
  • Check y: if the function h(y)=1M(MyNx) depends on y alone, we can use μ(y)=eh(y)dy.
Exercise 03A-02

Method of integrating factors

Show that if the function g(x)=1N(MyNx) depends on x alone, we can use μ(x)=eg(x)dx as an integrating factor and the resulting differential equation becomes exact.

Example

Integrating factor: converting to exact

Consider the differential equation (2x2+y)dx+(x2yx)dy=0. This is not exact because My=1 while Nx=2xy1. However, 1N(MyNx)=2/x=:g(x) is a function of x alone. Therefore we can use μ(x)=egdx=x2 as an integrating factor. Multiplying through by x2 produces the equation (2+yx2)dx+(yx1)dy=0, which is exact because now My=Nx=x2.

Exercise 03A-03

Integrating factor: converting to exact

Convert the following to exact equations by finding and applying integrating factors.

  • (a) (x4x+y)dxxdy=0
  • (b) (2y2+2y+4x2)dx+(2xy+x)dy=0

Reduction of order

Some second-order ODEs can be reduced to first-order ODEs by substituting y=p. This works when the equation F(x,y,y,y) is missing either x or y.

If the equation is missing y, so the ODE is actually given by F(x,y,y)=0, then we substitute y=p and y=p, and try to solve the equation F(x,p,p)=0 as any other first-order equation. Afterwards we can solve for y by integrating p (provided we have an explicit solution for p(x)).

If the equation is missing x, so the ODE is actually given by F(y,y,y)=0, then we substitute y=p as before, but now we let p=p(y) depend on y, and so y=p(y)p by the chain rule:

y=dpdx=dpdydydx=p(y)p.

We therefore try to solve the equation F(y,p,pp) as any other first-order equation.

Question 03-04

Reduction of order

Reduce the order of the following two differential equations. (No need to solve them.)

  • (a) xyy=3x2
  • (b) yy=(y)2

Example

Reduction of order

Consider x2y=(y)2. This equation is missing y so we can reduce it to a first-order equation by letting y=p and y=p. The equation becomes x2p=p2 which is separable. The solution is p=x1+c1x, and this implies y=xc11c12ln(1+c1x)+c2. (Integrating p(x)=y(x) to obtain y(x).)

Consider y+k2y=0. This equation is missing x so we can reduce it to a first-order equation by letting y=p and y=pp. The equation becomes pdpdy+k2y=0 which is separable. The solution is p(y)=dydx=±kc1y2. This is a new differential equation which is also separable. Its general solution is y=c1sin(±kx+c2).

Ad hoc transformations

Bernoulli equations The Bernoulli equations look like linear equations but with an extra factor of yn:

dydx+a(x)y=b(x)yn.

If we substitute v=y1n, a Bernoulli equation becomes a linear equation.

Exercise 03A-04

Bernoulli substitution

Show that substituting v=y1n does indeed convert the Bernoulli equation to a linear equation.

Exercise 03A-05

Solving Bernoulli equations

Solve the Bernoulli equation ydx+xdy=xy2dx.

Linear substitutions If in the general form of an explicit first-order equation y=f(x,y) the items x and y only occur together in a linear combination, so it really takes the form y=f(ax+by), then we can change variables using z=ax+by and then separate variables. First convert y:

dydx=ddx(z(x)axb)=z(x)ab,

then the equation y=f(ax+by)=f(z) becomes z=a+bf(z), which is separable:

dza+bf(z)=dx.

Swapping roles It is sometimes effective to transform an equation to a known form by swapping the roles of x and y, meaning that x is to be treated as the dependent variable and y as the independent. To do this we need to replace y with 1/x. This can be explained and justified using the theory for derivatives of inverse functions.

Inverse functions derivatives

If x=f(y), then 1=f(y)dydx so dydx=1/f(y). Now treating f(y)=x(y), we have f(y)=dxdy. Therefore dydx=1/dxdy.

Example

Swapping roles

Consider the differential equation yy2=y+xy. If we change y to 1/x, the equation becomes

y2x=y+xx

or xy+x=y2 or x+(1/y)x=y2. (This is linear of the form x+a(y)x=b(y).) To solve it we write (xy)=y2 and thus xy=y33+C or x=y23+Cy.

Exercise 03A-06

Swapping roles

Reverse the roles of x and y to solve: (ey2xy)y=y2.

Families of integral curves

Each first-order differential equation leads to a family of curves, its integral curves (solution curves).

Conversely, each family of curves given by a single equation with a single parameter leads to a differential equation, and it is the equation whose solution curves are given by this family.

This correspondence

family of curvesdifferential equation

works in general, assuming the family of curves is provided by an equation (without derivatives) with a single varying parameter.

Example

Family of curves x2+y2=cx

For example, start with the family given by x2+y2=cx. Differentiate both sides: 2x+2ydydx=c. Now plug in c=1x(x2+y2) from the original equation, and we get the differential equation:

2x+2ydydx=1x(x2+y2)which simplifies to2xydydx+x2=y2.

Conversely, let us solve this differential equation. Write it as:

dydx=y2x22xy.

This is a homogeneous equation, so we can substitute z=y/x:

dzdxx+z=z212zwhich implies2zz2+1dz=dxx.

Integrating both sides, applying e, and substituting z=y/x gives:

|x|=c(y/x)2+1c>0.

Now multiply the fraction by x2x2 and cross multiply to obtain |x|(x2+y2)=cx2, which is equivalent to (x2+y2)=c|x| assuming x0. Allowing c, we have the original equation.

Something interesting we can do is define the orthogonal family of curves to a given family of curves. The orthogonal family is the family such that each curve is perpendicular to every curve of the original family.

For example, if one family of curves represents electric field lines, its orthogonal family represents equipotential lines. Or, if one family represents the level curves of a function, its orthogonal family represents the lines of steepest ascent.

The orthogonal family can be found from the original family by first computing the differential equation dydx=f(x,y). The orthogonal family will be given by the differential equation dydx=1/f(x,y). (The orthogonal slope is the negative reciprocal slope.)

Example

Circles and rays

We verify that the family of rays emanating from the origin is the orthogonal family to the family of circles centered at the origin. The family of circles is given by x2+y2=c. This corresponds to the differential equation dydx=xy. The orthogonal family is then given by dydx=yx. Separating variables: dyy=dxx so ln|y|=ln|x|+c and thus y=Cx for C. This is the family of rays.

Exercises B

Exercise 03B-01

Homogeneous

Solve the following homogeneous equations by substitution of z=y/x. You should first write the equation using a single quotient and then divide above and below by x.

  • (a) xsin(y/x)dydx=ysin(y/x)+x
  • (b) xy=2x6y
Exercise 03B-02

Integrating factors, conversion to exact

Solve the following differential equations by finding an integrating factor μ(x) or μ(y).

  • (a) 2xydx+(3x2y2)dy=0
  • (b) (ylny2xy)dx+(x+y)dy=0
Exercise 03B-03

Bernoulli

Solve the following Bernoulli equation: xy2y+y3=xcosx.

Exercise 03B-04

A self-orthogonal family

Show that this family of curves is orthogonal to itself: y2=4c(x+c). (Hint: divide the curves into two families, one with c>0 and the other with c<0.) Here’s a picture showing the curves for c=0.5,1,2 (opening rightward) and c=1,2 (opening leftward).

Problems due Monday 5 Feb 2024 by 1:00pm

Problem 03-01

Homogeneous; linear quotients

  • (a) Solve the homogeneous equation (x3+y3)dxxy2dy=0.
  • (b) Solve (2x+3y1)dx4(x+1)dy=0 using linear quotients.
Problem 03-02

Reduction

The differential equation y=1+(y)2 is missing both x and y. It can therefore be solved by reduction in two ways. Solve it using both methods, and check that your solutions are equivalent to each other.

Problem 03-03

Swapping roles

Reverse the roles of independent and dependent variables x and y to solve:

  • (a) yxy=yy2ey
  • (b) xy+2=x3(y1)y
Problem 03-04

Integral curves of homogeneous equation

Consider the integral curves of a homogeneous equation. Take a straight line through the origin. Show that this line crosses all the integral curves at the same angle of intersection.

Problem 03-05

First-order families

The family of curves solving a first-order linear differential equation has the general form y=f(x)+cg(x). Now suppose we start with a family of curves in this form. Find the differential equation corresponding to this family and show that it is first-order linear.