Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store

Variation of Parameters for Solving Differential Equations

Reviewed by:
ffImage
hightlight icon
highlight icon
highlight icon
share icon
copy icon

How to Use the Variation of Parameters Method Step by Step with Formula and Examples

The Variation in Maths is mostly based on the maths of Class 12 Mathematics which the students need to learn for the chapter named differential equations. This concept is used in many competitive examinations for students pursuing fields related to mathematics. The students will learn about what is meant by the Variation of Parameters. Then, the notes provide the student with a better glimpse by explaining the method with a generic example with step-by-step calculation. Then, you get to understand the method in Variation of parameters and 2 methods in Variation of Parameters. The end is concluded with a solved example so you get to solve it first and then correct your mistakes if there have been any. 


What is Variation in Maths?

Variation of parameters or let’s say variation in mathematics is a general method of finding a specific solution of a differential equation through replacing the constants in the solution of an associated (homogeneous) equation by functions and identifying these functions such that the original differential equation is satisfied.

 

In order to illustrate the method, let’s say it is desired to determine a specific solution of the equation: - y″ + p(x) y′ + q(x) y = g(x).

 

Variation of Parameters

In order to illustrate the method, let’s say it is desired to determine a specific solution of the equation: - y″ + p(x) y′ + q(x) y = g(x).

 

For the purpose of using this method, it is necessary to first know the general solution of the corresponding homogeneous equation—i.e., an associated equation where the right-hand side is zero. If y1(x) and y2(x) are two different solutions of the equation, then any combination ay1(x) + by2(x) is also a solution, known as the general solution, for any constants a and b.

 

The variation of parameters involves replacing the constants a and b by functions u1(x) and u2(x) and identifying what these functions must be to satiate the actual non-homogeneous equation. After a few manipulations, it can be presented that if the functions u1(x) and u2(x) satisfies the mathematical expression u′1y1 + u′2y2 = 0 and u1′y1′ + u2′y2′ = g, then u1y1 + u2y2 will satiate the original differential equation. The last two equations can be solved for providing the u1′ = −y2g/(y1y2′ − y1′y2) and u2′ = y1g/(y1y2′ − y1′y2). These last equations either will identify u1 and u2 or else will cater as an initial point for determining an estimated solution.

Method of Variation of Parameters

In this lesson, we will discuss the method of variation of parameters with respect to second-order differential equations of this type:

 

\[\frac {D^2 y}{dx^2} + P(x) \frac {dy}{dx} + Q(x)y = f(x)\]

 

where P(x), Q(x) and f(x) are said to be functions of x.

 

Two Methods in Variation of Parameters

There are mainly 2 methods of solving equations like:

 

\[\frac {D^2 y}{dx^2} + P(x) \frac {dy}{dx} + Q(x)y = f(x)\]

 

Undetermined Coefficients that only work when f(x) will be a polynomial, exponential, 

sine, cosine, or a linear combination of those.

 

Variation of Parameters works on a wide range of functions but is a bit messy to use.

 

Solutions to Variation of Parameters

In order to keep things simple, we will only look at the case: d2y

 

\[Dx^2 + P \frac {dy}{dx} + qy = f(x)\]

 

In which, p and q are constants and f(x) is a non-zero function of x.

 

A full-fledged solution to such an equation can be identified by combining two types of solution i.e.:

  1. The general solution of the homogeneous equation expressed as \[\frac{d^2 y}{dx^2} + P \frac {dy}{dx} + qy = 0\]

  2. Particular solutions of the non-homogeneous equation expressed as \[\frac {d^2 y}{dx^2} +  \frac {dy}{dx} + qy = f(x)\]


Remember that f(x) can be a single function or a sum of two or more functions.

 

Once we have determined the general solution and all the particular solutions, then the ultimate complete solution is identified by adding up all the solutions together.

 

This method depends upon integration.

 

A minor issue with this method is that, although it may produce a solution, in some cases the solution has to be left as an integral.

Solved Example using Variation of Parameter Formula

Example:  

Solve  the following equation: \[\frac {d^2 y}{dx^2} - 3 \frac {dy}{dx} + 2y = e^x\]

  1. Finding the general solution of \[\frac {d^2 y}{dx^2} - 3 \frac {dy}{dx} + 2y = 0\]

Solution:

The characteristic equation will be: r2 − 3r + 2 = 0

 

Factor: (r − 1)(r − 2) = 0

 

r = 1 or 2

 

Thus, the general solution of the differential equation is y = Aex + Be2x

 

Therefore, in this case, the fundamental solutions and their derivatives will be:

 

y1(x) = ex

 

y1'(x) = ex

 

y2(x) = e2x

 

y2'(x) = 2e2x

FAQs on Variation of Parameters for Solving Differential Equations

1. What is the method of variation of parameters?

The method of variation of parameters is a technique used to find a particular solution of a nonhomogeneous linear differential equation by allowing constants in the complementary solution to become functions of x. It is mainly used for equations of the form y'' + p(x)y' + q(x)y = g(x).

  • First, solve the associated homogeneous equation.
  • Find two linearly independent solutions y₁ and y₂.
  • Assume a particular solution of the form yₚ = u₁(x)y₁ + u₂(x)y₂.
  • Determine u₁ and u₂ using integration formulas.
This method works even when undetermined coefficients cannot be applied.

2. When do you use variation of parameters?

You use variation of parameters when solving a nonhomogeneous linear differential equation and the method of undetermined coefficients does not apply. It is especially useful when:

  • The forcing function g(x) is not a simple polynomial, exponential, sine, or cosine.
  • The equation has variable coefficients.
  • A general and systematic method is required.
It works for both constant and variable coefficient linear differential equations.

3. What is the formula for variation of parameters?

The formula for variation of parameters gives the particular solution as yₚ = −y₁ ∫(y₂g/W) dx + y₂ ∫(y₁g/W) dx. Here:

  • y₁ and y₂ are solutions of the homogeneous equation.
  • g(x) is the nonhomogeneous term.
  • W = y₁y₂' − y₂y₁' is the Wronskian.
This formula applies to second-order linear differential equations in standard form.

4. How do you solve a differential equation using variation of parameters step by step?

To solve a differential equation using variation of parameters, first find the complementary solution, then compute the particular solution using integrals involving the Wronskian.

  • Solve the homogeneous equation to get y₁ and y₂.
  • Compute the Wronskian W.
  • Use u₁' = −y₂g/W and u₂' = y₁g/W.
  • Integrate to find u₁ and u₂.
  • Form yₚ = u₁y₁ + u₂y₂.
  • Write the general solution: y = y_c + yₚ.
This systematic approach ensures a valid particular solution.

5. What is the Wronskian in variation of parameters?

The Wronskian is a determinant used to check whether two solutions are linearly independent and is defined as W = y₁y₂' − y₂y₁'. In variation of parameters:

  • W appears in the denominator of the formulas for u₁' and u₂'.
  • If W ≠ 0, the solutions y₁ and y₂ are linearly independent.
  • A nonzero W ensures the method works correctly.
It plays a central role in constructing the particular solution.

6. What is the difference between variation of parameters and undetermined coefficients?

The main difference is that variation of parameters works for more general functions, while undetermined coefficients works only for specific simple forcing functions.

  • Undetermined coefficients is faster but limited to polynomials, exponentials, sines, and cosines.
  • Variation of parameters works for almost any g(x).
  • Variation of parameters involves integration and the Wronskian.
Thus, variation of parameters is more general but often more computationally intensive.

7. Can you give a simple example of variation of parameters?

Yes, consider the equation y'' + y = tan x.

  • The homogeneous solution is y₁ = cos x and y₂ = sin x.
  • The Wronskian is W = 1.
  • Using the formulas, compute u₁' and u₂'.
  • Integrate to find u₁ and u₂, then form yₚ = u₁y₁ + u₂y₂.
The general solution is y = C₁ cos x + C₂ sin x + yₚ. This demonstrates how variation of parameters handles non-polynomial functions like tan x.

8. Why do we assume u₁'y₁ + u₂'y₂ = 0 in variation of parameters?

We assume u₁'y₁ + u₂'y₂ = 0 to simplify the derivatives and make the system solvable. This condition:

  • Reduces the complexity when differentiating yₚ.
  • Creates a system of two equations for u₁' and u₂'.
  • Makes it possible to solve using the Wronskian.
Without this assumption, the resulting expressions would be much harder to manage.

9. Can variation of parameters be used for higher-order differential equations?

Yes, variation of parameters can be extended to higher-order linear differential equations. For an nth-order equation:

  • You first find n linearly independent solutions of the homogeneous equation.
  • Replace constants with functions u₁, u₂, ..., uₙ.
  • Solve a system of n equations to determine these functions.
The process becomes more algebraically intensive but follows the same principle.

10. What are common mistakes in variation of parameters?

Common mistakes in variation of parameters include incorrect Wronskian calculation and sign errors in formulas. Students often:

  • Forget to write the equation in standard form.
  • Compute the Wronskian incorrectly.
  • Mix up the signs in u₁' = −y₂g/W and u₂' = y₁g/W.
  • Omit the complementary solution in the final answer.
Careful algebra and checking each step helps avoid these errors.