paul.nichols
paul.nichols 3d ago • 10 views

The Variation of Parameters formula explained

Hey everyone! 👋 Struggling with Variation of Parameters? It's a tricky topic, but once you understand the core idea, it becomes much easier. I'll walk you through it like I'm explaining it to a friend. Let's conquer this together! 💪
🧮 Mathematics
🪄

🚀 Can't Find Your Exact Topic?

Let our AI Worksheet Generator create custom study notes, online quizzes, and printable PDFs in seconds. 100% Free!

✨ Generate Custom Content

1 Answers

✅ Best Answer
User Avatar
kevin350 Dec 29, 2025

📚 What is Variation of Parameters?

Variation of Parameters is a method used to find a particular solution to a nonhomogeneous linear differential equation. Unlike the method of undetermined coefficients, it works even when the nonhomogeneous term is not a simple function like a polynomial, exponential, or trigonometric function. It's all about 'varying' the parameters (constants) of the homogeneous solution to fit the nonhomogeneous equation.

📜 A Little History

The concept of varying parameters has roots stretching back to the 18th century. Mathematicians like Lagrange played a crucial role in its development. It emerged as a powerful tool when dealing with differential equations that couldn't be solved by simpler, more direct means. This highlights the iterative nature of mathematical discovery!

🔑 Key Principles of Variation of Parameters

  • 🔍 Homogeneous Solution: First, find the general solution $y_h(x)$ to the corresponding homogeneous equation. If your differential equation is of the form $ay'' + by' + cy = f(x)$, find the solution to $ay'' + by' + cy = 0$.
  • 💡 Wronskian: Calculate the Wronskian, $W$, of the fundamental solutions $y_1(x)$ and $y_2(x)$ from the homogeneous solution. This is given by $W = y_1y_2' - y_2y_1'$.
  • 📝 Particular Solution: Assume a particular solution of the form $y_p(x) = u_1(x)y_1(x) + u_2(x)y_2(x)$, where $u_1'(x) = -\frac{y_2(x)f(x)}{W(x)}$ and $u_2'(x) = \frac{y_1(x)f(x)}{W(x)}$.
  • Integration: Integrate $u_1'(x)$ and $u_2'(x)$ to find $u_1(x)$ and $u_2(x)$.
  • General Solution: The general solution is then $y(x) = y_h(x) + y_p(x)$.

➗ Variation of Parameters Formula Explained

For a second-order nonhomogeneous linear differential equation $ay'' + by' + cy = f(x)$, here's how Variation of Parameters works:

  1. Solve the homogeneous equation $ay'' + by' + cy = 0$ to find $y_1(x)$ and $y_2(x)$.
  2. Calculate the Wronskian: $W(x) = y_1(x)y_2'(x) - y_2(x)y_1'(x)$.
  3. Find $u_1'(x)$ and $u_2'(x)$ using the formulas: $u_1'(x) = -\frac{y_2(x)f(x)}{aW(x)}$ $u_2'(x) = \frac{y_1(x)f(x)}{aW(x)}$
  4. Integrate $u_1'(x)$ and $u_2'(x)$ to find $u_1(x)$ and $u_2(x)$.
  5. The particular solution is $y_p(x) = u_1(x)y_1(x) + u_2(x)y_2(x)$.
  6. The general solution is $y(x) = c_1y_1(x) + c_2y_2(x) + y_p(x)$.

➕ Real-World Examples

Example 1: Simple Differential Equation

Let's solve $y'' + y = \tan(x)$ using Variation of Parameters.

  1. Homogeneous solution: $y_h(x) = c_1\cos(x) + c_2\sin(x)$. So, $y_1(x) = \cos(x)$ and $y_2(x) = \sin(x)$.
  2. Wronskian: $W(x) = \cos(x)\cos(x) - \sin(x)(-\sin(x)) = \cos^2(x) + \sin^2(x) = 1$.
  3. $u_1'(x) = -\frac{\sin(x)\tan(x)}{1} = -\frac{\sin^2(x)}{\cos(x)} = -\frac{1 - \cos^2(x)}{\cos(x)} = -\sec(x) + \cos(x)$. $u_2'(x) = \frac{\cos(x)\tan(x)}{1} = \sin(x)$.
  4. $u_1(x) = \int (-\sec(x) + \cos(x)) dx = -\ln|\sec(x) + \tan(x)| + \sin(x)$. $u_2(x) = \int \sin(x) dx = -\cos(x)$.
  5. Particular solution: $y_p(x) = (-\ln|\sec(x) + \tan(x)| + \sin(x))\cos(x) + (-\cos(x))\sin(x) = -\cos(x)\ln|\sec(x) + \tan(x)|$.
  6. General solution: $y(x) = c_1\cos(x) + c_2\sin(x) - \cos(x)\ln|\sec(x) + \tan(x)|$.

Example 2: A Slightly More Complex Case

Solve $y'' - 2y' + y = \frac{e^x}{x}$

  1. Homogeneous solution: The characteristic equation is $r^2 - 2r + 1 = 0$, so $(r-1)^2 = 0$ and $r = 1$ (repeated root). Thus, $y_h(x) = c_1e^x + c_2xe^x$. So $y_1(x) = e^x$ and $y_2(x) = xe^x$.
  2. Wronskian: $W(x) = e^x(e^x + xe^x) - xe^x(e^x) = e^{2x}$.
  3. $u_1'(x) = -\frac{xe^x(\frac{e^x}{x})}{e^{2x}} = -1$. $u_2'(x) = \frac{e^x(\frac{e^x}{x})}{e^{2x}} = \frac{1}{x}$.
  4. $u_1(x) = \int -1 dx = -x$. $u_2(x) = \int \frac{1}{x} dx = \ln|x|$.
  5. Particular solution: $y_p(x) = -xe^x + \ln|x|xe^x = e^x(x\ln|x| - x)$.
  6. General solution: $y(x) = c_1e^x + c_2xe^x + e^x(x\ln|x| - x)$.

📝 Practice Quiz

Test your understanding with these problems:

  1. Solve $y'' + 4y = \csc(2x)$.
  2. Solve $y'' - y = x$.

💡 Tips and Tricks

  • 🧪 Check your Wronskian: Make sure you've calculated the Wronskian correctly. A mistake here will cascade through the rest of the problem.
  • 🧬 Simplify Integrals: Look for opportunities to simplify the integrals for $u_1(x)$ and $u_2(x)$ before you start integrating.
  • 🔢 Don't Forget the Homogeneous Solution: Always remember to add the homogeneous solution to the particular solution to get the general solution.
  • 🌍 Practice, Practice, Practice: The more you practice, the more comfortable you'll become with the process.

⭐ Conclusion

Variation of Parameters is a powerful technique for solving nonhomogeneous linear differential equations. While it may seem complicated at first, breaking it down into steps and practicing regularly will make it a valuable tool in your mathematical arsenal. Keep practicing, and you'll master it in no time!

Join the discussion

Please log in to post your answer.

Log In

Earn 2 Points for answering. If your answer is selected as the best, you'll get +20 Points! 🚀