a) If P=cet2, then dPdt=c2et2=P2.
b) The population of alligators cannot be negative.
c) We know when t=0, P=5, so plugging into the equation in (a), we find c=5.
a) y=∫6x2dx=2x3+C
b) y=∫12x+6dx=12ln(2x+6)+C
c) y=∫p√36−p2dp
We can do a u-substitution here, letting u=36−p2, so dudp=−2p, and substituting these in:
y=∫−121√uduy=−12(2√u+C)y=−√36−p2+C
d) This is a separable differential equation:
dyy−1=dxx+5∫dyy−1=∫dxx+5ln|y−1|=ln|x+5|+Cln|y−1|−ln|x+5|=Cln|y−1x+5|=Cy−1x+5=eCy=eC(x+5)+1
Note: It is common practice to replace eC with another constant, A, for aesthetics.
We are told dAdt=k3√A. From here, we can solve the differential equation to get the desired function:
13√AdA=kdt∫dA3√A=∫kdt323√A2=kt+C
We were told that when t=0, the area was 2√2:
323√(2√2)2=k(0)+CC=3
When t=4, we know the area doubled, so it became 4√2:
323√(4√2)2=k(4)+3k=−3+33√44
So finally:
323√A2=(−3+33√44)t+3123√A2=(−1+13√44)t+1A(t)=√((−1+13√42)t+2)3
The easiest way to solve this is by creating a table:
xn+1=xn+0.25
yn+1=yn+0.25(x2n+y2n2x2n)
n | xn | yn |
---|---|---|
0 | 1 | 0 |
1 | 1.25 | 0.125 |
2 | 1.50 | 0.251 |
3 | 1.75 | 0.379 |
4 | 2 | 0.641 |
Error=Actualvalue−ExpectedvalueExpectedvalue⋅100=0.641−0.5150.515⋅100=24.5%
a) We are given the differential equation:
dydx=(3x−2)y3
This is a separable differential equation. To solve it, we separate the variables and integrate:
dyy3=(3x−2)dx
Integrate both sides:
∫y−3dy=∫(3x−2)dx
The left-hand side integrates to:
∫y−3dy=−12y−2+C1
And the right-hand side integrates to:
∫(3x−2)dx=32x2−2x+C2
Combining the results and solving for y:
−12y−2=32x2−2x+C
where C=C2−C1 is the constant of integration. Rearranging:
y−2=−3x2+4x−2C
Taking the reciprocal and square root:
y=1√−3x2+4x+D
where D=−2C is a new constant.
b) Given y(1)=2, substitute x=1 and y=2 into the general solution:
2=1√−3(1)2+4(1)+D
Simplify:
2=1√−3+4+D⟹2=1√1+D
Square both sides:
4=11+D⟹1+D=14⟹D=−34
Substitute D=−34 back into the general solution:
y=1√−3x2+4x−34
a) The rate of change of z is proportional to the cube of z. This can be expressed as:
dzdx=kz3
where k is the constant of proportionality.
b) The differential equation is separable. To solve it, we separate the variables and integrate:
dzz3=kdx
Integrate both sides:
∫z−3dz=∫kdx
The left-hand side integrates to:
∫z−3dz=−12z−2+C1
And the right-hand side integrates to:
∫kdx=kx+C2
Combining the results:
−12z−2=kx+C
where C=C2−C1 is the constant of integration. Rearranging:
z−2=−2kx−2C
Taking the reciprocal and square root:
z=1√−2kx+D
where D=−2C is a new constant.
c) Given z(0)=2 and z(1)=14, we substitute these conditions into the general solution to find k and D.
1. Substitute x=0 and z=2:
2=1√D⟹√D=12⟹D=14
2. Substitute x=1, z=14, and D=14:
14=1√−2k(1)+14
Simplify:
14=1√−2k+14⟹√−2k+14=4
Square both sides:
−2k+14=16⟹−2k=634⟹k=−638
Substitute k=−638 and D=14 into the general solution:
z=1√−2(−638)x+14=1√634x+14
Simplify:
z=1√63x+14=2√63x+1
The given differential equation is:
x2y′=y2+4xy+3x2
Divide both sides by x2 to simplify:
y′=y2x2+4yx+3
Substitute v=yx, then y=vx and y′=v+xv′. Substitute these into the equation:
v+xv′=v2+4v+3
Rearrange the equation to separate v and x:
xv′=v2+3v+3
Separate the variables:
dvv2+3v+3=dxx
Integrate both sides:
∫dvv2+3v+3=∫dxx
Complete the square in the denominator:
v2+3v+3=(v+32)2+34
Thus, the integral becomes:
∫dv(v+32)2+34=ln|x|+C
Using the substitution u=v+32, the integral evaluates to:
2√3arctan(2v+3√3)=ln|x|+C
Apply the initial condition: Given y(1)=−2, substitute x=1 and y=−2 into v=yx:
v=−21=−2
Substitute v=−2 and x=1 into the integrated equation:
2√3arctan(2(−2)+3√3)=ln|1|+C
Simplify:
2√3arctan(−1√3)=C
C=2√3⋅(−π6)=−π3√3
Solve for v and then y:
The equation becomes:
2√3arctan(2v+3√3)=ln|x|−π3√3
Solve for v:
arctan(2v+3√3)=√32ln|x|−π6
Take the tangent of both sides:
2v+3√3=tan(√32ln|x|−π6)
Solve for v:
v=√32tan(√32ln|x|−π6)−32
Recall that y=vx:
y=x(√32tan(√32ln|x|−π6)−32)
Rewrite the differential equation:
Divide both sides by x:
y′=yx+xcosx
Identify the integrating factor:
The equation is linear in y. The integrating factor μ(x) is:
μ(x)=e∫−1xdx=e−ln|x|=1x
Multiply through by the integrating factor:
1xy′−1x2y=cosx
Recognize the left-hand side as a derivative:
ddx(yx)=cosx
Integrate both sides:
yx=∫cosxdx=sinx+C
Solve for y:
y=xsinx+Cx
Apply the initial condition y(π)=0:
0=πsinπ+Cπ
0=0+Cπ
C=0
Final solution:
y=xsinx
The given differential equation is:
dydx=e−x−3y2
Euler's method is given by:
yn+1=yn+h⋅f(xn,yn)
where f(x,y)=e−x−3y2 and h=0.1.
Given y(0)=2, we start with x0=0 and y0=2.
We compute the values step-by-step until x=0.3:
n | xn | yn | f(xn,yn)=e−xn−3y2n |
---|---|---|---|
0 | 0.0 | 2.000 | e0−3(2)2=1−12=−11 |
1 | 0.1 | 2.000+0.1(−11)=0.900 | e−0.1−3(0.9)2≈0.9048−2.43=−1.5252 |
2 | 0.2 | 0.900+0.1(−1.5252)=0.7475 | e−0.2−3(0.7475)2≈0.8187−1.6757=−0.8570 |
3 | 0.3 | 0.7475+0.1(−0.8570)=0.6618 |
The approximate value of y when x=0.3 is:
y3=0.6618
The given differential equation is:
dydx=ex−4y2
Euler's method is given by:
yn+1=yn+h⋅f(xn,yn)
where f(x,y)=ex−4y2 and h=0.1.
Given y(0)=1, we start with x0=0 and y0=1.
We compute the values step-by-step until x=0.4:
n | xn | yn | f(xn,yn)=exn−4y2n |
---|---|---|---|
0 | 0.0 | 1.000 | e0−4(1)2=1−4=−3 |
1 | 0.1 | 1.000+0.1(−3)=0.700 | e0.1−4(0.7)2≈1.1052−1.96=−0.8548 |
2 | 0.2 | 0.700+0.1(−0.8548)=0.6145 | e0.2−4(0.6145)2≈1.2214−1.5098=−0.2884 |
3 | 0.3 | 0.6145+0.1(−0.2884)=0.5857 | e0.3−4(0.5857)2≈1.3499−1.3722=−0.0223 |
4 | 0.4 | 0.5857+0.1(−0.0223)=0.5835 |
The approximate value of y when x=0.4 is:
y4=0.5835
a) We want to express 1(x+2)(x+3) in partial fractions. Assume:
1(x+2)(x+3)=Ax+2+Bx+3
Multiply both sides by (x+2)(x+3):
1=A(x+3)+B(x+2)
Expanding and collecting like terms:
1=(A+B)x+(3A+2B)
Equating the coefficients of corresponding powers of x:
{A+B=0,3A+2B=1
From the first equation, A=−B. Substituting into the second equation:
3(−B)+2B=1⟹−3B+2B=1⟹−B=1⟹B=−1
Thus, A=1. The partial fraction decomposition is:
1(x+2)(x+3)=1x+2−1x+3
b) The given differential equation is:
(x+2)(x+3)dydx+y=x+2
Divide both sides by (x+2)(x+3):
dydx+y(x+2)(x+3)=x+2(x+2)(x+3)
Simplify the right-hand side:
x+2(x+2)(x+3)=1x+3
Thus, the equation becomes:
dydx+y(x+2)(x+3)=1x+3
The integrating factor μ(x) is:
μ(x)=e∫1(x+2)(x+3)dx
Using the partial fractions from part (a):
∫1(x+2)(x+3)dx=∫(1x+2−1x+3)dx=ln|x+2|−ln|x+3|
Thus, the integrating factor simplifies to:
μ(x)=eln|x+2|−ln|x+3|=x+2x+3
Multiply both sides by μ(x):
x+2x+3dydx+1x+3y=x+2(x+3)2
The left-hand side is the derivative of y⋅x+2x+3:
ddx(y⋅x+2x+3)=x+2x+3.
Integrating both sides:
y⋅x+2x+3=∫x+2(x+3)2dx
Using substitution u=x+3, we get:
∫u−1u2du=∫(1u−1u2)du=ln|u|+1u+C
Substituting back u=x+3:
∫x+2x+3dx=ln|x+3|+1x+3+C
Thus, the equation simplifies to:
y⋅x+2x+3=ln|x+3|+1x+3+C
Solving for y:
y=x+3x+2(ln|x+3|+1x+3+C)