Compare commits

..

6 Commits

Author SHA1 Message Date
Mars Ultor
b3354522b2 fixed main
Some checks failed
Build and Test / build-and-test (macos-latest) (push) Has been cancelled
Build and Test / build-and-test (ubuntu-latest) (push) Has been cancelled
Build and Test / build-and-test (windows-latest) (push) Has been cancelled
Build and Test / publish-tag (push) Has been cancelled
2025-10-14 14:49:17 -05:00
Mars Ultor
c4e9ae358c final stuff 2025-05-20 23:13:19 -05:00
Mars Ultor
7f66b01d1d stuff circuits blah 2025-02-24 22:40:48 -06:00
Mars Ultor
5cc34003d9 hahah
Some checks failed
Build and Test / build-and-test (macos-latest) (push) Has been cancelled
Build and Test / build-and-test (ubuntu-latest) (push) Has been cancelled
Build and Test / build-and-test (windows-latest) (push) Has been cancelled
Build and Test / publish-tag (push) Has been cancelled
2025-02-17 18:19:24 -06:00
Mars Ultor
589713ffd6 harmonics
Some checks failed
Build and Test / build-and-test (macos-latest) (push) Has been cancelled
Build and Test / build-and-test (ubuntu-latest) (push) Has been cancelled
Build and Test / build-and-test (windows-latest) (push) Has been cancelled
Build and Test / publish-tag (push) Has been cancelled
2025-02-15 15:32:16 -06:00
Mars Ultor
b573aa6758 double slit final equations
Some checks failed
Build and Test / build-and-test (macos-latest) (push) Has been cancelled
Build and Test / build-and-test (ubuntu-latest) (push) Has been cancelled
Build and Test / build-and-test (windows-latest) (push) Has been cancelled
Build and Test / publish-tag (push) Has been cancelled
2025-01-30 00:50:44 -06:00
5 changed files with 303 additions and 4 deletions

View File

@@ -3,7 +3,3 @@ title: Welcome to the Warehouse
--- ---
Welcome to the warehouse of the Thoughts of 0x6d617273756c746f72, Prime of the Faith, ranked Hacker on HTB, and the founder of a bunch of defunct projects on github. Average internet nerd/sysadmin/programmer. Move on, to either his cursed musings or with your day. Welcome to the warehouse of the Thoughts of 0x6d617273756c746f72, Prime of the Faith, ranked Hacker on HTB, and the founder of a bunch of defunct projects on github. Average internet nerd/sysadmin/programmer. Move on, to either his cursed musings or with your day.
# Socials
- Matrix: [@lanre:envs.net](https://matrix.to/#/@lanre:envs.net)
- Bluesky: [krishna.ayyalasomayajula.net](https://bsky.app/profile/krishna.ayyalasomayajula.net)

View File

@@ -0,0 +1,192 @@
---
title: Crazy Mix of Everything You Could Dread
date: 2025-02-15
---
# Electric Charge and Electric Field
## Laws?
1. *Law of Conservation of Electric Charge*: **the net amount of electric charge produced in any process is zero**.
2. I forgot
## Insulators and Conductors
This image should sum things up nicely.
![](swappy-20250215-165128.png)
## Coulomb's Law
$$
||\vec{F}||=k\frac{Q_1 Q_2}{r^2}
$$
$k$ is a random constant written in terms of a more definite constant such that:
$$
F=\frac{1}{r\pi\epsilon_0}\frac{Q_1 Q_2}{r_2}
$$
where
$$
\epsilon_0=\frac{1}{4\pi k}=8.85\times 10^{-12}\;\text{ C}^2/\mathrm{N}*\mathrm{m}^2
$$
It's important to consider here, that $r$ is the magnitude of distance, and $F$ always represents the magnitude of the force. Oppositely signed charges attract, and same-signed charges repel with the force computed by the formula.
# The Electric Field
$$
\vec{E}=\frac{\vec{F}}{q}
$$
- $q$ is the magnitude of the charge
- The electric field only reflects the *direction* of the magnetic field, not the intensity.
- The electric field $\vec{E}$ represents the force per unit charge, so really:
$$
\vec{E}=\lim_{q\to 0}{\vec{F}/q}
$$
The electric field has the units Newtons per Coulomb: N/C. The magnitude of the electric field vector $\vec{E}$, can be calculated as $E$:
$$
E=\frac{F}{q}=\frac{kqQ/r^2}{q} = k\frac{Q}{r^2}
$$
Notice that the vector field $\vec{E}$ is independent of the test charge $q$, only dependent on the parent charge $Q$ that produces the field. $\therefore$, the force experienced by a particle at a given position $r$ can be expressed by:
$$
\vec{F}=q\vec{E}
$$
If there are more than one parent charge $Q$, the experienced electric vector field is simply:
$$
\vec{E}=\vec{E_1}+\vec{E_2}+\vec{E_n}
$$
# Electric Potential Energy and Potential Difference
A fundamental law of physics is that $\Delta \textbf{PE} =-W$, while the change in kinetic energy is oppositely signed. The potential difference between any two points is $\textbf{PE}_b-\textbf{PE}_a$, while work is expressed like so:
$$
W=\int{F\mathrm{d}r}
$$
> [!NOTE]
> $r$ and $x$ are used interchangeably for displacement. $r$ is more commonly seen in multi-dimensional reference frames.
$\therefore$ the work done by electric field $\vec{E}$ is:
$$
W=Fd=-qEd
$$
$$\Delta \textbf{PE}=-qEd
$$
This is only true if the electric field is uniform. In reality, it never is.
## Potential Difference
**Electric Potential** is understood as the electric potential energy per unit charge. This variable is given the symbol $V$. At some displacement $a$ from the parent charge $Q$:
$$
V_a=\frac{\textbf{PE}_a}{q}
$$
Two balls at the same height are not meaningfully different in position, therefore only *potential difference* matters physically. In this case, between two points, $a$ and $b$. When the electric force does positive work on a charge, the kinetic energy increases in tandem with a decrease of that potential difference. Keeping in line with the rules laid out above:
$$
V_{ba}=V_b-V_a=\frac{\Delta \textbf{PE}_{ba}}{q}=\frac{-W_{ba}}{q}
$$
Just as the potential energy of a raised ball does not depend on the gravitational field of the ball, the electric potential of the test charge $q$ doesn't depend on the magnitude of the charge itself. This quantity is given the unit **Volt**, or $1\text{ V}=1\;\text{J}/\mathrm{C}$
# Circuits
### Ohms Law:
$$
V = IR
$$
- Voltage $V$ = Current $I$ × Resistance $R$
### Power in Circuits:
$$
P = IV
$$
- Power $P$ = Current $I$ × Voltage $V$
$$
P = I^2R
$$
- Power $P$ = Current squared $I^2$ × Resistance $R$
$$
P = \frac{V^2}{R}
$$
- Power $P$ = Voltage squared $V^2$ / Resistance $R$
### Series Circuits:
$$
R_{\text{total}} = R_1 + R_2 + \dots + R_n
$$
- Total Resistance $R_{\text{total}}$ = Sum of Individual Resistances
$$
V_{\text{total}} = V_1 + V_2 + \dots + V_n
$$
- Total Voltage $V_{\text{total}}$ = Sum of Individual Voltages
$$
I_{\text{total}} = I_1 = I_2 = \dots = I_n
$$
- Current $I_{\text{total}}$ is the same across all components
### Parallel Circuits:
$$
\frac{1}{R_{\text{total}}} = \frac{1}{R_1} + \frac{1}{R_2} + \dots + \frac{1}{R_n}
$$
- Total Resistance $R_{\text{total}}$ = Reciprocal Sum of Individual Resistances
$$
V_{\text{total}} = V_1 = V_2 = \dots = V_n
$$
- Voltage $V_{\text{total}}$ is the same across all components
$$
I_{\text{total}} = I_1 + I_2 + \dots + I_n
$$
- Total Current $I_{\text{total}}$ is the sum of individual currents
### Capacitance:
$$
Q = CV
$$
- Charge $Q$ = Capacitance $C$ × Voltage $V$
$$
C = \frac{\epsilon_0 A}{d}
$$
- Capacitance $C$ of a parallel plate capacitor: $\epsilon_0$ = permittivity of free space, $A$ = area of plates, $d$ = distance between plates
### Inductance:
$$
V = L \frac{di}{dt}
$$
- Voltage across an inductor $V$ = Inductance $L$ × Rate of change of current $\frac{di}{dt}$
### RL Time Constant:
$$
\tau = \frac{L}{R}
$$
- Time constant $\tau$ for an RL circuit
### Kirchhoffs Laws:
- **Kirchhoffs Current Law (KCL):** The sum of currents entering a junction equals the sum of currents leaving.
- **Kirchhoffs Voltage Law (KVL):** The sum of voltages around any closed loop equals zero.
---
#physics

101
content/physics/final.md Normal file
View File

@@ -0,0 +1,101 @@
> [!NOTE] A mass $m$ attached to a spring with constant $k$ oscillates on a frictionless surface. Derive an expression for the velocity $v$ as a function of displacement $x$.
>
> [!INFO]-
> Total mechanical energy in SHM is conserved:
> $$
> E = \frac{1}{2}mv^2 + \frac{1}{2}kx^2 = \frac{1}{2}kA^2
> $$
> Solving for $v$:
> $$
> v = \pm \sqrt{\frac{k}{m}(A^2 - x^2)}
> $$
> [!NOTE] A wave traveling along a rope is represented by $y(x,t) = 0.02\cos(40x - 600t)$. Determine the amplitude, wavelength, frequency, and speed of the wave.
>
> [!INFO]-
> The general wave form is $y = A\cos(kx - \omega t)$:
> - Amplitude $A = 0.02\ \mathrm{m}$
> - Wave number $k = 40 \Rightarrow \lambda = \frac{2\pi}{k} = \frac{2\pi}{40} = 0.157\ \mathrm{m}$
> - Angular frequency $\omega = 600 \Rightarrow f = \frac{\omega}{2\pi} = \frac{600}{2\pi} \approx 95.5\ \mathrm{Hz}$
> - Wave speed $v = f\lambda = 95.5 \times 0.157 \approx 15\ \mathrm{m/s}$
> [!NOTE] In Young's double slit experiment, fringes are formed on a screen 1.2 m away using light of wavelength $600\ \text{nm}$. The slits are separated by $0.2\ \text{mm}$. Calculate the distance between adjacent bright fringes.
>
> [!INFO]-
> Fringe spacing is given by:
> $$
> y = \frac{\lambda D}{d} = \frac{600 \times 10^{-9} \times 1.2}{0.2 \times 10^{-3}} = 3.6\ \text{mm}
> $$
> [!NOTE] A pendulum of length $0.5\ \mathrm{m}$ is displaced by a small angle. Determine its period and explain why amplitude does not affect the result.
>
> [!INFO]-
> The period is:
> $$
> T = 2\pi\sqrt{\frac{L}{g}} = 2\pi\sqrt{\frac{0.5}{9.8}} \approx 1.41\ \mathrm{s}
> $$
> In the small-angle approximation ($\theta < 10^\circ$), motion is independent of amplitude.
> [!NOTE] A charged particle $q$ moves through a uniform electric field $E$. Derive the expression for the work done on the charge and its change in potential energy.
>
> [!INFO]-
> Work done:
> $$
> W = qEd
> $$
> Change in potential energy:
> $$
> \Delta U = -qEd
> $$
> since electric potential energy decreases when the charge moves in the direction of the field.
> [!NOTE] A capacitor of $10\ \mu\mathrm{F}$ is charged to $5\ \mathrm{V}$. Calculate the energy stored in it.
>
> [!INFO]-
> $$
> E = \frac{1}{2}CV^2 = \frac{1}{2} \cdot 10 \times 10^{-6} \cdot 25 = 1.25 \times 10^{-4}\ \mathrm{J}
> $$
> [!NOTE] A coil of wire rotates in a magnetic field. Use Faradays law to derive the expression for the induced emf.
>
> [!INFO]-
> Faradays law:
> $$
> \mathcal{E} = -\frac{d\Phi}{dt}
> $$
> Magnetic flux $\Phi = B A \cos(\omega t)$, so:
> $$
> \mathcal{E} = B A \omega \sin(\omega t)
> $$
> [!NOTE] A wire carries a current of $3\ \mathrm{A}$ through a magnetic field of $0.5\ \mathrm{T}$ perpendicular to its length. The wire is $0.4\ \mathrm{m}$ long. Find the magnetic force.
>
> [!INFO]-
> $$
> F = ILB\sin\theta = 3 \cdot 0.4 \cdot 0.5 \cdot 1 = 0.6\ \mathrm{N}
> $$
> [!NOTE] Explain the effect of damping on the amplitude-frequency graph of a driven harmonic oscillator.
>
> [!INFO]-
> Damping reduces the peak amplitude and shifts the resonant frequency slightly lower. Greater damping broadens the curve and lowers the quality factor $Q$.
> [!NOTE] A mass-spring oscillator experiences light damping. Write the differential equation and general solution.
>
> [!INFO]-
> Equation:
> $$
> m\ddot{x} + b\dot{x} + kx = 0
> $$
> Solution:
> $$
> x(t) = A e^{-\gamma t} \cos(\omega' t + \phi)
> $$
> where $\gamma = \frac{b}{2m}$ and $\omega' = \sqrt{\omega_0^2 - \gamma^2}$.
> [!NOTE] A $0.2\ \mathrm{kg}$ object experiences a force due to gravity from Earth at a distance of $6.4 \times 10^6\ \mathrm{m}$. Calculate the force.
>
> [!INFO]-
> $$
> F = G\frac{Mm}{r^2} = 6.67 \times 10^{-11} \cdot \frac{5.97 \times 10^{24} \cdot 0.2}{(6.4 \times 10^6)^2} \approx 1.96\ \mathrm{N}
> $$

View File

@@ -514,4 +514,14 @@ Where:
- $ D $ = distance from the slits to the screen - $ D $ = distance from the slits to the screen
- $ d $ = distance between the two slits - $ d $ = distance between the two slits
## Final equations
Time to combine everything together. We'll continue to use the variable definitions from above, but include $y_m$, or the distance between the center, $m=0$ and some bright fringe of order $m$. When calculating, it can also be assumed that (for small angles) $\sin\theta\approx\theta$.
$$
\boxed{d\sin\theta=m\lambda}
$$
$$
\boxed{y_md=Dm\lambda}
$$

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB