سعود
سعود
Sami Almalki
1.1 introdection
√
We know that the square root of a negative number is not a real number. for example, −1 is
not a real number because there is no real number x such that x2 = −1. This mean the equations
like x2 = −1 or x2 + 1 = 0 do not have real number solutions.
let
√
i= −1
then
i2 = −1
This lead to a new set of numbers called the imaginary number and then the set of complex
numbers.To express roots of negative numbers in terms of i we can use the fact that
√ p √ √ √
−p = −1 × p = −1 × p = i × p
1
Example 1.1.1. Express each number in terms of i.
√ √ √ √ √
−7. b) −16. c) − −14. d)− −64. e) −48
a)
√ √ √ √ √ √
solution 1.1.1. a) −7 = −1 × 7 = −1 × 7 = i × 7 = 7i
√ √ √ √ √ √
b) −16 = −1 × 16 = −1 × 16 = i × 16 = 16i
√ √ √ √ √ √
c) − −13 = −1 × 13 = −1 × 13 = i × 13 = 13i
√ √ √ √ √ √
d) − −64 = −1 × 64 = −1 × 64 = i × 64 = 64i
√ √ √ √ √ √
e) −48 = −1 × 48 = −1 × 48 = i × 48 = 48i
Definition 1.1.1. A complex number is a number of the form x + yi where x and y are real
numbers. the number x is said to be the real part of x + yi and the number y is said to be the
imaginary part of x + yi.
The complex numbers are often denoted by Z. however, just as R is the set of real numbers,
C is the set of complex numbers. if Z is a complex number, Z is of the form
Z = x + yi ∈ C, x, y ∈ R
2
(a + bi) − (c + di) = (a − c) + (b − d)i
1.2.2 Multiplication
We also multiply the complex numbers as we do binomials.
Definition 1.2.1. The conjugate of a complex number x + yi is x − yi. The numbers x + yi and
x − yi are complex conjugates.
−3 + 7i and −3 − 7i.
14 − 5i and 14 + 5i.
8i and −8i.
3
Example 1.2.3. Divide 2 − 5i by 1 − 6i. and 2 + 3i by 1 + 4i.
solution 1.2.3. We write fraction notation and then multiply by the conjugate of the denominator.
2 − 5i 2 − 5i 1 + 6i 2 + 12i − 5i − 30i2
= × =
1 − 6i 1 − 6i 1 + 6i 1 + 6i − 6i − 36i2
32 + 7i 32 7
=⇒= = + i
37 37 37
Note that the multiplication of a complex number and it’s conjugate is a real number.
2 + 3i 2 + 3i 1 − 4i 2 − 8i + 3i − 12i2
= × =
1 + 4i 1 + 4i 1 − 4i 1 − 16i
14 − 5i 14 5
=⇒= = − i
17 17 17
solution 1.3.1.
Z = r(cos θ + i sin θ )
4
. This is trigonometric notation for complex number Z = x + yi, also called polar notation, where
p
r = x2 + y2 is called the absolute value or ”modulus”, and the θ is called the argument of x +yi.
To find trigonometric notation for a complex number given in standar notation, x + yi, we must
y
find r and determine the angle θ for which sin θ = r and cos θ = xr .
Example 1.3.2. Find trigonometric notation for each of the following complex numbers.
a) Z = 1 + i. b) Z = −2 + 2i. c) Z = 3 + 5i.
b) Z = −2 + 2i
p p √
here we have x = −2 and y = 2 then, r = x2 + y2 = (−2)2 + 22 = 8
2
tan θ = −2 = −1
=⇒ θ = tan−1 (−1) = −45, by using calculator ”degree mode”.
then, by substituting r’s and θ ’s value into trigonometric notation to have:
√
−2 + 2i = 8(cos(−45) + i sin(−45)).
c) Z = 3 + 5i
p p √
here we have x = 3 and y = 5 then, r = x2 + y2 = (9)2 + 252 = 34
5 5
tan θ = 3 = 3
=⇒ θ = tan−1 ( 53 ) = − 53
Since the angle does not come out in the nice angle, just lef it in the inverst tan function notation.
then, by substituting r’s and θ ’s value into trigonometric notation to have:
√ 5 5
3 + 5i = 34(cos(tan−1 ( )) + i sin(tan−1 ( )))
3 3
.
5
Example 1.3.3. Find standard notation x + yi for each of following complex examples.
√
a) Z = 2(cos 120 + i sin 120). b) Z = 8(cos 7π 7π
4 + i sin 4 ).
and
sqrt3 √
y = 2 sin 120 = 2( )= 3
2
.
Thus,
3
Z = 2(cos 120 + i sin 120 = −1 +
i
.
√
b) Z = 8(cos 7π 7π
4 + i sin 4 ).
√ 7π 7π √ 7π √ 7π
8(cos + i sin ) = 8 cos + 8(sin ))i
4 4 4 4
Thus,
√ 7π 7π
Z= 8(cos + i sin ) = 2 − 2i
4 4
6
1.4 De Moiver’s theorem
Definition 1.4.1. For any complex number r(cos θ + i sin θ ) and any natural number n,
7
1.5 Quadratic equations with complex numbers
Definition 1.5.1. A quadratic equation is an equation equivalent to
ax2 + bx + c = 0
The quadratic equations can have real number or imaginary number solution.
a) x2 + 6x + 13 = 0,
b) x2 + 13 = 0
solution 1.5.1. a) x2 + 6x + 13 = 0
a = 1, b = 6, c = 13
−6+4i −6−4i
x= 2 or x = 2
Hence,
Z = −3 + 2i and Z = −3 − 2i
are the solutions of Z 2 + 6Z + 13 = 0. Here we used letter Z instead of x when we are looking
for quadratic equation in complex roots.
8
b) x2 + 13 = 0
x2 = −13
1.6 Exercise
In Exercises 1-3 express each number in terms of i.
√
(1) −25
√
(2) −17
√
(3) − 81
In Exercises 4-14 write answers in the form x + yi, where x and y are real numbers.
(4) (2 + 3i) + (4 + i)
(5) (8 − 3i) − (−2 + 4i)
(6) (3 + 4i) + (7 − 5i)
(7) (−2 + 7i) − (−4 + 7i)
(8) (2 + 3i)(1 + 2i)
(9) (2 + 3i)(3 − 4i)
(10) (5 − 2i)2
(11) (7 + 2i)(7 − 2i)
4+i
(12) −3−2i
5−3i
(13) 4+3i
5
(14) 2i
9
In Exercises 15-17 graph the complex number and find its absolute value.
(15) 4 + 3i
(16) −2 − 3i
(17) −2i
(18) z = 5 + 6i
(19) z = −5 + 5i
(20) z = 1 − i
In Exercises 25-28 use DeMoiver’s theorem to write trigonometric notation, and in Exercises
29-32 use DeMoiver’s theorem to write standard notation.
10
Chapter 2
2.1 Introduction
A system of m linear equations in n variables is a set of m equations, each of which is linear in
the same n variables:
a11 x1 + a12 x2 + a13 x3 + · · · + a1n xn = b1
x+y=3
x-y=-1
solution 2.1.1. This system has exactly one solution, x = 1 and y = 2. the solution can be obtained
by adding the two equations to give 2x = 2, which implies x = 1 and so y = 2. The graph of this
system is represented by two intersecting lines.
11
Example 2.1.2. Solve the system of linear equations.
x+y=3
2x+2y=6
solution 2.1.2. This system has an infinite number of solutions because the second equation is
the result of multiplying both sides of the first equation by 2 A parametric representation of the
solution set is shown as
x = 3−t
y=t
Here t is any real number. The graph of this system is represented by two coincident lines.
x+y=3
x+y=1
solution 2.1.3. This system has no solution because it is impossible for the sum of two numbers
to be 3 and 1 simultaneously.The graph of this system is represented by two parallel lines.
12
2.2.1 Augmented matrix
One very common use of matrices is to represent systems of linear equations. The matrix derived
from the coefficients and constant terms of a system of linear equations is called the augmented
matrix of the system. Here is some examples.
x − 4y + 3z = 5
1 −4 3 5
−x + 3y − z = −3
−1 3 −1 −3
2x − 4z = 6 2 0 −4 6
x1 + 3x2 = 9
1 3 0 0
−x2 + 4x3 = −2
0 −1 4 −2
x1 − 5x3 = 0 1 0 −5 0
x + 2y + z = 3
y − z = −2
−x − 2y + 2z = 6
13
2.2.2 Elementary Row Operations
We are allowed to do the following without changing the equality of any equation in the matrix
and without impacting the solution to the system of linear equations:
1. Interchange two rows.
YOU CAN SWAP ANY ROW IN THE MATRIX WITH ANY OTHER ROW IN THE MATRIX.
For example:
a) Interchange the first and second rows.
0 1 3 4 −1 2 0 3 R1 ↔ R2
−1 2 0 3 0 1 3 4
2 −3 4 2 2 −3 4 2
1
2 −4 6 −2 1 −2 3 −1 ( )R1 → R1
2
1 3 −3 0 1 3 −3 0
5 −2 1 2 5 −2 1 2
1 2 −4 3 1 2 −4 3
0 3 −2 −1
0 3 −2 −1
R3 + (−2)R1 → R3
2 1 5 −2 0 −3 13 −8
14
2.2.3 Transforming an augmented matrix to Reduced Row Echelon form
An augmented matrix is in reduced row echelon form if the main diagonal consists of 1’s or 0’s
and all elements above and below the main diagonal are 0’s. As shown below.
" #
1 0 0 r1 1 0 r1
0 1 0 r2 0 1 r2
0 0 1 r3
Example 2.2.2. Write the system of linear equations as an augmented matrix. Then solve the
system by putting the matrix in reduced row echelon form.
x+y = 1
3x − 2y = −16
Now we must produce zeros above and below the main diagonal as follows.
" #
5 0 −14 2R1 + R2 = R1
3 −2 −16
" #
5 0 −14 5R2 − 3R1 = R2
0 −10 −38
15
" # 1 1
1 0 − 14
5 5 R1 = R1 and − 10 R2 = R2
19
0 1 5
4x − y + 2z = 0
2x + y − z = −11
2x − 2y + z = 3
4 −1 2 0
−2R2 + R1 = R2 0 −3 4 22
R3 − R2 = R3 0 −3 2 14
−12 0 2 22
−3R1 + R2 = R1
0 −3 4 22
R3 − R2 = R3 0 0 −2 −8
−12 0 0 30
R1 − R3 = R1
0 −3 0 6
R2 + 2R3 = R2 0 0 −2 −8
16
The last step we do follows.
1
− 12 R1 = R1
− 13 R2 = R2
− 12 R3 = R3
To obtain
1 0 0 −2.5
0 1 0
−2
0 0 1 4
Now, converting to a system of linear equations, we have
x = −2.5
y = −2
z=4
" #
2 4 −2 0
2R2 − 3R1 = R2 0 −2 6 2
17
" #
4 0 20 8
2R1 + 4R2 = R1 0 −2 6 2
1
R1 = R1
4
" #
1 0 5 2
1
− R2 = R2 0 1 −3 −1
2
The corresponding system of equations is
x1 + 5x3 = 2
x2 − 3x3 = −1
Now, the leading variables are x1 , x2 and non leading variable is x3 which is called free variable.
Let x3 = t, then we have
x1 = 2 − 5t
x2 = −1 + 3t
x3 = t
Where t is any real number, then the system has an infinite number of solutions.
Example 2.2.5. Solve the system of linear equations by using Gauss Jordan elimination.
3x − 8y + 2z = 7
x − 4y − z = 5
x + 4z = −3
18
3 −8 2 7
3R2 − R1 = R2
0 −4 −5 8
3R3 − R1 = R3 0 8 10 −16
3 −8 2 7
0 −4 −5 8
1
R3 = R3 0 4 5 −8
2
3 0 12 −9
R1 − 2R2 = R1
0 −4 −5 8
R3 + R2 = R3 0 0 0 0
1 1 0 4 −3
R1 = R1
3
0 1 − 5 −2
4
1
− R2 = R2 0 0 0 0
4
Since all entries in third row are zeros, so we could eliminate it to have
" #
1 0 4 −3
0 1 − 54 −2
The corresponding system of equations is
x + 4z = −3
5
y + z = −2
4
Now, the leading variables are x , y and non-leading variable is z.
Let z = t, then we have
x = −3 − 4t
5
y = −2 − t
4
z=t
Where t is any real number, then the system has an infinite number of solutions.
19
Example 2.2.6. Use Gauss Jordan elimination to solve the system of equations.
x+y+z = 4
3x − 2y − 2z = −3
4x − y − z = 0
using Gauss Jordan elimination, you can verify that the reduced row echelon form of the matrix
is
1 0 0 1
0 1 1 3
0 0 0 −1
The corresponding system of equations is
x=1
y+z = 3
0 = −1
Since the third equation does not make any sense, then the system has no solution.
20
.
it is easy to see that a homogeneous system must have at least one solution. The solution is called
trivial, for instance, a homogeneous system of three equations in the three variablesx1 , x2 and x3
must have x1 = 0, x2 = 0 and x3 = 0 as a trivaial solution.
x − 2y + z = 0
6y − 3z = 0
x − 2y − z = 0
using Gauss Jordan elimination, you can verify that the reduced row echelon form of the matrix
is
1 0 0 0
0 1 0 0
0 0 1 0
The corresponding system of equations is
x=0
y=0
z=0
21
Example 2.3.2. Solve the system of linear equations.
x1 − 7x4 = 0
x2 + 9x4 = 0
x3 − 3x4 = 0
22
2.4 Exercises
In exercises 1-5 find the solution set of the system of linear equations represented by the aug-
mented matrix.
" # " #
1 0 0 1 0 2
1. 2.
0 1 2 0 1 3
1 2 0 1 3
1 −1 0 3 1 0 1 3 0 1 3 0 1
5.
3. −2 0 1 −2 5
4. 0 0 1 2 0
0 1 1
0 0 1 −1 0 0 0 0 0 0 0 0 2
In Exercises 6-10 solve the system of linear equations using Gauss-Jordan elimination.
6. x + 2y = 7 7. 2x + 6y = 16
2x + y = 8 −2x − 6y = −16
8. x1 − 3x3 = −2 9. − 3x + 5y = −22
3x1 + x2 − 2x3 = 5 3x + 4y = 4
2x1 + 2x2 + x3 = 4 4x − 8y = 32
10. x1 + x2 − 5x3 = 3
x1 − 2x3 = 1
2x1 − x2 − x3 = 0
23
Chapter 3
Vector Spaces
x = (x1 , x2 ).
Example 3.1.1. Use a directed line segment to represent each vector in the plane.
solution 3.1.1. To represent each vector, draw a directed line segment from the origin to the
indicated terminal point.
a) u = (2, 3).
b) v = (−1, 2).
24
3.1.1 Vector addition
To add two vectors in the plane, add their corresponding components. The sum of u and v is the
vector
u + v = (u1 , u2 ) + (v1 , v2 ) = (u1 + v1 , u2 + v2 ).
Example 3.1.3. If v = (−2, 5) and u = (3, 4), find each vector of following.
a) 12 v.
b) 12 v + u
u + v = (u1 + v1 , u2 + v2 , u3 + v3 , . . . , un + vn ),
25
and the scalar multiple of u by c is defined as vector
Example 3.2.1. If u = (−1, 0, 1) and v = (2, −1, 5) in R3 , find each vector of following.
a) u + v
b) 2u
c) v − 2u
solution 3.2.1. a) To add two vectors, add their corresponding components, as follows.
Addition:
1) u + v is in V .
2) u + v = v + u. Commutative property
3) u + (v + w). Associative property
4) V has a zero vector 0 such that for every u in V , u + 0 = u. Additive identity
5) For every u in V , there is a vector in V denoted by −u such that u + −u = 0. Additive inverse
26
Scalar Multiplication:
6) cu is in V .
7) c(u + v) = cu + cv. Distributive property
8) (c + d)u = cu + du. Distributive property
9) c(du) = (cd)u. Associative property
10) 1(u) = u. Scalar identity
Example 3.3.2. Let V be the set of all fifth-degree polynomials with standared operations. Is it
a vector space. Justify your answer.
solution 3.3.1. In fact, V is not a vector space. Because V is not closed under addition (axiom (1)
of definition 2.3.1 fails): f = x5 + x − 1 and g = −x5 are in V but f + g = (x5 + x − 1) − x5 = x − 1
is not in V .
solution 3.3.2. In fact, V is not a vector space. Not every element in V has an addditive inverse
(axiom (4) of definition 2.3.1 fails): −(1, 1) = (−1, −1) is not in V .
Example 3.3.4. Let V = {(x, 21 x)} : x real number 2 with standared operations. Is it a vector
space. Justify your answer.
solution 3.3.3. We check all the properties in definition 2.3.1, one by one:
1. Addition:
(a) For real numbers x, y We have
1 1 1
x, x + y, y = x + y, (x + y)
2 2 2
27
So, V is closed under addition.
(b) Clearly, addition is closed under addition.
(c) Clearly, addition is associative.
(d) The element 0 = (0, 0) satisfies the property of the zero element.
(e) We have − x, 21 x = − x, 12 (−x) . So, every element in V has an additive inverse.
2. Scalar multiplication:
(a) For a scalar c, we have
1 1
c x, x = cx, cx
2 2
28
Let W = P2 , set of all polynomiales of degree ≤ 2.
Show : P2 is a subspace of P.
Example 3.4.3. Show that W = {(x1 , x2 ) : x1 ≥ 0 and x2 ≥ 0}, with the standard oprations, is not
a subspace of R2 .
solution 3.4.3. This set is nonemoty and closed under addition. however, it is not closed under
scalar multiplication. To see that, note that (1, 1) is in W , but the scalar multiple
29
3.5 linear combnition
Definition 3.5.1. A vector v in a vector space V is called a linear combination of the vectors
u1 , u2 , . . . un in V if v can be written in the form
v = c1 u1 + c2 u2 + · · · + ck uk
Example 3.5.1. Let v1 = (1, 2, 1), v2 = (3, 1, 2) and v3 = (5, 0, 3), all ∈ R3 .
Produce a linear combinations of v1 , v2 and v3 for the following.
a) 2v1 + v2 + (−1)v3
b) v1 + 0v2 + 0v3
(0, 5, 1).
Which is a linear combination since obtained from v1 , v2 and v3 using vector addition and scalare
multiplication.
b) v1 + 0v2 + 0v3
It is clear that the result of these opration is
Which is also a linear combination of v1 , v2 and v3 using vector addition and scalare multiplica-
tion.
Example 3.5.2. Write the vector w = (1, 1, 1) as a linear combination of vectors in the set S.
30
Let
c1 − c3 = 1
2c1 + c2 = 1
3c1 + 2c2 + c3 = 1
Using Gauss Jordan elimination,this system has an infinite number of solutions, each of the form
c1 = 1 + t
c2 = −1 − 2t
c3 = t
TO obtain one solution, we could let t = 1. Then c1 = 2, c2 = −3, and c3 = 1. and we have,
w = 2v1 − 3v2 + v3 .
Other choices for twould yield other ways to write w as alinear combination of v1 , v2 and v3 .
c1 v1 + c2 v2 + · · · + ck vk = 0
. We say S is linearly dependent, if S in not linearly independent. (This means, that S is said
to be linearly dependent, if there is at least one nontrivial (i.e. nonzero) solutions to the above
equation.)
31
Example 3.6.1. Determine whether the set of vectors in R3 is linearly independent or linearly
dependent.
S = {v1 = (1, 2, 3), v2 = (0, 1, 2), v3 = (−2, 0, 1)}.
solution 3.6.1. To test for linear independence or linear dependence, form the vector equation
c1 v1 + c2 v2 + c3 v3 = 0
c1 = c2 = c3 = 0
Which yields the homogeneous system of linear equations in c1 , c2 and c3 shown below.
c1 − 2c3 = 0
2c1 + c2 = 0
3c1 + 2c2 + c3 = 0
The augmented matrix of this system reduces by Gauss Jordan elimination as follows.
1 0 −2 0
2 1 0 0
3 2 1 0
Then,
1 0 0 0
0 1 0 0
0 0 1 0
This implies that the only solution is trivial solution
c1 = c2 = c3 = 0.
32
Example 3.6.2. Determine whether the set of vectors in R2 is linearly independent or linearly
dependent.
S = {v1 = (40, 15), v2 = (−50.25)}.
solution 3.6.2. To test for linear independence or linear dependence, form the vector equation
c1 v1 + c2 v2 = 0
c1 = c2 = 0
Which yields the homogeneous system of linear equations in c1 and c2 shown below.
40c1 − 50c2 = 0
15c1 + 25c2 = 0
c1 = c2 = 0.
Example 3.6.3. Determine whether the set of vectors in R2 is linearly independent or linearly
dependent.
S = {v1 = (40, 15), v2 = (20, 7.5)}.
33
solution 3.6.3. To test for linear independence or linear dependence, form the vector equation
c1 v1 + c2 v2 = 0
c1 = c2 = 0
Which yields the homogeneous system of linear equations in c1 and c2 shown below.
40c1 + 20c2 = 0
15c1 + 7.5c2 = 0
Example 3.6.4. Determine whether the set of vectors in R3 is linearly independent or linearly
dependent.
S = {v1 = (1, 0, −1, 0), v2 = (1, 1, 0, 2), v3 = (0, 3, 1, −2), v4 = (0, 1, −1, 2)}.
c1 v1 + c2 v2 + c3 v3 + c4 v4 = 0
We obtain
This equation produces the homogeneous system of linear equations in c1 , c2 , c3 and c4 shown
below.
c1 − c2 = 0
34
c2 + 3c3 + c4 = 0
−c1 + c3 − c4 = 0
The augmented matrix of this system reduces by Gauss Jordan elimination as follows.
1 0 0 0 0
0 1 3 1 0
−1 0 1 −1 0
0 2 −2 2 0
Then,
1 0 0 0 0
0 1 0 0 0
0 0 1 0 0
0 0 0 1 0
This implies that the only solution is trivial solution
c1 = c2 = c3 = 0.
35
3.7 Exercises
In exercises 1- 3, use a directed line segment to represent the vector.
4. v = (1, 3), u = (2, −2) 5. v = (2, −3), u = (−3, −1) 6. v = (−1, 4), u(4, −3)
7. v = 32 u 8. v = u + 2w 9. v = 12 (3u + w)
In exercises 10 - 12, determine whether the set , together with the indicated oprations, is a
vector space. If it is not, identify at least one of the ten vector space axioms that fails.
10. The set of all third-degree polynomials with the standard operations.
11. The set {(x, y) : x ≥ 0, y is a real number} with the standard operations in R2 .
In exercises 13 - 14, verify that W is a subspace of V . In each case assume that V has standard
operations.
36
In exerciese 15 - 16, W is not a subspace of the vector space. verify this by giving a specific
example.
In exercises 15 - 16, determine whether each vector can be written as a linear combination of
the vector in S.
17. S = {(−2, 2), (3, 5)} 18. S = {(0, 0), (1, −1)} 19. S = {(1, −4, 1), (6, 3, 2)}
37
Chapter 4
Differential Equations
4.1 Introduction
Definition 4.1.1. An equation containing the derivatives of one or more unknown functions (or
dependent variables), with respect to one or more independent variables, is said to be a differen-
tial equation (DE).
The equations
y0 = ex (4.1)
y00 + 4y = 0 (4.2)
dy
+ 5y = ex (4.3)
dx
d 2 y dy
− + 6y = 0 (4.4)
dx2 dx
dx dy
+ = 2x + y (4.5)
dt dt
are examples of differential equations. It can be seen that in (4.1) and (4.2) it is written by using
prime notation y0 , y00 , y000 , .....y(n) . While, in (4.3), (4.4) and (4.5) it is written by using Leibniz
dy d 2 y d 3 y dny
notation , 2
dx dx dx , 3 ,...., dxn .
Now we shall classify differential equations as follows.
38
• Classification by Type
If a differential equation contains only ordinary derivative of one or more unknown functions
with respect to a single independent variable, it is said to be an ordinary differential equation
ODE. For example:
dy
+ 5y = ex
dx
d 2 y dy
− + 6y = 0
dx2 dx
dx dy
+ = 2x + y
dt dt
are example of ordinary differential equations.
If An equation involving partial derivatives of one or more unknown functions of two or more
independent variables is called a partial differential equation PDE. For example:
∂ 2u ∂ 2u
+ =0
∂ x2 ∂ y2
• Classification by Order
The order of a differential equation is the largest derivative present in the differential equation. In
the differential equations listed above (4.1), (4.3) and (4.5) are first order differential equations,
(4.2) and (4.4) are second order differential equations.
39
4.2.1 Solution of an ordinary differential equation
Definition 4.2.1. A solution to a differential equation on an interval α < x < β is any function
y(x) which satisfies the differential equation in question on the interval α < x < β .
solution 4.2.1. The way to check that it is a solution is simply to just plug it into the differential
equation and verify that both sides of the equation are, in fact, equal. Let’s do this:
First we need to find y0 :
y0 = 4e4t
y0 − 4y = 4e4t − 4(e4t ) = 0.
Indeed we have that both sides of the equation are equal when we plug in y = e4t , and thus we
have verified that y = e4t is a solution to the differential equation y0 − 4y = 0.
dy c
=− 2
dx x
dy
Now just plug y and dx into the differential equation:
c 1 c
− 2
= (2 − ( + 2)
x x x
c 1 c
− 2
= (2 − − 2)
x x x
c c
− 2 =− 2
x x
40
Since both side are equal, thus, we have showed that
c
y= +2
x
is a solution to the differential equation
dy 1
= (2 − y).
dx x
Example 4.2.3. Show that the function
1
y = (x + 1) − ex
3
is a solution to the differential equation
dy
= y−x
dx
dy
solution 4.2.3. First we need to find dx
dy 1
= 1 − ex
dx 3
dy
Now just plug y and dx into the differential equation:
1 1
1 − ex = (x + 1) − ex − x
3 3
1 1
1 − ex = 1 − ex
3 3
Since both side are equal, thus, we have showed that
1
y = (x + 1) − ex
3
is a solution to the differential equation
dy
= y − x.
dx
Example 4.2.4. Verify that the given function is a solution of the differential equation.
y = 31 x2 + c 1x ; xy0 + y = x2
41
solution 4.2.4. First we need to find y0 :
2 1
y0 = x − c 2
3 x
Now just plug y and y0 into the equation:
2 1 1 1
x( x − c 2 ) + ( x2 + c ) = x2
3 x 3 x
2 2 1 1 1
x − c + x2 + c = x2
3 x 3 x
2 2 1 2
x + x = x2
3 3
Indeed we have that both sides of the equation are equal when we plug in y = 13 x2 + c 1x , and thus
we have verified that y = 31 x2 + c 1x is a solution to the differential equation xy0 + y = x2 .
2
(2) y = ce−x + 12 ; y0 + 2xy = x
solution 4.2.5. This is similar to verifying that it is a solution to the differential equation, just
with the additional requirement that we check that it also satisfies the initial value. First, let’s
verify that it satisfies the differential equation. So let’s find y0 and y00 :
y0 = −3ex + 6e3x
and
y00 = −3ex + 18e3x
y00 −4y0 +3y = −3ex +18e3x −4(−3ex +6e3x )+3(−3ex +2e3x ) = (−3+12−9)ex +(18−24+6)e3x = 0
So it satisfies the differential equation. Now does it satisfy the initial values?
42
and
y0 (0) = −3e0 + 6e3(0) = −3 + 6 = 3
So it also satisfies the initial values, thus y = −3ex + 2e3x is the solution to the IVP.
F(x, y) = f (x)g(y).
43
with
f (x) = x2
and
g(y) = (1 + y2 )
So equation (4.6) is a separable differential equation.
On the other hand, consider
dy
− x2 y2 = 4 (4.7)
dx
Solving for the derivative (by adding x2 y2 to both sides),
dy
= x2 y2 + 4
dx
The right hand side of this cannot be factored into a function of just x times a function of just y .
Thus, equation (4.7) is not separable.
y0 = −2xy2 .
solution 4.2.6. Let’s start by separating the variables. We can rewrite the equation as
1
dy = −2xdx
y2
Next we should integrate both sides of the equation:
1
Z Z
dy = −2xdx
y2
and we get
1
− = −x2 +C
y
and thus,
1
y=
x2 +C
is the general solution to our differential equation. To find a solution we plug the initial value
1
into the general solution y = x2 +C
to solve for C:
1
−1 =
0 +C
which gives that C = −1. So our solution to the initial value problem is:
1
y= 2
x −1
44
Example 4.2.7. Solve the following differential equation by using the separation of variables
method.
dy 4 sin(2x)
=
dx y
with initial value problem y(0) = 1
solution 4.2.7. Let’s start by separating the variables. We can rewrite the equation as
ydy = 4 sin(2x)dx
and we get
y2
= −2 cos(2x) +C
2
and thus,
p
y= 2C − 4 cos(2x)
is the general solution to our differential equation. We evaluate the arbitrary constant C using the
initial condition. Because y(0) = 1, we take the positive square root. Thus, we have
p
1 = 2C − 4 cos(0)
√
1= 2C − 4
1 = 2C − 4
2C = 5
45
In this section we will assume that p(x), q(x), and r(x) are constant functions and that f (x) =
0. Thus our equations will take the form
ay00 + by0 + cy = 0
with a 6= 0.
ay00 + by0 + cy = 0.
and
y00 = r2 er x
ar2 + br + c = 0.
ay00 + by0 + cy = 0.
Definition 4.3.2. If the roots r1 and r2 of the characteristic polynomial ar2 + br + c = 0 are real
and equal, then the general solution of ay00 + by0 + cy = 0 is
y = c1 er1 x + c2 er2 x .
y00 − y0 − 2y = 0.
46
solution 4.3.1. Start by finding the characteristic polynomial
r2 − r − 2 = 0
so our roots are: r = −1, 2. Therefore, by definition (4.3.2) the general solution of the differential
equation is
y = c1 e−x + c2 e2x .
Definition 4.3.3. If the characteristic polynomial ar2 +br +c = 0 has only one real root (repeated
root) r, then the general solution of ay00 + by0 + cy = 0 is
y = c1 erx + c2 xerx .
2y00 + 4y0 + 2y = 0.
solution 4.3.2. The characteristic polynomial for this differential equation is:
2r2 + 4r + 2 = 0.
r2 + 2r + 1 = (r + 1)2 = 0
so the root is r = −1. Therefore, by definition (4.3.3) the general solution of the differential
equation is
y = c1 e−x + c2 xe−x .
Definition 4.3.4. If the roots of the characteristic polynomial ar2 + br + c = 0 are complex num-
bers r1 = α + β i and r2 = α − β i, then the general solution of ay00 + by0 + cy = 0 is
That implies to
y = eαx (c1 cos β x + c2 sin β x).
47
Example 4.3.3. Solve the differential equation
y00 − 6y0 + 13 = 0.
r2 − 6r + 13 = 0
By the quadratic formula the roots are r1 = 3 + 2i and r2 = 3 − 2i. By definition (4.3.4) the
general solution of the differential equation is
4.4 Exercises
In Exercises 1-3 verify that the given function is a solution of the differential equation.
2
(1) y = ce−x + 12 ; y0 + 2xy = x
48