Solving RC Circuit Problem: A Beginner's Guide - Mankku

In summary: So something else must be wrong...In summary, the conversation revolves around using a capacitor to remove DC offset from a signal in a circuit. The individual is attempting to obtain the function for the current in order to work out the resistor voltage and thus the circuit output. They have attempted to do a Laplace transform and use partial fractions, but are encountering difficulties. They are seeking help to determine if they are on the right track and where they may have gone wrong.
  • #1
mankku
9
0
Hi everybody!

This is my first post, happy to be a part of this forum!

I have a problem that may be pretty easy to solve, and a few years ago I could've myself, but at the moment I'm stuck.

I enjoy fiddling with electronics during my free time, and I'd like to study the use of a capacitor to remove DC offset from a signal (more specifically, how the capacitance, frequency and amplitude affect the outcome).

So I've made a simple assumption: I have a voltage source,

[tex]e(t)=2.5+A*sin(2*pi*ft)[/tex]

that feeds a circuit. The circuit consists of a capacitor C and resistor R in series, so that any current passes through both. I've based the case on Kirchoff's voltage law so that

[tex]e(t)=Vc(t)+Vr(t)[/tex]

where

[tex]i(t)=C*\frac{dVc(t)}{dt}[/tex]

and [tex]Vr(t)=R*i(t)[/tex]The equation becomes

[tex]e'(t)=\frac{1}{C}*i(t) + R*i'(t)[/tex]

From this I attempted to do a Laplace transform but I ended up with an expression that I cannot get past. I assumed that at t=0, e(t)=2.5 and i(0)=0.

Here's what I did:

[tex]sE(s)-e(0) = R*(sI(s)-i(0)) + I(s) * \frac{1}{C}[/tex]

from which I obtained

[tex]I(s) = \frac{sE(s)-2.5}{Rs+1/C}[/tex]

and substituting in E(s)

[tex]I(s) = \frac{As*\frac{2\pi f}{s^{2}+4\pi^{2}f^{2}}}{Rs+1/C}[/tex]

where I'm stuck... I can't modify the expression to be able to apply the inverse Laplace transform...

My question is, am I even doing the right thing? Have I gone wrong somewhere? I'm trying to obtain the function for the current i(t) so that I can work out the resistor voltage and thus the circuit output.

Any hints or helps will be greatly appreciated!

Mankku
 
Last edited:
Physics news on Phys.org
  • #2
mankku said:
Hi everybody!

This is my first post, happy to be a part of this forum!

I have a problem that may be pretty easy to solve, and a few years ago I could've myself, but at the moment I'm stuck.

I enjoy fiddling with electronics during my free time, and I'd like to study the use of a capacitor to remove DC offset from a signal (more specifically, how the capacitance, frequency and amplitude affect the outcome).

So I've made a simple assumption: I have a voltage source,

[tex]e(t)=2.5+A*sin(2*pi*ft)[/tex]

that feeds a circuit. The circuit consists of a capacitor C and resistor R in series, so that any current passes through both. I've based the case on Kirchoff's voltage law so that

[tex]e(t)=Vc(t)+Vr(t)[/tex]

where

[tex]i(t)=C*\frac{dVc(t)}{dt}[/tex]

and [tex]Vr(t)=R*i(t)[/tex]


The equation becomes

[tex]e'(t)=\frac{1}{C}*i(t) + R*i'(t)[/tex]

From this I attempted to do a Laplace transform but I ended up with an expression that I cannot get past. I assumed that at t=0, e(t)=2.5 and i(0)=0.

Here's what I did:

[tex]sE(s)-e(0) = R*(sI(s)-i(0)) + I(s) * \frac{1}{C}[/tex]

from which I obtained

[tex]I(s) = \frac{sE(s)-2.5}{Rs+1/C}[/tex]

and substituting in E(s)

[tex]I(s) = \frac{As*\frac{2\pi f}{s^{2}+4\pi^{2}f^{2}}}{Rs+1/C}[/tex]

where I'm stuck... I can't modify the expression to be able to apply the inverse Laplace transform...

My question is, am I even doing the right thing? Have I gone wrong somewhere? I'm trying to obtain the function for the current i(t) so that I can work out the resistor voltage and thus the circuit output.

Any hints or helps will be greatly appreciated!

Mankku

Use partial fractions to change this:

[tex]I(s) = \frac{As*2\pi f}{(Rs+1/C)(s^{2}+4\pi^{2}f^{2})}[/tex]

into two fractions added together... then taking the inverse laplace is simple.
 
  • #3
Partial fractions

Thanks for the reply!

I looked into turning the expression into partial fractions... I still don't think I got the right answer in the end...

Anyway, here's how I went about:

[tex]I(s) = \frac{As*2\pi f}{(Rs+\frac{1}{C})(s^2+(2\pi f)^2)} = \frac{K_1}{Rs+\frac{1}{C}} + \frac{sK_2 + K_3}{s^2+(2\pi f)^2}[/tex]

which eventually yields

[tex]2\pi fAs = (K_1 + RK_2)s^2 + (\frac{K_2}{C} + K_3 R)s + \frac{K_3}{C} + K_1 (2\pi f)^2[/tex]

and thus

[tex]K_1+RK_2 = 0[/tex]

[tex]\frac{K_2}{C} + K_3 R = 2\pi fA[/tex]

[tex]\frac{K_3}{C} + K_1 (2\pi f)^2 = 0[/tex]


Solving this, I obtain

[tex]K_1 = -\frac{2\pi ARf}{\frac{1}{c} + R^2 C(2\pi f)^2}[/tex]

[tex]K_2 = \frac{2\pi Af}{\frac{1}{c} + R^2 C(2\pi f)^2}[/tex]

[tex]K_3 = \frac{ARC(2\pi f)^3}{\frac{1}{c} + R^2 C(2\pi f)^2}[/tex]


Moving on, I substitute these into the partial fraction form of I(s):

[tex]I(s) = K_1 \frac{1}{s+\frac{1}{RC}} + K_2 \frac{s}{s^2+(2\pi f)^2} + K_3 \frac{1}{s^2+(2\pi f)^2}[/tex]

Borrowing a [tex]2\pi f[/tex] from [tex]K_3[/tex], I can now inverse transform and get

[tex]i(t) = K_1 \times e^\frac{-t}{RC} + K_2 \times cos(2\pi ft) + \frac{K_3}{2\pi f} \times sin(2\pi ft)[/tex]

However, at this point, the three terms have different units, IMO they should have the same if this were the correct solution.

In other words, I'm a bit upset... :(

Can anyone point me in the right direction? Did I go wrong somewhere?

Mankku
 
  • #4
I don't see any mistakes. I didn't go through your calculation of the K1, K2 and K3 terms. Why do you say the units are different?
 
  • #5
Well the logarithmic and the trigonometric factors are scalar, so they don't contribute any physical units... So the unit of i(t) (should be amperes) depends on the K1, K2 and K3 factors...

Comparing e.g. K1 and K2, K1 has an R in the nominator that K2 doesn't have... Similarly K3 introduces a C. So they all have different units when simplified, which means that i(t) would be the sum of three different physical quantities...

But if I haven't made a mechanical mistake, then there must be something wrong in the beginning? I can't think of what that would be though...

Edit: I verified that the expressions I obtained for K1...3 actually fulfill the three criteria stated by the partial fraction expansion.

Mankku
 
Last edited:
  • #6
mankku said:
Moving on, I substitute these into the partial fraction form of I(s):

[tex]I(s) = K_1 \frac{1}{s+\frac{1}{RC}} + K_2 \frac{s}{s^2+(2\pi f)^2} + K_3 \frac{1}{s^2+(2\pi f)^2}[/tex]

The denominator of the K1 term should be Rs + 1/C...
 
  • #7
Ack! Good point! That simplification isn't valid!

Let's see... I used the correct form when deriving the expressions for K1...3, so they should be ok as such...

I take it there is no inverse transform for [tex]\frac{1}{As + B}[/tex]? I need to eliminate whatever's in front of the s to be able to inverse transform it?

Edit: Correct me if I'm wrong, but it should be possible to change

[tex]\frac{1}{Rs+1/C}[/tex]

into

[tex]\frac{1/R}{s+1/RC}[/tex]

which would mean that the 1/R nominator eliminates the R in K1, leaving

[tex]\frac{1}{s+1/RC}[/tex]

to inverse transform?
Edit 2: This means that the units provided by K1 and K2 would now be equal... indicating that K3 is incorrect?

Mankku
 
Last edited:
  • #8
I believe the inverse transform for

[tex]\frac{1}{As + B}[/tex]

would be

[tex]\frac{1}{A}e^{\frac{-Bt}{A}}[/tex]
 
  • #9
nicktacik said:
I believe the inverse transform for

[tex]\frac{1}{As + B}[/tex]

would be

[tex]\frac{1}{A}e^{\frac{-Bt}{A}}[/tex]

Yup. factoring out that A... so mankku you should have (K1/R)e^(-t/RC) instead of K1e^(-t/RC)
 
  • #10
I thought I saw a post telling me that the units of the RCf in K3 eliminate themselves... Checking it, I believe they do... So this would mean that the units are correct in all three terms and the problem might be solved! YAY!

I'll have to check this through in the morning when my head is fresh, but I want to extend a BIG preliminary thank you to everyone who posted here!

Mankku
 
  • #11
mankku said:
I thought I saw a post telling me that the units of the RCf in K3 eliminate themselves... Checking it, I believe they do... So this would mean that the units are correct in all three terms and the problem might be solved! YAY!

I'll have to check this through in the morning when my head is fresh, but I want to extend a BIG preliminary thank you to everyone who posted here!

Mankku

That was me. :smile: I wasn't sure though which is why I deleted the post... because I wasn't seeing the [tex]2\pi[/tex]'s cancelling... [tex]K3/2\pi f[/tex] has units of (radians^2)/s in the numerator (RC has units of seconds)... K1 and K2/R have units radians/s in the numerator...

If you ignore [tex]2\pi[/tex] then the units cancel... but that [tex]2\pi[/tex] is bothering me.

EDIT: NEver mind... 1/RC has units of radians/second, so everything works out.
 
Last edited:
  • #12
Problem solved?

Hi again!

I did a units check on the K's and they seem to be ok. The unit of the denominator

[tex]\frac{1}{C} + R^2 C f^2[/tex]

turns out to be volts/amperesecond. Furthermore, the unit of the nominators of K1/R and K2 is volts/second, meaning that the unit of the fractions is

[tex]\frac{\frac{V}{s}}{\frac{V}{As}} = \frac{V}{s} \times \frac{As}{V} = A[/tex]

as should for i(t).

Furthermore, RCf cancels as you suggested, learningphysics, as RC has the unit of seconds and f is 1/second. Thus, modifying the nominator of K3/(2*pi*f):

[tex]ARC(2\pi f)^2 = 2\pi ARCf (2\pi f) = 2\pi A(2\pi f) = 4\pi^2 Af[/tex]

And the unit of the entire K3/(2*pi*f) fraction turns out as amperes.

So, at this stage it seems that the equation is valid. The next step for me is to attempt to verify it experimentally.

I'm deeply grateful for your help, learningphysics, you saw what I was unable to see. Big cheers!

Mankku

P.S: Isn't it kinda strange that you're the only one who has replied to this thread? I thought there'd be more interest... Well perhaps it's just me :)
 
  • #13
mankku said:
Hi again!

I did a units check on the K's and they seem to be ok. The unit of the denominator

[tex]\frac{1}{C} + R^2 C f^2[/tex]

turns out to be volts/amperesecond. Furthermore, the unit of the nominators of K1/R and K2 is volts/second, meaning that the unit of the fractions is

[tex]\frac{\frac{V}{s}}{\frac{V}{As}} = \frac{V}{s} \times \frac{As}{V} = A[/tex]

as should for i(t).

Furthermore, RCf cancels as you suggested, learningphysics, as RC has the unit of seconds and f is 1/second. Thus, modifying the nominator of K3/(2*pi*f):

[tex]ARC(2\pi f)^2 = 2\pi ARCf (2\pi f) = 2\pi A(2\pi f) = 4\pi^2 Af[/tex]

And the unit of the entire K3/(2*pi*f) fraction turns out as amperes.

So, at this stage it seems that the equation is valid. The next step for me is to attempt to verify it experimentally.

I'm deeply grateful for your help, learningphysics, you saw what I was unable to see. Big cheers!

Mankku

P.S: Isn't it kinda strange that you're the only one who has replied to this thread? I thought there'd be more interest... Well perhaps it's just me :)

Cool! Glad to help! I think everything works out... actually I think the units of RC are radians/s... all the [tex]2\pi[/tex]'s cancel...
 

Related to Solving RC Circuit Problem: A Beginner's Guide - Mankku

1. What is an RC circuit?

An RC circuit is a circuit that contains both a resistor (R) and a capacitor (C). The resistor controls the flow of current, while the capacitor stores electric charge. These components work together to create a time-varying electrical signal.

2. How do you solve an RC circuit problem?

To solve an RC circuit problem, you will need to use a series of equations that relate the voltage, current, and resistance of the circuit. These equations, known as Kirchhoff's laws, can be used to calculate the time-varying behavior of the circuit and determine the values of the voltage and current at any point in time.

3. What are the key components of an RC circuit?

The key components of an RC circuit are a resistor, a capacitor, and a voltage source. The resistor and capacitor are connected in series, and the voltage source provides the initial charge to the capacitor. Other components, such as switches or additional resistors, may also be present in the circuit.

4. What are some common applications of RC circuits?

RC circuits have a wide range of applications, including in electronic filters, oscillators, and signal processing circuits. They are also commonly used in radio and television receivers, as well as in timing circuits for electronic devices.

5. What are some common challenges when solving RC circuit problems?

Some common challenges when solving RC circuit problems include understanding the behavior of capacitors, which may not follow the same rules as resistors, and dealing with time-varying signals. Additionally, complex RC circuits with multiple components may require more advanced mathematical techniques to solve.

Similar threads

  • Introductory Physics Homework Help
Replies
4
Views
374
  • Calculus and Beyond Homework Help
Replies
3
Views
437
  • Calculus and Beyond Homework Help
Replies
12
Views
559
  • Calculus and Beyond Homework Help
Replies
1
Views
407
  • Calculus and Beyond Homework Help
Replies
16
Views
809
  • Calculus and Beyond Homework Help
Replies
6
Views
483
  • Calculus and Beyond Homework Help
Replies
2
Views
469
  • Calculus and Beyond Homework Help
Replies
3
Views
601
  • Calculus and Beyond Homework Help
Replies
1
Views
608
  • Calculus and Beyond Homework Help
Replies
2
Views
494
Back
Top