Cauchy-Euler ODE Solver Calculator

Published on: July 18, 2026
Final Answer: Free | Full Steps: Pro

This Cauchy-Euler ODE Solver Calculator solves an equation whose coefficients are powers of x matching the order of each derivative, and shows the working line by line. Trying a solution of the form x to the power r turns the equation into an ordinary quadratic in r, called the auxiliary equation. The roots of that quadratic decide whether the answer uses plain powers, a repeated power with a logarithm, or oscillating terms. Following the same pattern every time keeps the three cases apart.

Step-by-step method

  1. Set up the problem.
  2. Write the method.
  3. Substitute y = x^r.
  4. Solve the auxiliary equation.
  5. Write the general solution.

Formula: Auxiliary Equation

Trying y = x^r turns every term into a multiple of x^r. Dividing it out leaves a quadratic in r whose roots give the solution.

\(ax^{2}y'' + bxy' + cy = 0,\quad y = x^{r} \;\Rightarrow\; ar(r - 1) + br + c = 0\)

Useful Tips to Remember

The auxiliary equation is \(ar(r - 1) + br + c = 0\), not \(ar^{2} + br + c = 0\), so remember the \(r - 1\). Two different real roots give \(x^{r_{1}}\) and \(x^{r_{2}}\), a repeated root gives an extra factor of \(\ln x\), and complex roots \(\alpha \pm \beta i\) give \(x^{\alpha}\) times the cosine and sine of \(\beta \ln x\). The solution holds for \(x > 0\).

Required knowledge

Where Are Cauchy-Euler Equations Used?

Cauchy-Euler equations appear when a problem looks the same at every scale, which happens in circular and spherical shapes. Heat flow and stress in a thick pipe or a disc lead to them once the radius is the variable. They also come up when solving Laplace's equation in polar coordinates, in the bending of circular plates, and in models of option prices in finance.

  • Stress in thick-walled pipes
  • Heat flow in discs and cylinders
  • Laplace's equation in polar coordinates
  • Bending of circular plates
  • Option pricing models

Cauchy-Euler ODE Practice Problems

Example 1 solves \(x^{2}y'' + 2xy' - 6y = 0\), whose roots are different, and Example 2 solves \(x^{2}y'' - xy' + y = 0\), whose root is repeated. Write the auxiliary equation and solve it. For two more free worked examples, check out the Cauchy-Euler ODE Solver Notes.

The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. For more practice, the notes page goes further with extra worked examples and fuller explanations of the ideas behind each step. Use them together to check your answers and to understand why each step works.

See Example 1 Hide Example 1

Problem

\(x^{2} y'' + 2 x y' - 6 y = 0\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the method.
  3. Substitute y = x^r.
  4. Solve the auxiliary equation.
  5. Write the general solution.

Formula

Formula: Auxiliary Equation

Trying y = x^r turns every term into a multiple of x^r. Dividing it out leaves a quadratic in r whose roots give the solution.

\(ax^{2}y'' + bxy' + cy = 0,\quad y = x^{r} \;\Rightarrow\; ar(r - 1) + br + c = 0\)

Step 1

Step 1 - Set up the problem.

In this problem: We are solving \(x^{2} y'' + 2 x y' - 6 y = 0\). The power of \(x\) next to each derivative matches its order, so it is a Cauchy-Euler equation.

\(x^{2} y'' + 2 x y' - 6 y = 0\)

Step 2

Step 2 - Write the method.

In this problem: Trying \(y = x^{r}\) makes every term a multiple of \(x^{r}\), which leaves an ordinary equation in \(r\) called the auxiliary equation.

\(ax^{2}y'' + bxy' + cy = 0,\quad y = x^{r} \;\Rightarrow\; ar(r - 1) + br + c = 0\)

Step 3

Step 3 - Substitute y = x^r.

In this problem: With \(y = x^{r}\), \(y' = rx^{r - 1}\) and \(y'' = r(r - 1)x^{r - 2}\), so \(x^{2}y'' = r(r - 1)x^{r}\) and \(xy' = rx^{r}\). Putting these in and dividing by \(x^{r}\) gives \( r(r - 1) + 2 r - 6 = 0\), which expands to \(r^{2} + r - 6 = 0\).

\( r(r - 1) + 2 r - 6 = 0 \;\Rightarrow\; r^{2} + r - 6 = 0\)

Step 4

Step 4 - Solve the auxiliary equation.

In this problem: Solving \(r^{2} + r - 6 = 0\), covered in the Quadratic Equation Calculator, gives \(r = -3\) and \(r = 2\).

\(r^{2} + r - 6 = 0 \;\Rightarrow\; r_{1} = -3,\; r_{2} = 2\)

Step 5

Step 5 - Write the general solution.

In this problem: The roots are real and different, so each one gives its own power of \(x\), which gives \(y = \frac{C_{1}}{x^{3}} + C_{2} x^{2}\) for \(x > 0\).

\(y = \frac{C_{1}}{x^{3}} + C_{2} x^{2}\)

Final Answer

\(y = \frac{C_{1}}{x^{3}} + C_{2} x^{2}\)
See Example 2 Hide Example 2

Problem

\(x^{2} y'' - x y' + y = 0\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the method.
  3. Substitute y = x^r.
  4. Solve the auxiliary equation.
  5. Write the general solution.

Formula

Formula: Auxiliary Equation

Trying y = x^r turns every term into a multiple of x^r. Dividing it out leaves a quadratic in r whose roots give the solution.

\(ax^{2}y'' + bxy' + cy = 0,\quad y = x^{r} \;\Rightarrow\; ar(r - 1) + br + c = 0\)

Step 1

Step 1 - Set up the problem.

In this problem: We are solving \(x^{2} y'' - x y' + y = 0\). The power of \(x\) next to each derivative matches its order, so it is a Cauchy-Euler equation.

\(x^{2} y'' - x y' + y = 0\)

Step 2

Step 2 - Write the method.

In this problem: Trying \(y = x^{r}\) makes every term a multiple of \(x^{r}\), which leaves an ordinary equation in \(r\) called the auxiliary equation.

\(ax^{2}y'' + bxy' + cy = 0,\quad y = x^{r} \;\Rightarrow\; ar(r - 1) + br + c = 0\)

Step 3

Step 3 - Substitute y = x^r.

In this problem: With \(y = x^{r}\), \(y' = rx^{r - 1}\) and \(y'' = r(r - 1)x^{r - 2}\), so \(x^{2}y'' = r(r - 1)x^{r}\) and \(xy' = rx^{r}\). Putting these in and dividing by \(x^{r}\) gives \( r(r - 1) - 1 r + 1 = 0\), which expands to \(r^{2} - 2 r + 1 = 0\).

\( r(r - 1) - 1 r + 1 = 0 \;\Rightarrow\; r^{2} - 2 r + 1 = 0\)

Step 4

Step 4 - Solve the auxiliary equation.

In this problem: Solving \(r^{2} - 2 r + 1 = 0\), covered in the Quadratic Equation Calculator, gives \(r = 1\) twice.

\(r^{2} - 2 r + 1 = 0 \;\Rightarrow\; r = 1\)

Step 5

Step 5 - Write the general solution.

In this problem: The root is repeated, so the second solution gets an extra factor of \(\ln x\), which gives \(y = x \left(C_{1} + C_{2} \ln{\left(x \right)}\right)\) for \(x > 0\).

\(y = x \left(C_{1} + C_{2} \ln{\left(x \right)}\right)\)

Final Answer

\(y = x \left(C_{1} + C_{2} \ln{\left(x \right)}\right)\)

Notes and Practice Mode

Example Problems

Click one to load it into the box and solve it.