Differential Equations: Solve the following

Click For Summary
SUMMARY

The discussion focuses on solving the differential equation (cosx) y' + (sinx) y = sin2x using the integrating factor method. The user attempts to apply the trigonometric identity sin2x = 2sinxcosx and defines P(x) = tanx and Q(x) = 2sinx. Key errors identified include a sign mistake in calculating the integrating factor and misapplication of differentiation rules, leading to confusion about the constant of integration C. The correct approach emphasizes careful differentiation and integration to maintain the integrity of the solution.

PREREQUISITES
  • Understanding of first-order linear differential equations
  • Familiarity with integrating factors in differential equations
  • Knowledge of trigonometric identities, specifically sin2x = 2sinxcosx
  • Ability to differentiate and integrate functions involving trigonometric expressions
NEXT STEPS
  • Review the method of integrating factors for first-order linear differential equations
  • Practice solving differential equations using trigonometric identities
  • Learn about the implications of constants of integration in differential equations
  • Explore common mistakes in differentiation and their impact on solving equations
USEFUL FOR

Students studying differential equations, mathematics educators, and anyone looking to improve their problem-solving skills in calculus and differential equations.

komarxian
Messages
37
Reaction score
0

Homework Statement



Solve the following differential equations/initial value problems:

(cosx) y' + (sinx) y = sin2x

Homework Equations



I've been attempting to use the trig ID sin2x = 2sinxcosx.
I am also trying to solve this problem by using p(x)/P(x) and Q(x)

The Attempt at a Solution


[/B]
cosx y' +sinx y = 2sinxcosx

y' + tanx y = 2 sinx

P(x) = tanx, Q(x) = 2sinx

--> p(x) = e^lncosx + c = e^ lncosx e^c = C cos x (if e^c = C)

Dx = p(x)Q(x) = Ccosx (2sinx) = c 2 sinxcosx = Csin2x

p(x) y(x) = int( Dx ) dx = int( Csin2x) dx = C -cos2x/2 + C

y(x) = C -cos2x/2(Ccosx) + C/Ccosx = -Ccos2x/2(Ccosx) + 1/cosx = -Ccos2x/2(Ccosx) + secx

I'm kind of confused, because my constant C disappears at some point, and the answer is supposed to be
gif&s=50&w=226.&h=18.gif


any recommendations as to where I went wrong?
 

Attachments

  • gif&s=50&w=226.&h=18.gif
    gif&s=50&w=226.&h=18.gif
    1.8 KB · Views: 878
Physics news on Phys.org
komarxian said:

Homework Statement



Solve the following differential equations/initial value problems:

(cosx) y' + (sinx) y = sin2x

Homework Equations



I've been attempting to use the trig ID sin2x = 2sinxcosx.
I am also trying to solve this problem by using p(x)/P(x) and Q(x)

The Attempt at a Solution


[/B]
cosx y' +sinx y = 2sinxcosx

y' + tanx y = 2 sinx

P(x) = tanx, Q(x) = 2sinx

--> p(x) = e^lncosx + c = e^ lncosx e^c = C cos x (if e^c = C)

Dx = p(x)Q(x) = Ccosx (2sinx) = c 2 sinxcosx = Csin2x

p(x) y(x) = int( Dx ) dx = int( Csin2x) dx = C -cos2x/2 + C

y(x) = C -cos2x/2(Ccosx) + C/Ccosx = -Ccos2x/2(Ccosx) + 1/cosx = -Ccos2x/2(Ccosx) + secx

I'm kind of confused, because my constant C disappears at some point, and the answer is supposed to be
View attachment 228687

any recommendations as to where I went wrong?

If ##y'(x) + p(x) y(x) = q(x),## the solution is of the form
$$y(x) = e^{-P(x)} \int_0^x q(t) e^{P(t)} \, dt + c e^{-P(x)},$$
where ##P(w) = \int_0^w p(u) \, du## for any ##w##.

Note that if we include another constant of integration alongside ##P## (so we replace ##P(w)## by ##P(w)+k## for a constant ##k##) the constant cancels in the first term, and replaces ##c## by ##c e^{-k} = \text{another constant}## in the second term.
 
  • Like
Likes   Reactions: komarxian
komarxian said:
y' + tanx y = 2 sinx

P(x) = tanx, Q(x) = 2sinx

--> p(x) = e^lncosx + c = e^ lncosx e^c = C cos x (if e^c = C)
You made a sign error when finding the integrating factor ##p(x)##. If you differentiate ##\log \cos x##, you get ##-\tan x##.

Also, if you differentiate ##y \cos x##, you get ##(\cos x) y' + (-\sin x) y##, which isn't the lefthand side of the DE you started with.
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
3
Views
2K
Replies
4
Views
2K
  • · Replies 21 ·
Replies
21
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
9
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
2
Views
1K