University of Florida/Egm4313/s12.team8.dupre/R3.3

From testwiki
Jump to navigation Jump to search

Template:Big3

Problem Statement

Find the complete solution for y3y+2y=4x2 (3.1) with the initial conditions y(0)=1,y(0)=0. Plot the solution y(x).

Solution

First, we set r(x), or the right side of the given equation, equal to 0, to solve for the homogenous equation. We solve this by plugging into the quadratic formula, which gives us:

3±94(1)(2)2(1)

This gives us the solutions for the roots of equation (3.1) to be

λ1=2,λ2=1

Using these roots and the fact that they are both real and positive, we know that the homogenous equation of (3.1) is equal to:

yh=c1e2x+c2ex (3.2)

The next step in this solution is to solve for the particular solution of (3.1). Using the Basic Rule and (3.2), we find that

yp(x)=c0+c1x+c2x2 (3.3)

We also need the first and second derivatives of (3.3), and solving for these gives us:

yp(x)=c1+2c2x (3.4) and yp(x)=2c2 (3.5)

To solve for the unknown c constants in (3.3),(3.4), and (3.5), we plug these equations into (3.1), giving us:

2c23(c1+2c2x)+2(c0+c1x+c2x2)=(0*1)+(0*x)+4x2

Simplifying this equation...

2c23c16c2x+2c0+2c1x+2c2x2=4x2 (3.6)

Creating equations for the non-coefficient terms, along with the coefficients of x and x squared terms, respectively, we get:

2c03c1+2c2=0 (3.7)

0(c0)+2c16c2=0 (3.8)

0(c0)+0(c1)+2c2=4 (3.9)

In matrix form of Ac=d, these would appear as:

[232026002]{c0c1c2}={004}

Using this, we can solve for all three c constants, as shown:

2c2=4 which leads to c2=2

2c1(6)(2)=0 which leads to 2c1=12 and finally c1=6

2c0(3)(6)+(2)(2)=0 which leads to 2c0=14 and finally c0=7

Plugging these constants back into (3.3) gives us the final particular solution of (3.1):

yp(x)=2x2+6x+7 (3.10)

To find the general solution of (3.1), we combine the particular (3.10) and homogenous (3.2) equations to get:

y(x)=2x2+6x+7+c1e2x+c2ex (3.11)

To solve for the final two constants, we use the given initial conditions in (3.11) and the derivative of that, which is:

y'p=4x+6+2c1e2x+c2ex (3.12)

Using the initial conditions in (3.11) and (3.12) allows us to obtain the following:

yp(0)=1=7+6(0)+2(0)2+c1e0+c2e0

which leads to 1=7+c1+c2

and finally gives us 6=c1+c2 (3.13)

y'p(0)=0=6+4(0)+2c1e0+c2e0

Which leads to 0=6+c1+c2

And finally comes out to 6=2c1+c2 (3.14) Solving for c1 in equation (3.13) and plugging that into equation (3.14) allows us to solve for c2:

6=2(c26)+c2

6=2c2+12+c2

c2=6 (3.15)

Plugging (3.15) into (3.13) allows us to solve for the remaining constant:

6=c16

0=c1 (3.16)

Plugging (3.15) and (3.16) into (3.11) gives us our final general solution of:

y(x)=2x2+6x+76ex     (3.17)

Plot

The plot of equation (3.17) is shown below:

Template:CourseCat