Cauchy-Euler ODE Solver Notes
These Cauchy-Euler ODE Solver Notes explain how to solve an equation whose coefficients are powers of x matching the order of each derivative, with the working shown 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
- Set up the problem.
- Write the method.
- Substitute y = x^r.
- Solve the auxiliary equation.
- 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.
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
- How to solve the auxiliary equation, covered in the Quadratic Equation Calculator.
- How to differentiate powers of x, covered in the Derivative Calculator.
- How the constant coefficient case works, covered in the Second Order ODE Solver Calculator.
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. Examples 3 and 4 give you two more of the same kind to try, \(x^{2} y'' - 2 y = 0\) and \(x^{2} y'' + 4 x y' + 2 y = 0\). Write the auxiliary equation and solve it.
The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. Try each problem on paper first, then open the example and check your working one step at a time, so you can see exactly which step went wrong if your answer does not match. Use them to check your answers and to understand why each step works.
See Example 1 Hide Example 1
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the method.
- Substitute y = x^r.
- Solve the auxiliary equation.
- 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.
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.
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.
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\).
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\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Rewrite the equation in standard form, with every term on the left and 0 on the right.
- Identify the coefficients a, b and c.
- Write the quadratic formula.
- Substitute the coefficients into the formula.
- Work out the numbers in the formula.
- Split the \(\pm\) into the two solutions.
Depending on the equation, some of these steps are not needed, so they are skipped.
Formula
Formula: Quadratic Formula
This formula is used to solve any equation in the form ax² + bx + c = 0. Put in a, b and c, then work out the + and − versions to get the two solutions.
Step 1
Step 1 - Set up the problem.
In this problem: The equation to solve is \(r^{2} + r - 6 = 0\), and the unknown is \(r\).
Step 2
Step 2 - Identify the coefficients a, b and c.
In this problem: Matching \(r^{2} + r - 6 = 0\) with \(ax^{2} + bx + c = 0\) gives \(a = 1\), \(b = 1\) and \(c = -6\).
Step 3
Step 3 - Write the quadratic formula.
In this problem: The quadratic formula solves any equation in the form \(ax^{2} + bx + c = 0\).
Step 4
Step 4 - Substitute the coefficients into the formula.
In this problem: Putting \(a = 1\), \(b = 1\) and \(c = -6\) into the formula gives \(r = \frac{-1 \pm \sqrt{1^{2} - 4(1)(-6)}}{2(1)}\).
Step 5
Step 5 - Work out the numbers in the formula.
In this problem: Under the square root, \(1^{2} = 1\) and \(4(1)(-6) = -24\), so \(1 + 24 = 25\). Underneath, \(2(1) = 2\). Then \(\sqrt{25} = 5\).
Step 6
Step 6 - Split the \(\pm\) into the two solutions.
In this problem: The \(\pm\) means there are two solutions, one with \(+\) and one with \(-\).
Step 6a
Step 6a - Take the \(+\) sign.
In this problem: Using \(+\) gives \(r = \frac{-1 + 5}{2} = \frac{4}{2} = 2\).
Step 6b
Step 6b - Take the \(-\) sign.
In this problem: Using \(-\) gives \(r = \frac{-1 - 5}{2} = \frac{-6}{2} = -3\).
Final Answer
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\).
Final Answer
See Example 2 Hide Example 2
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the method.
- Substitute y = x^r.
- Solve the auxiliary equation.
- 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.
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.
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.
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\).
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.
Problem
Approach
Step-by-step method
- Set up the problem.
- Rewrite the equation in standard form, with every term on the left and 0 on the right.
- Identify the coefficients a, b and c.
- Write the quadratic formula.
- Substitute the coefficients into the formula.
- Work out the numbers in the formula.
- Split the \(\pm\) into the two solutions.
Depending on the equation, some of these steps are not needed, so they are skipped.
Formula
Formula: Quadratic Formula
This formula is used to solve any equation in the form ax² + bx + c = 0. Put in a, b and c, then work out the + and − versions to get the two solutions.
Step 1
Step 1 - Set up the problem.
In this problem: The equation to solve is \(r^{2} - 2r + 1 = 0\), and the unknown is \(r\).
Step 2
Step 2 - Identify the coefficients a, b and c.
In this problem: Matching \(r^{2} - 2r + 1 = 0\) with \(ax^{2} + bx + c = 0\) gives \(a = 1\), \(b = -2\) and \(c = 1\).
Step 3
Step 3 - Write the quadratic formula.
In this problem: The quadratic formula solves any equation in the form \(ax^{2} + bx + c = 0\).
Step 4
Step 4 - Substitute the coefficients into the formula.
In this problem: Putting \(a = 1\), \(b = -2\) and \(c = 1\) into the formula gives \(r = \frac{-(-2) \pm \sqrt{(-2)^{2} - 4(1)(1)}}{2(1)}\).
Step 5
Step 5 - Work out the numbers in the formula.
In this problem: On top, \(-(-2) = 2\). Under the square root, \((-2)^{2} = 4\) and \(4(1)(1) = 4\), so \(4 - 4 = 0\). Underneath, \(2(1) = 2\). Then \(\sqrt{0} = 0\).
Step 6
Step 6 - Split the \(\pm\) into the two solutions.
In this problem: Since \(\sqrt{0} = 0\), adding and taking away give the same value, so there is one solution.
Final Answer
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\).
Final Answer
See Example 3 Hide Example 3
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the method.
- Substitute y = x^r.
- Solve the auxiliary equation.
- 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.
Step 1
Step 1 - Set up the problem.
In this problem: We are solving \(x^{2} y'' - 2 y = 0\). The power of \(x\) next to each derivative matches its order, so it is a Cauchy-Euler equation.
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.
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 = 0\), which expands to \(r^{2} - r - 2 = 0\).
Step 4
Step 4 - Solve the auxiliary equation.
In this problem: Solving \(r^{2} - r - 2 = 0\), covered in the Quadratic Equation Calculator, gives \(r = -1\) and \(r = 2\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Rewrite the equation in standard form, with every term on the left and 0 on the right.
- Identify the coefficients a, b and c.
- Write the quadratic formula.
- Substitute the coefficients into the formula.
- Work out the numbers in the formula.
- Split the \(\pm\) into the two solutions.
Depending on the equation, some of these steps are not needed, so they are skipped.
Formula
Formula: Quadratic Formula
This formula is used to solve any equation in the form ax² + bx + c = 0. Put in a, b and c, then work out the + and − versions to get the two solutions.
Step 1
Step 1 - Set up the problem.
In this problem: The equation to solve is \(r^{2} - r - 2 = 0\), and the unknown is \(r\).
Step 2
Step 2 - Identify the coefficients a, b and c.
In this problem: Matching \(r^{2} - r - 2 = 0\) with \(ax^{2} + bx + c = 0\) gives \(a = 1\), \(b = -1\) and \(c = -2\).
Step 3
Step 3 - Write the quadratic formula.
In this problem: The quadratic formula solves any equation in the form \(ax^{2} + bx + c = 0\).
Step 4
Step 4 - Substitute the coefficients into the formula.
In this problem: Putting \(a = 1\), \(b = -1\) and \(c = -2\) into the formula gives \(r = \frac{-(-1) \pm \sqrt{(-1)^{2} - 4(1)(-2)}}{2(1)}\).
Step 5
Step 5 - Work out the numbers in the formula.
In this problem: On top, \(-(-1) = 1\). Under the square root, \((-1)^{2} = 1\) and \(4(1)(-2) = -8\), so \(1 + 8 = 9\). Underneath, \(2(1) = 2\). Then \(\sqrt{9} = 3\).
Step 6
Step 6 - Split the \(\pm\) into the two solutions.
In this problem: The \(\pm\) means there are two solutions, one with \(+\) and one with \(-\).
Step 6a
Step 6a - Take the \(+\) sign.
In this problem: Using \(+\) gives \(r = \frac{1 + 3}{2} = \frac{4}{2} = 2\).
Step 6b
Step 6b - Take the \(-\) sign.
In this problem: Using \(-\) gives \(r = \frac{1 - 3}{2} = \frac{-2}{2} = -1\).
Final Answer
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} + C_{2} x^{2}\) for \(x > 0\).
Final Answer
See Example 4 Hide Example 4
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the method.
- Substitute y = x^r.
- Solve the auxiliary equation.
- 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.
Step 1
Step 1 - Set up the problem.
In this problem: We are solving \(x^{2} y'' + 4 x y' + 2 y = 0\). The power of \(x\) next to each derivative matches its order, so it is a Cauchy-Euler equation.
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.
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) + 4 r + 2 = 0\), which expands to \(r^{2} + 3 r + 2 = 0\).
Step 4
Step 4 - Solve the auxiliary equation.
In this problem: Solving \(r^{2} + 3 r + 2 = 0\), covered in the Quadratic Equation Calculator, gives \(r = -2\) and \(r = -1\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Rewrite the equation in standard form, with every term on the left and 0 on the right.
- Identify the coefficients a, b and c.
- Write the quadratic formula.
- Substitute the coefficients into the formula.
- Work out the numbers in the formula.
- Split the \(\pm\) into the two solutions.
Depending on the equation, some of these steps are not needed, so they are skipped.
Formula
Formula: Quadratic Formula
This formula is used to solve any equation in the form ax² + bx + c = 0. Put in a, b and c, then work out the + and − versions to get the two solutions.
Step 1
Step 1 - Set up the problem.
In this problem: The equation to solve is \(r^{2} + 3r + 2 = 0\), and the unknown is \(r\).
Step 2
Step 2 - Identify the coefficients a, b and c.
In this problem: Matching \(r^{2} + 3r + 2 = 0\) with \(ax^{2} + bx + c = 0\) gives \(a = 1\), \(b = 3\) and \(c = 2\).
Step 3
Step 3 - Write the quadratic formula.
In this problem: The quadratic formula solves any equation in the form \(ax^{2} + bx + c = 0\).
Step 4
Step 4 - Substitute the coefficients into the formula.
In this problem: Putting \(a = 1\), \(b = 3\) and \(c = 2\) into the formula gives \(r = \frac{-3 \pm \sqrt{3^{2} - 4(1)(2)}}{2(1)}\).
Step 5
Step 5 - Work out the numbers in the formula.
In this problem: Under the square root, \(3^{2} = 9\) and \(4(1)(2) = 8\), so \(9 - 8 = 1\). Underneath, \(2(1) = 2\). Then \(\sqrt{1} = 1\).
Step 6
Step 6 - Split the \(\pm\) into the two solutions.
In this problem: The \(\pm\) means there are two solutions, one with \(+\) and one with \(-\).
Step 6a
Step 6a - Take the \(+\) sign.
In this problem: Using \(+\) gives \(r = \frac{-3 + 1}{2} = \frac{-2}{2} = -1\).
Step 6b
Step 6b - Take the \(-\) sign.
In this problem: Using \(-\) gives \(r = \frac{-3 - 1}{2} = \frac{-4}{2} = -2\).
Final Answer
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^{2}} + \frac{C_{2}}{x}\) for \(x > 0\).
Final Answer
Calculator and Practice Mode
Want to check your own working? The Cauchy-Euler ODE Solver Calculator solves any problem you type in and shows every step, so you can compare it line by line with your answer and find exactly where a mistake crept in. When you are ready to test yourself, Cauchy-Euler ODE Solver Practice gives you a new problem at Easy, Medium or Hard level, checks your answer and shows the full working whenever you get one wrong. Practice Mode for this calculator is available on the Pro plan.