Start here · 10 minute learning note

Homotopy perturbation method

Build a difficult solution from a sequence of simpler equations.

u(0.5) = 2/3THE MODEL IN THIS NOTEu(t) = 1 / (1 + t)10.51tuEXACT REFERENCE · u′ + u² = 0, u(0) = 1
The exact reference solution used throughout the learning notes.

The idea, in plain language.

Introduce an embedding parameter p that continuously connects an easier equation to the target equation. Expand the unknown solution in powers of p, solve the resulting problems in order, and set p=1 only after examining the resulting series. An artificial parameter is a construction device, not proof of convergence.

u′+pu2=0u(t;p)=∑n=0∞pnun(t)\begin{gathered}u^{\prime}+pu^2=0\\u(t;p)=\sum_{n=0}^{\infty}p^nu_n(t)\end{gathered}

Origins & connection to Ganji’s work

Developed by Ji-Huan He. Ganji and collaborators applied and studied HPM in thermal science, fluid mechanics and nonlinear dynamics.

A recurring tool in Ganji’s published research, including Burgers flow, nonlinear heat transfer and oscillation problems.

Before you begin: First-order differential equations · Integration · Power series · Matching coefficients.

A method you can follow.

  1. Set up a homotopyFor nonlinear decay, replace u′+u²=0 by u′+p u²=0. At p=0 the initial-value problem has the constant solution 1; at p=1 the target equation is recovered.
  2. Expand and matchSubstitute u=Σpⁿuₙ and equate equal powers of p. Set u₀(0)=1 and uₙ(0)=0 for n≥1 to preserve the original initial condition.
  3. Solve the hierarchyIntegrate each coefficient equation using terms already computed: u₀=1, u₁=−t, u₂=t² and u₃=−t³.
  4. Check where it worksAt p=1 this is a geometric series. Inspect its convergence domain, compare against the exact solution, and measure the residual of each finite approximation.
Worked example

A convergent series has a boundary

u′ + u² = 0, u(0) = 1Exact reference: u(t) = 1/(1+t), t > −1
  1. The coefficient equations are u₀′=0 and uₙ′=−Σ[j=0…n−1]uⱼuₙ₋₁₋ⱼ for n≥1.
  2. They give uₙ(t)=(−t)ⁿ. Hence S_N(t)=1−t+t²−⋯+(−t)ᴺ.
  3. The finite geometric identity gives S_N−u_exact=−(−t)ᴺ⁺¹/(1+t).
  4. The series converges for |t|<1. At t=1 the partial sums alternate between 1 and 0, while the exact value is 1/2. For t>1 the terms grow.

Check the result

At t=0.5, S₄=0.6875, u_exact=2/3 and the absolute error is 1/48≈0.0208333.

A smooth exact solution can exist outside the convergence interval of an approximation. More terms can make an answer worse outside that interval.

Explore the interactive notebook

Know the limits.

  • The choice of initial guess and linear operator matters.
  • No small physical parameter is required by the construction, but this does not imply convergence for all parameter values or times.
  • Validate comparisons using exact solutions or independently converged numerical calculations.

Where you will encounter it

Burgers-type flowThermal transportNonlinear vibration

Read the originals.

This is an original educational explanation, not a claim that all illustrated methods were invented by Professor Ganji. The worked model is deliberately shared across notes so the results and limitations can be compared.

Back to all methods