Simple differential equation problem

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 1K views
NihalRi
Messages
134
Reaction score
12

Homework Statement


Find constants a and b such that y=ax + b is a solution to the differential equation
dy/dx = 4x - 2y

Homework Equations

The Attempt at a Solution


I already have the solution that is:
a=4x-2 (ax+b) (I'm fine with this part)
a = (4-2a) x - 2b (what happened here?)

4-2a=0 (why?) a= -2b (why?)
a= 2
b=-1
 
Physics news on Phys.org
NihalRi said:
a = (4-2a) x - 2b (what happened here?)
##
a=4x-2 (ax+b) \Leftrightarrow a=4x-2ax-2 b \Leftrightarrow a= (4-2a) x-2 b ## can only be true for all x if ##(4-2a)=0##. What remains is ## a = -2b ## . Pick an a and a b follows.
 
  • Like
Likes   Reactions: NihalRi
BvU said:
##
a=4x-2 (ax+b) \Leftrightarrow a=4x-2ax-2 b \Leftrightarrow a= (4-2a) x-2 b ## can only be true for all x if ##(4-2a)=0##. What remains is ## a = -2b ## . Pick an a and a b follows.

Thank you