Solving First Order Linear DEs: Methods and General Solutions

Click For Summary

Homework Help Overview

The discussion revolves around solving a first order linear differential equation (DE) of the form c' + 2c = 1. The original poster expresses confusion regarding their solution approach and the applicability of separation of variables, while also seeking clarification on the general solution formula for such DEs.

Discussion Character

  • Exploratory, Assumption checking, Conceptual clarification

Approaches and Questions Raised

  • The original poster attempts to apply separation of variables but questions its validity in this context. They also seek understanding of the derivation of the general solution formula for first order linear DEs.
  • Some participants point out errors in the original poster's integration steps and suggest alternative methods, such as using integrating factors or transforming the equation.
  • There is a discussion about the incorrect handling of exponential terms during the solution process.

Discussion Status

Participants are actively engaging with the original poster's questions, providing guidance on correcting mistakes and suggesting different approaches to solving the DE. The conversation reflects a mix of interpretations and methods being explored, with no explicit consensus reached yet.

Contextual Notes

The original poster is working under the constraints of a homework assignment, which may limit the methods they can use or the depth of explanation they can pursue. There is also a noted confusion regarding the application of separation of variables and the general solution formula.

BOAS
Messages
546
Reaction score
19
Hi,

I have a first order linear DE that I need to find the general solution for. I thought that I had, but my solution does not make sense when plugged back into the equation.

I think that my method of separation of variables might be inapplicable here, but don't know the reason for this.

I know that for a DE of the form;

y' + ay = b, the general solution is given by y = \frac{b}{a} + Ce^{-ax} but I don't know where this result comes from, so I would greatly appreciate some help here.

I will show what I have done, even though it is wrong.

1. Homework Statement


Find the general solution to;

c(\phi) : c' + 2c = 1

Homework Equations

The Attempt at a Solution


[/B]
Rewrite as \frac{dc}{d \phi} = 1 - 2c

\frac{dc}{1 - 2c} = d\phi

Integrate both sides.

\int \frac{dc}{1 - 2c} = \int d\phi

- \frac{1}{2} ln(|1 - 2c|) + a_{1} = \phi + a_{2}

Exponentiate, to get rid of ln, and let a_2 - a_1 = a

(1 - 2c)^{-\frac{1}{2}} = e^{\phi} + e^{a}

c = \frac{1}{2} - \frac{e^{-2\phi} + e^{-2a}}{2}

which is not a solution to my differential equation...

c = \frac{1}{2} + Qe^{-2 \phi} is. (Using Q as my constant to avoid confusion)

So I have two questions;

1) Why can I not use separation of variables? (Or did I make a mistake?)

2) What is the argument that leads to the aforementioned 'formula' for solutions?

Thanks.
 
Last edited:
Physics news on Phys.org
Your left side antiderivative is incorrect, and you didn't take the exponential of the entire right side.

The general way of solving nth order linear differential equations with constant coefficients (which really show up everywhere) is to assume a solution of e^{st}, plug it into the ODE in the homogeneous case, and solve for s. If the forcing function is not 0, then there are a couple of techniques to find the remaining term (since the sum of solutions to an ODE is a solution). For a constant, it's easy enough to just assume a constant solution and find out what it's equal to.
 
BOAS said:
Hi,

I have a first order linear DE that I need to find the general solution for. I thought that I had, but my solution does not make sense when plugged back into the equation.

I think that my method of separation of variables might be inapplicable here, but don't know the reason for this.

I know that for a DE of the form;

y' + ay = b, the general solution is given by y = \frac{b}{a} + Ce^{-ax} but I don't know where this result comes from, so I would greatly appreciate some help here.

I will show what I have done, even though it is wrong.

1. Homework Statement


Find the general solution to;

c(\phi) : c' + 2c = 1

Homework Equations

The Attempt at a Solution


[/B]
Rewrite as \frac{dc}{d \phi} = 1 - 2c

\frac{dc}{1 - 2c} = d\phi

Integrate both sides.

\int \frac{dc}{1 - 2c} = \int d\phi

- \frac{1}{2} ln(|1 - 2c|) + a_{1} = \phi + a_{2}

Exponentiate, to get rid of ln, and let a_2 - a_1 = a

(1 - 2c)^{-\frac{1}{2}} = e^{\phi} + e^{a}

************************************************************** ERROR above

c = \frac{1}{2} - \frac{e^{-2\phi} + e^{-2a}}{2}

which is not a solution to my differential equation...

c = \frac{1}{2} + Qe^{-2 \phi} is. (Using Q as my constant to avoid confusion)

So I have two questions;

1) Why can I not use separation of variables? (Or did I make a mistake?)

2) What is the argument that leads to the aforementioned 'formula' for solutions?

Thanks.

##e^{a + \phi} \neq e^a + e^{\phi}##.

In general, for constants ##a,b## we can solve ## y' + ay = b##, by setting ##z = y - a/b##. Then ##z' = y'##, and so ##z' + az = y' + a(y - b/a) = y' + ay - b = 0##; that is, ##z' + az = 0##.
 
Also, you can use an integrating factor: let\, \mu =e^{\int p(\phi )d\phi }

muliply your equation through by \mu so you have

\mu c'+2\mu c=\mu then remind yourself of the chain rule. The answer is only two steps away from here... hint: \mu c' +2\mu c =(\mu c)'
 
Ray Vickson said:
##e^{a + \phi} \neq e^a + e^{\phi}##.

Oops, silly mistake.

##(1 - 2c)^{-\frac{1}{2}} = e^{\phi + a}## Which can be rewritten as ##(1 - 2c)^{-\frac{1}{2}} = e^{\phi} e^{a}##

Let ##A = e^{2a}##

##c = \frac{1}{2} - 2A^{-1} e^{-2\phi}## Which is a solution.

n general, for constants a,b we can solve y′+ay=b, by setting z=y−a/b. Then z′=y′, and so z′+az=y′+a(y−b/a)=y′+ay−b=0; that is, z′+az=0.

Thank you for your help.

Practice makes perfect, so I will do lots of problems similar to this.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
1K
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
Replies
19
Views
3K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K