Photo AI

Last Updated Sep 27, 2025

Numerical Methods in Context Simplified Revision Notes

Revision notes with simplified explanations to understand Numerical Methods in Context quickly and effectively.

user avatar
user avatar
user avatar
user avatar
user avatar

424+ students studying

10.2.1 Numerical Methods in Context

Non-Homogeneous Second-Order Differential Equation (S.O.D.E)

infoNote

Consider a second-order differential equation of the form:

ad2ydx2+bdydx+cy=F(x)a \frac{d^2y}{dx^2} + b \frac{dy}{dx} + cy = F(x)
infoNote

Example: Solve the differential equation:

d2ydx25dydx+6y=13sin(3x)\frac{d^2y}{dx^2} - 5 \frac{dy}{dx} + 6y = 13 \sin(3x)

Solution:

The only way to solve this equation is to assume that y is of the form λsin(3x)+μcos(3x)\lambda \sin(3x) + \mu \cos(3x). Let's try this as a solution:

  1. Assume the particular solution:
y=λsin(3x)+μcos(3x)y = \lambda \sin(3x) + \mu \cos(3x)
  1. Find the first and second derivatives:
dydx=3λcos(3x)3μsin(3x)\frac{dy}{dx} = 3\lambda \cos(3x) - 3\mu \sin(3x)d2ydx2=9λsin(3x)9μcos(3x)\frac{d^2y}{dx^2} = -9\lambda \sin(3x) - 9\mu \cos(3x)
  1. Substitute into the original equation:
9λsin(3x)9μcos(3x)5[3λcos(3x)3μsin(3x)]+6[λsin(3x)+μcos(3x)]=13sin(3x)-9\lambda \sin(3x) - 9\mu \cos(3x) - 5[3\lambda \cos(3x) - 3\mu \sin(3x)] + 6[\lambda \sin(3x) + \mu \cos(3x)] = 13 \sin(3x)
  1. Simplify the equation:
(9λ+15μ+6λ)sin(3x)+(9μ15λ+6μ)cos(3x)=13sin(3x)(-9\lambda + 15\mu + 6\lambda) \sin(3x) + (-9\mu - 15\lambda + 6\mu) \cos(3x) = 13 \sin(3x)(15μ3λ)sin(3x)+(15λ3μ)cos(3x)=13sin(3x)(15\mu - 3\lambda) \sin(3x) + (-15\lambda - 3\mu) \cos(3x) = 13 \sin(3x)
  1. Match the coefficients of sin(3x)\sin(3x) and cos(3x)\cos(3x) with the corresponding terms on the right-hand side:
  • 15μ3λ=1315\mu - 3\lambda = 13
  • 15λ3μ=0-15\lambda - 3\mu = 0

  1. Solve the system of equations:
15μ3λ=1315\mu - 3\lambda = 1315λ3μ=0-15\lambda - 3\mu = 0

From the first equation:

μ=15,λ=16\mu = \frac{1}{5}, \quad \lambda = -\frac{1}{6}

Therefore, the particular solution is:

y=16sin(3x)+56cos(3x)y = -\frac{1}{6} \sin(3x) + \frac{5}{6} \cos(3x)
  1. General Solution:
  • If y=16sin(3x)+56cos(3x)y = -\frac{1}{6} \sin(3x) + \frac{5}{6} \cos(3x) is a particular solution, then the general solution is:
y=16sin(3x)+56cos(3x)+0y = -\frac{1}{6} \sin(3x) + \frac{5}{6} \cos(3x) + 0
  • The zero solutions are found by solving the associated homogeneous equation previously introduced.

infoNote

Solving the Homogeneous Equation

Given the differential equation:

d2ydx25dydx+6y=0\frac{d^2y}{dx^2} - 5 \frac{dy}{dx} + 6y = 0
  1. Solve the characteristic equation: The characteristic equation is derived by assuming a solution of the form y=emxy = e^{mx}, leading to:
m25m+6=0m^2 - 5m + 6 = 0

Factorizing the quadratic:

(m2)(m3)=0(m - 2)(m - 3) = 0

This gives the roots m=2m = 2 and m=3m = 3.

  1. Write the general solution to the homogeneous equation: The general solution (complementary function) is formed by the linear combination of the solutions corresponding to the roots:
yh=Ae2x+Be3xy_h = Ae^{2x} + Be^{3x}

where AA and BB are arbitrary constants.

  1. Combine with the particular integral: From the previous work, the particular integral (the particular solution to the non-homogeneous equation) was found to be:
yp=16sin(3x)+56cos(3x)y_p = -\frac{1}{6} \sin(3x) + \frac{5}{6} \cos(3x)
  1. Form the complete solution: The complete solution to the non-homogeneous differential equation is the sum of the particular integral and the complementary function:
y=16sin(3x)+56cos(3x)+Ac2x+Bc3xy = -\frac{1}{6} \sin(3x) + \frac{5}{6} \cos(3x) + Ac^{2x} + Bc^{3x}
  1. Note on the complementary function: The complementary function on its own is not a solution to the original non-homogeneous equation (since it equals zero), but it complements the particular integral to form the full solution.

Problem Statement

infoNote

Solve the differential equation:

d2ydx25dydx+6y=3x2\frac{d^2y}{dx^2} - 5\frac{dy}{dx} + 6y = 3x^2

1. Complementary Function (C.F.)

First, solve the homogeneous part of the equation:

C.F.:m25m+6=0\text{C.F.:} \quad m^2 - 5m + 6 = 0

Factorizing:

(m2)(m3)=0(m - 2)(m - 3) = 0

This gives the roots m=2m = 2 and m=3m = 3.

Thus, the complementary function is:

yh=Ae2x+Be3xy_h = Ae^{2x} + Be^{3x}

2. Particular Integral (P.I.)

Next, propose a form for the particular integral. Since the non-homogeneous term is 3x23x^2, assume:

y=ax2+bx+cy = ax^2 + bx + c

Then:

dydx=2ax+b\frac{dy}{dx} = 2ax + b d2ydx2=2a\frac{d^2y}{dx^2} = 2a

Substitute yy and its derivatives into the differential equation:

2a5(2ax+b)+6(ax2+bx+c)=3x22a - 5(2ax + b) + 6(ax^2 + bx + c) = 3x^2

Simplifying, collect terms involving x2,x,x^2, x, and constants:

6ax2+(6b10a)x+(2a5b+6c)=3x26ax^2 + (6b - 10a)x + (2a - 5b + 6c) = 3x^2

Equating coefficients of like terms:

  • Coefficient of x2:6a=3a=12x^2: 6a = 3 ⟹ a = \frac{1}{2}
  • Coefficient of x:6b10(12)=0b=56x: 6b - 10\left(\frac{1}{2}\right) = 0 ⟹ b = \frac{5}{6}
  • Constant term: 2(12)5(56)+6c=0c=19362\left(\frac{1}{2}\right) - 5\left(\frac{5}{6}\right) + 6c = 0 ⟹ c = \frac{19}{36} So, the particular integral is:
yp=12x2+56x+1936y_p = \frac{1}{2}x^2 + \frac{5}{6}x + \frac{19}{36}

3. General Solution

The general solution is the sum of the complementary function and the particular integral:

y=12x2+56x+1936+Ae2x+Be3x\boxed {y = \frac{1}{2}x^2 + \frac{5}{6}x + \frac{19}{36} + Ae^{2x} + Be^{3x}}

Forms of Particular Integrals

RHSP.I.
kc
λx+μ\lambda x+ \mubx+c<br>bx+c<br>
Note: μ \mu can = 0
λx2+μx+2\lambda x^2+ \mu x+2ax2+bx+cax^2+bx+c
Note: μ\mu, 2 can = 0
λekx\lambda e^{kx}aekxae^{kx}
psinλx+qcosλxp\sin \lambda x+q\cos \lambda xasinλx+bcosλxa\sin \lambda x+b\cos \lambda x
Note: aa,bb can = 0

Anything more complemented will be given in the question.


S.O.D.E. Where P.I. is Part of C.F.

infoNote

Example Problem: Solve d2ydx25dydx+6y=e2x\frac{d^2y}{dx^2} - 5\frac{dy}{dx} + 6y = e^{2x}.

  1. Find the Complementary Function (C.F.):
  • First, solve the characteristic equation associated with the homogeneous part:
m25m+6=0m^2 - 5m + 6 = 0
  • Factorize the characteristic equation:
(m2)(m3)=0(m - 2)(m - 3) = 0
  • This gives m=2m = 2 and m=3m = 3, so the C.F. is:
y=Ae2x+Be3xy = Ae^{2x} + Be^{3x}
  1. Propose a Particular Integral (P.I.):
  • Since e2xe^{2x} is already part of the C.F., assume:
y=λxe2xy = \lambda x e^{2x}
  • Differentiate this proposed solution:
dydx=λx×2e2x+e2x×λ=λe2x+2λxe2x\frac{dy}{dx} = \lambda x \times 2e^{2x}+e^{2x} \times \lambda =\lambda e^{2x} + 2\lambda x e^{2x}d2ydx2=2λe2x+2λe2x+4λxe2x=4λe2x+4λxe2x\frac{d^2y}{dx^2} = 2\lambda e^{2x} + 2\lambda e^{2x}+ 4\lambda x e^{2x} = 4\lambda e^{2x} + 4\lambda x e^{2x}
  1. Substitute into the differential equation:
  • Substitute y=λxe2x,dydxy = \lambda x e^{2x}, \frac{dy}{dx}, and d2ydx2\frac{d^2y}{dx^2} into the original equation:
LHS=4λe2x+4λxe2x5(λe2x+2λxe2x)+6(λxe2x)\text{LHS} = 4\lambda e^{2x} + 4\lambda x e^{2x} - 5(\lambda e^{2x} + 2\lambda x e^{2x}) + 6(\lambda x e^{2x})
  • Simplify the equation:
e2x(4λ+4λx5λ10λx+6λx)=e2xe^{2x}(4\lambda + 4\lambda x - 5\lambda - 10\lambda x + 6\lambda x) = e^{2x}e2x(λ)=e2xe^{2x}(-\lambda) = e^{2x}λ=1\lambda = -1
  1. Final Solution:
  • The Particular Integral is:
y=xe2xy = -x e^{2x}
  • Therefore, the general solution is:
y=(Ax)e2x+Be3xy = (A - x)e^{2x} + Be^{3x}

Justification of Trying λxe2x\lambda x e^{2x}:

  1. Start with the given S.O.D.E.:
d2ydx25dydx+6y=e2x\frac{d^2y}{dx^2} - 5\frac{dy}{dx} + 6y = e^{2x}
  1. Rewrite the differential equation:
  • This can be factored as:
(ddx2)(ddx3)y=e2x\left(\frac{d}{dx} - 2\right)\left(\frac{d}{dx} - 3\right)y = e^{2x}
  • Multiply both sides by (ddx2)\left(\frac{d}{dx} - 2\right) to get:
(ddx2)2(ddx3)y=(ddx2)e2x\left(\frac{d}{dx} - 2\right)^2\left(\frac{d}{dx} - 3\right)y = \left(\frac{d}{dx} - 2\right)e^{2x}
  1. Calculate the right-hand side:
  • Simplify the expression on the right:
(ddx2)e2x=ddxe2x2e2x=2e2x2e2x=0\left(\frac{d}{dx} - 2\right)e^{2x} = \frac{d}{dx} e^{2x} - 2e^{2x} = 2e^{2x} - 2e^{2x} = 0
  • This results in:
(ddx2)2(ddx3)y=0\left(\frac{d}{dx} - 2\right)^2\left(\frac{d}{dx} - 3\right)y = 0
  1. Conclusion:
  • This leads to the equation:
(ddx2)2(ddx3)y=0\left(\frac{d}{dx} - 2\right)^2\left(\frac{d}{dx} - 3\right)y = 0
  • The repeated root at m=2m = 2 results in the solution of the form:
y=(A+Bx)e2xy = (A + Bx)e^{2x}
  • Here, the term Bxe2xBx e^{2x} is equivalent to the form λxe2x\lambda x e^{2x} that was tried, justifying its use as a trial solution.

Books

Only available for registered users.

Sign up now to view the full note, or log in if you already have an account!

500K+ Students Use These Powerful Tools to Master Numerical Methods in Context

Enhance your understanding with flashcards, quizzes, and exams—designed to help you grasp key concepts, reinforce learning, and master any topic with confidence!

60 flashcards

Flashcards on Numerical Methods in Context

Revise key concepts with interactive flashcards.

Try Maths Pure Flashcards

6 quizzes

Quizzes on Numerical Methods in Context

Test your knowledge with fun and engaging quizzes.

Try Maths Pure Quizzes

7 questions

Exam questions on Numerical Methods in Context

Boost your confidence with real exam questions.

Try Maths Pure Questions

27 exams created

Exam Builder on Numerical Methods in Context

Create custom exams across topics for better practice!

Try Maths Pure exam builder

18 papers

Past Papers on Numerical Methods in Context

Practice past papers to reinforce exam experience.

Try Maths Pure Past Papers

Other Revision Notes related to Numerical Methods in Context you should explore

Discover More Revision Notes Related to Numerical Methods in Context to Deepen Your Understanding and Improve Your Mastery

96%

114 rated

Solving Equations

Change of Sign Failure

user avatar
user avatar
user avatar
user avatar
user avatar

434+ studying

191KViews

96%

114 rated

Solving Equations

x = g(x) Iteration

user avatar
user avatar
user avatar
user avatar
user avatar

269+ studying

187KViews

96%

114 rated

Solving Equations

Newton-Raphson

user avatar
user avatar
user avatar
user avatar
user avatar

365+ studying

194KViews

96%

114 rated

Solving Equations

Trapezium Rule (Numerical Integration)

user avatar
user avatar
user avatar
user avatar
user avatar

268+ studying

198KViews
Load more notes

Join 500,000+ A-Level students using SimpleStudy...

Join Thousands of A-Level Students Using SimpleStudy to Learn Smarter, Stay Organized, and Boost Their Grades with Confidence!

97% of Students

Report Improved Results

98% of Students

Recommend to friends

500,000+

Students Supported

50 Million+

Questions answered