Differential Equations
Practice Quiz
Question:
1. Solve the differential equation y' + 2y = 3e^x
2. Find the general solution of the differential equation y'' + 4y' + 4y = 0
3. Solve the differential equation y' - 2y = x^2
4. Find the general solution of the differential equation y'' - 4y = 0
5. Solve the differential equation y' + y = x^2
6. Find the general solution of the differential equation y'' + y = 0
7. Solve the differential equation y' - 3y = x
8. Find the general solution of the differential equation y'' + y' + y = 0
9. Solve the differential equation y' + 2y = x^3
10. Find the general solution of the differential equation y'' - 2y' + 2y = 0
Answers:
1. Solve the differential equation y' + 2y = 3e^x
The solution to this differential equation is y = (3/5)e^x + C*e^-2x, where C is the constant of
integration.
This differential equation is a first-order linear differential equation, which means that the
highest derivative in the equation is of the first order (in this case, y'), and the coefficients of
the derivatives are constants (in this case, 1 for y' and 2 for y). The general solution to this type
of differential equation can be found by using an integrating factor, a function that, when
multiplied by both sides of the equation, makes the left-hand side into the product of the
integrating factor and the derivative of a function. In this case, the integrating factor is
, e^(int(2)dx) = e^(2x), and the general solution is e^(2x)y = (3/5)e^(3x) + C, where C is the
constant of integration. To find the solution for y, we divide both sides by e^(2x) and get y =
(3/5)e^x + C*e^-2x.
2. Find the general solution of the differential equation y'' + 4y' + 4y = 0
The characteristic equation is r^2 + 4r + 4 = 0. The roots are r1= -2 + 2i and r2= -2 - 2i. Thus, the
general solution is y = c1e^(-2+2i)x + c2e^(-2-2i)x.
This differential equation is a second-order linear differential equation, which means that the
highest derivative in the equation is of second order (in this case, y''), and the coefficients of
the products are constants (in this case, 1 for y'', 4 for y' and 4 for y). To find the general
solution for this differential equation, one method is to use the characteristic equation, which is
obtained by setting the right-hand side of the differential equation to zero and replacing the
derivatives with a variable r. In this case, the characteristic equation is r^2 + 4r + 4 = 0.
To find the roots of this equation, we set it to zero and solve for r: r^2 + 4r + 4 = 0. This is a
quadratic equation whose roots are r1= -2 + 2i and r2= -2 - 2i.
The general solution of a second-order linear differential equation is a linear combination of
two linearly independent solutions of the homogeneous equation (the equation with 0 on the
right side), which are represented by e^(r1x) and e^(r2x). Since the roots of the characteristic
equation are complex, the general solution is described in the form of y = c1e^(-2+2i)x + c2e^(-
2-2i)x, where c1 and c2 are arbitrary constants.
Here c1 and c2 are the arbitrary constants that can be determined by applying initial or
boundary conditions.
3. Solve the differential equation y' - 2y = x^2
The solution to this differential equation is y = (1/5)x^3 + C*e^-2x, where C is the constant of
integration.