Home » » Solving Differential Equations

Solving Differential Equations

Written By satyam coaching centre on Monday, 20 May 2019 | 14:51

1. Solving Differential Equations (DEs)

differential equation (or "DE") contains derivatives or differentials.
Our task is to solve the differential equation. This will involve integration at some point, and we'll (mostly) end up with an expression along the lines of "y = ...".
Recall from the Differential section in the Integration chapter, that a differential can be thought of as a derivativewhere \displaystyle\frac{{\left.{d}{y}\right.}}{{\left.{d}{x}\right.}} is actually not written in fraction form.

Examples of Differentials

Examples of Differential Equationsdx (this means "an infinitely small change in x")

\displaystyle{d}\theta (this means "an infinitely small change in \displaystyle\theta")
\displaystyle{\left.{d}{t}\right.} (this means "an infinitely small change in t")

Example 1

We saw the following example in the Introduction to this chapter. It involves a derivative, \displaystyle\frac{{\left.{d}{y}\right.}}{{\left.{d}{x}\right.}}:
\displaystyle\frac{{{\left.{d}{y}\right.}}}{{{\left.{d}{x}\right.}}}={x}^{2}-{3}=x23
As we did before, we will integrate it. This will be a general solution (involving K, a constant of integration).
So we proceed as follows:
\displaystyle{y}=\int{\left({x}^{2}-{3}\right)}{\left.{d}{x}\right.}
and this gives
\displaystyle{y}=\frac{{x}^{3}}{{3}}-{3}{x}+{K}
But where did that dy go from the \displaystyle\frac{{{\left.{d}{y}\right.}}}{{{\left.{d}{x}\right.}}}? Why did it seem to disappear?
In this example, we appear to be integrating the x part only (on the right), but in fact we have integrated with respect to y as well (on the left). DEs are like that - you need to integrate with respect to two (sometimes more) different variables, one at a time.
We could have written our question only using differentials:
dy = (x2 − 3)dx
(All I did was to multiply both sides of the original dy/dx in the question by dx.)
Now we integrate both sides, the left side with respect to y (that's why we use "dy") and the right side with respect to x (that's why we use "dx") :
\displaystyle\int{\left.{d}{y}\right.}=\int{\left({x}^{2}-{3}\right)}{\left.{d}{x}\right.}
Then the answer is the same as before, but this time we have arrived at it considering the dy part more carefully:
\displaystyle{y}=\frac{{x}^{3}}{{3}}-{3}{x}+{K}
On the left hand side, we have integrated \displaystyle\int{\left.{d}{y}\right.}=\int{1}{\left.{d}{y}\right.} to give us y.
Note about the constant: We have integrated both sides, but there's a constant of integration on the right side only. What happened to the one on the left? The answer is quite straightforward. We do actually get a constant on both sides, but we can combine them into one constant (K) which we write on the right hand side.

Example 2

This example also involves differentials:
\displaystyle\theta^{2}{d}\theta= \sin{{\left({t}+{0.2}\right)}}{\left.{d}{t}\right.}dt
We have:
A function of \displaystyle\theta with \displaystyle{d}\theta on the left side, and
A function of t with dt on the right side.
To solve this, we would integrate both sides, one at a time, as follows:
\displaystyle\int\theta^{2}{d}\theta=\int \sin{{\left({t}+{0.2}\right)}}{\left.{d}{t}\right.}dt
\displaystyle\frac{{\theta^{3}}}{{3}}=- \cos{{\left({t}+{0.2}\right)}}+{K}+K
We have integrated with respect to θ on the left and with respect to t on the right.
Here is the graph of our solution, taking \displaystyle{K}={2}:
Typical solution graph for the Example 2 DE: \displaystyle\theta{\left({t}\right)}={\sqrt[{{3}}]{{-{3} \cos{{\left({t}+{0.2}\right)}}+{6}}}}.
Continues below 

Solving a differential equation

From the above examples, we can see that solving a DE means finding an equation with no derivatives that satisfies the given DE. Solving a differential equation always involves one or more integration steps.
It is important to be able to identify the type of DE we are dealing with before we attempt to solve it.

Definitions

First order DE: Contains only first derivatives
Second order DE: Contains second derivatives (and possibly first derivatives also)
Degree: The highest power of the highest derivative which occurs in the DE.

Example 3 - Order and Degree

a) \displaystyle\frac{{{d}^{2}{y}}}{{{\left.{d}{x}\right.}^{2}}}+{\left(\frac{{{\left.{d}{y}\right.}}}{{{\left.{d}{x}\right.}}}\right)}^{3}-{3}{x}+{2}{y}={8}+(dxdy)33x+2y=8
This DE has order 2 (the highest derivative appearing is the second derivative) and degree 1 (the power of the highest derivative is 1.)
b) \displaystyle{\left(\frac{{{\left.{d}{y}\right.}}}{{{\left.{d}{x}\right.}}}\right)}^{5}-{2}{x}={3} \sin{{\left({x}\right)}}- \sin{{\left({y}\right)}}52x=3sin(x)sin(y)
This DE has order 1 (the highest derivative appearing is the first derivative) and degree 5 (the power of the highest derivative is 5.)
c) \displaystyle{\left({y}{''}\right)}^{4}+{2}{\left({y}'\right)}^{7}-{5}{y}={3}+2(y)75y=3
This DE has order 2 (the highest derivative appearing is the second derivative) and degree 4 (the power of the highest derivative is 4.)

General and Particular Solutions

When we first performed integrations, we obtained a general solution (involving a constant, K).
We obtained a particular solution by substituting known values for x and y. These known conditions are called boundary conditions (or initial conditions).
It is the same concept when solving differential equations - find general solution first, then substitute given numbers to find particular solutions.
Let's see some examples of first order, first degree DEs.

Example 4

a. Find the general solution for the differential equation
\displaystyle{\left.{d}{y}\right.}+{7}{x}{\left.{d}{x}\right.}={0}
b. Find the particular solution given that \displaystyle{y}{\left({0}\right)}={3}.
Answer
Here is the graph of the particular solution we just found:
Solution graph: \displaystyle{y}=-\frac{7}{{2}}{x}^{2}+{3}.

Example 5

Find the particular solution of
\displaystyle{y}'={5}
given that when \displaystyle{x}={0},{y}={2}.
Answer

Example 6

Find the particular solution of
\displaystyle{y}{'''}={0}
given that:
\displaystyle{y}{\left({0}\right)}={3}, \displaystyle{y}'{\left({1}\right)}={4}, \displaystyle{y}{''}{\left({2}\right)}={6}
Answer

Example 7

After solving the differential equation,
\displaystyle\frac{{{\left.{d}{y}\right.}}}{{{\left.{d}{x}\right.}}} \ln{{x}}-\frac{y}{{x}}={0}lnxxy=0
(we will see how to solve this DE in the next section Separation of Variables), we obtain the result
\displaystyle{y}={c} \ln{{x}}
Did we get the correct general solution?
Answer

Second Order DEs

We include two more examples here to give you an idea of second order DEs. We will see later in this chapter how to solve such Second Order Linear DEs.

Example 8

The general solution of the second order DE
y'' + a2y = 0
is
\displaystyle{y}={A} \cos{{a}}{x}+{B} \sin{{a}}{x}

Example 9

The general solution of the second order DE
y'' − 3y' + 2y = 0
is
= Ae2x + Bex
If we have the following boundary conditions:
y(0) = 4, y'(0) = 5
then the particular solution is given by:
= e2x + 3ex

Now we do some examples using second order DEs where we are given a final answer and we need to check if it is the correct solution.

Example 10 - Second Order DE

Show that
\displaystyle{y}={c}_{{1}} \sin{{2}}{x}+{3} \cos{{2}}{x}
is a general solution for the differential equation
\displaystyle\frac{{{d}^{2}{y}}}{{{\left.{d}{x}\right.}^{2}}}+{4}{y}={0}+4y=0
Answer

Example 11 - Second Order DE


Show that \displaystyle\frac{{{d}^{2}{y}}}{{{\left.{d}{x}\right.}^{2}}}={2}\frac{{{\left.{d}{y}\right.}}}{{{\left.{d}{x}\right.}}}=2dxdy has a solution of c1 + c2

0 comments:

Post a Comment

Please do not enter any spam link in the comment box.

Email Subscription

Enter your email address:

Delivered by FeedBurner

Social Buttons